Skip to content

Conversation

@kylecarbs
Copy link
Member

Generated with cmux

Adds a right-click context menu to workspace items in the left sidebar with options to rename or remove workspaces.

Changes

  • Install shadcn context-menu component and lucide-react dependency
  • Wrap WorkspaceListItem in ContextMenu component from @radix-ui
  • Add context menu items for:
    • Rename: Triggers existing rename flow (same as double-click)
    • Remove: Calls existing remove handler (same as × button)
  • Style remove option in error color for clarity

UX Improvements

  • More discoverable actions via right-click
  • Follows desktop app conventions
  • Reuses existing functionality, no new logic needed

Testing

  • Right-click workspace item shows context menu
  • Click "Rename" enters edit mode
  • Click "Remove" removes workspace
  • Existing double-click and × button still work

- Install shadcn context-menu component and lucide-react
- Wrap WorkspaceListItem in ContextMenu
- Add right-click menu with Rename and Remove options
- Reuses existing rename and remove functionality
- Remove option styled in error color for clarity
- Update context menu z-index from z-50 to z-[1001]
- Ensures context menu appears above sidebar (z-[100]/z-[1000])
- Fixes issue where menu was appearing behind project list
- Add standard shadcn CSS variables (--popover, --accent, etc.)
- Map to existing cmux color tokens for consistency
- Allows shadcn components to work out of the box
- Context menu now has proper background and styling
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