fix(medications): retrospective rolling-cadence compliance + currentCycle descriptor

This commit is contained in:
Marc-André Bombeck committed 2026-06-05 22:09:06 +02:00
1 parent 617eadee20
commit a55816bf58
7 files changed
+777 -15

No files matched your search

@@ -265,6 +265,11 @@ export const GET = apiHandler(
dayStart,
dayEnd,
medicationContext,
// v1.13.x — pass the intake history so a ROLLING schedule's per-day
// `due` flags come from the retrospective grid (each logged dose is a
// due day) instead of the engine's single forward slot — keeping the
// heatmap, the denominator, and the displayed rate in agreement.
mapped,
);
dailyCompliance[dateKey] = {