feat(settings): a switch to skip the weigh-in when a workout starts (#137)
Settings → During a workout → "Weigh in before workouts", on by default. Off, tapping Start begins the session straight away with no body weight on it — what "Start without weighing in" did, without the sheet. Home and Stats still log weight by hand, and the Home body-weight footer stops promising "it's also asked before every workout" while it is off. S.weighIn (DEF true, read as `!== false` so older profiles keep asking, same as checkIn). startFlow is the single entry point for every Start button, so the check lives there; "log a past workout" never asked and is unchanged. Three new strings in all 14 locales, pt-BR as explicit overrides (inherited set and fingerprint unchanged). Test: sheets.weighin.test.jsx — on / legacy profile / off, through the real store and sheet stack. Closes #137.
This commit is contained in:
1 parent
35c810a663
commit
ebe00a1122
20 files changed
+101
-2
No files matched your search
@@ -27,7 +27,7 @@ describe('Brazilian Portuguese locale', () => {
|
||||
.sort(byCodeUnit)
|
||||
const fingerprint = createHash('sha256').update(JSON.stringify(inherited)).digest('hex')
|
||||
|
||||
expect(Object.keys(PT_BR_OVERRIDES)).toHaveLength(635)
|
||||
expect(Object.keys(PT_BR_OVERRIDES)).toHaveLength(638)
|
||||
expect(inherited).toHaveLength(639)
|
||||
// If this fails, review the changed keys and wording before accepting a new hash. From
|
||||
// frontend/: node scripts/pt-br-inheritance-fingerprint.mjs --list
|
||||
|
||||
Reference in new issue
Block a user