mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
Up to v1.4.21 the BD-Zielbereich tile was the only one in the strip that didn't ship the standard tile feature set. Other tiles paint a trend arrow next to the headline, a 7-day-trend chip on the `7d:` sub-row, and a comparison-overlay caption when the dashboard's global compare toggle is active. The BP-in-target tile shipped none of these because we only had a single % series instead of a `DataSummary`. Synthesise the slope from the difference between the 7-day and 30-day in-target shares: a recent week above the recent month means the metric is improving (up-good ⇒ green arrow); below means slipping. The 7-day-trend chip uses the same delta. The comparison overlay uses `bpInTargetPctAllTime` as the long-arc baseline so the caption reads correctly when comparison is on. Extend `<TrendCard>` with an optional `avgAllTime` sub-value so the all-time aggregate stays visible alongside `7d:` and `30d:` after the v1.4.22 A1 headline re-anchor. Other tiles leave the field undefined so the third sub-row never renders for them. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>