mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
The overview Trends row used to render a fixed BP / weight / mood triple regardless of what the day's data surfaced. It now mirrors the daily briefing: the row charts exactly the metrics the briefing flags, in the briefing's priority order, deduped and capped at three. When no briefing is available — cold mount, a web-only account with no findings, or a pre-briefing cached payload — selection falls back to the legacy BP / weight / mood triple so the row never paints empty. Selection lives in `trend-chart-select.ts` as a pure, unit-tested mapping from each briefing `sourceMetric` to a chart descriptor (series, colour, unit, title key). Adherence-context findings (compliance, GLP-1 plateau) have no standalone trend series and are skipped so the next finding fills the slot. Annotations stay on the legacy triple; additive HealthKit metrics render chart-only. The chart set is derived from the briefing payload already on the page, so there is no new blocking call.