Adds an optional free-text description to custom exercises, shown where
a built-in exercise shows its animation (detail + config sheets) and
included in exercise search.
Deleting was only reachable from the Exercises tab detail sheet, which
you never pass through when tapping an exercise inside a routine. The
routine's config sheet now offers "Edit or delete this exercise", and
its old "Remove exercise" button is relabelled "Remove from routine" so
removing from a routine and deleting for good are no longer confusable.
Refs #11
Users can add movements missing from the catalogue (issue #11) from the
exercise picker or the Exercises tab. Custom exercises live in synced
state (S.customEx) and are merged into the exercise index, so routines,
supersets, logging, PRs, stats and history all work unchanged. The
animation stays blank by design. Editable and deletable from the detail
sheet; deleting keeps logged history readable by stamping the name into
past entries. Translated into all 12 UI languages.
Closes#11
Adds a Language setting (Settings → Appearance) that translates the whole
app: a tiny dependency-free i18n layer (English source strings as keys,
per-language dictionaries in frontend/src/locales/) plus per-language
exercise-instruction packs generated from the upstream dataset
(frontend/src/instr/, via scripts/build-instructions.mjs).
UI: en, de, es, fr, it, pt, pl, tr, ru, zh, ko, hi. Instructions: all of
those except de/pt (not in the upstream dataset — fall back to English).
Body-part/equipment/muscle labels and date formats are localized too;
exercise names stay English (upstream limitation).
Everything is lazy-loaded per language (Vite code-splitting), so the
initial bundle is unchanged; the choice syncs with the profile like the
theme. Closes#7.
The Sets/Reps/Weight stepper row (and its cardio variant) used fixed-width
steppers that added up to ~445px — wider than an iPhone viewport — clipping
the Weight stepper off-screen and letting iOS Safari pan the whole page
sideways. Steppers in the config sheet now flex and shrink to fit, and
html/body clip horizontal overflow as a safety net.
20kg was too high a floor for light dumbbell work. Also added -1/-0.5/
+0.5/+1 chip buttons alongside the existing fine +-0.1 pair, so coarse
adjustments don't need dozens of taps.
The auto-extend fix from the last commit traded one bug for another:
every time the window grew mid-drag, the whole range shifted, so a
value's position on the track would jump around unpredictably (e.g.
60kg sliding from the middle toward the far left just from dragging
to the far end and back). A window that resizes itself during
interaction can't be predictable by construction.
Fixed range (20-300kg) instead — coarser per-pixel precision, but the
thumb's position is now a pure function of value: no drift, no jumps,
ever. The +/- steppers still give exact fine control. Verified with a
repeatable test: a value's slider position is now identical before and
after dragging to both extremes.
WeightInput (used for body weight, goal weight, and per-exercise top
weight) computed its slider's min/max once from the initial value and
never revisited it — starting from a fresh 70kg default capped the
slider at 90kg with no way to drag past it, exactly the reported bug.
Widened the base window (±60) and made it self-extend when dragged or
stepped to either edge, instead of getting stuck there.
- Die 'Arbeitsgewicht bestätigen'-Abfrage im Workout nutzt jetzt denselben
Slider + Plus/Minus (geteilte WeightInput-Komponente)
- Alle window.confirm-Systemdialoge durch eigene, app-farbige Center-Dialoge
ersetzt (confirmSheet): Workout verwerfen/vorzeitig beenden, Routine/Workout
löschen, Abmelden, Reset, Backup importieren
- Log-Sheet zeigt nur noch die letzten 3 Gewichts-Einträge
- Bei jedem Tab-/Routen-Wechsel springt die Seite an den Anfang (scrollTo(0,0))
- Wenn eine Geste auf dem Slider startet, ignoriert das Sheet den Swipe-to-dismiss
komplett (Slider gehört die Geste) — erst beim Loslassen kann wieder
weggewischt werden
- Zielgewicht (Goal) nutzt jetzt denselben Slider + Plus/Minus statt Zahlenfeld
(geteilte WeightInput-Komponente)
Beim Abhaken des letzten Satzes der letzten Übung erscheint ein Popup
'That's the whole workout!' mit 'Finish workout' und 'Continue workout'
(weitermachen + neue Übung hinzufügen). Der Finish-Button während des Trainings
ist jetzt dezent ('Finish workout early · x/y exercises') und wird erst
prominent, wenn alle Übungen erledigt sind.
Die Gewichts-Abfrage nutzt jetzt einen Slider, ±0.1-Buttons und Schnell-Chips
(±0.5/±1) statt eines Zahlenfelds (kein hakeliges Tippen mehr, rapid-tap-sicher
via funktionalem Setter). Im Log-Sheet gibt es eine 'Recent weigh-ins'-Liste
mit Löschen-Button pro Eintrag.
- Cardio: Übungen mit bp=cardio loggen jetzt Dauer (min) + Speed (km/h)
statt Gewicht×Wdh (eigene Config, Workout-Zeilen, History-/Fortschritts-
Anzeige; Fortschritts-Chart plottet Top-Speed). Cardio-Tag, keine
Gewichts-Abfrage. Cardio-Day = Routine mit Cardio-Übungen, oder per
+ Add exercise nach der Session.
- Rest-Timer-Flicker behoben: verstrichene Zeit in eigene <Elapsed>-Komponente
ausgelagert, damit der Workout-Baum (GIF, Inputs) nicht mehr jede Sekunde
neu rendert (verursachte auf iOS Repaint-Flackern über der Tab-Bar)
- Home vs Stats entzerrt: Home ist jetzt handlungsorientiert (Woche, heutiges
Training, Körpergewicht-Kurzstatus + Ziel, Streak-Karte) ohne den grossen
BW-Chart, das Kachel-Raster und die Workout-Liste — die leben jetzt nur
noch in Stats (Analyse-Hub)
- Übungs-Picker schließt beim Antippen nicht mehr — Config öffnet darüber,
Wegwischen führt zurück zur Suche (Suchbegriff bleibt erhalten)
- Neuer "⭐ Chosen"-Filter: Übungen, die schon in Routinen/Workouts genutzt
werden (nach Häufigkeit sortiert), plus ⭐-Marker in der Liste
- Supersätze: im Routine-Editor per 🔗 mit der Übung darüber verknüpfen
(visuelle Gruppierung mit Akzent-Rand + Label); im Workout als eine
Superset-Karte dargestellt (beide Übungen, Pause erst nach der letzten),
Unit-weise Navigation und weiterführende Gewichts-Abfrage
Ersetzt die 1900-Zeilen-Vanilla-SPA durch eine strukturierte React-App:
- frontend/src: views/ (9 Views), components/ (Modals, LineChart, Heatmap,
TabBar, Media, Stepper, RestTimer, Toast), store/ (Zustand: State+Sync,
UI), lib/ (format, history, exercises, api/WebAuthn, sound, nav)
- React Router (Hash), Zustand-Store mit localStorage + Server-Sync
- Reaktives DOM-Diffing löst das manuelle Re-Render-Ruckeln (GIF läuft beim
Set-Abhaken flüssig weiter)
Self-Hosting bleibt ein Befehl: web/ ist jetzt ein Multi-Stage-Dockerfile,
das das Frontend IM Container baut und mit nginx ausliefert — keine lokale
Node/Build-Kette nötig. Übungsmedien nach ./media ausgelagert.
Voller Ablauf im Headless-Browser getestet (Login→Plan→Workout→Stats→
Library→Settings, Feature-Parität) und Standalone-Compose Ende-zu-Ende
(React-Build im Docker, /api-Proxy, geforgter Passkey-Login) verifiziert.