mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 23:52:24 +00:00
fix(insights): sleep-debt explainer on the resolved card; Skeleton primitive for the narrative loader
The sleep-debt computed-engine InfoHint only rendered in the still-learning state — but the resolved full-debt card is the common case and where the figure most needs the 'this is our own estimate, not a wearable's native number' context. Show it there too. Separately, swap the period-narrative loading shell's hand-rolled muted divs for the shared Skeleton primitive so its shimmer matches every other loader.
This commit is contained in:
1 parent
8e238d1834
commit
38c00100d0
2 files changed
+11
-3
No files matched your search
@@ -70,6 +70,13 @@ export function SleepDebtCard({ debt }: { debt: SleepDebtDto }) {
|
||||
<CardTitle className="text-base font-semibold">
|
||||
{t("insights.sleep.debt.title")}
|
||||
</CardTitle>
|
||||
{/* v1.25.0 — the resolved full-debt card is the common case and the
|
||||
place the figure most needs context: explain the COMPUTED engine
|
||||
and that it differs from a wearable's native number here too, not
|
||||
only in the still-learning `partial` state above. */}
|
||||
{debt.source === "COMPUTED" ? (
|
||||
<InfoHint label={t("insights.sleep.debt.computedInfo")} />
|
||||
) : null}
|
||||
</div>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
|
||||
Reference in new issue
Block a user