mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 13:22:14 +00:00
Wire the metric sub-pages so brushing a window in the chart recomputes the Min/Max/Median/Mittelwert strip for the visible domain. The page lifts the shared brushed-window state, passes `selectableDomain` + `onDomainStats` to the chart, and threads the per-series window stats into the strip. With no selection the strip keeps the precomputed full-range summary, so the default is unchanged and costs no extra work. The strip renders the windowed numbers when present and pins a "selected range" pill to its header so the user reads the stats as their selection. Blood pressure brushes both series at once — the single chart reports systolic and diastolic stats and each strip reads its half. Covers weight, pulse, blood pressure, and the ~37 HealthKit pages that ride the shared scaffold. BMI (a derived metric with no first-class strip) and sleep (no strip) are left as-is. New copy added in all six locales. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>