One-sided (reps-per-side) exercises now log weight, reps, RIR/RPE and done individually per side, shown as two L/R rows per set. The per-side data rides on the set row while its scalar w/r/done/effort stay a correct aggregate, so volume, 1RM, PRs, progression, recovery, history and the coach read it unchanged. Side badges localised for all languages. Closes#60.
- removed ability to manually enter code to be displayed as QR code. Codes can only be scanned via camera or imported from an image on the device
- Cards can be edited once they are created. E.g. changing the description, re-scanning the code
- You can change the order of code-cards via long-press
- Last selected code-card will be shown when selecting "check in" on home screen
- Optics: Correctly centered titles of code-cards
- Plan → Week schedule: inline per-day management. A populated weekday
shows always-visible routine sub-rows with an inline ✕ (removes; drops
the day key on the last one) and a + Add routine action (single-pick
append; already-added routines disabled). An empty day stays one
tappable row → the first-routine picker. Day header shows an "N
routines" hint. DayAssign is now the empty-day / single-pick sheet only;
new dayAddRoutineSheet does the append.
- Workout header ⋮: "Add routine" is the first item; Cards / List /
Compact move to a nested "Layout" sheet. addRoutineToSessionSheet
appends the picked routine's entries (each stamped with its rid),
extends s.active.routineIds, re-derives the name, toasts; a routine
already in the session or with no exercises is disabled + tagged.
s.active.cur is left where it is.
- History WorkoutDetail: a combined workout's entries are grouped into
per-routine sections in merge order, each with a glyph+name /
"N sets · volume" subheader. A legacy single-routine workout renders
flat, exactly as before.
- Home today card: title is the derived session name (done in phase 3).
Tests: Plan inline management (week-start.test.jsx), the ⋮ Add-routine /
nested Layout menu (Workout.test.jsx), addRoutineToSessionSheet +
WorkoutDetail grouping (sheets.combine-ui.test.jsx). Six new UI strings
render English in translated packs — flagged by check-source-strings
(report-only) for a translation follow-up, as docs/COMBINE_ROUTINES.md
notes.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JVbWJtoyQU4WgwFR4eAKgy
startFlow / beginWorkout now take string | string[] | null and route
through buildCombinedEntries; callers pass [r.id], effectiveRoutineIds(...)
or [] as appropriate. Every effectiveRoutine(S,iso) render site that
showed one routine now iterates effectiveRoutines / checks
effectiveRoutineIds.
- sheets.jsx: beginWorkout / beginBackfill write s.active.routineIds +
derived name, no routineId / excludeFromProgression; swapTo resolves the
slot's routine from its entry rid and carries rid onto the replacement;
DayOverride / Calendar use the plural resolver (dayPlan stays scalar —
overriding a combined date collapses it, per spec §8); DayAssign writes a
one-element list.
- active-exercise-swap.js: split-insert carries current.rid like it carries sg.
- Workout.jsx: StartChooser id-set exclusion + startFlow(list); add-exercise
and progression-settings resolve the routine from the current entry's rid
and stamp rid on a freehand add.
- TabBar / Home: onStart(effectiveRoutineIds(...)); Home plannedPerWeek
counts scheduled days not routines; today card name joins the day's
routines.
- mobile.js buildReminderNotifications: names all of a combined day's
routines, or a count past two.
- RoutineEdit delete-cleanup pulls the id from each week list, drops an
emptied key. api/server.js effectiveRoutineId reads the first of the list.
Tests: sheets.combine.test.jsx (beginWorkout with a routine-id list);
mobile.test.js combined-day reminder. Existing suites stay green on the
tolerant-reader path.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JVbWJtoyQU4WgwFR4eAKgy
The plan fingerprint is computed in two runtimes that share no build step
(frontend/src/lib/coach.js and api/coach/core/) and must stay byte-for-byte
matched. Both now normalise every weekday to a routine-id list:
- canonicalPlan / cleanPlan: day value -> [].concat(S.week[d]); filter
S.week?.[d]?.length. A legacy bare string and a one-element list are
indistinguishable downstream.
- hashPlan (both): week join -> k + '=' + list.join('+'). A single-routine
plan's fingerprint is byte-identical to pre-upgrade — no false-stale storm.
- aggregates.plannedDays counts scheduled days, not routines.
- coach.js currentValue/markStale compare `week` by canonical join;
CHANGE_APPLY.week writes [c.after] (single-routine op, collapses a
combined day — same limitation as DayOverride); changeValues.fmt renders
a week array as " + "-joined routine names before the generic branch.
- prompts/common.md + review.md: plan.week is a list; a `week` change names
exactly one routine and replaces the day. core/prompts.js regenerated.
Tests: shared combined-day fixture (client hashPlan === server hashPlan),
legacy scalar vs one-element array identical, canonicalPlan order,
CHANGE_APPLY.week, markStale canonical compare, changeValues rendering.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JVbWJtoyQU4WgwFR4eAKgy
Model A, no new entity. Per-entry noProg replaces the whole-workout
excludeFromProgression flag; the planner day slot and the active/saved
session widen to routine-id lists. No migration — every reader tolerates
the old scalar shape.
- session-start.js: buildSessionEntries returns a bare array, stamps
entry.noProg (only when true) instead of an { entries, excluded } wrapper.
- session-merge.js (new): buildCombinedEntries(st, routineIds) concatenates
N routines' entries in order and stamps entry.rid; deriveSessionName.
- history.js: entryExcluded(w, entry) predicate; effectiveRoutineIds /
effectiveRoutines plural primaries with thin singular wrappers;
lastEntryFor skips excluded entries (retires the buildWorkSets `regular`
wrapper); nextTrainingDay iterates the day's routines.
- progression.js: sessionsFor drops the whole-workout return for a
per-entry entryExcluded check — the file's only exclusion path.
- finish-workout.js: carries rid/noProg onto saved entries; writes
routineIds + routineId mirror; excludeFromProgression mirror iff every
completed entry is noProg.
- plan-share.js: week schedule is a routine-id list through build / parse /
merge / print; [].concat tolerates a legacy scalar bundle value.
- mcp/tools.js, sheets.jsx loadStarterPlan: adjust to the new shapes.
Unit tests for every changed helper (session-merge new; progression cases
1-7; history 8-16; finish-workout 17-19; plan-share 20-22). Fixtures in
sheets.starter / coach migrated to the list shape.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JVbWJtoyQU4WgwFR4eAKgy
Move/Swap/Remove and the "marked Current" hint are gated by
S.wc.exerciseButtons (off by default) — the lean default keeps them in
each exercise's ⋯ menu. Also note compact hides the pair buttons and that
list/compact blocks use the compact ExerciseBlock prop.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016QqZBhX7PVNsRqLhkTt9y3
S.workoutView gains a third value, 'compact': the list layout with each
ExerciseBlock rendered `dense` — no media, tag chips ("Best:" included),
note lines, "Last time" recap, bar/plates chip or progression-guidance
line. Just the name, the ⋯ menu and the set rows. Everything stripped is
still on the ⋯ menu or is display-only.
- Settings → During a workout → Workout view is now a 3-way Segmented
(Cards / List / Compact).
- The workout header gains a ⋮ button (menuSheet) that writes
s.active.workoutView, overriding the layout for the running session.
- beginWorkout / beginBackfill snapshot S.workoutView onto s.active, and
the render prefers A.workoutView || S.workoutView — so changing the
saved default never disturbs a workout already in progress.
- 'Compact' added to all 14 locales; pt-BR inheritance fingerprint
regenerated (inherited 613 → 614).
cards / list behaviour is unchanged. Component tests in Workout.test.jsx,
Settings.workoutview.test.jsx and a new sheets.workoutview.test.jsx;
docs/LIST_VIEW.md rewritten to the shipped model.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016QqZBhX7PVNsRqLhkTt9y3
Safari scrolls the page to show a focused field even with the body pinned under a sheet, and
does not always undo it when the keyboard closes — most often after "+" in the exercise picker,
where the sheet stays open and the sheet's own restore never runs. A window-level guard now
realigns the viewports once the keyboard has gone (and again after its dismiss animation), and
the sheet restore repeats itself after that animation too.
Every key-store call on Android stalled before it started: the Capacitor plugin proxy answers
`then` with a native method, so a promise resolving to the plugin itself never settled. Save
greyed out, key "not saved", Coach "thinking" forever (#42, #58). The plugin now travels inside
a plain object; a test drives the store through a Capacitor-style proxy. Verified on an emulator.
The warm-up side of this is gone rather than updated: the active
workout's set-number is now its own menu (drop set / rest-pause burst
/ remove this set) for every set, not just warm-ups, which already
solves the "only removal control is a tiny X squeezed among six tap
targets" problem this was meant to fix — better than a swipe would
have, since the menu is unambiguous and works the same for every set
type. Layering a swipe on top of that now would just be two ways to
do the same easy thing.
The routine-editor half is untouched in substance, only rebased: the
exercise row didn't change shape, so this is the same SwipeToDelete
component and the same reasoning about why it coexists with the
long-press drag-to-reorder that landed since (data-nodrag would
opt every row out of dragging entirely, confirmed by
RoutineEdit.drag.test.jsx — the axis lock already separates a fast
horizontal swipe from a long-press-then-vertical-drag without needing
that).
Full suite passing except the one pre-existing failure unrelated to
this (a coach-device quota test that fails identically on a clean
checkout of main).
Move/Swap/Remove and the "marked Current" hint are gated by
S.wc.exerciseButtons (off by default) — the lean default keeps them in
each exercise's ⋯ menu. Also note compact hides the pair buttons and that
list/compact blocks use the compact ExerciseBlock prop.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016QqZBhX7PVNsRqLhkTt9y3
S.workoutView gains a third value, 'compact': the list layout with each
ExerciseBlock rendered `dense` — no media, tag chips ("Best:" included),
note lines, "Last time" recap, bar/plates chip or progression-guidance
line. Just the name, the ⋯ menu and the set rows. Everything stripped is
still on the ⋯ menu or is display-only.
- Settings → During a workout → Workout view is now a 3-way Segmented
(Cards / List / Compact).
- The workout header gains a ⋮ button (menuSheet) that writes
s.active.workoutView, overriding the layout for the running session.
- beginWorkout / beginBackfill snapshot S.workoutView onto s.active, and
the render prefers A.workoutView || S.workoutView — so changing the
saved default never disturbs a workout already in progress.
- 'Compact' added to all 14 locales; pt-BR inheritance fingerprint
regenerated (inherited 613 → 614).
cards / list behaviour is unchanged. Component tests in Workout.test.jsx,
Settings.workoutview.test.jsx and a new sheets.workoutview.test.jsx;
docs/LIST_VIEW.md rewritten to the shipped model.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016QqZBhX7PVNsRqLhkTt9y3
Wer eine Routine plant, scrollt sonst jedes Mal durch 1300 Uebungen zu denselben zehn.
Ein Stern im Kopf des Uebungs-Detail-Sheets (aria-label + Toast) merkt sich eine Uebung in
S.favEx — Katalog- oder eigene Ids. Das Feld reist mit dem Profil (Sync/Export), bleibt aber
bewusst aus dem geteilten Plan-Bundle draussen (lib/plan-share.js baut das Bundle nur aus
Routinen/Woche/customEx, dort war nichts zu aendern).
- lib/favourites.js: favIds/isFav/toggleFav/sortFavouritesFirst; alte Profile ohne Feld lesen
als leer. Die Sortierung ist in beiden Haelften stabil, damit eine nach Name oder Nutzung
sortierte Liste ihre Ordnung behaelt.
- Picker, Library, MuscleExplorer sortieren erst NACH Suche/Koerperteil/Equipment, also innerhalb
der aktuellen Trefferliste; Favoriten tragen einen kleinen gelben Stern vor dem Namen. Der
Akzent-Tag am Zeilenende ("Gewaehlt" = schon in Routine/Log) bleibt unveraendert und ist
durch Position und Farbe davon unterscheidbar.
- Picker: zusaetzlicher Chip "Favoriten (n)" vor "Gewaehlt", nur sichtbar wenn es welche gibt,
mit eigenem Leer-Hinweis; die Scope-Abfrage ist jetzt eine kleine inScope-Funktion.
- Eine geloeschte eigene Uebung faellt auch aus favEx.
- ko/ru nannten den alten "Chosen"-Filter bereits "Favoriten" — umbenannt (선택됨 / Выбранные),
damit die zwei Chips nicht gleich heissen.
- 6 neue Strings in 14 Packs, pt-BR nur der Leer-Hinweis (toque/adicioná-lo); Fingerprint
in pt-br-locale.test.js nachgezogen.
- Tests: lib/favourites.test.js, sheets.favourites.test.jsx (Stern + Picker-Reihenfolge +
Chip mit echtem Store), views/Library.test.jsx (Reihenfolge + Koerperteil-Filter).
In-app update check for the Android build (closes#38, #9): Settings shows
"openGym vX available" when gitlab.com has a newer release, tapping it
downloads the APK, checks its SHA-256 and hands it to the package installer
through a small local Capacitor plugin.
Brought onto workout-clean by hand:
- Settings.jsx: the branch's switchUnit sheet and Workout-controls sheet stay,
the MR's update state, DownloadProgress sheet and Data row come on top; the
row keeps the branch's "Load starter plan" neighbour (starterPlanSheet).
- The row is additionally gated on MOBILE so the web bundle never asks
gitlab.com; isAndroid() still decides between Android and iOS.
- build.gradle: the MR's `.debug` applicationIdSuffix is dropped — the branch
already gives the debug build its own id (`.test`, with the label overlay in
src/debug/res); git had auto-merged both blocks and Gradle silently took
the last one.
- Locale packs: both sides kept; the progress sheet's '{0} %' / '{0} MB'
templates now exist in every pack (fr: Mo, ru: МБ, tr: %{0}). pt-BR only
carries the four strings whose Brazilian wording differs (baixar vs
transferir); the identical ones inherit from pt.
- pt-br-locale.test.js: branch version, values recomputed (624/603).
- Settings.workoutview.test.jsx mocks isAndroid like the other Settings tests.
- New: update.test.js fixture with the real v1.3.1 release JSON (the checksum
link is listed before the APK), Settings.update.test.jsx for the gating.
Mitten im Training fehlte die Antwort auf "was habe ich hier letztes Mal und
davor gemacht" — die stand nur in Stats, drei Screens weiter weg. Das ⋯-Menue
jeder Uebung hat jetzt "Verlauf": ein Sheet mit der Kurve (bester Satz pro
Einheit, umschaltbar auf gesch. 1RM; Halten in Sekunden, Cardio in Minuten,
nie beladene Uebungen ihre Wdh.) und den letzten zehn Einheiten, neueste
zuerst, mit Saetzen, Volumen, 1RM und einem PR-Marker auf der Einheit, in
der die Bestleistung zuerst fiel. Aus dem Detail-Sheet (Bibliothek) ist es
ueber einen Button erreichbar, sobald es Verlauf gibt.
Die Ableitung liegt als reiner Helfer in lib/exercise-history.js (ein Lauf
ueber das Log, Aufwaermsaetze wie ueberall ausgeschlossen, Backfill nach
Datum sortiert) und wird im Sheet memoisiert, damit der Workout-Screen beim
Tick nicht das ganze Log neu liest und LineChart seinen Hover behaelt.
- #42: "Save and use the Coach" blieb auf Android 16 grau. Der sichere Speicher wird jetzt mit
4 s Timeout angesprochen (coach-secrets.js withTimeout), die Geraete-Einstellung wird VOR dem
Schluessel geschrieben, und jeder Fehler landet als Toast statt in einem stummen Promise.
- #39: isBodyweightEq zaehlt 'band'/'resistance band' mit (54 Katalog-Uebungen) — ein Reps-Stepper,
Progression in Wdh./Saetzen; der Bodyweight-Schalter je Uebung ueberstimmt weiterhin.
- #22: Settings → Gewichtseinheit fragt: Zahlen umrechnen (lib/units.js convertStateUnit ueber
Saetze, Drops, topW, Ziele, inc, Warm-up-Configs, exWeights, barWeights, Koerpergewicht, Zielgewicht;
lb auf 0.5, kg auf 0.25 gerundet, Hin- und Rueckweg stabil) oder nur die Beschriftung aendern.
Fussnote entsprechend, alter Hinweis-String raus. 5 neue Strings in 14 Packs.
- #29/#21: der Mitte-Tab heisst auf dem Workout-Screen "Workout" und leuchtet; sonst "Resume",
das zum gemerkten Eintrag (S.active.cur) fuehrt, der sich seit !92 nie von selbst bewegt.
- !85: Kopie einer Kopie wird "Name (Copy 2)", nicht "(Copy) (Copy)".
- !94: ein Wochentag, dessen Routine nicht mehr existiert, loest keine Bestaetigung aus.
- !72: das "+" im Swap-Picker uebernimmt sofort mit Standard-Config wie ueberall sonst.