- {/* The metric title rides an HTML caption below the ring, not the
- in-SVG `label` slot: a long localised title ("Schlaf-Score",
- "Bereitschaft") overflowed the small ring's centred SVG text and
- the recharts `overflow:hidden` clipped its leading glyph. As HTML
- it wraps within the tile and never truncates. The ring keeps just
- the number centred. */}
+ {/* v1.12.6 — every tile leads with the canonical icon + heading
+ (foreground colour, matching the Einschätzung reference) so the
+ wellness strip reads as the same card language as the rest of
+ Insights. The metric name no longer rides an under-ring caption. */}
+
+ {/* The ring keeps just the number centred; the metric name lives in
+ the TileHeader above (a long localised title would overflow the
+ small ring's centred SVG text and clip under recharts'
+ `overflow:hidden`). */}
-
- {label}
-
,
);
}
@@ -121,6 +124,7 @@ export function WellnessScores({ read, isLoading, className }: ScoreStripProps)
bandWord={bandWord(recovery.value.band)}
href="/insights/scores/recovery"
metricSlot="RECOVERY_SCORE"
+ icon={HeartPulse}
/>,
);
}
@@ -134,6 +138,7 @@ export function WellnessScores({ read, isLoading, className }: ScoreStripProps)
bandWord={bandWord(sleep.value.band)}
href="/insights/scores/sleep"
metricSlot="SLEEP_SCORE"
+ icon={Moon}
/>,
);
}
@@ -147,6 +152,7 @@ export function WellnessScores({ read, isLoading, className }: ScoreStripProps)
bandWord={bandWord(stress.value.band)}
href="/insights/scores/stress"
metricSlot="STRESS_SCORE"
+ icon={Activity}
/>,
);
}
@@ -160,6 +166,7 @@ export function WellnessScores({ read, isLoading, className }: ScoreStripProps)
bandWord={bandWord(strain.value.band)}
href="/insights/scores/strain"
metricSlot="STRAIN_SCORE"
+ icon={Flame}
/>,
);
}
@@ -187,9 +194,10 @@ export function WellnessScores({ read, isLoading, className }: ScoreStripProps)
aria-label={t("insights.derived.scores.sectionTitle")}
className={cn("space-y-3", className)}
>
-
- {t("insights.derived.scores.sectionTitle")}
-
+