Skip to content

Make shortcuts discoverable from the Jump palette - #5767

Draft
brennanb2025 wants to merge 2 commits into
mainfrom
brennanb2025/sta-115-shortcut-discovery
Draft

brennanb2025 wants to merge 2 commits into
mainfrom
brennanb2025/sta-115-shortcut-discovery

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Jun 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds shortcut discovery rows to the existing Jump palette using Orca's keybinding registry as the source of truth.
  • Shows the effective platform/user binding in the palette, or an Unassigned badge when no binding is active.
  • Routes selected shortcut rows into Settings > Shortcuts with an action-specific filter/focus intent so users can learn or rebind the shortcut in the authoritative settings surface.

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 local git diff --check and pnpm 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-project from this exact branch/root. The validation confirmed generic shortcut / keybinding searches keep Shortcuts Settings preferred over arbitrary shortcut rows, action-specific split terminal right shortcut shows the Split terminal right shortcut row with the macOS ⌘ D binding 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.png
  • notes/artifacts/sta115-jump-palette-split-terminal-right.png
  • notes/artifacts/sta115-settings-shortcuts-after-select.png

Tests

  • git diff --check
  • pnpm run typecheck
  • pnpm run lint
  • pnpm run verify:localization-catalog
  • pnpm 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.ts
  • Electron validation with demo-project and screenshot evidence
  • GitHub verify check passed after the final push

Known local warning: pnpm reports /Users/thebr/.npmrc could 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 verify passed.

Assumptions And Risks

  • Shortcut execution from the palette is intentionally out of scope; selecting a shortcut row opens Settings > Shortcuts.
  • UI labels and binding chips use the existing platform-aware keybinding display paths.
  • No agent-facing prompt text was added.

@ghost

ghost commented Jun 19, 2026 •

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Jun 19, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The PR adds keyboard shortcut entries as a new result kind in the Cmd+J (WorktreeJumpPalette) search. New modules define CmdJShortcutResult, ranking helpers (including shortcut-intent detection, keyword alias expansion, and kind-order sorting), and ShortcutPaletteItem/ShortcutPaletteCommandItem for rendering. Selecting a shortcut row closes the palette and navigates to Settings > Shortcuts, where a new shortcutActionIntent prop drives a double-requestAnimationFrame sequence that sets query/filter state, scrolls the target row into view, and focuses its recorder button. Terminal-status computation is extracted to its own module. i18n strings are added for the shortcut badge, "Unassigned" state, and result description across five locales.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Make shortcuts discoverable from the Jump palette' clearly and concisely summarizes the main change: adding shortcut discovery to the Cmd+J Jump palette interface.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The PR description comprehensively addresses all template sections with detailed information about changes, design approach, testing, security, and validation.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 0a9808a0-42c6-462a-acbc-ce80e4660e50

📥 Commits

Reviewing files that changed from the base of the PR and between 8c4e99e and 1d7b751.

📒 Files selected for processing (18)
  • src/renderer/src/components/WorktreeJumpPalette.tsx
  • src/renderer/src/components/cmd-j/palette-results.test.ts
  • src/renderer/src/components/cmd-j/palette-results.ts
  • src/renderer/src/components/cmd-j/shortcut-palette-items.test.ts
  • src/renderer/src/components/cmd-j/shortcut-palette-items.tsx
  • src/renderer/src/components/cmd-j/shortcut-results.ts
  • src/renderer/src/components/settings/Settings.tsx
  • src/renderer/src/components/settings/ShortcutBindingRow.tsx
  • src/renderer/src/components/settings/ShortcutsPane.test.ts
  • src/renderer/src/components/settings/ShortcutsPane.tsx
  • src/renderer/src/components/settings/settings-shortcut-intent.ts
  • src/renderer/src/components/settings/shortcut-terminal-status.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/store/slices/ui.ts

@OrcaWin

OrcaWin commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

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.

This branch has not been deployed

No deployments
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.

2 participants