mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 13:52:20 +00:00
The asc+take(20000) window-cap bug (fixed on the correlations route alone) and the mixed-grain toDailyMeans bug (fixed on three of four readers) both survived on the Coach get_correlations tool, the per-metric assessment card, and the period narrative. Dense accounts saw the cap drop the newest rows on the coach/card readers and drop the CURRENT period on the narrative — backwards for a recent-window and a current-vs-prior surface respectively; the narrative's own local toDailyMeans twin also averaged sleep stage-segments and blended per-sample step chunks with drained daily totals instead of summing. Hoists the fetch + grain resolution into fetchMeasurementWindowSeries/fetchMoodWindowSeries (correlation-channel-series.ts) — desc+cap+resort, full column select for buildMeasurementDailySeries's per-type grain — and routes the route, the coach tool, the per-metric card, and the period narrative through it, deleting every local copy.