Commit Graph
453 Commits
Author SHA1 Message Date
Duarte Santos d58a98e768 Phone layout: chip strips no longer scroll the page, sheets stop short of the Dynamic Island, tab bar stays at the bottom after the keyboard
- 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.
2026-09-12 13:11:17 +02:00
Duarte Santos 413bce5bf8 Merge !119: drag a horizontal chip strip to scroll it on a pointer device (HenryByte, #147) 2026-09-12 13:05:21 +02:00
Duarte Santos 124eda6890 Merge !121: tighten mobile workout bottom scroll (mflova) 2026-09-12 13:05:21 +02:00
Boris Kurktchiev 8b2fc43c8a frontend: #160 findings 1/2/9/10 — the local copy remembers its owner and is wiped when another profile signs in (open tabs follow), a copy adopted from the server keeps its timestamp, Reset everything says what it deletes and forgets the server-side Coach record, a 413 on sync is shown instead of swallowed 2026-09-11 10:23:13 -04:00
Manuel 21049e9328 fix: tighten mobile workout bottom scroll 2026-09-08 19:13:27 +02:00
HenryandClaude Sonnet 5 fc555f57ce Library: drag a horizontal chip strip to scroll it on a pointer device
The body-part and equipment filters in the Library (and the exercise
picker, the muscle explorer) are `.chips` rows that overflow sideways.
On a phone you swipe them; index.css hides the scrollbar. On a desktop
browser there was no way to reach the chips past the right edge — a
mouse wheel scrolls the page, and there's no visible handle.

lib/hchips.js adds a click-drag: press anywhere on a strip and pull it
along, the way a swipe does on a phone. One delegated pointerdown
listener on the document.

- 6px slop before a press becomes a drag, so a click still selects a chip
- the click the browser fires after a drag is swallowed, so releasing
  over a chip doesn't toggle that filter
- mouse only (pointerType 'touch'/'pen' already scroll natively);
  primary button only; non-overflowing rows are left alone
- grab / grabbing cursor as the hint, on rows that actually overflow
  (data-xscroll, set on hover), gated to (hover:hover) and (pointer:fine)

Closes #68

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DBkhHLqWtSYrPdsNE11PiP
2026-09-08 12:27:58 +01:00
Duarte Santos bf9764e3a2 Settings: an Updates section as the last thing on the page (check and install on Android, APK link on the web); changelog for the merged MRs
The deload-demo.html page from !103 does not ship: frontend/public/ lands in every dist.
2026-09-07 19:45:19 +02:00
Duarte Santos 637e32a904 merge fix-ups: close the test blocks the !102/!103 seams left open 2026-09-07 19:41:50 +02:00
Duarte Santos b4feea6a2e Merge !102: Workout view: Allow multiple routines 2026-09-07 19:40:31 +02:00
Duarte Santos 6b2eb4a797 Merge !100: feat(workout): add a "compact" layout and a per-session ⋮ switcher 2026-09-07 19:39:06 +02:00
Duarte Santos 1680465ca2 Merge !105: improvements for qr code check-in feature 2026-09-07 19:38:15 +02:00
Duarte Santos 30e91cd06a Merge !107: feat(checkin): track one-sided exercises per side (L/R) 2026-09-07 19:38:14 +02:00
Duarte Santos 22d093d742 Merge !73: Swipe-to-delete: routine exercises and warm-up sets 2026-09-07 19:37:22 +02:00
Duarte Santos d41049defe Merge !106: feat/auto-end set when setting RIR/RPE 2026-09-07 19:37:22 +02:00
Duarte Santos 6d2b22da63 Merge !103: feat: use Epley-based targets for automatic deloads 2026-09-07 19:37:22 +02:00
Duarte Santos f940c378be Merge !101: Detecting progress instead of stall 2026-09-07 19:37:04 +02:00
Duarte Santos d0aaa7205d Coach: a failed run on the phone says why, a message with no plan asks for one, the chat has context
- Phone with own key: the provider's or validator's reason reaches the chat line and toast
  (BYOK_ERRORS + jobErrorText); no more "instance owner" wording where there is none (#58)
- CoachChat: a message with no routines refines/creates instead of reviewing an empty window;
  menu entry "Start a new plan" (Discord "Coach reset" thread)
- payload: refine without a previous plan becomes a create with userNote; the last six chat
  lines travel as `conversation` (documented in common.md, prompts.js regenerated)
- OpenAI model list cut to Chat-Completions models (isChatModel); Gemini placeholder names AQ. keys
- 3 new strings in 14 packs, pt-BR guard 626/616/3db560d7; tests for all of it
2026-09-07 17:05:07 +02:00
Sebastian G a284017a84 feat(checkin): per-side drop-sets and rest-pause bursts
Drops and rest-pause bursts on a one-sided exercise are now logged per limb, matching the L/R main sets: each side carries its own {type, drops, clusters}, edited independently but kept symmetric, while the row's aggregate (type + summed extra volume) stays correct for volume/1RM/history. Also restores the Drop/Burst set-menu options that were wrongly hidden on per-side exercises. Refs #60.
2026-09-07 13:34:14 +02:00
Sebastian G 0cae9867a1 fix(checkin): per-side reps step by one; drop redundant per-side chip
The L/R rep steppers stepped by two (the whole-set rule that keeps a combined total evenly splittable); per side each tap is one rep. Also removes the old '{n} per side' chip, which halved the aggregate total for display and was both redundant and wrong under asymmetry now that each side is entered directly. New 'Per side' tag localised across all languages.
2026-09-07 13:02:05 +02:00
Sebastian G 085dd25150 feat/auto-end set when setting RIR/RPE 2026-09-07 12:36:41 +02:00
Sebastian G af751a718e feat(checkin): track one-sided exercises per side (L/R)
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.
2026-09-07 12:23:39 +02:00
Sebastian G 3685e279a6 removed buggy reorder feature 2026-09-07 11:21:26 +02:00
Sebastian G 23744c921b i18n: translate QR check-in improvement strings for all locales 2026-09-07 10:32:28 +02:00
Sebastian G b7a4277870 added test for reordering qr.code-cards, last selected qr-code-card, edit card 2026-09-07 10:24:06 +02:00
Sebastian G 0ef72ae619 improvements for qr code check-in feature
- 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
2026-09-07 10:16:24 +02:00
Manuel abbd29e309 test: cover small-load double-progression deload 2026-09-06 20:56:49 +02:00
Manuel d6ae10820d feat: add Epley-based automatic deload targets 2026-09-06 20:39:37 +02:00
HenryandClaude Sonnet 5 c63ec2ca6c Combine routines (ENG-9) phase 4: UI surfaces
- 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
2026-09-06 19:27:24 +01:00
HenryandClaude Sonnet 5 3dd2092a8d Combine routines (ENG-9) phase 3: start-flow wiring + resolver call sites
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
2026-09-06 19:27:24 +01:00
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