Skip to content

feat(site/src): open project chat actions on right-click - #31475

Merged
jaaydenh merged 6 commits into
mainfrom
jaayden/project-chat-row-context-menu
Nov 3, 2026
Merged

jaaydenh merged 6 commits into
mainfrom
jaayden/project-chat-row-context-menu

Conversation

@jaaydenh

@jaaydenh jaaydenh commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

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.

ProjectChatRow wraps the row in ChatActionsMenu 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 preventRowContextMenuProps export from the shared ContextMenu module, used at all three call sites.

The row follows the sidebar chat tree's pattern (ChatTreeNode): one sharedMenuItemProps object feeds both the ⋮ dropdown and the context menu, the row is select-none so a long press does not select text, and the open state uses the same group-data-[state=open] reveal. The sidebar's pointer-coarse:[-webkit-touch-callout:none] class is dropped because Radix's ContextMenuTrigger already sets WebkitTouchCallout: "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 RowContextMenuOpen story covers the open state.

Project chats list with a chat's context menu open at the pointer

@jaaydenh

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T13:14:47.427780Z de88213 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: fda865c4cb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@jaaydenh
jaaydenh marked this pull request as ready for review October 29, 2026 09:59
@jaaydenh
jaaydenh requested a review from a team as a code owner October 29, 2026 09:59
@jaaydenh

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: de88213a77

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@pr-queue-manager
pr-queue-manager Bot requested a review from jakehwll October 29, 2026 13:27
…row-context-menu

# Conflicts:
#	site/src/pages/AgentsPage/components/ProjectPage/ProjectChatRow.tsx
@jaaydenh
jaaydenh merged commit fb68a95 into main Nov 3, 2026
27 of 28 checks passed
@jaaydenh
jaaydenh deleted the jaayden/project-chat-row-context-menu branch November 3, 2026 14:54
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants