Merge #174: a switch to skip the weigh-in when a workout starts, #137 (kurktchiev)

# Conflicts:
#	frontend/src/lib/pt-br-locale.test.js
This commit is contained in:
Duarte Santos committed 2026-09-12 22:52:39 +02:00
commit 2240499793
20 files changed
+101 -2

No files matched your search

+3
View File
@@ -1741,6 +1741,9 @@ export function WorkoutRow({ w, onClick }) {
// `routineIds` accepts `string | string[] | null` — `[r.id]` for one routine,
// `effectiveRoutineIds(...)` for today's planned session, `[]` / null for explicit freestyle.
export function startFlow(routineIds) {
// The weigh-in is a setting (Settings → During a workout, issue #137): off goes straight
// into the session with no body weight on it, same as "Start without weighing in".
if (S().weighIn === false) { beginWorkout(routineIds, null); return }
bwSheet({ required: true, onDone: bw => beginWorkout(routineIds, bw) })
}
export function beginWorkout(routineIds, bw) {