Repository navigation
refactor(web): read command palette shortcuts from the binding tables - #5265
Merged
Merged
Conversation
#5261 converted the all-day palette rows to keycap arrays but left them as literals. Handlers and the overlay already read APP_SHORTCUT_BINDINGS and KEYMAP, so a remap would have desynced the palette with no test catching it. Co-authored-by: tyler <tyler@switchback.tech>
tyler-dane
enabled auto-merge
November 15, 2026 01:37
Contributor
|
Boot bundle: 577.0 KB gzip (+0.0 KB vs main) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No issue: scheduled tech-debt sweep finding (2026-11-15 window, the 4 merges after #5257).
What and why
#5261 converted the command palette's all-day rows from joined strings (
shift+c) to keycap arrays, but left['Shift', 'C']and['Shift', 'A']as literals. Create-event was already a literal"c". The owners already exist:APP_SHORTCUT_BINDINGS.createAllDay/navToggleAllDaydrive the real handlers and the?overlay, andKEYMAP.createEventdrives timed create. Remapping those tables would have updated the keys and the overlay while the palette still showed the old combo, with no test catching it.The palette now reads those tables, matching the other command-palette modules. Create-event stays a string (
KEYMAP.createEvent.hotkey.toLowerCase()) so palette telemetry keepsshortcutKey: "c". A contract test pins the identity.Examined and left alone (recorded in
judged-fine.md):KEYMAP.jumpFormField; shared shape, not shared intent.LANDING_PATHalready has one owner.Verify
VERDICT: PASSChecks run: test:web, type-check, lint, knip, test:a11y, test:e2e. Checks skipped: (none).
The first verify run failed
test:e2eoncalendars/calendar-experience.spec.ts(writable calendars combobox). That spec passed on rerun, as dide2e/timed/palette-teaches.spec.ts. A secondbun run verify --strictexited 0.FLAKY, passed on rerun (1):