Repository navigation
Conversation
Holding the jump modifier shows ⌘1–⌘9 on session and workspace rows so the mapping is scannable without hovering each one. Co-authored-by: Cursor <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe sidebar now reveals workspace jump shortcut labels after a platform-specific modifier key is held. The change adds reducer and hook logic, connects shortcut labels to workspace items, and updates collapsed and expanded workspace rendering. ChangesJump shortcut reveal
Estimated code review effort: 4 (Complex) | ~45 minutes Mergeability Score: ⚪ Minimal · up to The PR adds a localized sidebar shortcut-reveal interaction with focused tests and no actionable merge-blocking risk remaining; it is merge-ready after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant KeyboardEvents
participant useHoldJumpShortcutReveal
participant DashboardSidebar
participant WorkspaceItems
KeyboardEvents->>useHoldJumpShortcutReveal: Hold supported modifier
useHoldJumpShortcutReveal->>useHoldJumpShortcutReveal: Wait for reveal delay
useHoldJumpShortcutReveal-->>DashboardSidebar: Set reveal state
DashboardSidebar->>WorkspaceItems: Render jump shortcut mode
WorkspaceItems-->>DashboardSidebar: Display shortcut labels
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The hold-modifier overlay on the collapsed rail was digit-only; match expanded rows and show the full ⌘1–⌘9 label. Co-authored-by: Cursor <[email protected]>
|
This PR has had no activity for 53 days and will close in 7 days unless there is new activity. If this contribution is still important or relevant, please leave a comment to keep it open. If it closes, you are welcome to reopen it or ask a maintainer to reopen it. Thank you for contributing! |
What & why
Holding ⌘ (Ctrl on Windows/Linux) for 400ms reveals ⌘1–⌘9 on every mapped session and workspace row in the v2 dashboard sidebar, including the collapsed rail. Hovering a single row was the only way to see a shortcut, so the jump map was not scannable.
Chords such as ⌘C cancel before the overlay appears. Release, blur, or any other key hides it. Pinned rows are unchanged; they are still excluded from the shortcut map.
How I tested it
bun test apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/hooks/useHoldJumpShortcutReveal/holdJumpShortcutReveal.test.ts(12 pass)npx @biomejs/[email protected] checkon the touched files (clean)Checklist
type(scope): subject)bun run lintandbun run typecheckpass (CI fails on lint warnings too)Made with Cursor
Summary by cubic
Holding the jump modifier reveals sidebar jump shortcuts so the map is scannable. Previously hints only appeared on hover; now holding ⌘ (Ctrl on Windows/Linux) for 400ms shows ⌘1–⌘9 on all session and workspace rows, including the collapsed rail; the collapsed overlay now displays the full label (⌘N), not just the digit.
useHoldJumpShortcutRevealwith a platform-aware reducer. Listens to keydown/keyup, blur, andvisibilitychange; ignores key repeat; starts a 400ms timer (HOLD_JUMP_SHORTCUT_REVEAL_MS) when the modifier is held alone.data-jump-shortcuts="true"to the sidebar container to toggle visibility. ShowsshortcutLabelon expanded rows and the collapsed rail; hides action icons while the overlay is active.apps/desktop/.../useHoldJumpShortcutReveal/holdJumpShortcutReveal.test.ts.Written for commit cd33ca1. Summary will update on new commits.
Summary by CodeRabbit
New Features
Bug Fixes