Commit Graph
574 Commits
Author SHA1 Message Date
HenryandClaude Sonnet 5 8b917b6331 Combine routines (ENG-9) phase 2: Coach — array-tolerant plan week
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
2026-09-06 19:27:24 +01:00
HenryandClaude Sonnet 5 1c877173f4 Combine routines (ENG-9) phase 1: data model + pure helpers
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
2026-09-06 19:27:24 +01:00
HenryandClaude Sonnet 5 e7a4597478 Workout view: add a "compact" layout and a per-session ⋮ switcher
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
2026-09-06 19:27:24 +01:00
Duarte Santos 5c2005e81f iOS: the page no longer stays displaced after the keyboard goes away (tab bar mid-screen, first rows under the status bar)
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.
2026-09-06 17:36:45 +02:00
arhx91 db25077fd9 Detecting progress instead of stall 2026-09-06 10:32:48 -04:00
Duarte Santos 684b0054ad v1.3.5: own API key on the phone no longer hangs (secure-storage plugin handed to a promise as a thenable)
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.
2026-09-06 14:31:46 +02:00
Horus Gonzalez 2a64c4bd8f Rebase: drop the warm-up half, keep swipe-to-delete on routine rows
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).
2026-09-05 22:22:55 -06:00
HenryandClaude Sonnet 5 64563c257b Workout view: add a "compact" layout and a per-session ⋮ switcher
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
2026-09-06 01:16:28 +01:00
Duarte Santos 9c7c351345 v1.3.4: effort picker restyled as a menu list, media falls back to the still or a tile instead of a broken image 2026-09-05 15:03:52 +02:00
Duarte Santos 2c7009a9d7 v1.3.3 2026-09-05 14:28:12 +02:00
Duarte Santos 067302fd16 In-App-Update (!40) nachgeschaerft: Zeile nur mit APK-Asset, keine Installation ohne Pruefsumme, ein Release-Check pro App-Sitzung 2026-09-05 14:27:28 +02:00
Duarte Santos 370b651373 pt-BR-Guard nach den Feature-Merges (626/612) 2026-09-05 14:25:05 +02:00
Duarte Santos d021d9b5f3 Merge feat/favourites: Favoriten-Uebungen (#6)
# Conflicts:
#	frontend/src/lib/pt-br-locale.test.js
2026-09-05 14:24:24 +02:00
Duarte Santos 0797fda152 Merge feat/update-check: !40 In-App-Update auf dem Android-Build (#38, #9)
# Conflicts:
#	frontend/src/lib/pt-br-locale.test.js
2026-09-05 14:24:11 +02:00
Duarte Santos f162505549 Favoriten-Uebungen (#6): Stern im Detail-Sheet, Favoriten zuoberst im Picker, in der Bibliothek und im Muskel-Explorer
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).
2026-09-05 14:23:30 +02:00
Duarte Santos 1f47d5015c Merge feat/history: Uebungsverlauf aus dem ⋯-Menue (#43)
# Conflicts:
#	frontend/src/sheets.jsx
2026-09-05 14:23:10 +02:00
Duarte Santos e2a34a2fee Merge !40: feat: add update check in settings
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.
2026-09-05 14:22:48 +02:00
Duarte Santos fbe33600ff Workout: Uebungsverlauf mit Kurve und letzten Einheiten aus dem ⋯-Menue (#43)
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.
2026-09-05 14:21:21 +02:00
Duarte Santos 228f758e5e Merge main (v1.3.2) into workout-clean 2026-09-05 14:19:26 +02:00
Duarte Santos cf46301e06 v1.3.2 2026-09-05 14:18:56 +02:00
Duarte Santos 039a280777 Warm-up-Ramp und Prescription snappen auf das Inkrement der Uebung (weightIncrement), nicht auf den Einheiten-Default — in session-start, Add-Exercise, Progression-Sheet und Swap 2026-09-05 14:16:36 +02:00
Duarte Santos b5769b9c38 Bugfix-Runde vom Board: Coach-Speichern auf Android (#42), Baender wie Koerpergewicht (#39), Einheitenwechsel rechnet um (#22), Mitte-Tab im Workout (#29/#21), Kopie-Namen, Geister-Wochentag, Swap-Picker
- #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.
2026-09-05 13:58:07 +02:00
Duarte Santos 3773f65355 Merge !91: feat(workout): colour-coded RIR/RPE quick picker
# Conflicts:
#	frontend/src/lib/pt-br-locale.test.js
#	frontend/src/locales/pt-BR.js
#	frontend/src/sheets.jsx
#	frontend/src/views/Workout.jsx
#	frontend/src/views/Workout.test.jsx
2026-09-05 13:44:02 +02:00
Duarte Santos 00adae77e8 Workout: im Listenmodus bleibt der Kopf (Name, Uhr, Saetze, Abbrechen/Fertig, Fortschritt) oben stehen 2026-09-05 13:28:31 +02:00
Duarte Santos 86d3723b88 Workout: ein Mehr-Menue pro Uebung und ein Menue pro Satz statt Tastenreihen, dazu "Bedienelemente im Training" in den Einstellungen
Vorher standen pro Uebung Notiz/Details, zwei Superset-Tasten, ein Stangen-Chip, unter den
Saetzen drei Tasten und unter der Karte Prev/Next, Hinzufuegen, Hoch/Runter, Tauschen, Entfernen;
pro Satz dazu +Drop/+Burst und bei Warm-ups ein X. Jetzt:

- Uebungskopf: nur noch "⋯" (Notiz, Details, Progression, Stangengewicht, Aufwaermsatz,
  Superset mit vorheriger/naechster, Tauschen, Hoch, Runter, Entfernen). Der Notiz-Stift bleibt
  sichtbar, sobald eine Notiz existiert. Die Aktionen zielen auf GENAU diese Uebung, auch als
  Superset-Mitglied (blockProps traegt idx, moveUnitAt(at, dir) statt moveCurrentUnit).
- Satznummer ist ein Button: Drop-Satz, Rest-Pause-Burst, diesen Satz entfernen (ersetzt die Chips
  und das Warm-up-X). Unter der Karte nur noch "Satz hinzufuegen".
- Stangen-Chip wird eine Textzeile (Bearbeiten ueber das Menue).
- Settings → Waehrend eines Trainings → "Bedienelemente im Training": Plus/Minus-Tasten (aus =
  Zahl antippen und eintippen, .stp.plain), Drop/Burst-Kuerzel an jedem Satz, Superset-Tasten im
  Kopf, Verschieben/Tauschen/Entfernen unter der Uebung. S.wc ueberlagert WC_DEFAULT
  (lib/workout-controls.js), alte Profile lesen als schlankes Layout.
- menuSheet() in sheets.jsx als generisches Aktionsmenue, Icon "more".
- 14 neue Strings in allen 14 Packs (pt-BR mit voce-Formen), pt-BR-Guard 617/592/088bb72a.
- Tests: Menue-Pfade + Schalter neu; Move/Swap/Remove-Tests laufen mit exerciseButtons an.
2026-09-05 13:17:56 +02:00
Duarte Santos 0cbd32c0f5 mrbatch: Listenmodus beendet den Workout nicht mehr zu frueh, Progression-Sheet speichert trotz Store-Clone, Progression-aus auch bei Swap/Sheet, Stepper snappt nur auf dem Raster, exWeights erst beim Abschluss
Aus dem Subagenten-Test der Workout-MRs:
- !96 x !92: toggle() beurteilte die Einheit des Markers statt die des angetippten Satzes; im
  Listenmodus kam "That's the whole workout!" nach einem Satz einer anderen Uebung.
- !77: Identitaetsvergleich scheitert an jedem Store-Clone (auch der Stangengewicht-Stepper im
  Sheet selbst) -> Vergleich auf Workout-Id, Listenlaenge und Uebung am Index.
- !71: useTarget bei Progression 'aus' auch fuer swapActiveWorkoutExercise und das
  Progression-Sheet im Workout.
- !84: stepWeight snappt nur, wenn der Wert schon auf dem Schrittraster liegt (62.5 +5 -> 67.5,
  nicht 70; 61.3 +1.25 -> 62.5 wie die Progression).
- !92: exWeights werden nur noch beim Abschluss geschrieben (doFinishWorkout), nicht beim
  Abhaken - ein korrigierter Tippfehler oder ein verworfener Workout wird nie zum "Best".
2026-09-04 17:16:49 +02:00
Duarte Santos 80cccdd2e0 mrbatch (!87): Muskel-Explorer folgt dem Geraete-Profil wie Library/Picker, Zurueck-Pfeil links, Satz nicht doppelt, Library-Tab bleibt markiert 2026-09-04 17:13:47 +02:00
Duarte Santos 6e9f5e7b9c mrbatch: preview_session baut die Session ueber session-start.js (Progression aus, Deload-Routinen, Warm-up-Schritt), meldet auch Zeit/Cardio-Overrides; Rest-Toast auch nach verstecktem Ablauf 2026-09-04 17:11:24 +02:00
Duarte Santos 0f021aa06d mrbatch: pt-BR-Guard nachgezogen, Sheet-Mock kennt starterPlanSheet, Listenmodus folgt !92 (kein Auto-Weiterspringen) 2026-09-04 16:57:42 +02:00
Duarte Santos dfc63543ea Merge !94: feat: add Upper/Lower, Full Body and 5×5 starter plans
# Conflicts:
#	frontend/src/lib/pt-br-locale.test.js
2026-09-04 16:54:38 +02:00
Duarte Santos 194aa15f0e Merge !87: feat: add muscle exercise explorer
# Conflicts:
#	frontend/src/lib/pt-br-locale.test.js
2026-09-04 16:54:38 +02:00
Duarte Santos dab232a591 Merge !96: feat(workout): add configurable list view for active workouts
# Conflicts:
#	frontend/src/views/Workout.jsx
2026-09-04 16:54:38 +02:00
Duarte Santos d8130443a9 Merge !72: Exercise picker: the "+" adds now instead of opening the detail sheet
# Conflicts:
#	frontend/src/views/RoutineEdit.jsx
2026-09-04 16:54:08 +02:00
Duarte Santos 4bca5336d1 Merge !85: feat: add copy routine button to RoutineEdit view
# Conflicts:
#	frontend/src/lib/pt-br-locale.test.js
2026-09-04 16:53:52 +02:00
Duarte Santos f00400206d Merge !92: fix: capture working weight automatically 2026-09-04 16:53:52 +02:00
Duarte Santos 26847dac3b Merge !80: fix: use available width for exercise selector 2026-09-04 16:53:52 +02:00
Duarte Santos e94bd1250e Merge !82: BodyMap tests: import the geometry before the first render 2026-09-04 16:53:52 +02:00
Duarte Santos 6c22076d35 Merge !77: Show and edit progression policy during workouts 2026-09-04 16:53:52 +02:00
Duarte Santos 11bb1392f8 Merge !93: Fixed and tested deload spiral 2026-09-04 16:53:52 +02:00
Duarte Santos 953d91c806 Merge !71: fix: keep no-progression routine targets 2026-09-04 16:53:52 +02:00
Duarte Santos dca8393a7a Merge !89: Timer flash: blink the real theme instead of a black/white overlay, sk 2026-09-04 16:53:52 +02:00
Duarte Santos b301b8c81d Merge !84: fix: use exercise weight step for workout controls
# Conflicts:
#	frontend/src/views/Workout.jsx
2026-09-04 16:53:51 +02:00
Duarte Santos 8fb22e7994 Merge !97: bugfix: RIR counter ins supersets required two clicks per increment 2026-09-04 16:53:32 +02:00
Daniel Patrón Gómez 98ed4ddcb1 Merge branch 'main' into feat/workout-list-view 2026-09-04 16:14:27 +02:00
prasad-gade05 e4139a4e9f feat: add muscle exercise explorer 2026-09-04 19:03:02 +05:30
Duarte Santos 4924ad8aeb Merge !95: gym membership QR check-in, in app and PWA, with a Settings switch 2026-09-04 15:21:53 +02:00
Duarte Santos 50a8b96285 cap sync: secure-storage and ML Kit plugin in the generated gradle/Podfile lists 2026-09-04 15:16:23 +02:00
Duarte Santos aa487d29f4 Gym check-in in the browser/PWA too
The feature was gated behind MOBILE because scanning went through the native ML Kit
plugin. iPhone users only have the PWA, so: route, Home card and Settings switch on
every platform; photo import and a live camera sheet decode in the browser with
BarcodeDetector where it exists and jsQR (Apache-2.0, lazy chunk) otherwise. The app
build keeps ML Kit. Round-trip test lean-qr -> jsQR.
2026-09-04 15:15:31 +02:00
Duarte Santos 0af9f55528 Gym check-in: Settings switch to turn the feature off
Off hides the Home card and the /checkin route; saved cards stay. On by default,
profiles without the key read as on. pt-BR: trailing comma the MR's last override
line was missing, override count 600.
2026-09-04 14:42:48 +02:00
Duarte Santos 2899f27fa6 CI: Pipelines fuer Fork-MRs, Testberichte im MR, Stack-Check der Images, Trivy+SBOM, Release-Preflight
Was die Pipeline neu kann:
- release:preflight prueft auf einem v*-Tag, dass frontend/api-package.json und CHANGELOG
  zum Tag passen und der Commit auf main liegt - bevor 40 Minuten Build anlaufen.
- test:* liefern JUnit (Fehler stehen im MR-Widget) und Coverage (Badge + Diff-Annotation);
  test:frontend misst das Bundle und zeigt im MR die Differenz zu main.
- verify:stack startet die gerade gepushten Images ueber die echte docker-compose.yml und
  fragt sie durch nginx ab; verify:scan (Trivy) scannt beide Images und legt je ein
  CycloneDX-SBOM ab, das der Release verlinkt.
- Der Release nennt Digests, Pull-Befehl und APK-SHA-256.
- mr:fork-pipelines startet die Pipelines von Fork-MRs bekannter Contributor hier im
  Projekt (Fork-Pipelines laufen sonst im Fork ohne Runner); Erstkontakte bekommen das
  Label ci-approval-needed. Braucht PIPELINE_API_TOKEN und den Zeitplan SCHEDULE_JOB=fork-mrs.

Korrekturen:
- web/Dockerfile: npm ci --ignore-scripts statt "npm ci || npm install" - der
  sharp/libvips-Download hatte v1.3.1 rot gemacht, und der Fallback ignorierte das Lockfile.
- interruptible + Retry bei Runner-Fehlern fuer alle Jobs, Timeouts pro Job,
  release-cli gepinnt, Docker-/Rules-Vorlagen statt Copy-Paste.
- Zeitplaene unterscheiden sich per SCHEDULE_JOB, damit Renovate und der MR-Starter sich
  nicht gegenseitig ausloesen.
2026-09-04 14:06:50 +02:00