Skip to content

feat(frontend): extract CalendarStateComponent from MainComponent#427

Open
algirdasc wants to merge 1 commit intomainfrom
feature/EXP-9-calendar-state-component
Open

feat(frontend): extract CalendarStateComponent from MainComponent#427
algirdasc wants to merge 1 commit intomainfrom
feature/EXP-9-calendar-state-component

Conversation

@algirdasc
Copy link
Copy Markdown
Owner

Move calendar state management (route data init, query param sync, rangeChange handling) into a dedicated CalendarStateComponent, leaving MainComponent as a thin layout shell (sidebar, mobile detection, swipe).

  • New CalendarStateComponent owns visibleDate, calendarDateFrom/To, calendar selection, and calls mainService.refreshCalendar() on change
  • MainComponent retains: isMobile detection, swipe, sidebar toggle, busy-state subscriptions, and statement import trigger
  • Sidebar calendarChange now calls mainService.refreshCalendar() directly

Move calendar state management (route data init, query param sync,
rangeChange handling) into a dedicated CalendarStateComponent, leaving
MainComponent as a thin layout shell (sidebar, mobile detection, swipe).

- New CalendarStateComponent owns visibleDate, calendarDateFrom/To,
  calendar selection, and calls mainService.refreshCalendar() on change
- MainComponent retains: isMobile detection, swipe, sidebar toggle,
  busy-state subscriptions, and statement import trigger
- Sidebar calendarChange now calls mainService.refreshCalendar() directly

Co-Authored-By: Paperclip <noreply@paperclip.ing>
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