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

@@ -309,16 +309,20 @@ export function ManualWorkoutForm({
max={wallClockNow(new Date(), timezone)}
aria-invalid={!!errors.start || undefined}
aria-describedby={[
`${ids.start}-hint`,
edit ? undefined : `${ids.start}-hint`,
describedBy("start", `${ids.start}-error`),
]
.filter(Boolean)
.join(" ")}
data-testid="manual-workout-start"
/>
<p id={`${ids.start}-hint`} className="text-muted-foreground text-xs">
{t("insights.workouts.manual.startHint")}
</p>
{/* "Leave empty if you just finished" is about logging; an edit
opens with the stored start in place. */}
{edit ? null : (
<p id={`${ids.start}-hint`} className="text-muted-foreground text-xs">
{t("insights.workouts.manual.startHint")}
</p>
)}
<FieldError id={`${ids.start}-error`} message={fieldError("start")} />
</div>