Skip to content

refactor(web): split Week shortcuts into owner and registration - #2687

Merged
tyler-dane merged 2 commits into
mainfrom
refactor/d3-week-shortcut-boundary
Aug 8, 2026
Merged

refactor(web): split Week shortcuts into owner and registration#2687
tyler-dane merged 2 commits into
mainfrom
refactor/d3-week-shortcut-boundary

Conversation

@tyler-dane

Copy link
Copy Markdown
Contributor

Summary

  • Split fat useWeekShortcuts into useWeekShortcutOwner (behavior) + useWeekViewShortcuts (key registration)
  • Aligns Week with Day’s thin callback-boundary convention without changing key bindings

Test plan

  • Week shortcut unit tests (owner + thin registration)
  • bun test:web 1847
  • bun test:e2e 21
  • Independent review clean
  • Browser: Week C opens draft, Escape closes, K advances week
  • CI + staging deploy watch

Match Day’s thin callback boundary: useWeekViewShortcuts only registers
keys; useWeekShortcutOwner owns create/nav/bus and grid/sidebar wiring.
Owner + thin registration replace it; drop the leftover file.
@tyler-dane
tyler-dane merged commit 5c15f7a into main Aug 8, 2026
19 of 20 checks passed
@tyler-dane
tyler-dane deleted the refactor/d3-week-shortcut-boundary branch August 8, 2026 02:26
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.

1 participant