Add week view to web calendar with Month/Week toggle

Extract the shared per-calendar event-collection logic out of
buildMonthView into collectCalendarEvents, keyed by day so it can feed
either the existing 42-cell month grid or a new 7-cell week grid.

Add templates.WeekDay/WeekViewData, a WeekView templ, and a
viewSwitcher component shown in both views' headers to switch between
Month and Week. Add buildWeekView, handleCalendarWeek, parseWeekStart,
and mondayOf in internal/web/calendar.go, and register the new
/calendar/week route.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-08-21 06:19:59 +02:00
co-authored by Copilot
parent 28c55804d8
commit 1c039e6396
5 changed files with 1010 additions and 255 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long