Skip to content

refactor(web): read command palette shortcuts from the binding tables - #5265

Merged
tyler-dane merged 1 commit into
mainfrom
cursor/technical-debt-simplification-674a
Nov 15, 2026
Merged

tyler-dane merged 1 commit into
mainfrom
cursor/technical-debt-simplification-674a

Conversation

@cursor

@cursor cursor Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

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 / navToggleAllDay drive the real handlers and the ? overlay, and KEYMAP.createEvent drives 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 keeps shortcutKey: "c". A contract test pins the identity.

Examined and left alone (recorded in judged-fine.md):

Verify

VERDICT: PASS

Checks run: test:web, type-check, lint, knip, test:a11y, test:e2e. Checks skipped: (none).

The first verify run failed test:e2e on calendars/calendar-experience.spec.ts (writable calendars combobox). That spec passed on rerun, as did e2e/timed/palette-teaches.spec.ts. A second bun run verify --strict exited 0.

FLAKY, passed on rerun (1):

  • test:e2e: [chromium-desktop] › e2e/calendars/calendar-experience.spec.ts › a new event form offers only writable calendars
Open in Web View Automation 

#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
tyler-dane enabled auto-merge November 15, 2026 01:37
@github-actions

Copy link
Copy Markdown
Contributor

Boot bundle: 577.0 KB gzip (+0.0 KB vs main)

@tyler-dane
tyler-dane added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit c9112aa Nov 15, 2026
23 checks passed
@tyler-dane
tyler-dane deleted the cursor/technical-debt-simplification-674a branch November 15, 2026 01:50
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