mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 23:33:29 +00:00
A rolling cadence with no intake logged anchors its first dose at startsOn ?? createdAt. When that anchor falls on a prior calendar day the dose is overdue by a day or more, but nextOccurrenceAfter floored the search window to the start of the user's current day and dropped it — so the dashboard showed no next-due and the reminder worker, which shares this engine, emitted nothing. Clamp the floor to the first-dose day in the no-intake branch so a multi-day-overdue start dose surfaces as overdue. The post-intake re-anchor (lastIntakeAt + N) is unaffected.