Repository navigation
feat(site/src): open project chat actions on right-click - #31475
Conversation
…ions on right-click in project chats list
… right-click guard and add context menu stories
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…ws with the sidebar context menu pattern
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…row-context-menu # Conflicts: # site/src/pages/AgentsPage/components/ProjectPage/ProjectChatRow.tsx
Right-clicking a chat in the Chats list on an agents project page now opens the same actions menu as the row's ⋮ button, matching the sidebar chat tree.
ProjectChatRowwraps the row inChatActionsMenu variant="context"with the same items as the dropdown. While the row's context menu is open, the row stays highlighted and the ⋮ button shows in place of the owner avatar, as on hover. Rows rendered without actions keep the browser's default menu.A right-click on the ⋮ button itself must not also open the row's menu. The sidebar chat rows and project folders already had copies of that guard, so it is now one
preventRowContextMenuPropsexport from the sharedContextMenumodule, used at all three call sites.The row follows the sidebar chat tree's pattern (
ChatTreeNode): onesharedMenuItemPropsobject feeds both the ⋮ dropdown and the context menu, the row isselect-noneso a long press does not select text, and the open state uses the samegroup-data-[state=open]reveal. The sidebar'spointer-coarse:[-webkit-touch-callout:none]class is dropped because Radix'sContextMenuTriggeralready setsWebkitTouchCallout: "none"inline on every trigger.Tests: the project row archive test now runs through the dropdown, the context menu, and a right-click on ⋮ followed by a click. A new
RowContextMenuOpenstory covers the open state.