From f1f6018f6ee835cd54a56569574c2abe7c1d6881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Fri, 5 Jun 2026 12:58:23 +0200 Subject: [PATCH] fix(insights): align vitals tiles and section headings with the shared tile header Bring the Vitals grid in line with the harmonized card language. The sparkline-delta tile led with a muted-uppercase caption + a muted icon; it now leads with a foreground icon and a foreground heading matching the canonical tile header, keeping the trailing delta. The Vitalwerte and Mobility section headings and the provisional baseline / HRV tile headers move onto the shared tile header (foreground icon + heading) so the Wellness, Vitals, and Mobility sections share one heading construction. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../insights/derived/sparkline-delta-tile.tsx | 15 +++++-- .../insights/derived/vitals-dashboard.tsx | 40 +++++++++---------- 2 files changed, 30 insertions(+), 25 deletions(-) diff --git a/src/components/insights/derived/sparkline-delta-tile.tsx b/src/components/insights/derived/sparkline-delta-tile.tsx index 1acb2cb8e..6589120bf 100644 --- a/src/components/insights/derived/sparkline-delta-tile.tsx +++ b/src/components/insights/derived/sparkline-delta-tile.tsx @@ -125,9 +125,17 @@ export function SparklineDeltaTile({ className, )} > -
+ {/* Header row matches the canonical TileHeader language: a leading + foreground icon + a foreground `CardTitle`-weight heading — never + the old muted-uppercase caption. Kept on one line for the dense + grid; provenance trails to the right edge. */} +
+
-
- - {label} - - -
+

{t("insights.derived.vitals.building", { count: data.coverage.historyDays, @@ -352,12 +348,11 @@ function HrvBalanceTile({ read, isLoading }: TileProps) { data-state="provisional" className="bg-card border-border flex h-full w-full min-w-0 flex-col gap-3 rounded-xl border p-4 md:p-6" > -

- - {t("measurements.typeHeartRateVariability")} - - -
+

{t("insights.derived.vitals.building", { count: data.coverage.historyDays, @@ -531,9 +526,10 @@ export function VitalsDashboard({ batch, className }: DashboardProps) { aria-label={t("insights.derived.vitals.sectionTitle")} className="space-y-3" > -

- {t("insights.derived.vitals.sectionTitle")} -

+
-

- {t("insights.derived.vitals.sectionTitle")} -

+
-

- {t("insights.derived.vitals.mobilitySectionTitle")} -

+