Repository navigation
Make shortcuts discoverable from the Jump palette - #5767
brennanb2025 wants to merge 2 commits into
Conversation
|
Ready to review this PR? Stage has broken it down into 8 individual chapters for you: Chapters generated by Stage for commit b48fc68 on Jun 19, 2026 5:09am UTC. |
📝 WalkthroughWalkthroughThe PR adds keyboard shortcut entries as a new result kind in the Cmd+J ( 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 0a9808a0-42c6-462a-acbc-ce80e4660e50
📒 Files selected for processing (18)
src/renderer/src/components/WorktreeJumpPalette.tsxsrc/renderer/src/components/cmd-j/palette-results.test.tssrc/renderer/src/components/cmd-j/palette-results.tssrc/renderer/src/components/cmd-j/shortcut-palette-items.test.tssrc/renderer/src/components/cmd-j/shortcut-palette-items.tsxsrc/renderer/src/components/cmd-j/shortcut-results.tssrc/renderer/src/components/settings/Settings.tsxsrc/renderer/src/components/settings/ShortcutBindingRow.tsxsrc/renderer/src/components/settings/ShortcutsPane.test.tssrc/renderer/src/components/settings/ShortcutsPane.tsxsrc/renderer/src/components/settings/settings-shortcut-intent.tssrc/renderer/src/components/settings/shortcut-terminal-status.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/store/slices/ui.ts
|
Moving this PR to draft because it has been untouched for more than 80 days (latest recorded PR activity or commit timestamp: 2026-06-19T05:20:37Z; checked on 2026-10-27). This keeps the review queue focused on active work while preserving the proposal. Please mark it ready for review when work resumes. |
Summary
Unassignedbadge when no binding is active.Design Approach
The scoped design improves shortcut discoverability without building a full command execution palette. Shortcut metadata stays derived from the existing registry, disabled per-agent shortcuts remain filtered through the existing Settings grouping path, and Settings > Shortcuts remains the editing surface. Full command execution from the palette remains follow-up scope.
Design Review
Delegated design review completed in three iterations and returned clean after tightening the typed Settings shortcut intent, cross-platform copy, disabled-agent filtering path, and repeated-selection/focus behavior.
Implementation
Implemented shortcut result construction, ranking, and rendering for the Jump palette, plus a typed Settings navigation intent that carries an action id into the Shortcuts pane. The implementation also extracts shortcut palette row rendering and terminal-status logic into concrete modules to keep existing files focused.
Completeness Verification
Delegated completeness verification initially found missing coverage for shortcut row selection and Settings handoff; focused tests were added for those paths. Follow-up verification returned clean.
Code Review Loop
Two-reviewer code review loop completed. Round 1 found actionable localization/generic-query/max-lines issues; those were fixed. Round 2 completed with both reviewers clean.
AI Review Report
CodeRabbit initially posted one actionable minor comment requesting a short why-comment for the double-frame shortcut-row focus scheduling. Addressed in commit
b48fc68, reran localgit diff --checkandpnpm run lint, pushed the fix, waited another required 8 minutes, and confirmed CodeRabbit's refreshed review reported no actionable comments.Brennan Test Changes
Final verdict:
land.Validated in Electron against
/Users/thebr/source/repos/Stably/demo-projectfrom this exact branch/root. The validation confirmed genericshortcut/keybindingsearches keep Shortcuts Settings preferred over arbitrary shortcut rows, action-specificsplit terminal right shortcutshows the Split terminal right shortcut row with the macOS⌘ Dbinding chip, and selecting it opens Settings > Shortcuts filtered/focused to that row. No SSH/remoting live pass was required because the touched behavior is renderer-local shortcut discovery/settings navigation.Validation report:
notes/artifacts/sta115-final-validation.md.Screenshots
Screenshot evidence captured locally and kept out of the repository:
notes/artifacts/sta115-jump-palette-shortcut-generic.pngnotes/artifacts/sta115-jump-palette-split-terminal-right.pngnotes/artifacts/sta115-settings-shortcuts-after-select.pngTests
git diff --checkpnpm run typecheckpnpm run lintpnpm run verify:localization-catalogpnpm vitest run --config config/vitest.config.ts src/renderer/src/components/cmd-j/palette-results.test.ts src/renderer/src/components/cmd-j/shortcut-palette-items.test.ts src/renderer/src/components/settings/ShortcutsPane.test.tsverifycheck passed after the final pushKnown local warning: pnpm reports
/Users/thebr/.npmrccould not replace${GITHUB_TOKEN}, but all checks above passed.Security Audit
No network, auth, provider, SSH, filesystem mutation, or agent-execution behavior was added. The change is renderer-local shortcut discovery and Settings navigation over existing keybinding metadata.
Post-PR Stabilization
Completed. Waited 8 minutes after opening the PR, inspected CodeRabbit and CI, fixed the one actionable CodeRabbit comment, pushed the follow-up commit, waited another 8 minutes, then confirmed refreshed CodeRabbit had no actionable comments and GitHub
verifypassed.Assumptions And Risks