Commit Graph
575 Commits
Author SHA1 Message Date
Sebastian G e854d9dce7 i18n: add translations for Copy routine in all 14 locales 2026-08-31 22:21:09 +02:00
Sebastian G 19f09dcccc feat: add copy routine button to RoutineEdit view 2026-08-31 21:10:36 +02:00
Manuel 6fece17197 fix: align manual weight normalization 2026-08-31 19:12:18 +02:00
Manuel 40ae5a6f9d fix: use exercise weight step for workout controls 2026-08-31 18:54:22 +02:00
Duarte Santos 75fb168a03 website: the Discord member count next to the star count
The nav has advertised the repo's stars since the GitLab move but said nothing about
the community, which is by now the larger number of the two. Both links now carry
their count: GitLab ★ 185, Discord 1,084.

Discord hands an invite's guild counts to anyone who appends ?with_counts=1 — no bot
token, no server widget to switch on, and the API reflects the caller's Origin, so the
browser may read it. The count is fetched exactly like the repo counts: once per tab,
cached in sessionStorage, and failing soft — a blocked or revoked request leaves the
link reading "Discord", the way it read before.

The numbers panel on the home page gains a sixth cell for it and loses the "repo" in
its caption, since the counts are no longer all from the repo. Six cells divide evenly
where five left a hole, so the row that used to span the full width at the narrow
breakpoint goes away: six, then three, then two.
2026-08-31 18:28:50 +02:00
Space_Hermes 1224b05d34 fix(workout): make progression guidance actionable 2026-08-31 15:48:10 +02:00
Duarte Santos 523cfc9df7 website: one header on every page, one contents drawer that starts closed
The docs page used to swap the site's links for its own three and unfold the
chapter rail on arrival, so half the navigation vanished the moment you opened
the documentation and a sidebar you never asked for was already there. Both are
gone. Every page — home, about, docs, API — now serves a byte-identical nav bar
and navigation sheet; which page you are on is marked with aria-current at
runtime, so nothing is ever added or dropped from the markup to say it.

The rail is now separate from the header and the same object everywhere: closed
in CSS at every width, opened by one Contents pill, closed by the ✕ in its own
sticky header, by Escape, or by a tap on the dimmed page. No preference is
remembered any more and the stale og_rail key is cleared on sight. One panel
controller in site.js drives both the sheet and the drawer, traps focus while
either is open and hands it back to the button that opened it. api.html no
longer carries a private copy of any of this.

Also: visibility is switched at one instant instead of being transitioned —
interpolating it left both panels hidden through their own opening animation,
so they popped in at the end and nothing inside could take focus until then.
Long inline code breaks instead of widening the page (docs ran 21px wide of a
320px screen), the header folds at one breakpoint rather than three, and every
control in the rail clears 44px.

246 headless assertions across four pages and five widths: nav and sheet
markup identical, drawer shut on first paint, no horizontal overflow, focus
returned, reduced motion honoured, no console errors.
2026-08-31 14:32:32 +02:00
Duarte Santos 572f50cd4f API reference rebuilt: Swagger UI out, a generated static page in the site's own design
api.html was Swagger UI with the site's colors painted over it — a foreign layout in
a black-and-green frame. It is now generated: scripts/build-api-docs.mjs reads
api/openapi.yaml and emits the whole reference as static HTML, so the page needs no
runtime rendering and no CDN bundle. One card per endpoint (method badge, path, one
line of summary) that unfolds into the description, what authentication it wants, the
parameter and body tables and the response codes; the named schemas live once in their
own section and every type links to them. The chapter rail is the site's own .side
markup — the hamburger sheet on a phone, a Contents drawer from 980px up.

The generator is deterministic and re-runnable: node scripts/build-api-docs.mjs
rewrites website/api.html, and the file says so in its first comment. js-yaml is a
build-time devDependency in the repo root; nothing new ships to the browser.

Also drops gym.duarte-santos.ch as an example server from the spec. That instance is
semi-private, and the docs have no business pointing anyone at it: the servers are now
the relative / and a neutral https://opengym.example.com ("your self-hosted instance").
2026-08-31 14:08:24 +02:00
Duarte Santos f2b3a0f028 API documented: hand-written OpenAPI 3.1 spec for every route in api/server.js (passkeys, sync, push, pairing, admin), Swagger-UI page api.html on the site, API link in the nav 2026-08-31 11:06:13 +02:00
Duarte Santos 887a036832 Hide exercise animations during a workout: gifSize gains 'off' — Settings segment Full/Small/Hidden, workout media collapses entirely when hidden, strings in all 14 languages; pt-BR guard re-fingerprinted 2026-08-31 11:02:57 +02:00
Duarte Santos 7dd5b34eb3 Stangengewicht: Stepper in Uebungsdetail und Konfiguration, Scheiben-pro-Seite-Chip im Workout, alle zwoelf Sprachen, Tests 2026-08-31 11:02:04 +02:00
Duarte Santos 9892f735d3 Stangengewicht: Bibliothek und Store — pro Uebung, in der Profil-Einheit, Defaults je Stangentyp (kg und lb) 2026-08-31 11:02:04 +02:00
TheophileDiot 5370e2184c BodyMap tests: import the geometry before the first render, not inside the wait 2026-08-31 10:46:54 +02:00
TheophileDiot 3214dfde9d mcp: get_routine reports an exercise's own rest 2026-08-31 10:46:54 +02:00
Manuel 1bec57bb3f fix: use available width for exercise selector 2026-08-31 09:57:54 +02:00
Manuel 63803ba2b0 fix: keep no-progression routine targets 2026-08-31 09:07:40 +02:00
Duarte Santos 1cb4909901 Coach-Doku: ehrliche Warm-Zeiten (eine bis wenige Minuten, je nach CPU)
Gemessen auf der Staging-VM (~12 Prompt-Tokens/s): Review mit frischer Payload 222 s warm;
'etwa eine Minute' gilt erst auf moderner Hardware.
2026-08-31 08:46:09 +02:00
Duarte Santos 29dbdb71c6 Coach-Review-Payload: volle Saetze nur fuer die letzten drei Sessions, Bibliothek auf 60
Auf einer CPU mit ~12 Token/s Prompt-Eval ist jedes Payload-Token Wartezeit. Drei volle
Sessions decken genau das Fenster, unter dem der Review-Prompt ohnehin keine strukturellen
Aenderungen erlaubt; aeltere Sessions bleiben als Einzeiler, aggregates zaehlt Stalls
uebers ganze Fenster.
2026-08-31 08:34:32 +02:00
Duarte Santos 188979151b website: topic rail instead of the crowded top nav, GitHub notice retired
The nav bar keeps only the brand, GitLab, Discord and the download button.
Everything else moves into a topic rail — a title/subtitle list of every
section, fixed beside the page on wide screens and behind the hamburger
below 1300px, with a scrollspy lighting the section under the reader.
The GitHub-suspension notice comes off all three pages.
2026-08-31 08:25:39 +02:00
Duarte Santos 10f0844bf9 Coach-Warmup: die Review zuletzt waermen, ihr gehoert der einzige Slot
Mit OLLAMA_NUM_PARALLEL=1 gibt es einen Live-Slot, und er gehoert dem letzten Prompt; die
Wiederherstellung grosser Prompts aus dem Cache ist nicht verlaesslich. Der Warmup endete
mit dem Debrief-Prefix und klaute der Review den Slot: Review nach Debrief-Ping 402 s,
nach Review-Ping 26 s. Also: debrief zuerst, review zuletzt.
2026-08-31 08:25:03 +02:00
Duarte Santos ae9d6785ac Coach: Admin-Karte als Setup-Assistent, sichtbarer Einstieg im Plan, Doku-Kapitel auf der Website
Solange der Coach aus ist, zeigt die Admin-Karte einen sauberen Pitch mit einem Knopf statt
halb ausgegrauter Regler; danach ein echter Assistent: nur der naechste offene Schritt ist
aufgeklappt, ein Fortschrittsbalken zaehlt mit, fertige Schritte falten sich zur Quittung.
Arbeitende Knoepfe sind getoent statt grau (List models, Replace key), der deaktivierte
Test-Knopf erklaert, welcher Schritt noch fehlt, Provider-Chips haben einen klaren
gewaehlt-Zustand. Der Coach-Einstieg im Plan ist eine deutliche Karte mit Farbverlauf statt
einer Settings-Zeile. Website: das #coach-Kapitel erklaert Pipeline, Provider, den komplett
lokalen Betrieb inkl. "jedes Modell, das du pullen kannst, kannst du nutzen" und ehrlicher
RAM-/Tempo-Beratung; docs/AI_COACH.md ergaenzt Modellwahl und Performance auf kleinen Boxen.
2026-08-31 08:07:43 +02:00
Duarte Santos e134914026 Coach: der Server waermt den Prefix-Cache selbst, und die Tipp-Blase glaubt dem letzten Lauf
Der KV-Prefix-Cache eines lokalen Endpunkts stirbt mit dem Ollama-Prozess; der erste Job
danach zahlte still den Kaltstart (~8 min statt ~1). Jetzt pingt der api-Prozess bei Boot
und alle 30 Minuten die Review- und Debrief-Prefixe an den kompatiblen Endpunkt — warm
kostet der Ping ein Token, kalt macht er die teure Lesung genau einmal, auf niemandes Uhr.
Cloud-Provider werden nie gepingt. Und estimateMs nimmt min(Median, letzter Lauf): nach
einer Beschleunigung schleppte der Median drei alte 8-Minuten-Laeufe mit.
2026-08-31 07:57:48 +02:00
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