fix: settle the new edit and HRV surfaces after a look at them

The HRV page's second chart reported its visible window into the same
stat-strip slot as the first, so the two replaced each other on every
render until React stopped it and the chart failed to load. Only the
primary chart reports the window now; the strip describes that measure.

The workout edit sheet no longer shows the "leave empty if you just
finished" hint, which is about logging and not about a stored start. On
the Apple Health card a type's name reads as the row's content above its
arrival line, with room between rows.
This commit is contained in:
Marc-André Bombeck committed 2026-10-08 09:52:51 +02:00
1 parent 196c331068
commit 1fe4a7af95
4 files changed
+46 -8

No files matched your search

@@ -129,7 +129,7 @@ export function MetricFreshnessDisclosure<
</button>
{open && (
<ul id={panelId} className="space-y-1">
<ul id={panelId} className={detail ? "space-y-2.5" : "space-y-1"}>
{sorted.map((entry) => {
const extra = detail?.(entry);
return (
@@ -151,7 +151,16 @@ export function MetricFreshnessDisclosure<
className="size-3 shrink-0"
/>
) : null}
<span className="truncate">{label(entry.type)}</span>
{/* With a detail line under it, the type name is the
row's content and the line its meta. */}
<span
className={cn(
"truncate",
extra && !entry.stale && "text-foreground",
)}
>
{label(entry.type)}
</span>
</span>
<time
dateTime={entry.lastSeenAt}