feat(workspace): add assignable board toggle shortcut - #12992
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (15)
🚧 Files skipped from review as they are similar to previous changes (15)
📝 WalkthroughWalkthroughAdds the 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
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: 2
🧹 Nitpick comments (1)
src/shared/window-shortcut-policy.test.ts (1)
347-347: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAdd coverage for the unbound default.
The PR contract requires
workspace.toggleBoardto ship without a default binding. This test covers only a custom override. Resolve the LinuxCtrl+Alt+Tinput without overrides and assertnullbefore testing the custom mapping.Also applies to: 372-378
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: b93b0eac-c1fe-468e-a46f-d6a86b215bef
📒 Files selected for processing (14)
src/main/browser/browser-guest-ui.tssrc/main/window/createMainWindow.tssrc/preload/api-types.tssrc/preload/index.tssrc/renderer/src/App.tsxsrc/renderer/src/components/sidebar/useWorkspaceBoardPanel.test.tsxsrc/renderer/src/components/sidebar/useWorkspaceBoardPanel.tssrc/renderer/src/hooks/useIpcEvents.tssrc/renderer/src/web/web-preload-api.tssrc/shared/keybindings.test.tssrc/shared/keybindings.tssrc/shared/plugins/plugin-command-actions.tssrc/shared/window-shortcut-policy.test.tssrc/shared/window-shortcut-policy.ts
|
This looks like a solid, focused change. |
|
Thanks @goransh-buh — glad it reads as focused. Addressed CodeRabbit:
tip: |
Open the left sidebar when the board opens so a keyboard toggle is not a no-op while the sidebar is collapsed. Suppress key auto-repeat for toggleWorkspaceBoard, and assert the unbound default binding.
22d55fd to
c0f6c21
Compare
Sync update (
|
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Description
Expose the existing Workspace Board toggle as an assignable keyboard action.
Focused fix
workspace.toggleBoardthrough the existing keybinding, preload, and renderer paths.workspace.openBoardaction or broadening Escape handling.Preserves
workspace.openBoardkeeps its open-only semantics, while the new action uses the existing board toggle implementation and platform shortcut policy.Evidence
pnpm exec vitest run --config config/vitest.config.ts src/shared/keybindings.test.ts src/shared/window-shortcut-policy.test.ts src/renderer/src/components/sidebar/useWorkspaceBoardPanel.test.tsxUser-regression-tradeoffs
Fixes #12969