Commit Graph
415 Commits
Author SHA1 Message Date
Duarte Santos 4b25a80356 Analytics: Umami auf der Website, im Frontend nur wenn beim Build gesetzt
website/: fester Umami-Tag fuer opengym.duarte-santos.ch (Landing/About/Docs).
frontend/: vite-Plugin injiziert den Tag NUR wenn VITE_UMAMI_SRC und VITE_UMAMI_ID
beim Build gesetzt sind — ein normales 'npm run build' und damit jede
selbstgehostete Instanz bleibt telemetriefrei.

(Die Download-Zeile auf v1.2.7 lag schon uncommitted im Baum und faehrt mit.)
2026-08-20 15:44:59 +02:00
Duarte Santos 19a441d93e Android-Back: @capacitor/app verdrahtet, Zurueck-Geste beendet die App nicht mehr
Capacitor 7 behandelt Zurueck gar nicht selbst, das macht @capacitor/app -- das
Plugin fehlte, also lief jede Zurueck-Geste an der WebView vorbei direkt in
finish(). Die History-Eintraege pro Sheet (#63) haben nur im Browser gewirkt.

Neu: lib/back.js entscheidet Sheet -> Seite -> zweimal Zurueck zum Beenden
(exitApp, weil das Plugin mit registriertem Listener nie mehr selbst beendet),
gesperrte Sheets schlucken Zurueck weiterhin. Version auf 1.2.8/versionCode 9.
2026-08-19 16:30:32 +02:00
Duarte Santos 4cd6f4d26c Merge remote-tracking branch 'origin/main' into coach
# Conflicts:
#	docs/SELF_HOSTING.md
2026-08-18 23:21:07 +02:00
Duarte Santos ad82db415a Coach: der Weg vom akzeptierten Plan ins Training
Nach dem Annehmen landete man auf /plan — einem Screen, der "heute" gar nicht
kennt und keinen Startknopf hat. Home kennt es laengst: effectiveRoutine fuer
heute, und onToday gibt die Routine an startFlow. Also faehrt der Accept jetzt
dorthin, wenn der Wochenplan uebernommen wurde, und nur sonst noch auf /plan.
Kein zweiter Startpfad, kein neues Sheet.

Was auf Home gefehlt hat: an einem Ruhetag war die Zeile eine Sackgasse. Neu
nennt sie die naechste Einheit — nextTrainingDay() neben effectiveRoutine,
nimmt ein ISO-Datum statt die Uhr zu lesen, ueberspringt Routinen ohne
Uebungen (sonst startet man in eine leere Session) und respektiert dayPlan.

Dabei zwei Fehler gefunden, die genau diesen Weg kaputt gemacht haetten:

- mergePlan schreibt s.week neu, ruehrt s.dayPlan aber nie an. Eine alte
  Verschiebung auf 'rest' versteckte damit eine Einheit, die der neue Plan
  vorsieht, und eine alte Routine-Id gewann gegen die neue Woche. Der Sweep
  sitzt bewusst in applyCreatedPlan, nicht in mergePlan: mergePlan haengt auch
  am Plan-Import, und dem jemandem die Verschiebungen zu loeschen, weil er
  einen fremden Plan importiert, waere eine ganz andere Aenderung — ohne Undo.
- remove-routine raeumte die Woche auf, den dayPlan aber nicht. Der Zeiger
  blieb liegen und der Tag trug dauerhaft das "verschoben"-Abzeichen.

Snapshots tragen dafuer einen Patch der geloeschten Eintraege statt einer
Kopie des ganzen dayPlan — der umfasst jedes je verschobene Datum, und drei
Kopien davon haetten echte Snapshots aus dem 256-KB-Budget gedraengt.

Ausserdem: validateProposal nennt sich Spiegel des Servers, pruefte aber nur,
dass routines nicht leer ist. Der Server lehnt auch eine Routine ohne
Uebungen ab — sonst wird die eingeplant und "heute starten" oeffnet eine
Session ohne Inhalt.
2026-08-18 23:17:03 +02:00
Duarte Santos 9007aeefb6 Release v1.2.7: compose reicht BACKEND/NGINX_PORT/PORT durch, Doku und Website nachgezogen, neue Screenshots 2026-08-18 15:33:02 +02:00
Duarte Santos 8d3f667c89 Merge main into coach: v1.2.6 plus die Backlog-Runde, Locale-Union, CI laeuft jetzt auch auf coach 2026-08-18 12:17:12 +02:00
Duarte Santos 5bf149e60b i18n: Checker fuer Quell-Strings, die in KEINEM Pack stehen (check-locales sieht die nicht) 2026-08-18 12:11:51 +02:00
Duarte Santos c17632ea3d Superset-Flow: High-Water-Marken nach dem Entfernen einer Uebung neu setzen, api.js im Test gemockt 2026-08-18 12:08:15 +02:00
Duarte Santos aac6b185ec Merge remote-tracking branch 'pr/80' 2026-08-18 12:03:38 +02:00
Duarte Santos 3b720b0332 Remove-Exercise: Randfaelle abgedeckt (letzte Uebung, Zweier-Superset, cur unterhalb) 2026-08-18 12:03:31 +02:00
Duarte Santos 8fe980343d Merge remote-tracking branch 'pr/83' 2026-08-18 12:02:22 +02:00
Duarte Santos 8323e06819 Merge remote-tracking branch 'pr/94' 2026-08-18 12:00:52 +02:00
Duarte Santos 55b9dcb864 Warm-up: die vier verbliebenen Roh-Lesungen von .warmup ueber isWarmupRow, mit Regressionstests 2026-08-18 11:57:40 +02:00
Duarte Santos 76a2d3b7a5 Merge remote-tracking branch 'pr/93' 2026-08-18 11:55:28 +02:00
Duarte Santos 09baee49a7 Fatigue: linkedom bleibt (Modals-Test braucht es), Monotonie-Probe laeuft in CI 2026-08-18 11:54:55 +02:00
Duarte Santos 374f6bdadc Merge remote-tracking branch 'pr/55' 2026-08-18 11:53:13 +02:00
Duarte Santos d4169690a6 Merge remote-tracking branch 'pr/85' 2026-08-18 11:44:58 +02:00
Duarte Santos 55de70ad23 i18n: neue Keys auf den Quote-Stil der Packs ziehen 2026-08-18 11:44:24 +02:00
Duarte Santos f860edd24a Merge remote-tracking branch 'pr/92' 2026-08-18 11:43:51 +02:00
Duarte Santos 274a0276e0 Release v1.2.6: Changelog-Datum auf den letzten Stand, Android zieht mit 2026-08-18 11:31:53 +02:00
root 4e842b00e1 feat: resolve warm-up rows by phase 2026-08-12 20:20:34 +02:00
Space Hermes f3ba7de479 feat: add strength exercise view and history snapshots 2026-08-12 20:18:05 +02:00
root 57f04febbe feat(i18n): add strength-view strings to all locales 2026-08-12 20:13:35 +02:00
Space-Hermes 23a5b6c228 fix: smaller same-area items from the review - future-dated clamp, LB_TO_KG export, value-based bodyweight guard 2026-08-12 17:43:20 +02:00
root ed666df237 fix: fatigue round-4 (zero-load strength, history-stable reference, real Stats view tests + committed probe) 2026-08-12 17:25:57 +02:00
root a95104b675 fix: back-button history accounting (explicit pushed-entry counter, locked-sheet popstate) + mouse-drag slider opt-out 2026-08-12 17:25:27 +02:00
root edde72f9cb fix: superset flow round-3 (rest gate for ordinary exercises, high-water progress, top-weight owns advance, Workout coverage) 2026-08-12 17:20:50 +02:00
root 237d1c5cf2 fix: decrement cur when the removed entry sits below it (superset picker case) 2026-08-12 17:20:04 +02:00
root b42d2baa6e fix: make session exercise removal timer-safe 2026-08-11 23:18:45 +02:00
root f32c4d0b73 feat: remove exercise from a session (confirm; superset picker) 2026-08-11 23:01:20 +02:00
Duarte Santos a7d7f5c24b Fix media paths on routine detail, map the Hevy names that fell through
Two reported bugs, both small:

exercise media (#79): IMG_BASE/GIF_BASE were relative, so on /plan/r/:id --
the app's only two-segment route -- the browser resolved them against the
route and asked for /plan/r/img/..., which nginx's extension block 404s
instead of falling through to index.html. Blank images, nothing in the
console. Absolute defaults; the VITE_* overrides are absolute already, so
the Pages demo and the mobile build are unaffected.

import aliases (#74): Treadmill, Goblet Squat, Cycling and Cable Core
Pallof Press arrived as custom exercises because no word-overlap can reach
the catalogue's names for them. Added those plus the neighbours around
them, and a test file -- matchExercise had none.

Also documents that VITE_IMG_BASE/VITE_GIF_BASE are build-time, which is
why setting them next to docker compose does nothing on a prebuilt image.
2026-08-11 22:35:43 +02:00
Duarte Santos 96eed3660b Merge remote-tracking branch 'pr/59' 2026-08-11 22:30:51 +02:00
Duarte Santos fe585097c8 Merge remote-tracking branch 'pr/64' 2026-08-11 22:30:09 +02:00
Duarte Santos d8c734a2b6 muscle overlay: route the exercise detail tags through smOf too
#67 stopped mutating EXDB and moved the secondary-muscle additions into a
derived smOf() overlay, but ExerciseDetail still read the raw ex.sm. The
four curated row additions (0027, 0293, 0499, 0861) were silently dropped
from the detail sheet's tag row -- "rear deltoids" was the third visible
tag on all four, so the slice(0,3) did not hide it.

Caught on merge, before it shipped.
2026-08-11 22:30:04 +02:00
Duarte Santos 087ce34674 Merge remote-tracking branch 'pr/67' 2026-08-11 22:29:14 +02:00
root 15c29029c1 neutral superset header text (mirror live) 2026-08-08 10:46:43 +02:00
root 030a609427 translate superset action labels (11 locales) 2026-08-08 10:11:26 +02:00
root 8bbf59c001 remove accidentally committed node_modules symlink 2026-08-08 10:09:49 +02:00
Space_Hermes b29a3f6bb0 feat: create and remove session supersets 2026-08-08 02:24:22 +02:00
root bee9b64b78 progression: guard set growth against an all-warm-up entry (no work seed, no infinite loop) 2026-08-07 17:03:57 +02:00
AlexandClaude Opus 5 5d8332d11d Coach: the store field the whole UI reads, which was never ported
The entry point in the previous commit was necessary but not sufficient: every
Coach surface gates on coachAvailable(config, user), config comes from
useStore(s => s.config), and that field does not exist. 4/6 brought the views
across and left behind the one line of store they all depend on.

So `config` was undefined at all five call sites, the gate was false on every
instance, and the feature was invisible everywhere — no row on Plan, and
/#/coach redirecting straight back to /home. Enabled, credentialed, a real
round trip through the provider passing, and no way in. Indistinguishable from
"this instance has no Coach", which is exactly why it survived review: the
failure mode is silence.

Adds `config: null` and the boot-time fetch, ahead of /api/me because instance
capabilities are public and needed whether or not anyone is signed in.

Two tests pin it. One asserts the gate opens for the exact shape GET
/api/config returns, and stays shut for `undefined` — the bug itself. The other
asserts the store source still declares the field and still fetches it; that one
reads the file rather than the live store, because useStore touches `document`
at import time and cannot be instantiated in this environment. Crude, but it
fails on precisely the two edits that broke this.

frontend 406/406, build clean.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 15:27:02 +01:00
root 01072ef5e3 warm-up round 3: applyPrescription/readSession never touch warm-up rows; per-phase set numbering; regression tests 2026-08-07 15:19:11 +02:00
root 86ac937d5d warm-up carve-outs (effort ratio, muscle map), cascade/warmup row helpers with tests, dead guard removed, total+work set counts 2026-08-07 15:16:19 +02:00
root 9cc645c755 fix warmup 1RM test equality 2026-08-07 15:15:51 +02:00
root cbb3630423 warm-up sets: excluded from 1RM and progression only (volume semantics kept); tests 2026-08-07 15:15:51 +02:00
root 0109857249 cascade: fixed-weight only, never overwrite done sets 2026-08-07 15:15:51 +02:00
root edb3e42c43 session UX: warm-up phase separation, add/remove warm-up sets, weight cascade to following sets 2026-08-07 15:15:51 +02:00
Duarte Santos ab1bfe31b6 coach: Plan-Einstieg nutzt die schon uebersetzten Coach-Strings 2026-08-07 14:48:02 +02:00
Duarte Santos a0ac473df7 Merge remote-tracking branch 'pr/54' into coach 2026-08-07 14:47:25 +02:00
root 577c86b487 derive secondary additions via smOf overlay - raw dataset never mutated 2026-08-07 13:12:42 +02:00