Commit Graph
800 Commits
Author SHA1 Message Date
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
Manuel a62c75d160 test: update pt-BR locale snapshot 2026-08-30 01:30:14 +02:00
Manuel c71cb09515 feat: expose the double progression rep range 2026-08-30 01:23:20 +02:00
Manuel 0ab0f47259 fix: block empty progression step saves 2026-08-29 22:39:15 +00:00
Zoltan K 41df6cb139 i18n: Add Hungarian (hu) — UI, exercise instructions, and exercise names
Rebased onto the Brazilian-Portuguese localization that landed while this was
in progress — that MR introduced EXERCISE_NAME_LANGS/exerciseNameFor()/
exerciseNameSearchText() in lib/i18n-core.js and a generated-pack convention
(scripts/exercise-name-sources/<lang>.json → scripts/build-<lang>-exercise-
names.mjs → frontend/src/exercise-names/<lang>.js), which is exactly the
mechanism this MR originally invented independently as NAME_LANGS/nameFor().
Dropped that duplicate plumbing entirely and reused theirs instead:

- frontend/src/locales/hu.js — full UI translation, 740/740 keys (654 from
  the original translation pass, 86 more added to cover the drop-set/rest-
  pause, equipment-profile, server-pairing and session-note strings that
  landed in the same window).
- frontend/src/instr/hu.js — unchanged mechanism, all 1,324 exercises' step-
  by-step instructions. The upstream exercise dataset (hasaneyldrm/exercises-
  dataset) still has no hu field, so this stays hand-maintained here.
- scripts/exercise-name-sources/hu.json + scripts/build-hu-exercise-
  names.mjs (mirrors the pt-BR ones) → frontend/src/exercise-names/hu.js —
  all 1,324 exercise names, added to EXERCISE_NAME_LANGS. Exercise names
  now render the same bilingual way pt-BR's do: the translated name alone
  when it's the same loanword as English (e.g. "burpee"), otherwise
  "translated (english)".
- One small generalization to exerciseNameFor(): its loanword-casing
  comparison was hardcoded to `.toLocaleLowerCase('pt-BR')`. Changed to the
  active language instead, so it is correct for hu (and any language after
  it) rather than only for pt-BR. No behavior change for pt-BR itself.
- Workout.remove.test.jsx's locale-coverage test hardcoded an expected pack
  count; already fixed once for the 12th language, re-applied here since hu
  is now the 14th — derives the count from LANGS so this stops recurring.

Translated in bulk with AI assistance and validated programmatically (id
coverage against the 1,324-exercise catalogue, key-set parity across all 13
locales via check-locales.mjs, duplicate/collision and encoding checks) —
not yet proofread line-by-line by a fluent human reviewer, same disclosure
standard scripts/exercise-name-sources/README.md and instruction-sources/
README.md already hold the pt-BR translations to.

node frontend/scripts/check-locales.mjs: 13 locales, 740 keys each, in sync.
Full frontend test suite: 39 files / 533 tests passing.
2026-08-29 23:04:10 +02:00
Duarte Santos dc7ee4e2f4 Coach-Chat: bei einem lokalen Modell auf dem Server keine 'ein bis zwei Minuten' versprechen 2026-08-29 21:36:07 +02:00
Duarte Santos b61f1b6f15 Coach auf dem Handy: ein lokaler Endpunkt bekommt 25 Minuten, und der native Transport schneidet nie zuerst ab 2026-08-29 21:26:54 +02:00
Duarte Santos 0d38bc07f0 Coach: der Server-Fetch wartet so lange wie der Job, nicht 300 s wie undici
Nodes eingebauter fetch bricht nach fuenf Minuten mit 'fetch failed' ab — egal, welches
Job-Timeout gesetzt ist. Ollama hatte den 8k-Prompt tatsaechlich fertig, die API hatte nur
schon aufgelegt. Jetzt ein undici-Dispatcher, dessen Timeouts aus dem Job-Timeout
abgeleitet sind; AbortController gewinnt weiterhin.
2026-08-29 21:24:01 +02:00