mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
The range selector said points — 7 pts, Last 7 data points — while the fetch has always treated the value as a calendar-day window. Someone who weighs in twice a week picked 7 pts and saw two, and read that as a broken chart; the labels were the broken part. The tabs now say 7d / 30d / 90d / All across all six locales. Behaviour is unified on the same reading everywhere. The measurement chart's visible slice becomes a real day-window filter — the old slice(-N) was a no-op on the self-fetched path but silently meant last N readings on the dashboard's preloaded batch slice, so the same tab meant two different things depending on the mount path. The mood chart sliced the last N logged days out of the whole history and now windows by days like its siblings. The header chip reads the same grain decision the chart and the data table use instead of re-deriving it in a second memo. Component fixtures move to now-anchored dates: the windows are anchored on now, so absolute-dated fixtures age out of the window and would have exercised only the empty states. The span-dependent cases (weekly chip, bucketed-caption table) mount the All range, which is now the only range that can span past 90 days.