mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Adds a small text-only PR pill that consumers can compose next to a metric label. The badge pulls /api/personal-records?metricType= and renders only when the most recent record landed in the last 30 days — older PRs are still visible on the dedicated /insights PR list but the dashboard surface keeps a fresh-only filter so the pill is a noticeable signal rather than a permanent fixture. i18n keys insights.personalRecord.badge and insights.personalRecord.tooltip ship in all six locales. The badge component is locale-aware through the standard useTranslations / useFormatters hooks and exposes a withTooltip prop so standalone uses (doctor report, correlation cards) can skip the Tooltip provider.