Widen calendar summary query window from 7 to 30 days
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.
This commit is contained in:
parent
8320ae8789
commit
dd49d00a84
1 changed files with 4 additions and 1 deletions
|
|
@ -14,7 +14,10 @@ interface EventSummary {
|
||||||
all_day: boolean
|
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 UPCOMING_LIMIT = 6
|
||||||
const MIN_TOTAL = 3
|
const MIN_TOTAL = 3
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue