Commit Graph
596 Commits
Author SHA1 Message Date
Luke M 44138e07d7 feat: add starter plan chooser and loading flow 2026-09-03 11:36:39 +02:00
Luke M 89fdd1b787 feat: add additional starter plan definitions 2026-09-03 11:36:27 +02:00
Sebastian G 0f1500b102 i18n and tests 2026-09-03 11:24:17 +02:00
Sebastian G a797729dd0 feat(checkin): gym membership QR check-in (mobile-only)
Add a mobile-only gym check-in screen: saved membership codes shown as
QR codes in a swipeable carousel, reached from a 'Check in' card on Home.
Cards are added by typing the code, importing a photo, or scanning with
the camera. Only the code value + symbology are stored — never a photo;
the QR is regenerated from the value on every display.

Rendering uses lean-qr (MIT); camera scan and photo decode use
@capacitor-mlkit/barcode-scanning (Apache-2.0), pinned to the 7.x line
for Capacitor 7. Both are documented in NOTICE.md and bundled only in the
mobile build — the whole feature folds away in web/demo builds via MOBILE,
so nothing new lands in the web bundle. No backend/schema change: gymCards
rides the existing state sync and backup like every other field.

Non-QR symbologies are readable but not reproducible, so capture refuses
them rather than storing a code that would display wrong bars.

Native wiring: CAMERA permission + ML Kit barcode_ui meta-data
(AndroidManifest), NSCameraUsageDescription (iOS Info.plist), mlkit plugin
registered via cap sync. Debug builds get an applicationIdSuffix '.test'
and an 'OpenGymTest' label so a test build installs alongside the real app.
2026-09-03 11:10:58 +02:00
Sebastian G ab95bacaa1 improved RIR edit handling 2026-09-03 10:00:53 +02:00
Manuel 6013874e99 fix: require explicit next after completed exercise 2026-09-02 21:07:48 +02:00
Manuel 697e482033 fix: capture working weight automatically 2026-09-02 17:48:53 +02:00
arhx91 c6d8e873ce Fixed and tested deload spiral 2026-09-02 17:39:09 +02:00
Sebastian G 5e42bd29d6 feat(workout): colour-coded RIR/RPE quick picker 2026-09-02 17:22:02 +02:00
Sebastian G 5375dcc758 Merge remote-tracking branch 'origin/main' into feat/copy-routine
# Conflicts:
#	frontend/src/lib/pt-br-locale.test.js
2026-09-02 13:29:30 +02:00
Ameer KhanandClaude Opus 5 733dfa9d37 MCP: preview_session — what a routine will actually open with
get_routine reports what a routine stores. That is not what the athlete
sees. buildSets() consults the confirmed working weight and the previous
session's reps first, and applyPrescription() then overwrites the weight
with whatever the progression policy decided — so the routine's own
sets/reps/weight are the last fallback, not the first.

The gap is not academic. A routine holding "squat 3x8 @ 60 kg" opens at
75 kg when Greyskull deloaded from the last logged session, and an LLM
reading get_routine will confidently name a weight the app never shows.
Editing the routine to fix it changes nothing, which is worse.

preview_session mirrors beginWorkout() exactly — buildSets,
applyPrescription, applyIntensifierPlan — and returns, per exercise:
the planned target, the policy's decision with its stated reason, the
opening set rows including planned drop sets, and which of plan /
confirmed weight / history each number came from. `overridden` lists
just the exercises where the stored plan and the opening session
disagree, so the discrepancy cannot be scrolled past.

Read-only, no new dependency, one new tool registration. This is the
Phase 1.5 `progression_next` item from the README roadmap, named for
what it answers.

9 tests: precedence in both directions (plan wins with no history,
confirmed weight beats plan, policy beats both), reps carrying from
history, drop-set rows, explicit routine_id, rest day, unknown id.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DUgSPgBBqMYdy4vnKjK3bE
2026-09-02 08:18:56 +00:00
mzspicoli ad4bee99be Timer flash: blink the real theme instead of a black/white overlay, skip it while the app is backgrounded
The completion alert (Settings → "Flash screen when timer ends") laid an
opaque black/white rectangle over the whole screen, so the app's own UI
flickered into view between pulses. It now flips document.documentElement's
data-theme (light/dark) three times and settles back on whatever theme the
user actually had — same duration, no overlay, no rectangle. Fully dark ->
light, dark, light; fully light -> dark, light, dark; either way it lands
back where it started.

Separately: the rest/work timers reuse their tick on 'visibilitychange' to
stay accurate after the tab is throttled in the background. That reuse had
a side effect — reopening the app (or the tab regaining focus) after the
countdown had already finished while hidden replayed the completion beep,
vibration, flash and toast, even though nothing was actually watching when
it ended. Now those perceptible effects only fire if the countdown reaches
zero while the app is genuinely visible; finishing hidden only sends the
existing push notification, and reopening later stays silent.
2026-09-02 07:27:30 +02:00
Duarte Santos 272bf785ee Website: Kaffee auch als Menue-Zeile, und der Becher bleibt grau
Auf dem Handy war der Becher in der Leiste gelb -- das war zu laut. Jetzt
ist er ueberall dasselbe Grau wie die uebrigen Kopf-Links.

Dazu kommt die Zeile im Menue-Sheet zurueck, direkt unter Discord: der
Becher steht rechts am Rand, genau dort, wo GitLab seine Sterne und
Discord seine Mitgliederzahl hat. Beide Wege bleiben -- Becher in der
Leiste und Zeile im Menue.

Cache-Bust auf ?v=16.
2026-09-01 19:02:22 +02:00
Duarte Santos d9e50a4b5b Website: der Kaffee-Link sieht aus wie ein Link, nicht wie ein Knopf
Auf dem Desktop war die gelbe Pille zu laut neben dem Download. Jetzt ist
es derselbe graue Text wie GitLab und Discord, nur mit dem Becher davor --
kein Gelb, kein Rund.

Auf dem Handy bleibt der Becher in der Leiste statt ins Menue-Sheet zu
fallen: rechts neben dem Download, ohne Text und darum im BMC-Gelb, damit
das Logo allein noch etwas sagt. Der Sheet-Eintrag faellt dafuer weg.

Cache-Bust auf ?v=15.
2026-09-01 18:49:47 +02:00
Duarte Santos 5080a8e384 Website: Kaffee-Link neben Discord in den Header
Der Header hat bisher nur unten im Elsewhere-Block auf Buy Me a Coffee
gezeigt. Jetzt steht der Link mit dem BMC-Becher direkt neben Discord --
als hohle Pille, damit der volle Knopf der Download bleibt.

Auf allen vier Seiten identisch (inkl. der api.html-Vorlage im
Generator), unter 1000px faltet er wie die anderen ins Menue-Sheet.
Cache-Bust auf ?v=14.
2026-09-01 18:42:27 +02:00
Duarte Santos d93258ad3f Doku: die vier Features nachtragen, die noch nirgends standen
README, Startseite und Referenz beschreiben jetzt, was seit v1.2.14 auf main
liegt und bisher nur im Code stand:

- Stangengewicht/Scheiben-Rechnung (README-Punkt, Feature-Karte, Absatz unter
  "Running a workout"),
- Wochenstart Montag/Sonntag,
- die Ruhetagszeile auf Home, die die naechste Einheit nennt — als Zusatz am
  vorhandenen "Guided workouts"-Punkt, nicht als zweiter fast gleicher,
- "Exercise animations: Full/Small/Hidden" (887a036), das seit dem Release
  ueberhaupt nicht dokumentiert war.

Dabei zwei Zaehler nachgezogen, die seit den letzten beiden Sprachen falsch
waren: die Feature-Karte sagte "13 languages / instructions in 11", about.html
"learned 13 languages" — es sind 14 und 12, und die Uebungsnamen sind auch auf
Ungarisch zweisprachig. Die Karten-Ueberschrift zaehlt jetzt sechzehn.

Kein Versionsbump: main bleibt unreleased, das sammelt sich fuer v1.2.15.
2026-09-01 14:40:36 +02:00
Duarte Santos 44bb67a71c Wochenstart: Montag oder Sonntag, und die ganze App folgt
Wo eine Woche anfaengt, ist eine oertliche Konvention, keine Tatsache: Europa
faengt meist am Montag an, Amerika und weite Teile Asiens am Sonntag. Die App
hat Montag vorausgesetzt — nicht an einer Stelle, sondern an sechs, jede mit
ihrer eigenen Kopie von `(getDay() + 6) % 7`.

Neu: Einstellungen → Allgemein → "Woche beginnt am", zwei Knoepfe. Gespeichert
wird S.weekStart als getDay()-Index, Standard 1 — jedes Profil, das es vor
dieser Einstellung gab, sieht also weiter genau die Woche, die es kennt.

Gelesen wird das Feld nirgends direkt. In lib/format.js stehen jetzt
weekStartOf, weekOrder, weekDayOffset und startOfWeek, und alles, was eine
Woche zeichnet oder gruppiert, fragt dort nach: die Wochenliste im Plan, der
Tage-Streifen und der Wochen-Zaehler auf Home, das Kalender-Raster samt
Spaltenkoepfen, die Wochen-Serie, das 7-Tage-Fenster der Muskelbilanz (das
"diese Woche" heisst und nicht "die letzten sieben Tage") und die Wochenpunkte
im Anstrengungs-Diagramm. Der geteilte Plan-Ausdruck laeuft in der Reihenfolge
dessen, der ihn exportiert.

weekKey() gibt dafuer nicht mehr die ISO-Kalenderwoche zurueck, sondern das
Datum des ersten Wochentags. Der Schluessel wird nur verglichen, nie angezeigt
und nie gespeichert — und "2026-35" ist Montag-definiert, es gibt kein
Sonntag-Gegenstueck, auf das man ausweichen koennte.

Die Hilfsfunktionen kommen mit jedem Wochentag klar; angeboten werden nur zwei.
Ein Samstagsstart braeuchte einen Locale-String und sonst nichts.
2026-09-01 14:23:23 +02:00
Duarte Santos 9d7abdab44 Admin-Dashboard: jede Karte sagt in einem Satz, wofuer sie da ist
Das Dashboard war fuer jemanden geschrieben, der es taeglich sieht. Wer es
zweimal im Jahr aufmacht, muss sich erinnern, was "synced 3d ago" heisst, ob
ein Invite-Code weg ist, wenn er widerrufen wird, und was mit den Daten
passiert, wenn ein Konto deaktiviert wird. Alles Antworten, die die Seite
kennt und nicht gesagt hat.

Jede Karte oeffnet jetzt mit einem Satz: die Invite-Karte sagt, ob Anmeldung
ueberhaupt invite-only ist (steht laengst in /api/admin/users, wurde nur nie
angezeigt) und dass jeder Code einmal funktioniert; die Nutzer-Karte sagt, dass
Deaktivieren nichts loescht; das Aktivitaetslog sagt, was drinsteht. Der
Deaktivieren-Knopf trägt denselben Satz noch einmal direkt darunter, weil man
genau dort zoegert.

Widerrufen fragt jetzt nach, statt sofort zu loeschen — die einzige Aktion auf
der Seite, die ohne Rueckfrage etwas kaputtmachen konnte. Codes sind in
"Unused · tap to copy" und "Already used" getrennt, sind selbst tippbar und
haben zusaetzlich einen Kopier-Knopf mit 44px-Trefferflaeche.

Optisch: `tag` wird `adm-pill` — ein Wort mit Punkt davor, statt farbigem
Kleingedrucktem. Kuerzel ausgeschrieben ('3m ago' → '3 min ago', 'Active 7d' →
'Active 7 days', 'ex 2/5' → 'exercise 2 of 5', 'off' → 'disabled'), Trennlinien
auf `var(--hair)` wie im Rest der App, leere Zustaende sagen, was zu tun ist.

Neu: frontend/src/admin.css. Englisch-only wie die Seite selbst, also keine
Strings in den Sprachpaketen.
2026-09-01 14:16:09 +02:00
Duarte Santos ddaaf12929 Home: an einem Ruhetag steht dort, wann die naechste Einheit ist
Die Today-Zeile war an einem Ruhetag eine Sackgasse: "Pausentag", Punkt. Die
Antwort auf die naechstliegende Frage — wann dann? — steht schon im State, nur
hat sie nie jemand ausgesprochen.

nextTrainingDay() sitzt neben effectiveRoutine und schaut ab morgen sieben Tage
voraus. Es nimmt ein ISO-Datum statt die Uhr zu lesen, damit Aufrufer und Tests
sich einig sind, was "heute" ist. Ein Tag mit einer Routine ohne Uebungen zaehlt
nicht: den zu starten landet in einer leeren Session, ist also keine Antwort
(dieselbe Bedingung, die auch die TabBar vor dem Start prueft). Verschiebungen
aus dayPlan gelten in beide Richtungen — ein auf 'rest' gesetzter Tag faellt
raus, ein per Datum eingeplanter kommt rein. Ist die ganze Woche Pause: null,
und die Zeile bleibt wie sie war.

Angezeigt nur, wenn heute wirklich nichts ansteht — kein laufendes Training,
keine Routine, kein schon erledigtes Training. Strings in allen vierzehn
Sprachen, pt-BR-Fingerabdruck nachgezogen.
2026-09-01 14:13:36 +02:00
Duarte Santos 45c4756cd0 Stangengewicht: Scheiben-Rechnung pro Seite, pro Uebung einstellbar
Wer an der Stange arbeitet, rechnet vor jedem Satz dasselbe im Kopf: was muss
pro Seite drauf. Die App kennt beide Zahlen laengst — das Gesamtgewicht steht
im Satz, der Stangentyp in der Uebung — und hat sie nie zusammengebracht.

Neu: lib/bar.js mit den ueblichen Stangen (Olympia 20 kg, EZ 10, Multipresse 9,
Trap 25) und den Markierungen, die ein lb-Profil wirklich im Rack hat (45, 25,
20, 55) — keine umgerechneten 44,1 lb, die auf keiner Stange stehen. Das
Stangengewicht liegt in S.barWeights pro Uebung und in der Profil-Einheit, wie
jedes andere Gewicht im State: ein Einheitenwechsel beschriftet um und rechnet
nicht, sonst waere die Stange die eine Zahl, die unter dem Nutzer wegrutscht,
waehrend die Totale drumherum stehen bleiben.

Eingetragen wird weiterhin das Gesamtgewicht. Historie, Progression und 1RM
bedeuten exakt das, was sie vorher bedeutet haben — die Stange ist reine
Anzeige-Metadatei und speist nur die Rechnung "(Total − Stange) / 2".

Im Workout haengt der Chip "Stange 20 kg · 30 kg pro Seite" am Satz, der als
naechstes dran ist (erster offener; ist alles abgehakt, der schwerste). Ein
Tipp darauf oeffnet dieselbe Stepper-Zeile, die auch in Uebungsdetail und
Konfiguration steht — auf 0 gestellt faellt die Uebung auf den Standard ihres
Stangentyps zurueck, dieselbe "0 loescht den Schluessel"-Form wie bei den
nullbaren Satzfeldern.

Strings in allen vierzehn Sprachen; der pt-BR-Vererbungs-Fingerabdruck ist
nachgezogen (4 Overrides, 3 geerbt).
2026-09-01 14:11:51 +02:00
Sebastian G ca9829d2b5 test: update pt-BR override count for Copy routine strings (338 -> 340)
The Copy routine feature added 2 pt-BR override strings but the snapshot
count in pt-br-locale.test.js was not updated, failing the pipeline.
2026-09-01 09:47:33 +02:00
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