Skip to content

fix(web): use icon buttons for booking link actions - #3092

Merged
tyler-dane merged 2 commits into
mainfrom
cursor/booking-link-icon-buttons-7a70
Sep 2, 2026
Merged

fix(web): use icon buttons for booking link actions#3092
tyler-dane merged 2 commits into
mainfrom
cursor/booking-link-icon-buttons-7a70

Conversation

@tyler-dane

@tyler-dane tyler-dane commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Settings > Booking used text "Copy" / "Open booking page" controls for the public link. The rest of Compass uses icon buttons with tooltips.

This replaces those controls with Phosphor Copy / ArrowSquareOut icons, IconButton + TooltipWrapper for copy, and a tooltip-wrapped anchor for open (new tab). Aria-labels stay Copy booking link and Open booking page. Copied state still toasts via booking-link-copied and the tooltip/icon switch to Copied / Check for 2s.

Fixes #3080

Simplicity

Matches the event form action row. Open stays an anchor. iconButtonClassName is shared so the open-page anchor and IconButton cannot drift.

Automated validation

bun run verify PASS.

Selected packages: web
Checks run: test:web, type-check, lint, knip, test:a11y, test:e2e
Checks skipped: (none)

Focused: bun test:web packages/web/src/booking/BookingCopyLink.test.tsx (7 pass), including tooltip assertions for copy and open.

Independent review

VERDICT: no confirmed findings

Accessible names, new-tab rel, and the copied toast are unchanged. Native link stays an anchor. Keyboard focus uses the existing IconButton focus ring.

Test plan

  • bun test:web packages/web/src/booking/BookingCopyLink.test.tsx
  • bun run verify
Open in Web Open in Cursor 

cursoragent and others added 2 commits September 2, 2026 15:59
Replace the Copy and Open booking page text controls with Phosphor
icons, IconButton, and tooltips so the public-link row matches the
event form action pattern.

Fixes #3080

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Split tooltip tests so each hover starts from a closed tooltip, and
reuse IconButton's classes on the open-page anchor so the two controls
stay visually identical.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@tyler-dane
tyler-dane marked this pull request as ready for review September 2, 2026 16:08
@tyler-dane
tyler-dane merged commit be6a357 into main Sep 2, 2026
30 checks passed
@tyler-dane
tyler-dane deleted the cursor/booking-link-icon-buttons-7a70 branch September 2, 2026 16:11
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.

Booking link: replace text actions with icon buttons and tooltips

2 participants