Add direct workspace grouping toggle for quick switching between Projects and Statuses - #4359
Add direct workspace grouping toggle for quick switching between Projects and Statuses#4359panrafal wants to merge 11 commits into
Conversation
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. |
|
| Filename | Overview |
|---|---|
| packages/app/src/components/left-sidebar.tsx | Adds localized Search and current-grouping actions to the Workspaces header, including compact-sidebar behavior. |
| packages/app/src/keyboard/keyboard-shortcuts.ts | Registers the grouping shortcut, excludes editable and terminal focus, and accommodates shifted keyboard layouts. |
| packages/app/src/command-center/root-registration.tsx | Registers the global grouping action and exposes its resolved shortcut in the Command Center. |
| packages/app/src/stores/sidebar-view-store.ts | Centralizes cycling between project and status grouping modes. |
| packages/app/e2e/browser/command-center-grouping.spec.ts | Covers shortcut cycling and synchronization between the quick toggle and Display preferences. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
Header[Workspaces header toggle] --> Store[Sidebar view store]
Shortcut[Cmd/Ctrl + semicolon] --> Dispatcher[Keyboard action dispatcher]
Dispatcher --> Store
Command[Command Center action] --> Store
Preferences[Display preferences] --> Store
Store --> Project[Project grouping]
Store --> Status[Status grouping]
Reviews (11): Last reviewed commit: "docs: restore grouping menu example" | Re-trigger Greptile
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9effa447e1
ℹ️ 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".
| ? "shell.commandCenter.groupByProject" | ||
| : "shell.commandCenter.groupByStatus", | ||
| ); | ||
| const Icon = groupMode === "project" ? Folder : CircleDashed; |
There was a problem hiding this comment.
Icon Contradicts Toggle Action
The label and click behavior describe the available action, but the icon now represents the current mode. For example, project grouping shows a Folder while the button says and performs “Group by status,” giving sighted users conflicting cues about what activating it will do.
| const Icon = groupMode === "project" ? Folder : CircleDashed; | |
| const Icon = targetMode === "project" ? Folder : CircleDashed; |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Linked issue
None
Type of change
Reasoning
Switching workspace grouping currently requires navigating through Display preferences. This adds a direct Workspaces-header control while retaining the descriptive menu choice.
Search remains available. The grouping icon and tooltip represent the currently selected mode, while the control cycles to the other mode when activated.
Goals
Cmd/Ctrl+;grouping shortcut to Projects & Workspaces.;requires Shift.Non-goals
QA
Focused unit tests
Browser tests
The browser coverage verifies:
Cmd/Ctrl+;cycles both grouping modes.Repository checks
The repository-wide typecheck reaches only the existing desktop Electron clipboard errors:
Automated review
Greptile reviewed commit
82f770b8awith confidence 5/5 and reported no actionable failures.Visual evidence
Platform coverage
Checklist