From 50d6fbfc0e4e91a2929007ab86f457d24aa06340 Mon Sep 17 00:00:00 2001 From: Padreug Date: Tue, 16 Jun 2026 00:26:26 +0200 Subject: [PATCH] feat(events): default calendar selection to today The month-grid calendar opened with no day selected, so the events panel below was empty until the user clicked a day. Initialise the selection to today (currentMonth already starts on the current month) so it opens showing today's events. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/modules/events/components/EventCalendarView.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/events/components/EventCalendarView.vue b/src/modules/events/components/EventCalendarView.vue index 77e0778..c77b908 100644 --- a/src/modules/events/components/EventCalendarView.vue +++ b/src/modules/events/components/EventCalendarView.vue @@ -68,7 +68,9 @@ function getDotCount(date: Date): number { return Math.min(getEventsForDay(date).length, 3) } -const selectedDay = ref(null) +// Default the selection to today so the calendar opens on today's events +// rather than an empty panel (currentMonth already starts on this month). +const selectedDay = ref(new Date()) const selectedDayEvents = computed(() => { if (!selectedDay.value) return [] return getEventsForDay(selectedDay.value)