refactor: collapse static keymap provider #335

Merged
barrettruth merged 1 commit from cleanup/keymap-static-312 into main 2026-05-11 19:53:53 +00:00
Owner

Problem

  • keymap customization was removed, but a React context still exposed fixed keymap definitions.

Solution

  • replace keymap context consumers with static helpers from src/lib/keymap-defs.ts
  • remove the now-stateless keymap context/provider
  • keep NavigationWrapper focused on providers that still own runtime state

Verification

  • nix develop --command pnpm vitest run tests/lib/keymap-defs.test.ts tests/lib/app-sidebar.test.ts --reporter=verbose
  • nix develop --command just lint

Closes #312

Problem - keymap customization was removed, but a React context still exposed fixed keymap definitions. Solution - replace keymap context consumers with static helpers from src/lib/keymap-defs.ts - remove the now-stateless keymap context/provider - keep NavigationWrapper focused on providers that still own runtime state Verification - nix develop --command pnpm vitest run tests/lib/keymap-defs.test.ts tests/lib/app-sidebar.test.ts --reporter=verbose - nix develop --command just lint Closes #312
refactor: collapse static keymap provider
All checks were successful
quality / Test (pull_request) Successful in 15s
quality / Lint (pull_request) Successful in 21s
quality / Build (pull_request) Successful in 43s
29b2784e52
barrettruth deleted branch cleanup/keymap-static-312 2026-05-11 19:53:53 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/delta!335
No description provided.