From 5771b36899b4f62339783fb161e25ea2b145d1f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Mon, 1 Jun 2026 19:47:20 +0200 Subject: [PATCH] feat(insights): tighten category-page density and balance the overview hero MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Polish the Insights surfaces for a denser, more deliberate rhythm. Category pages: - Collapse the double caption under the heading. The explainer definition and the description paragraph used to stack, so every metric page opened with two near-duplicative muted lines before any data. Keep the explainer body as the single caption; render the description only when no explainer is set. - Tighten the header gap (space-y-1.5) and the block rhythm (space-y-4 md:space-y-5) so the heading-to-first-data distance shrinks by roughly one text block. - Demote the target summary from a full bordered card to an inline band (bg-muted/30 rounded-lg px-3 py-2). One line of range text no longer reserves the card primitive's py-4/py-6 shell padding. - Close the gap under the assessment heading. The card primitive's gap-4/gap-6 flex gap floated the title well above its prose; override to gap-2 md:gap-3 with py-4/py-5 across every status variant. Overview hero: - Condense the "ask the coach" band — denser prompt chips and a bottom-pinned strip so the left column stops out-running the Health Score card. - Give the Health Score breakdown more vertical presence (looser row rhythm, taller component bars) so the right column fills the row height instead of leaving the bottom empty. --- src/components/insights/health-score-card.tsx | 14 +++-- src/components/insights/hero-strip.tsx | 8 ++- .../insights/insight-status-card.tsx | 21 +++++-- .../insights/metric-target-summary.tsx | 59 +++++++++++-------- src/components/insights/sub-page-shell.tsx | 19 ++++-- src/components/insights/suggested-prompts.tsx | 14 ++++- 6 files changed, 91 insertions(+), 44 deletions(-) diff --git a/src/components/insights/health-score-card.tsx b/src/components/insights/health-score-card.tsx index f2a3725b8..54a2e410c 100644 --- a/src/components/insights/health-score-card.tsx +++ b/src/components/insights/health-score-card.tsx @@ -265,7 +265,7 @@ export function HealthScoreCard({ the bottom, and the card fills the row down to the "Wirkt mein Medikament?" chip — closing Marc's "Karte hört bei der Trennlinie auf" report against v1.4.36. */} -
+

{componentEntries.map(({ key, label, value }) => (

  • {/* v1.4.25 W3 — widened label column from w-16 (64px) to w-24 (96px) so the longest German label @@ -399,7 +405,7 @@ export function HealthScoreCard({ {label}