Commit Graph
707 Commits
Author SHA1 Message Date
Duarte Santos 5116f8770d Coach: Regeln als cachebarer System-Prompt, Schema-erzwungenes JSON, halbierte Payload
Der Prompt ist gesplittet: die Regeln (byteidentisch pro Task) fahren als System-Message,
nur die Payload wechselt — ein llama.cpp/Ollama-Endpunkt trifft damit seinen KV-Prefix-Cache,
Anthropic cached den Block explizit (cache_control ephemeral). Die Payload selbst: kompaktes
JSON statt Einrueckung, volle Saetze nur fuer die letzten fuenf Sessions (aeltere als eine
Zeile pro Uebung; aggregates zaehlt Stalls ohnehin uebers ganze Fenster), Bibliothek als
{id,n,bp} und fuer Reviews auf 100 gedeckelt. ~14.600 Tokens pro Review vorher, ~5.900 jetzt
plus gecachter Prefix. Dazu: response_format json_schema (Fallback json_object, dann ohne,
wie gehabt), temperature 0 nur auf dem kompatiblen Endpunkt, Gemini/Anthropic bekommen die
Regeln ebenfalls als System-Teil. api 142, frontend 799, mcp 36 gruen.
2026-08-30 23:25:00 +02:00
Duarte Santos aac9f377d5 v1.2.14: twenty community MRs, past-workout logging, Hevy API import, touch polish v1.2.14 2026-08-30 22:49:57 +02:00
Horus Gonzalez 47c1cc446f Exercise picker: the "+" adds now instead of opening the detail sheet
The "+" on a row in the exercise picker read as "add this now" but did
the same thing as tapping the row — opened the detail/config sheet —
so it added nothing until you'd scrolled past sets/reps and found the
real "Add to routine"/"Add exercise" button there.

The "+" now commits with the default config (or, mid-workout in
freestyle, the same last-session-seeded config the sheet would have
opened with) immediately, with a toast confirming what got added.
Tapping the rest of the row is unchanged — it still opens the detail
sheet, for setting sets/reps before adding.

Both call sites (routine editor, and the mid-workout "Add exercise")
get the same fix, since they share the one picker component.

No new strings — reuses 'Add "{0}"' and '"{0}" added to {1}', both
already translated in every locale.
2026-08-30 14:31:56 -06:00
Duarte Santos 60df0cf0dd Touch and scroll polish: chip rows own the horizontal axis, sheets lock an axis before following the finger and close on a flick, the slider drags relative to the knob, steppers repeat on hold, back-navigation restores the scroll position, a dropped row is tappable at once, the picker search stays above the keyboard, tappable rows work from the keyboard, bigger hit areas in the set row 2026-08-30 20:18:50 +02:00
Duarte Santos 20042356d1 Coach-Chat: Kopfzeile bleibt beim Scrollen oben stehen
Name, Avatar und Menue-Knopf sind sticky mit Blur-Hintergrund bis in die Statusleiste,
wie in einem Messenger.
2026-08-30 18:00:19 +02:00
Duarte Santos b23f52a3d7 Coach-Chat: ohne Tab-Leiste, Composer am unteren Rand, kurze Platzhalter
Die Tab-Leiste nahm im Chat nur Platz weg; der Zurueck-Pfeil fuehrt ohnehin zum Plan. Der
Composer sitzt jetzt direkt ueber der Safe-Area, und die Platzhalter passen in eine Zeile
('Nachricht an den Coach…' statt 'Um eine Auswertung bitten oder dem Coach etwas sagen…').
2026-08-30 17:58:54 +02:00
Duarte Santos 833795b5f7 Coach: die neuen Strings in allen zwoelf Sprachen
Die Locale-Paritaetspruefung in test:frontend verlangt jeden Key in jeder Sprache; die 110
neuen Coach-Strings (Verlauf, Insights, Debrief, Vergleich, Chips, Profil-Labels) waren nur
auf Deutsch. pt-BR bekommt sie als Overrides, damit der vererbte pt-PT-Satz und sein
Fingerprint unveraendert bleiben.
2026-08-30 14:56:22 +02:00
Duarte Santos 57a3a3f478 Coach-Chat: Poll nach dem Anstossen neu takten, Kaltstart wartet auf den Store, Karten ohne Ueberlauf
Zwei Fehler aus dem Headless-Durchlauf: refresh() nach einem neuen Job liess die Schleife im
60-s-Leerlauf, der Chat zeigte bis zu einer Minute 'denkt nach', obwohl der Vorschlag laengst
da war; und ein Kaltstart direkt auf #/coach las den leeren Store und schob einen
zustimmenden Nutzer in den Fragebogen. Dazu: Insights-Grid mit minmax(0,1fr) statt 1fr
(lief ueber die Karte hinaus), Wochentag-Aenderungen zeigen Routinen-Namen statt roher Id,
Uebungsnamen werden im Titel statt per CSS gross geschrieben (kein Title Case ueber deutsche
Saetze), 'Rücken' statt 'Zurück' als Koerperpartie, deutsche Profil-Labels im Intake-Bubble.
2026-08-30 14:47:50 +02:00
Duarte Santos 9edcdaa9f3 Coach: Vorschlaege bleiben, Diagramme in den Karten, Workout-Debrief, Vergleich auf der Instanz, Routine verbessern
Was der Coach vorgeschlagen hat, verschwindet nach Ja/Nein nicht mehr: die Chat-Zeile traegt
eine Referenz ins Log, das jetzt jede Aenderung samt before/after (auch abgelehnte), Notizen,
Evidenz und bei Plaenen die Routinen behaelt; eine Recap-Karte im Thread und ein Verlauf-
Sheet oeffnen alles wieder. Unter jeder Review liegen die Zahlen aus dem zitierten Fenster —
Sessions, Dauer, Volumen, Koerpergewicht als Kurve mit Ziel, geschaetztes 1RM erste→letzte
Session, Saetze pro Koerperregion — auf dem Geraet gerechnet (lib/coach-insights.js).

Neu: Job-Art `debrief` (eine Session, kein Planeingriff: Score 1–10, lief gut / beobachten /
naechstes Mal; validateDebrief im Core, eigener Prompt), Vergleich mit anderen auf der
Instanz (Admin-Schalter `community`, pro Person Opt-in serverseitig, Mediane ab drei
Teilnehmern, Epley-1RM, lb→kg; auch als `cohort` im Prompt), und "Routine verbessern"
als fokussierte Review. Schnell-Chips ueber dem Composer, deutsche Strings, Doku, Changelog.
Tests: api 136, frontend 799, mcp 36.
2026-08-30 14:31:10 +02:00
Duarte Santos e1fadadadb curated2: past-workout strings in all 14 languages; pt-BR guard re-fingerprinted 2026-08-30 14:28:12 +02:00
Duarte Santos 95f8346124 curated2: log a past workout — History entry point, date/time/duration/routine sheet, replace-or-add prompt, workout screen without clock or rest timers, no PRs or confirmed weights on finish 2026-08-30 14:28:12 +02:00
Duarte Santos 346e1110c7 curated2: backfill helpers — a past workout is filed by date, the session entries are built by one shared function 2026-08-30 14:28:12 +02:00
Duarte Santos cc878dd353 curated2: review fixes — touch drag (!45), deload seeds (!28), rep-range typing (!69), rebuilt rows on config change (!54), swap keeps history (!43), Hevy retry/dedup/aliases (!30), HTTPS doc (!67), locale gaps 2026-08-30 14:18:09 +02:00
Duarte Santos b3340e31b5 Coach: eine Session ist kein Trend; Changelog, Doku und .env fuer Chat, Timeout und Bibliotheks-Deckel
Die Review-Regel verbietet strukturelle Aenderungen unter drei Sessions oder einer Woche
Daten — qwen2.5:3b hatte auf Staging nach EINER Session eine Bein-Uebung entfernt, 'weil
keine Beinarbeit'. Dazu die Changelog-Eintraege fuer den Chat, das Admin-Dashboard, den
Job-Timeout und den 160er-Deckel, COACH_JOB_TIMEOUT_MS in .env.example und in AI_COACH.md,
und Schritt 3 der Doku beschreibt den Chat statt des alten Intake-Buttons.
2026-08-30 13:56:38 +02:00
Duarte Santos 148ef9fbbb curated2: !69; Thai/Hungarian get the swap strings; pt-BR guard re-fingerprinted 2026-08-30 13:40:58 +02:00
Duarte Santos adc655ebd3 curated2: !34 2026-08-30 13:38:54 +02:00
Duarte Santos 41286db244 curated2: !54 2026-08-30 13:37:54 +02:00
Duarte Santos 0e3b8fa74b curated2: !43 2026-08-30 13:36:31 +02:00
Duarte Santos 250b164d2d curated2: !41 (a move re-points the rest countdown instead of cancelling it) 2026-08-30 13:35:47 +02:00
Duarte Santos d36fa68a61 curated2: !48 (code only; its test file predates the current mock setup) 2026-08-30 13:34:56 +02:00
Duarte Santos fcfe7c4757 curated2: !52 2026-08-30 13:34:14 +02:00
Duarte Santos f3d65ffb10 curated2: Thai and Hungarian get the move-control labels; !27's test file declares its DOM environment 2026-08-30 13:33:04 +02:00
Duarte Santos f0777e362a curated2: !68 (Thai and Hungarian both land: 14 languages) 2026-08-30 13:31:30 +02:00
Duarte Santos 63ca5fdab2 curated2: !66 without the unrelated exNotes default (nothing reads it) 2026-08-30 13:31:19 +02:00
Duarte Santos 8a20a94d4b curated2: !64 2026-08-30 13:31:08 +02:00
Duarte Santos f5e0a33924 curated2: !67 2026-08-30 13:31:08 +02:00
Duarte Santos e0241b804e curated2: !30 2026-08-30 13:30:59 +02:00
Duarte Santos 77996ec167 curated2: !45 2026-08-30 13:30:59 +02:00
Duarte Santos de3e8e549e curated2: !27 2026-08-30 13:30:38 +02:00
Duarte Santos 67871fe66d curated2: !29 2026-08-30 13:30:38 +02:00
Duarte Santos a65287de0f curated2: !28 2026-08-30 13:30:38 +02:00
Duarte Santos 44fcd7ead6 curated2: !47 2026-08-30 13:30:16 +02:00
Duarte Santos 8e7320d400 curated2: !46 2026-08-30 13:30:16 +02:00
Duarte Santos 81f5c96d84 curated2: !66 2026-08-30 13:30:16 +02:00
Duarte Santos c2d7146eff curated2: !65 2026-08-30 13:30:16 +02:00
Duarte Santos d49e0439ee curated2: !38 2026-08-30 13:30:16 +02:00
Duarte Santos 37bbaeaee2 changelog: v1.2.13 section; the v1.2.12 text describes v1.2.12 again 2026-08-30 13:18:17 +02:00
Duarte Santos 3ce1a7c055 v1.2.13: hold the save on an empty progression step (!60 follow-up) v1.2.13 2026-08-30 13:17:35 +02:00
Duarte Santos aa42040f55 changelog: !60 also holds the save on an empty step 2026-08-30 13:17:04 +02:00
Duarte Santos 0410ea34be Merge merge request !60 (block empty progression step saves) 2026-08-30 13:16:00 +02:00
Duarte Santos f1c4c66729 v1.2.12: six community fixes for the active workout and exercise settings v1.2.12 2026-08-30 13:14:50 +02:00
Duarte Santos 0e74ad303c Workout: a rest countdown belongs to the exercise that started it; removing another exercise keeps it running 2026-08-30 13:13:45 +02:00
Duarte Santos 0c9e473b68 css: cap the list row's value instead of reserving space for it
!37 diagnosed this correctly — a long value did squeeze the title to nothing.
flex-basis:45% cures that but hands the value 45% of every row, including the
Sets/Rest/Reps rows where the value is two characters and the title is long.
max-width is the same intent at the right lever: measured, it matches !37 on
both long-value cases and keeps the full 328px title on short ones.
2026-08-30 13:13:45 +02:00
Duarte Santos 358d39590a Merge merge request !42 (workout flow after adding an exercise mid-session) 2026-08-30 13:13:01 +02:00
Duarte Santos ce4a30002a Merge merge request !60 (decimal progression steps below one) 2026-08-30 13:13:01 +02:00
Duarte Santos 3026d92cc4 Merge merge request !59 (stop timed-set countdowns when discarding a workout) 2026-08-30 13:13:01 +02:00
Duarte Santos ec258e1367 Merge merge request !58 (deleted custom exercises stay in recovery maps) 2026-08-30 13:13:01 +02:00
Duarte Santos 9006cccb50 Merge merge request !51 (stop the rest timer when removing the exercise it belongs to) 2026-08-30 13:13:01 +02:00
Duarte Santos 3d04dbb1e7 Merge merge request !37 (the routine row's value no longer squashes its title) 2026-08-30 13:13:01 +02:00
Manuel 5e6c4d1a75 fix: preserve per-side double progression reps 2026-08-30 01:37:14 +02:00