The "+" on a row in the exercise picker read as "add this now" but did
the same thing as tapping the row — opened the detail/config sheet —
so it added nothing until you'd scrolled past sets/reps and found the
real "Add to routine"/"Add exercise" button there.
The "+" now commits with the default config (or, mid-workout in
freestyle, the same last-session-seeded config the sheet would have
opened with) immediately, with a toast confirming what got added.
Tapping the rest of the row is unchanged — it still opens the detail
sheet, for setting sets/reps before adding.
Both call sites (routine editor, and the mid-workout "Add exercise")
get the same fix, since they share the one picker component.
No new strings — reuses 'Add "{0}"' and '"{0}" added to {1}', both
already translated in every locale.
BwSheet opens `locked` when required (starting a workout) — by design,
so a stray swipe doesn't skip your check-in. But locked also disables
backdrop tap, Escape, and (per Modals.jsx's onPop) the Android back
button/gesture, all silently and all identically on iOS and Android.
The only way out was two ghost buttons below the weight slider, easy
to miss since every other sheet in the app can be dismissed on reflex.
Adds a plain X in the header for the required case — close() only, no
onDone, no nav, so it's a true no-op: whatever screen was underneath
(usually Home, after an accidental tap on "Start") is exactly where
you land. The two existing buttons are untouched; they still cover
"start anyway, skip the weigh-in" and "actually I want a different
workout" as distinct, deliberate choices from a true cancel.
No new strings — reuses the existing 'Cancel' key already translated
in all locales.
check-locales.mjs requires every locale to carry the same key set —
the previous commit only added the string to es.js. Machine-translated
for de/fr/it/pl/pt/ru/tr/zh/ko/hi; happy to have a native speaker
refine any of these on review.
An exercise instance in a routine only carried sets/reps/weight — a flat
target with no room for loading instructions that vary within a session
(e.g. a pyramid: "bar only, then +1 plate/side each set"). Adds a small
free-text `note` field alongside the existing config flags, shown in the
routine editor, during the active workout, and round-tripped through the
plan share/print/import paths.
No schema migration: it's an optional string on the same object that
already carries `sg`/`bodyweight`/`side`.