Skip to content

feat: calendar sidebar split#430

Open
algirdasc wants to merge 2 commits intomainfrom
feature/EXP-10-calendar-sidebar-split
Open

feat: calendar sidebar split#430
algirdasc wants to merge 2 commits intomainfrom
feature/EXP-10-calendar-sidebar-split

Conversation

@algirdasc
Copy link
Copy Markdown
Owner

No description provided.

Frontend Developer and others added 2 commits March 22, 2026 22:12
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>
… actions

EXP-10: Separates four mixed concerns into focused components.

- CalendarListDisplayComponent: pure display, renders calendar list with
  per-item radio, name, balance, and icon; emits events for calendarSelect,
  makeDefault, editCalendar, deleteCalendar — no API calls
- CalendarListActionsComponent: owns CRUD dialog lifecycle (create, edit,
  delete) and the \"Add a calendar\" button; emits calendarsChange after
  mutations
- CalendarSidebarListComponent: thin container; handles makeDefault via
  UserApiService, wires display events to actions component
- Removes StatementImportService from this component hierarchy entirely

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