Conversation
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
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Right-click a thread row in the Inbox list to get a small menu:
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".msg_…)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:
ContextMenucovers 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.aria-keyshortcuts="Shift+F10", notaria-haspopup, because a click opens the thread.contextmenufor them, so the list sends one itself and cancels the keydown. Chromium on Windows sends the key'scontextmenuon 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.Phones: there is no menu on a phone. Touch never opens it: Base UI's long press is turned off, and a
contextmenuthat comes from a touch (Android's long press) is ignored.The search palette's rows have no menu. No new shortcuts.
Tests:
bun run typecheckpackages/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 Undotests/e2e/inbox-row-menu.spec.tson 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/.🤖 Generated with Claude Code