Registry Mirror
Skip to content

Conversation

@backnotprop

@backnotprop backnotprop commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Right-click a thread row in the Inbox list to get a small menu:

  1. Copy link: http://localhost:<port>/#thread=<id>, the same form the MCP tools give agents. A page opened over the tailnet copies its own origin instead. The toast says "Link copied", or "Couldn't copy".
  2. Copy thread ID (msg_…)
  3. a separator
  4. Mark read (or Move back on a row marked read), only where the row's hover action offers it
  5. Archive, hidden on a row that is already archived

Mark read, Move back and Archive use the same handlers and toasts as the hover action and the header. One change: Archive on a row that is not the open thread now names the thread in the toast. With a thread open, that row shows as archived in place, as the project menu's Archive all does.

How it works:

  • One Base UI ContextMenu covers the whole list. It targets the row under the pointer and reuses the project menu's look (.ib-pm). Right-clicking anywhere else in the list (a band, the empty-state link) still shows the browser's own menu.
  • It never opens the thread or moves the selection. The row keeps a muted background while its menu is open.
  • Escape, Tab and choosing an item put focus on the row, even when focus was somewhere else (say, Search) before the right-click. A mouse right-click doesn't focus the row, and in Safari nothing does. If the action then takes the row off screen (Archive with no thread open, or Mark read into folded Quiet), focus goes to the row that now sits in its place.
  • The menu's items are read from the row as it is now. If the row leaves the list while its menu is open, the menu closes.
  • Rows carry aria-keyshortcuts="Shift+F10", not aria-haspopup, because a click opens the thread.
  • The context-menu key and Shift+F10 work on a focused row. Chromium on macOS sends no contextmenu for them, so the list sends one itself and cancels the keydown. Chromium on Windows sends the key's contextmenu on keyup, after our menu is already open; one listener cancels that event while our menu is open, so the browser's menu never appears on top of ours.
  • Wide, two-line and phone-shaped rows all get the menu (a narrow desktop window uses the phone row).

Phones: there is no menu on a phone. Touch never opens it: Base UI's long press is turned off, and a contextmenu that comes from a touch (Android's long press) is ignored.

The search palette's rows have no menu. No new shortcuts.

Tests:

  • bun run typecheck
  • New DOM test packages/inbox/rowMenu.test.tsx, added to the test.yml DOM list. It covers: focus held elsewhere, then Escape, Copy and Tab; where focus goes after Archive; the Windows keyup guard (a synthetic event); and Archive in place with a thread open, its toast and Undo
  • Existing DOM tests: markRead, projectMenu, openStaysPut, phoneList, listLabels, componentTooltips, archived, toast, listColumn, ack
  • New tests/e2e/inbox-row-menu.spec.ts on the compiled binary. It reads the clipboard in Chromium, checks focus returns to the row from Search, and saves screenshots at 1440, light and dark, to /tmp/row-menu-shots/.
  • Existing e2e specs: project-menu, mark-read, open-stays-put, sidebar, mobile, list-resize, archived, tooltips

🤖 Generated with Claude Code

backnotprop and others added 7 commits October 20, 2026 17:16
A right-click on a list row (or the context-menu key or Shift+F10 on a
focused row) opens a menu: Copy link, Copy thread ID, then Mark read or
Move back and Archive where they apply. One Base UI ContextMenu for the
whole list, in the project menu's look. Touch never opens it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	packages/inbox/components/InboxList.tsx
- Escape, Tab and an item put focus on the row even when focus was elsewhere
  before the right-click; the row's id is kept past the close for finalFocus.
  A write that takes the row off screen moves focus to the row in its slot.
- The items are read from the row as it is now, every render.
- Chromium on Windows sends the context-menu key's contextmenu on keyup: one
  guarded listener cancels it while our menu is open.
- Rows carry aria-keyshortcuts="Shift+F10".
- Tests: focus held elsewhere, Archive's slot, the keyup guard, Archive in
  place with a thread open, its toast and Undo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the menu opened, a narrower keyup guard

A. A write from the menu while a thread is open (the list holds still) no
   longer arms the follow-up focus, so a mouse close of the thread moves
   nothing (App's rule). With no thread open it ends once the write lands
   with the row still on screen.
B. Focus falls back to the row in its slot from the order when the menu
   opened, so a row that leaves while its menu is open (another tab
   archives it) hands focus to its neighbour, not the Quiet band.
C. The keyup guard goes on the first pointer press, so on macOS and Safari
   (no keyup contextmenu) it never swallows a right-click.

Tests for A, B and C.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	tests/e2e/playwright.config.ts
# Conflicts:
#	packages/inbox/components/InboxList.tsx
@backnotprop
backnotprop merged commit 2906f6f into main Oct 21, 2026
29 of 30 checks passed
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