feat(agenda): limit how far ahead the agenda screen and widget show (#4) #44
Reference in New Issue
Block a user
Delete Branch "feat/agenda-range-limit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements Codeberg issue #4 — limit how far ahead the agenda screen and widget show events.
Independent
agendaScreenRangeandagendaWidgetRangepreferences (default: Next 30 days). Each offers: Today, This week, This month, Next 7 days, Next 30 days, or Custom 1–365 days. Rolling windows never degenerate; the calendar-aligned "This week" follows the week-start preference (#3) and "This month" runs to month end.On-device verification checklist
Closes #4 (Codeberg).
Extend AgendaRange with calendar-aligned windows alongside the rolling ones: ThisWeek runs through the end of the current week (respecting the week-start preference — a Monday start means everything before next Monday), ThisMonth through the last day of the current month. dayCount now takes the anchor day and week-start; the agenda screen and widget resolve the week-start preference and pass it through. Rolling options relabelled ("Today", "Next 7 days", "Next 30 days") to read distinctly from the new calendar-aligned ones. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>Reword the range header to "Showing all upcoming events for". Replace the dry empty state ("Nothing scheduled" + subtitle) with a single warmer line ("You're all caught up"), drop the subtitle, and switch the icon to a coffee cup. The empty title is shared with the agenda widget. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>