On a day with a routine there is no way to start a freestyle session, or to pick
one of your other routines. The Start button in the tab bar and Home's today row
both go into today's planned session the moment there is one, and only fall
through to the Start screen when nothing at all is planned. So the screen that
holds "Freestyle workout (pick as you go)" and "Other routines" is reachable on
rest days only.
There was one other way in — "Choose a different workout" on the weigh-in sheet
— and it does not exist when the weigh-in is switched off (Settings → During a
workout). With a routine on every weekday and that switch off, the Start screen
cannot be reached at all.
So Home carries that door: under the today row, hidden while a session is
running (that screen resumes one, it does not choose), and it starts nothing by
itself. It reuses the weigh-in sheet's own string, so no locale pack moves.
The one-tap start is untouched: the row above it and the tab bar's button both
still go straight into today's session.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Add Rename workout option to the header 3-dot menu during an active workout session. Opens a bottom sheet modal with an auto-focused text field, disabled Save button when empty, and Enter key submission. Preserves custom titles when another routine is added to the session.
The GitHub-style activity heatmap hardcoded Monday-first weeks — both the
column anchoring and the Mon/Wed/Fri row labels — while every other "this
week" surface (Plan, streaks, muscle balance, effort chart) already reads
S.weekStart. Anchor the grid with weekDayOffset() and derive the row labels
from it too, so a Sunday-first profile gets a Sunday-first grid.
The German locale spelled the same word both ways: 'Glutes' was Gesäß while
'glutes' was Gesäss, ausschließen sat beside abschliessen, and großen beside
Gross. Eight values are normalised to standard German ß — the schließen forms,
Gesäß, Füße, Vergrößern, Groß — which is also what DATE_LOCALES already
declares by mapping de to de-DE.
The 59 legitimate ss words (Schlüssel, Arbeitssätze, Latissimus, Multipresse…)
are unchanged, and no code outside locales/ references any of these strings.
Browsers request the web app manifest without credentials, even from the same
origin — the spec's default; Safari follows it, Chromium sends cookies anyway.
Behind a login proxy (Authelia, Cloudflare Access, Teleport…) that request gets
the proxy's redirect instead of manifest.json. iOS 26 picks the Home Screen icon
from the manifest ("If you define your icons in the manifest, they're used"), so
Add to Home Screen ends with the generic icon.
crossorigin="use-credentials" is the attribute the spec provides for this; MDN
documents it for exactly this case, Home Assistant and GitLab ship it. No effect
on a deployment without a proxy: same origin, same file.
Verified: `npm run build` keeps the attribute in dist/index.html; frontend suite
109 files / 1613 tests.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit 8b82a5d2571c79c92c08f03f17d16cd0c445d70b)
Three things iOS needs that a desktop browser does not, all in lib/sound.js:
1. The ring/silent switch mutes Web Audio: a page whose only audio is Web Audio gets the
Ambient category, which obeys the switch. The way out is the 'playback' audio-session type
(iOS 17+), which is exclusive — it pauses whatever else is playing and WebKit never tells that
app it may resume — so it is a setting, off by default: Settings → Sounds → "Play sounds when
the phone is on silent" (S.soundOnSilent, applied page-wide by App.jsx). Offered only where it
means something: a WebKit with navigator.audioSession on a device with a switch.
2. Locking the screen or switching apps leaves a suspended context suspended, and a suspended
context makes no sound: every tone resumes the context first. The context sleeps again a
second after the last tone so it does not keep the phone's audio session busy.
3. A context created outside a tap starts suspended and no timer tick can start it: unlock()
runs from the taps that lead to a timer (turning Sounds on, starting a hold).
Split out of #165 at the maintainer's request; the per-kind rest-over sounds and the timer-bar
work stay there. Tests: lib/sound.test.js (fake AudioContext + audioSession), views/Settings.sound.test.jsx.
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.
An exercise's restSec runs after every set, warm-up ramp included, so a heavy lift with a
150 s working rest also puts 150 s between two light ramp sets. Exercises may now carry a
second optional field, warmupRestSec: the rest between warm-up ramp sets.
- The break after the LAST ramp set (into the first work set) stays the working rest, because
that is the rest the first heavy set actually needs.
- Without the field nothing changes: ramp sets rest like work sets, exactly as before.
- Like restSec, the field is set by plan files (and by external planners writing routines);
no new UI, no new string, no locale change. It travels with a shared plan the same way
restSec does and is dropped when unset.
Where:
- src/lib/supersetFlow.js: warmupRestSecFor(entry, setIdx, workRestSec), the pure rule,
tested beside it (supersetFlow.test.js)
- src/views/Workout.jsx: the rest started after a checked set goes through it, at all four
start sites (re-check, singleton, unit done, superset round done)
- src/lib/plan-share.js: export/import passthrough with the same clamp as restSec
(plan-share.test.js)
- src/views/Workout.test.jsx: 45 s between ramp sets, 150 s after the last ramp set and
after work sets
Why: a lifter asked for it after two sessions ("warm-up sets have way too large of a rest
period, it should only be 60-90 seconds max") while wanting 90-150 s on the working sets.
The only lever today is one number per exercise.
Tests: cd frontend && npm test -> 1338 passing (93 files), including the new cases.
Compatibility: additive. Old routines, old plan files and old sessions have no field and
behave exactly as before. The API stores routines as opaque JSON, so nothing server-side
changes. The AI Coach's payload allowlist does not include the field (not needed there).
- reminder tick: a due reminder is sent for up to 15 minutes after its time (once per local
date) instead of only on the exact minute — a restart across that minute used to lose the day;
state files are stat'ed and re-read only when they changed
- sendPush prunes 403 (stale VAPID key) like 404/410; optional device targeting
- POST /api/push/subscribe is an upsert that keeps created and stores a deviceId;
GET /api/push/status says whether the server holds an endpoint
- rest timers keyed per user+device; cancel without a device id keeps the old account-wide
behaviour
- sw.js: payload parsed inside waitUntil (never a silent push), pushsubscriptionchange
re-subscribes and registers the new endpoint
- lib/push.js: syncPushSubscription() (called once per signed-in boot from App.jsx and when
Settings opens) re-registers a lost row, replaces a subscription made against another key,
pushSupported() is false off https; deviceId() per browser
- Settings: the notifications switch shows what the server holds
- tests: server-reminder (window, dedupe, trained day), server-push-status (upsert, status,
per-device timers), lib/push.test.js
- useRevealActiveChip sets the strip's own scrollLeft instead of scrollIntoView, which
walked every scrollable ancestor and jumped the page when the strip sat above the fold;
.chips contain overscroll on both axes.
- Every .sheet cap (and .center) carries env(safe-area-inset-top); the dead
-webkit-overflow-scrolling is gone.
- viewport-guard: with the keyboard down and the page displaced, a text field that kept
focus (WebKit does not blur on button taps) is blurred and the correction runs; while
Modals has the body pinned it unpins for one scroll and pins back where it was.
Modals blurs a page field when a sheet opens; ticking a set blurs the row's input.
- Android: shortEdges cutout mode so --sat is real, adjustResize for the keyboard.
Apps built with the iOS 26+ SDK must adopt the UIScene-based app
lifecycle; the AppDelegate-only lifecycle this project's iOS shell
uses is no longer supported and crashes on launch:
Application failed to launch: UIScene life cycle is required for
apps built with this SDK.
This adds a SceneDelegate (window/root VC still come from
Main.storyboard, it just forwards deep links / Universal Links to
Capacitor's ApplicationDelegateProxy, since AppDelegate's own
open-url/continue-activity callbacks aren't invoked under the scene
lifecycle), wires AppDelegate's
application(_:configurationForConnecting:) to use it, and adds the
UIApplicationSceneManifest to Info.plist.
No deployment target, bundle id, or signing settings changed — apps
built with older Xcode/SDKs are unaffected.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>