From dd49d00a841106e20ac96fa51210142fd2464274 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Tue, 28 Jul 2026 15:41:00 +0000 Subject: [PATCH] Widen calendar summary query window from 7 to 30 days MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A 7-day window meant "next week"-type events could miss both the Mine fetch and the All backfill entirely, since they queried the same range. The Upcoming list is still capped by UPCOMING_LIMIT, so this doesn't flood the dashboard — it just means events further out get a chance. --- src/components/CalendarSummary.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/CalendarSummary.tsx b/src/components/CalendarSummary.tsx index 3a8e724..def2ff4 100644 --- a/src/components/CalendarSummary.tsx +++ b/src/components/CalendarSummary.tsx @@ -14,7 +14,10 @@ interface EventSummary { all_day: boolean } -const RANGE_DAYS = 7 +// Query window for both Mine and the All backfill — wide enough to catch +// "next week"-type events; the Upcoming list itself is capped by +// UPCOMING_LIMIT, not by this, so widening it doesn't flood the dashboard. +const RANGE_DAYS = 30 const UPCOMING_LIMIT = 6 const MIN_TOTAL = 3