mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
New `src/components/insights/suggested-prompts.tsx` renders the "Try asking" chip row from the v1.4.20 Insights redesign hero strip. Five default prompts (whyMonday, weightVsPulse, weekVsMonth, tellMyDoctor, medicationWorking) read from `insights.suggestedPrompts.*`, click invokes `onPick` with the localised string so the parent can route to the future Coach drawer. Mobile-first: chips wrap to multiple rows on narrow viewports. Dracula purple chip styling matches the existing card vocabulary. Custom prompts array accepted for tests + future per-user sets. EN + DE translation keys added in lockstep — i18n-locale-integrity test stays green. Test suite: +9 specs covering default rendering, locale switching, custom prompts, and chip-slot pinning. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>