mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 15:42:24 +00:00
One guard per defect, each verified by breaking it on purpose first. A non-negative metric's baseline `low` never goes below zero — swept over every type in the catalogue with a series whose spread exceeds its median, plus the reported step shape rendering an edge of exactly 0. The axis assertion sits in the same file, because the point of the fix is that the two read one fact. No insights page passes an English word as a unit — the page sources are scanned for `unit=` / `yAxisUnit=` literals and held against the set of language-neutral symbols, and every `unitKey` is resolved in all six locales. That second half matters: a key passed as a prop is invisible to the `t()` call-site coverage sweep, so nothing else would notice a missing translation. An integer-valued metric never renders a fractional part — the step page is rendered in German with no precision prop at all and must produce no comma-decimal, on the Min/Max card and on the band sentence below it. Two types were missing from the plausibility map, so the first guard also asserts the map covers the enum.