mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 08:02:12 +00:00
Three live byte-identical formatRelativeTime copies (hero-strip, daily-briefing, coach history-rail) lifted to src/lib/i18n/relative- time.ts. Both correlation-card and trend-annotation duplicated the exact same low/moderate/high Dracula classnames; extracted to src/components/insights/confidence-badge.ts (per-component i18n labels stay local — the copy differs). Drop the dead "null" placeholder branch in useCoachConversation's queryKey: the ternary picked a different key when id was null, but enabled: id !== null kept the query disabled so the placeholder never fired. Key directly on id. Hoist STORYBOARD_COLOR_BY_CATEGORY in /insights/page.tsx to module scope so the map isn't recreated on every render. Fixes Simplify-S-02, Simplify-S-03, Simplify-S-04, Simplify-S-05, Code-LOW-02. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>