feat: add unified right-click context menus across all components#240
Open
Mr54233 wants to merge 1 commit into
Open
feat: add unified right-click context menus across all components#240Mr54233 wants to merge 1 commit into
Mr54233 wants to merge 1 commit into
Conversation
feat: add unified right-click context menus across all components Extract a shared ContextMenu component (Radix UI) and add context menus to TaskListItem, ProjectRail, FileExplorer, FileViewer, GitChanges, GitHistory, RunningView terminal, and SessionView. Menu items per component: - TaskListItem: star, rename, resume, mark done, cancel, reconnect, merge/discard worktree, delete (conditional on task status) - ProjectRail: open in file manager, copy path, hide/show, delete - FileExplorer/TreeItem: replace dedicated component with shared one - FileViewer tab: close, close others, close all, copy path - GitChanges: discard, open file, copy path - GitHistory: copy commit hash - RunningView terminal: copy, paste, clear, select all + cancel/reconnect - SessionView: copy message Also includes: - Async onSelect with error catching - Fix ProjectDrawer closing when clicking context menu items - Remove fake MouseEvent hack in GitChanges onDiscard - Hide/show project option in ProjectRail @
Mr54233
force-pushed
the
refactor/context-menu
branch
from
June 7, 2026 05:15
f765009 to
3a7ea9e
Compare
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.
Summary
Extracts a shared
ContextMenucomponent (Radix UI) and adds right-click context menus to all major interactive areas of the app.Closes #234
What's included
Shared component
src/components/ContextMenu.tsx— generic context menu with typed MenuItem array, async onSelect with error catching, variant support (default/success/destructive)Context menus added (8 components)
Bug fixes / refactors along the way
Test plan