Skip to content

feat: add copy-link button next to Share route#60

Merged
GeiserX merged 1 commit into
mainfrom
feat/copy-route-button
Jun 8, 2026
Merged

feat: add copy-link button next to Share route#60
GeiserX merged 1 commit into
mainfrom
feat/copy-route-button

Conversation

@GeiserX

@GeiserX GeiserX commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to live feedback: the station popup got a direct Copy-link button in v1.6.1, but the route only had Share. This adds a matching Copy button beside "Share route" in the search panel.

  • Route footer is now a two-button row: Share route (native share sheet, clipboard fallback) + Copy (writes the route deep-link straight to the clipboard, no share sheet).
  • Both build the same URL via a shared routeShareUrl() helper.
  • Reuses the existing popup.copyLink i18n key (16 locales).

Test plan

  • tsc clean
  • 531 tests pass (+1: copy-route writes the route URL, does not invoke the share sheet)
  • next build ok

The station popup already had a direct Copy-link button; mirror it for the
route. The route footer now shows two buttons side by side — Share route
(native sheet) and Copy (writes the route deep-link straight to the
clipboard via copyToClipboard, no share sheet). Both build the same URL via
a shared routeShareUrl() helper. Reuses the popup.copyLink i18n key.
@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@GeiserX, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 46 minutes and 13 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 886c6b15-995f-49a4-96fb-fc5db611c7ee

📥 Commits

Reviewing files that changed from the base of the PR and between 9bbc1ae and f8c6edd.

📒 Files selected for processing (2)
  • src/components/search/search-panel.deeplink.test.tsx
  • src/components/search/search-panel.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/copy-route-button

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@GeiserX GeiserX merged commit 6ee915a into main Jun 8, 2026
8 checks passed
@GeiserX GeiserX deleted the feat/copy-route-button branch June 8, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant