Refactor calendar navigation to use event bus

Decouples calendar navigation from direct DOM events
Adds new event constants for calendar navigation commands
Updates CalendarApp to handle navigation via event bus
Simplifies navigation logic and improves event-driven architecture
This commit is contained in:
Janus C. H. Knudsen 2025-12-16 22:51:01 +01:00
parent 8161b3c42a
commit 3710bb50c0
3 changed files with 34 additions and 19 deletions

View file

@ -67,5 +67,9 @@ export const CoreEvents = {
AUDIT_LOGGED: 'audit:logged',
// Rendering events
EVENTS_RENDERED: 'events:rendered'
EVENTS_RENDERED: 'events:rendered',
// Calendar command events
CALENDAR_CMD_NAVIGATE_PREV: 'calendar:cmd:navigate:prev',
CALENDAR_CMD_NAVIGATE_NEXT: 'calendar:cmd:navigate:next'
} as const;