Commit Graph
644 Commits
Author SHA1 Message Date
root 57f04febbe feat(i18n): add strength-view strings to all locales 2026-08-12 20:13:35 +02:00
Space-Hermes 23a5b6c228 fix: smaller same-area items from the review - future-dated clamp, LB_TO_KG export, value-based bodyweight guard 2026-08-12 17:43:20 +02:00
root ed666df237 fix: fatigue round-4 (zero-load strength, history-stable reference, real Stats view tests + committed probe) 2026-08-12 17:25:57 +02:00
root a95104b675 fix: back-button history accounting (explicit pushed-entry counter, locked-sheet popstate) + mouse-drag slider opt-out 2026-08-12 17:25:27 +02:00
root edde72f9cb fix: superset flow round-3 (rest gate for ordinary exercises, high-water progress, top-weight owns advance, Workout coverage) 2026-08-12 17:20:50 +02:00
root 237d1c5cf2 fix: decrement cur when the removed entry sits below it (superset picker case) 2026-08-12 17:20:04 +02:00
root b42d2baa6e fix: make session exercise removal timer-safe 2026-08-11 23:18:45 +02:00
root f32c4d0b73 feat: remove exercise from a session (confirm; superset picker) 2026-08-11 23:01:20 +02:00
Duarte Santos 528cb70a79 Changelog v1.2.6: Session-Supersets, Muscle-Map-Overlay, Medien-Pfade und Import-Aliase 2026-08-11 22:37:31 +02:00
Duarte Santos a7d7f5c24b Fix media paths on routine detail, map the Hevy names that fell through
Two reported bugs, both small:

exercise media (#79): IMG_BASE/GIF_BASE were relative, so on /plan/r/:id --
the app's only two-segment route -- the browser resolved them against the
route and asked for /plan/r/img/..., which nginx's extension block 404s
instead of falling through to index.html. Blank images, nothing in the
console. Absolute defaults; the VITE_* overrides are absolute already, so
the Pages demo and the mobile build are unaffected.

import aliases (#74): Treadmill, Goblet Squat, Cycling and Cable Core
Pallof Press arrived as custom exercises because no word-overlap can reach
the catalogue's names for them. Added those plus the neighbours around
them, and a test file -- matchExercise had none.

Also documents that VITE_IMG_BASE/VITE_GIF_BASE are build-time, which is
why setting them next to docker compose does nothing on a prebuilt image.
2026-08-11 22:35:43 +02:00
Duarte Santos 96eed3660b Merge remote-tracking branch 'pr/59' 2026-08-11 22:30:51 +02:00
Duarte Santos fe585097c8 Merge remote-tracking branch 'pr/64' 2026-08-11 22:30:09 +02:00
Duarte Santos d8c734a2b6 muscle overlay: route the exercise detail tags through smOf too
#67 stopped mutating EXDB and moved the secondary-muscle additions into a
derived smOf() overlay, but ExerciseDetail still read the raw ex.sm. The
four curated row additions (0027, 0293, 0499, 0861) were silently dropped
from the detail sheet's tag row -- "rear deltoids" was the third visible
tag on all four, so the slice(0,3) did not hide it.

Caught on merge, before it shipped.
2026-08-11 22:30:04 +02:00
Duarte Santos 087ce34674 Merge remote-tracking branch 'pr/67' 2026-08-11 22:29:14 +02:00
Duarte Santos 157ca90f3b Merge remote-tracking branch 'pr/60' 2026-08-11 22:29:05 +02:00
root 15c29029c1 neutral superset header text (mirror live) 2026-08-08 10:46:43 +02:00
root 030a609427 translate superset action labels (11 locales) 2026-08-08 10:11:26 +02:00
root 8bbf59c001 remove accidentally committed node_modules symlink 2026-08-08 10:09:49 +02:00
Space_Hermes b29a3f6bb0 feat: create and remove session supersets 2026-08-08 02:24:22 +02:00
root bee9b64b78 progression: guard set growth against an all-warm-up entry (no work seed, no infinite loop) 2026-08-07 17:03:57 +02:00
AlexandClaude Opus 5 5d8332d11d Coach: the store field the whole UI reads, which was never ported
The entry point in the previous commit was necessary but not sufficient: every
Coach surface gates on coachAvailable(config, user), config comes from
useStore(s => s.config), and that field does not exist. 4/6 brought the views
across and left behind the one line of store they all depend on.

So `config` was undefined at all five call sites, the gate was false on every
instance, and the feature was invisible everywhere — no row on Plan, and
/#/coach redirecting straight back to /home. Enabled, credentialed, a real
round trip through the provider passing, and no way in. Indistinguishable from
"this instance has no Coach", which is exactly why it survived review: the
failure mode is silence.

Adds `config: null` and the boot-time fetch, ahead of /api/me because instance
capabilities are public and needed whether or not anyone is signed in.

Two tests pin it. One asserts the gate opens for the exact shape GET
/api/config returns, and stays shut for `undefined` — the bug itself. The other
asserts the store source still declares the field and still fetches it; that one
reads the file rather than the live store, because useStore touches `document`
at import time and cannot be instantiated in this environment. Crude, but it
fails on precisely the two edits that broke this.

frontend 406/406, build clean.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 15:27:02 +01:00
Duarte Santos 35181af2aa Merge remote-tracking branch 'pr/48' 2026-08-07 16:24:44 +02:00
root 01072ef5e3 warm-up round 3: applyPrescription/readSession never touch warm-up rows; per-phase set numbering; regression tests 2026-08-07 15:19:11 +02:00
root 86ac937d5d warm-up carve-outs (effort ratio, muscle map), cascade/warmup row helpers with tests, dead guard removed, total+work set counts 2026-08-07 15:16:19 +02:00
root 9cc645c755 fix warmup 1RM test equality 2026-08-07 15:15:51 +02:00
root cbb3630423 warm-up sets: excluded from 1RM and progression only (volume semantics kept); tests 2026-08-07 15:15:51 +02:00
root 0109857249 cascade: fixed-weight only, never overwrite done sets 2026-08-07 15:15:51 +02:00
root edb3e42c43 session UX: warm-up phase separation, add/remove warm-up sets, weight cascade to following sets 2026-08-07 15:15:51 +02:00
Duarte Santos ab1bfe31b6 coach: Plan-Einstieg nutzt die schon uebersetzten Coach-Strings 2026-08-07 14:48:02 +02:00
Duarte Santos a0ac473df7 Merge remote-tracking branch 'pr/54' into coach 2026-08-07 14:47:25 +02:00
root 577c86b487 derive secondary additions via smOf overlay - raw dataset never mutated 2026-08-07 13:12:42 +02:00
AlexandClaude Opus 5 4ee9a2abbf Coach: a way in, and instructions for getting there
Two gaps found by deploying the thing and then trying to use it.

The Coach had no entry point. Its three routes have existed since the UI
landed and nothing in the app linked to them — not the nav, not Home, not
Plan, not Settings. The hub's back button already pointed at /plan, so that is
where the link was always meant to be. On a configured instance the feature was
enabled, credentialed, running, and reachable only by typing the URL.

It sits behind the same coachAvailable() predicate every other Coach surface
uses, so an instance without the feature sees exactly the Plan screen it saw
before.

And there were no setup instructions anywhere. This document said the Coach is
"off until an admin turns it on" and then never said how to turn it on: ten
sections on what it does and why it is safe, nothing on the four steps that get
you from a running instance to a working Coach. .env.example has no Coach knobs
and SELF_HOSTING mentions it only in the backup caveat, so there was nowhere
else to look either.

The new section covers building the target that has a runtime in it, minting a
token with `claude setup-token`, connecting and testing it on the admin card,
and where a user starts. It also warns up front about the thing a multi-profile
instance discovers the hard way: in instance mode the credential binds to the
first profile that spends it and every other profile is refused by design, so
one person gets the Coach and the rest get a refusal.

api 72/72, frontend 404/404, build clean, 11 locales in sync.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 11:45:45 +01:00
Duarte Santos 13ed730a0c Changelog v1.2.6: Muscle-Map-Recovery, Rest-Notification, Rear-Delt-Sekundaers 2026-08-07 11:35:04 +02:00
Duarte Santos 7e60ac20f2 Merge remote-tracking branch 'pr/44' 2026-08-07 11:33:51 +02:00
Duarte Santos 06a1e0a709 Merge remote-tracking branch 'pr/49' 2026-08-07 11:33:37 +02:00
Duarte Santos d99f0ef2f1 Merge remote-tracking branch 'pr/51' 2026-08-07 11:33:17 +02:00
root d0075eeddf rest notification: service-worker path for Android, use existing string 2026-08-07 09:10:43 +02:00
root 86f3476f5f fatigue: saturating volume-based model, no window cliff, reachable level bands 2026-08-07 09:02:38 +02:00
AlexandClaude Opus 5 ef61df50f2 Coach: the Codex provider, and a credential that stays out of your backups
The Codex CLI adapter, its runtime and sandbox in the coach image only, and the
one placement decision this PR exists to get right.

Codex keeps a refreshable sign-in cache of its own rather than taking a token on
the environment, so it needs somewhere durable to write. That is ./coach-auth —
a sibling of ./data, never a folder inside it, mounted separately, owned by
`coach`, mode 0700.

The placement is the point. docs/SELF_HOSTING §5 tells owners to back up with
`tar czf … data/`, so anything under ./data lands in every archive people are
instructed to produce. Workout history belongs there; a live refresh token does
not — it keeps working after that archive is copied to a laptop or a cloud
drive. Keeping the cache outside ./data is what lets the backup instructions
stay true about what they capture, and §5 now says so explicitly rather than
leaving the reader to find out.

I got to define this rather than fix it: no Codex path was ever committed here,
so the nested layout the fork had never reached this repo. A test asserts the
sibling relationship directly, because "outside ./data" is the kind of invariant
a later refactor breaks by tidying.

bubblewrap and the Codex CLI are added in the coach target only — bubblewrap is
a Codex requirement, so an owner who never opted in carries neither. The image
job now asserts both directions: present and runnable in the coach image
(codex-cli 0.147.0, bubblewrap 0.11.2, /coach-auth as coach:0700), and absent
from the default one.

Codex is usable through the existing connect route with an API key, which needs
no new surface. Its ChatGPT device-code sign-in is not in this PR — see the PR
description for what that still needs.

api 73/73, frontend 404/404, both image targets built and inspected, 11 locales
in sync at 767, library in sync at 1324.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 07:28:16 +01:00
AlexandClaude Opus 5 64fd67cfa8 Coach: the eleven locales
139 Coach keys added to each of the eleven locale files — 767 keys each, in sync.
English is the source language and has no file, so a key present in only some
locales falls back mid-sentence with nothing failing anywhere; check-locales
compares the union, which is what makes "in sync" mean something.

`{0}: rep-range ceiling` is the one string with no prior translation to draw on:
it is the counterpart of the rep-range floor label that 2/6's repsMax change
type needed. Each locale's wording is derived from its own existing floor
string rather than translated independently, so the pair reads as a pair.

Deliberately left in English: the twenty-one canned strings in coach-demo.js.
They are the demo build's fake proposal — long-form coaching prose invented to
make the public demo look alive — and they never reach a self-hosted instance;
the module is dynamically imported behind the DEMO flag precisely so none of it
lands in that bundle. Machine-grade translations of six-line paragraphs would
read worse than the English does, and the locale gate is satisfied either way
because the key set stays identical across all eleven.

frontend 404/404, build clean, 11 locales in sync at 767.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 07:25:01 +01:00
Duarte Santos 9daf637044 Gastmodus abschaltbar: ALLOW_GUEST=0 nimmt die Tuer ohne Konto raus (#42) 2026-08-07 08:10:19 +02:00
Duarte Santos b2b3577744 Release v1.2.6: Freestyle-Sessions starten dort, wo du aufgehoert hast 2026-08-07 07:38:56 +02:00
Space-Hermes 84e98425cc feat: prefill freestyle exercises from last workout 2026-08-06 19:54:36 +02:00
Space_Hermes 941d911fa9 feat: enrich common row muscle metadata 2026-08-06 19:46:18 +02:00
root 5b5d65b63e Add local notification on rest timer completion 2026-08-06 19:39:59 +02:00
root 6c91adefcd volWin: plain 90d window filter (upstream-adapted) 2026-08-06 19:17:41 +02:00
root d1cede21d3 fix dropdown label em-dash expression 2026-08-06 19:16:47 +02:00
root 9af028bde3 confirmed UI tweaks: fatigued highlighted (red/amber), strongest gold, strength scale labels, exercise list by current strength, 90d volume on strength rows 2026-08-06 19:16:08 +02:00
AlexandClaude Opus 5 ab1adcdd4f Coach: the screens, and the four things they were supposed to say
The Coach hub, the six-screen intake, the proposal review with per-change
accept/reject, and the admin card — wired into App.jsx and Admin.jsx. Nothing
renders unless the instance offers the Coach, so an admin page on a box that
never enabled it is the page it was before.

Four gaps I named earlier and owed this PR:

CoachProposal had no health disclaimer. The hub and the intake screen both
carry one; the screen where changes are actually accepted did not, which is the
one place it matters — that tap changes what somebody does with their body next
week. It sits immediately above the accept button on both proposal kinds
rather than at the top of a scrolling page, so it is on screen at the decision.

The admin card never showed whether the privilege drop can be performed. It
fails closed, so when it cannot, nothing runs at all, and the admin was left to
learn that from a user reporting silence. It now states the verdict, and the
server's own reason when the answer is no.

Whose account is being spent was not stated anywhere in the UI. Both the admin
card and the user's Coach screen have to name it, and that is only true if
neither infers it from settings — so coach-api gained the /api/coach/account
call that PR 1 built the route for and nothing had used since.

The credential UI was wired to a server shape that does not exist: it read
d.auth.state, which GET /api/admin/coach never sent, and posted to
/auth/setup-token, /auth/key and /auth/disconnect, none of which are routes.
Every credential button was dead. The card now uses the connect/disconnect
routes from 3/6, and the admin payload carries an auth summary — state, type
and account label, never the credential — with `unreadable` as its own state,
because ./data restored without its `secret` has a specific cause and a
specific fix rather than being "not connected".

Left out on purpose: the ChatGPT device-login sheet. It is Codex's, it calls
routes that do not exist, and Codex is 6/6 — so it comes back with the provider
it belongs to rather than shipping as unreachable UI here.

api 72/72, frontend 404/404, build clean, 11 locales in sync. The new strings
fall back to English until 5/6 adds them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-06 11:02:25 +01:00
AlexandClaude Opus 5 49be4e0626 Coach: the Claude provider, and an AI runtime you only carry if you ask
The Agent SDK adapter, its dependency, and the packaging that keeps both out
of the image an owner gets when they never wanted the Coach.

api/Dockerfile builds two targets. The default one runs `npm ci --omit=optional`
and ships no AI runtime at all (~158 MB); `--target coach` drops that flag and
adds @anthropic-ai/claude-agent-sdk (~455 MB). The SDK's runtime ships as a
per-platform package, so on this Alpine base the lockfile resolves the musl
build — the kind of thing that only fails on somebody else's machine, which is
why the new api-image CI job builds *and runs* both targets rather than merely
building them.

Both targets now create the unprivileged `coach` user. That is not a Claude
detail: canDropPrivileges() fails closed, so without it every job is refused —
including the fixture provider that exists so the loop can be walked before an
account is connected. The shipped image could not run one.

The adapter imports the SDK lazily, so an absent runtime stays an ordinary
reportable state rather than a boot crash: check() says so, isConnected() goes
false, and /api/config carries no coach key.

Four SDK options are what make this safe next to ./data — tools: [] (no Read,
no Bash, no Grep), settingSources: [], skills: [], strictMcpConfig. They are
one frozen exported object, asserted by value, so re-enabling one is a red
build rather than a quiet capability grant.

Verified against the SDK's own type definitions rather than from memory. Two
things the fork's draft had wrong: SDKResultError carries no `errors` field, so
`message.errors?.join()` was dead code and the failure reason now comes from
`subtype` and `stop_reason`; and the client-app version string was hardcoded at
1.2.3 two releases after it stopped being true, so it is read from package.json.

The credential connect/disconnect routes land here as promised in 2/6 — they
serve a credential, and until this PR there was no provider that had one.
authMode and the per-profile pair still wait for the side that consumes them.

api 72/72 on macOS and on Linux as uid 65534 with the SDK absent; both image
targets built and run; library in sync at 1324.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-06 10:46:28 +01:00