mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
Replaces the orphan v1.4.0 InsightsCard with a leaner <InsightsCardPreview> that surfaces only the top 1-2 severity-ordered recommendations + a "View all" CTA pointing to /insights. Same visual language as the page (Dracula sparkle glyph, severity-coloured left border, ring-variant confidence meter inline). The legacy InsightsCard handled its own data fetching against the deprecated changed/stable/drivers/nextSteps shape; preview now takes an `insight: InsightResult | null` prop so the dashboard wires its existing `/api/insights/generate` data without redundant fetches. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>