Vier Provider, die nur HTTPS sprechen — kein Agent-SDK, keine CLI, kein coach-User:
sie laufen auf dem Default-Image. Eine Factory (core/adapters/http.js) bildet jede
Antwort auf den bestehenden {code,text,stderr}-Vertrag ab, damit die Pipeline nichts
Neues lernen muss: 401/403 werden 'auth', ein abgeschnittenes JSON 'provider' statt
die einzige Reparaturrunde zu verbrennen. Ollama/LM Studio/vLLM/OpenRouter laufen
ueber dieselbe Chat-Completions-Form mit eigener Basis-URL und optionalem Key.
coach.json haelt Key, Modell und Bindung jetzt PRO Provider — Wechseln wirft nichts
mehr weg; die flache v1.2.11-Datei wird einmalig hochgehoben. Das Privilege-Gate
fragt den Adapter, ob er ueberhaupt einen Prozess startet. Die Admin-Karte zeigt
endlich den API-Key-Knopf auch bei Anthropic, listet Modelle vom Endpunkt und
nimmt eine Basis-URL entgegen.
payload, validate, parse, die Prompt-Montage, der Plan-Fingerprint und die
invoke→parse→validate→repair-Schleife ziehen nach api/coach/core/ — ohne node:*,
damit das Handy sie spaeter genauso importiert wie der Server. Die Bibliothek und
die Prompts werden als ES-Module generiert (scripts/build-coach-assets.mjs), weil
weder createRequire noch ?raw unter beiden Laufzeiten laden. Das Pseudonym wird
uebergeben statt abgeleitet (handle.js behaelt den HMAC). check-core-loadable
prueft unter blankem node, was vitest strukturell nicht pruefen kann.
Der Coach-Zweig stand seit v1.2.7. Konflikte: beide Seiten behalten (Server-Imports,
Store-Felder, Home-Titel mit naechster Einheit, history.js), das Dockerfile behaelt seine
zwei Targets und kopiert die neuen Server-Module mit, compose zeigt auf die GitLab-Registry.
pt-BR: die 139 Coach-Strings in die Sie-Form gebracht, Fingerprint nachgezogen.
Die Custom-Uebungen des Nutzers standen im Library-Slice, den das Modell bekam,
wurden vom Validator aber abgelehnt — jeder Vorschlag, der eine nannte, verbrannte
die einzige Reparaturrunde. Dazu: __proto__-IDs, Gewichts- und Tempo-Obergrenzen,
doppelte Uebungen und doppelte Change-IDs, routineName auf jeder Aenderung, und
ein Gewicht fuer eine nie gehobene Uebung wird verworfen statt geraten.
The dialog is gone. It showed the same paragraph that was already on the card,
only unclamped — so a click bought you nothing, which is a bad trade for making
fourteen cards look like something you have to interact with. The cards are
plain <article>s now and the text is simply on them, no line clamp.
What is left of the click: four cards point into the docs — importing,
self-hosting, the MCP server, backups — where there genuinely is more to read.
Those are ordinary links at the foot of their card rather than a click target
covering the whole box.
Cards are a little wider (250-310px) to carry the full text without turning into
columns of two words, and the rail still snaps and scrolls the same way.
Verified in the browser at 1440 and 390: fourteen cards, no dialog left in the
DOM, no buttons inside the rail, all four docs links present, nothing clipped
(every .fcard-b has scrollHeight == clientHeight), every card the same height,
still flush with the text above, no horizontal overflow, no JS errors.
Tested in a real browser this time, at 1440, 1024, 390 and 360, with touch
emulation and with reduced motion — which is how the first three of these were
found, and none of them were visible from reading the markup.
**The dialog never opened where you could see it.** `* { margin: 0 }` at the top
of this file removes the margin:auto a browser uses to centre a modal <dialog>,
and without a position of its own it resolved to `position: absolute`, so
`inset: 0` centred it inside the document rather than the viewport — near the top
of the page. Opening a card scrolled the whole page up to meet it, showed a
clipped corner on desktop and nothing at all on a phone. It is pinned to the
viewport now, centred on both axes, capped at the screen height and scrollable
inside if the text is long. Measured: centred and fully in frame at all four
sizes, with no scroll jump.
**The rail sat 34px left of everything above it.** Its gutter was half the
leftover width, which lands on the wrap's outer edge, not on the text inside it —
the wrap's own padding was missing from the sum. Cards now line up exactly with
the paragraph above them (measured: 0px). Using 100% instead of 100vw also keeps
the scrollbar out of the arithmetic. The screenshot rail below inherits the same
fix.
**The intro.** The hero settles in on the first load of a visit: a short rise and
fade, staggered eyebrow to headline to lead to buttons to phone. Deliberately the
same movement as the scroll reveals further down, so it reads as one behaviour
rather than an effect. Armed in the inline head script, because site.js is
deferred and would have let the hero paint and then hide it again. Once per tab,
so a reload is not a splash screen. Off entirely for prefers-reduced-motion, and
the animation ends on opacity 1 regardless of whether the cleanup ever runs — the
hero cannot get stuck invisible.
No horizontal overflow at any of the four widths. Arrows confirmed present for a
mouse and absent for touch.
**"And the rest of it"** was fourteen items as a two-column definition list — the
part of the page nobody finishes reading. It is now a horizontal rail of cards,
one icon each, tapping one opens the full paragraph in a dialog. Four of them
carry a link into the docs, where there is genuinely more to say: importing,
self-hosting, the MCP server and backups. Twelve new icons in the existing
sprite style (24x24, stroke 1.7) to go with it.
The dialog only ever shows text that is already in the card, so nothing is
hidden from a reader without JS: the cards are unclamped and fully readable, the
arrows stay hidden, and there is nothing to open. Arrows are for pointers that
cannot swipe and are dropped on touch.
**The docs and about pages were squished on a phone**, and it was one character:
`.prose` set `padding: <top> 0 0`, and the trailing zeros overwrote the left and
right padding `.wrap` had already set. On a desktop nothing showed, because 720px
of text has room to spare either way; on a phone the text ran into both edges of
the screen. Both pages share that class, which is why both looked wrong.
Two traps in the CSS I added and then found: `.frail-nav` and `.fdlg-go` both set
`display`, which beats the UA's `[hidden] { display: none }`. The arrows would
have shown without JS, and a card with no link would have shown a "read more"
pointing at whatever the previous card linked to. Both now honour the attribute.
Cache busters go to v=6 — the markup needs the new CSS and JS, and a returning
visitor holding v=5 would have got the new page with the old stylesheet.
Versions in both package.json files, the lockfile's two self-references and the
Android build (versionCode 11 -> 12, so the APK installs over the last one).
The website's download line goes from v1.2.9 to v1.2.11 — it had been left
behind by the previous release as well.
Changelog covers the six defects found reviewing v1.2.10, the two merge requests
from mflova, and the landing page.
This has been serving on opengym.duarte-santos.ch for a while without ever being
committed, so the repository and the live site had drifted apart — a deploy from
a clean checkout would have rolled the site back to the old page. This commits
what is actually running.
The page is rebuilt around a bento layout with real device frames, a mobile nav
that opens a proper menu instead of hiding the links, and a scroll reveal that
checks prefers-reduced-motion before animating anything. New "Elsewhere" section
collecting where the project actually lives: GitLab for code, issues and
releases, Discord, and Buy Me a Coffee.
The download line still reads v1.2.9 and the APK next to it is still the 1.2.9
build; both are corrected in the release commit, where the new APK exists.
Two things people asked for on release day, both small, both awkward to live
without.
The version was not visible anywhere. mflova asked how to tell which build the
phone app is running and andi242 said he had wondered the same that morning;
issue #7 asks for it too. The support template in #install-help has been telling
people to read it off "the bottom of Settings" — where it was not. It is there
now, read from package.json at build time so it cannot drift from the release it
shipped in. On the phone there is no address bar and no about box, so this was
the only missing way to answer "did the update actually install".
The rest timer had no off switch. andi242, in the per-exercise-timers thread: "I
don't use rest timers, so I find it's a bit tedious to skip the timer every
time." v1.2.10 made that worse rather than better — it now rests after every set
except the last of the session, so an exercise that used to end quietly no
longer does, and there was still no way out. "Off" now sits at the top of the
same list as 60/90/120/150/180.
The guard is inside startRest rather than at the four places that call it, for
the same reason the rest-after-a-set rule became one shared condition: a rule
that has to be repeated is a rule that gets forgotten. 'Off' already exists in
all twelve locale packs, so this adds no translation work.
Two follow-ups to !24 and !25, both about the same screen.
!25 makes LineChart drop its hover whenever `points` changes identity, which is
right — a new dataset has different coordinates and the old marker describes
nothing. But the e1RM branch built its array inline with .map(), so every render
of Stats handed the chart a brand-new array and cleared the tooltip out from
under the pointer. Hovering itself only re-renders LineChart, so it survives
that; anything else touching this screen did not. Memoising the .map() alone
would not have fixed it, because e1rmSeries was itself called fresh on every
render, so the memo's own dependency changed identity every time. Both are
memoised now, which also stops walking the whole workout history on every
render.
!24's grid is two columns, label/value and chevron, and does not place .lrow-i.
On a row that has an icon it would auto-place and shove the layout around. The
one call site has no icon, so this is latent rather than live — written down in
the rule so the next person to reach for stackedValue sees the limit first.
A shared plan carried the sets, reps, weight, progression rule, superset
grouping, note and — since v1.2.10 — the planned warm-ups. It did not carry the
intensifier, so a routine built as "3x5 with a double drop" reached the other
end as a plain 3x5. Silently: parsePlan's `dropped` counter only tracks
exercises it cannot resolve at all, so nothing said a prescription had gone
missing. Drop-sets and rest-pause are how the exercise is prescribed, not a
logging detail, and they belong in the file.
Both fields are now clamped on the way out and on the way in. warmupSets was
clamped only when the rows were built, so a hand-edited file's "999" was shown
verbatim by the config stepper. An intensifier of an unknown type is dropped
rather than passed through: a plan file is someone else's data. The floors are
the ones the config sheet and applyIntensifierPlan already enforce, not new
ones invented here.
There was no plan-share test file at all, which is how a whole prescription
field went missing without anyone noticing. There is one now.
v1.2.10 shipped the session note as one of three kinds of note, and the release
notes say so. Only two of them existed.
buildCompletedWorkout read `active.note` and carried it onto the finished
workout — with a test covering it — but nothing anywhere in the app ever wrote
that field. The only way to get a session note was to open a past workout in
history and type one there, which is a different and much smaller feature than
"notes you can write during a workout". So the workout screen now has one, next
to the finish button: wrapping up is when you know how the session went. It
writes `active.note`, which makes the path that was already there and already
tested actually reachable.
The history one then threw the text away. It saved on blur only, and Escape, the
Android back gesture and swipe-to-dismiss all close a sheet without ever moving
focus out of the textarea — type a note, press Escape, gone. It now flushes on
unmount as well, through a ref, because a cleanup closes over the note from its
own render, which is the empty string it started with. Writing only happens when
the text actually changed, and deleting the workout from that same sheet leaves
nothing to write to, which the guard covers.
The new sheet has a Save button rather than repeating the blur trick.
Also adds both note sheets to Workout.test.jsx's module mock. Workout.jsx reads
sessionNoteSheet during render, so a missing export there is a render crash
rather than a quiet no-op — which is exactly how this was caught.
Three defects, all of them latent before v1.2.10 and live the moment a routine
started planning warm-ups by default.
workoutVolume counted warm-up rows. It was the only consumer that did — onerm,
muscles, recovery and progression all filter them — while the config sheet tells
users in so many words that warm-ups are "left out of volume, records and
progression", and a comment in this very file asserts it. Three planned warm-ups
on a 3x5 at 100kg reported 2562.5 instead of 1500, and that number is written
into the finished workout, so it would have stayed wrong forever.
The ramp aimed at last session's weight. buildSets prepends the warm-ups and
applyPrescription rewrites work rows only, by design — so nothing ever re-derived
the ramp once progression moved the target. Deload 100 -> 50 produced warm-ups of
50 and 75 under work sets of 50: the second "warm-up" heavier than everything it
was warming up for. applyPrescription now finishes by re-ramping, which is where
the invariant cannot be forgotten, rather than at the two call sites where it
already was. A logged warm-up keeps its weight and becomes what the next one
ramps from — it happened, and rewriting performed work is data loss.
insertWarmupRow's early return was unclamped. Once a warm-up sat above the work
weight, every warm-up added after it inherited that number. The clamp guarded
only the other branch. A hand-edited row stays as typed; what stops is the
inheritance.
The tab-bar commit gave two causes for the see-through bar. The first is real
and is what users reported: 72% opacity. The second was invented — that the CSS
minifier collapses a backdrop-filter / -webkit-backdrop-filter pair down to
whichever is written last, so the standard property never shipped and Firefox
got alpha without blur.
It does not. This project builds CSS with esbuild's minifier, which treats the
two as what they are, different property names, and keeps both in either order:
main's stylesheet minifies to five unprefixed and five prefixed, and so does
this branch's. Nothing was ever dropped, and there was no Firefox-only bug.
So the claim comes out of the code comment, out of the CHANGELOG, and out of
the release announcement, where it would have gone to the whole Discord as a
confident technical explanation for something that never happened.
What stays is the part that is true and is the actual fix: 94% opacity, less
blur — which is a genuine win on Android, where a blur behind a fixed element
is recomposited every scroll frame — and the @supports fallback to fully opaque
where backdrop-filter really is unavailable. The prefixed-first ordering stays
too, since that is the right order for a prefixed/standard pair regardless: the
standard name should be the one that wins the cascade. Only the reason given
for it changes.
(The message on 46eaefd still carries the original claim; it is left alone
rather than rewriting a branch mid-review.)
The other half of issue #3. "Breaks sometimes not shown after finished set
(first / last)" — the last-set half was the quiet-finish rule, already fixed.
This is the first-set half.
Completing a set only counts as progress when it goes beyond the most sets this
exercise has had done at once, so that unchecking and re-checking finished work
does not replay navigation or reopen sheets. Correct, but it returned before
anything could time a rest: uncheck a set to fix the reps, check it again, and
nothing starts. If the original rest had already run out, you get no break at
all — which is exactly what was reported, and why it reads as "sometimes".
A re-check now fills that gap and only that gap: it starts a rest when none is
running, and never touches one that is still counting down, because a running
timer belongs to the set you finished most recently. Navigation and sheets stay
gated exactly as before.
Found reviewing this release, and it is this release that makes it bite.
lastEntryFor returns every set that was `done`, warm-ups included, and four
callers then treat position 0 as "your first work set": buildSets seeds the
next session's rows from it, freestyleConfig sizes the config from its length,
and two views print it as "Last time".
Until now that was latent — warm-ups only existed if you pressed "Add warm-up
set", and that button was itself broken in a way that hid this: it handed you a
row at the full working weight, so seeding from it produced the right number by
accident. Fixing the ramp to a real 50% / 75%, and letting a routine plan
warm-ups into every session, turns the latent bug live: work set 1 gets seeded
at half your working weight, then next session at half of that. Your working
weight walks down on its own. A 3x5 also comes back as a 5-set exercise,
because two ramp rows are counted as sets you did.
So lastEntryFor now answers what every caller is actually asking — what you
lifted, not what you warmed up with. Warm-ups were already out of volume,
records and progression; this is the same rule one level up. An entry whose
only completed sets were warm-ups is no longer history at all, and the search
falls through to the session before it.
The regression test covers both seeding paths, planned and freestyle, since
freestyle takes the weight from last time directly and would drift fastest.
The note sheet was checked structurally — imports resolve, symbols exist — but
nothing ever rendered it, so a bad hook order or a wrong store path would have
reached a phone before it reached a test. This drives it through the real sheet
stack: both textareas, the pin (disabled while the note is empty, since pinning
nothing means nothing), and a save that has to land in two different places —
today's note on the entry, the standing note on S.exNotes.
The third case is the one that would have bitten: clearing the note has to drop
the pin with it, or a stale pin resurfaces a note that no longer exists.
Version bumped in both package.json files, the lockfile's self-reference and
the Android build (versionCode 10 -> 11, so the APK installs over the last
one). Changelog covers everything since v1.2.9 in one entry, per the
project's versioning rule.
18 strings from this release, plus the rest-pause explainer that arrived
untranslated with !20. Terminology follows each pack's existing entries
(Wdh. / rip. / powt. / повт., and the "Add warm-up set" wording already there).
pt-BR overrides 8 of them rather than inheriting: the pt-PT versions use
tu-forms and «guillemets» (tuas, podes, treinares, teres), which is exactly
what the locale's own guard test is there to catch. Inheritance fingerprint
re-baselined; the remaining 10 read the same in both variants.
@simplewebauthn reports a mismatch as "Unexpected RP ID hash", which tells a
self-hoster nothing about their own .env — and this is the most common support
question in #install-help, where charliebelt is currently stuck behind a
Cloudflare Tunnel with values that look right. The error now names both
configured values back and points at the docs. Neither is a secret: one is the
address bar, the other its hostname.
Extracted as api/verify-error.js so it can be tested without booting a server
that opens files and a port, following push-messages.js.
SELF_HOSTING.md gets the diagnosis in order: read what the server logged on
startup (it prints rpID and origin, and `docker compose restart` does not
re-read .env), then the exact shape of each value as a table, then the
reverse-proxy case, then www., then that changing the hostname invalidates
existing passkeys. Plus the thing adam934912 called a blocker: on a LAN
without certificates there is nothing to configure that makes passkeys work.
Three kinds of note, because they have three different lifetimes and users
asked for all three:
· a session note on an exercise — what happened today, stored on the workout
entry. It carries a PIN, and that is the whole design: only the person
writing knows whether "shoulder twinged" is a diary line or "go narrower"
is a message to their next self. A pinned note surfaces again the next time
that exercise comes up, where the "Last time" line already is; an unpinned
one stays in that day's history. This is deliberately not a global setting:
the answer differs per note, so a single switch would need constant
flipping, while at the moment of writing it is obvious.
· a standing note on the exercise itself (S.exNotes) — seat height, pin
position, a form cue. True every session, shown every session. This is
elchavalico's request, with ten messages of agreement behind it.
· a whole-session note on the workout, editable from its history entry, where
it is easier to say how a session went once you can see what you did.
A routine's own `note` (!14) stays where it is: it belongs to the plan, not to
the day or to the movement.
Planned warm-ups: `warmupSets` on an exercise config, stacked by buildSets
using the same ramp as the in-session button, so the session starts with them
already there instead of you adding them by hand every time. Written only when
non-zero, so an existing plan keeps its exact shape and reads back as 0. They
travel with a shared plan, and stay out of volume, records and progression via
the phase flag that already existed.
Home's week strip already knew today was finished — its dot goes 'done' from
S.workouts — but the row underneath only ever asked `routine`, so a logged day
kept showing the routine name behind a green Start tag and read as still
outstanding (issue #4). It now reports the session instead. Tapping still
starts another one; it just stops urging.
Stats dropped every point whose value was 0, and a bodyweight pull-up has no
weight, so "Exercise progress" read "No data yet" for exercises with a full
history behind them (issue #5). When nothing in an exercise's history was ever
loaded, its progress IS the rep count, so that is what gets plotted, labelled
in reps. Add a weighted set later and it switches back to weight on its own —
which is also the honest reading, because that is when load became the thing
improving. Same fallback in currentOf, or the picker label went blank and the
exercise sorted to the bottom as if it had no history at all.
Reported as "the navigation bar is half transparent … the information can be
harder to see as it is mixed with the background". Two separate causes.
The bar was 72% opaque. Even with the blur working that is too little to read
labels against a scrolling page, and nobody needs to read what is behind a
navigation bar. Now 94% in both themes, with the blur down from 24px to 10px:
this is a position:fixed element, so the WebView recomposites the blurred
region on every scroll frame, which is the most expensive thing on an Android
screen. Same blur reduction on the rest timer, which is on screen for a whole
session.
The second cause is worse and was invisible from the source: the CSS minifier
dedupes a `backdrop-filter` / `-webkit-backdrop-filter` pair down to whichever
is written LAST, so the standard property was being dropped from the build
entirely and only the -webkit- one shipped. Firefox understands only the
unprefixed name, so it had no blur at all — just the alpha, which is exactly
the reported symptom. All five pairs now put the prefixed line first, with a
comment so nobody tidies the order back.
Adds an @supports fallback to fully opaque where backdrop-filter is genuinely
unavailable (old Android WebViews, reduce-transparency settings), and drops
.ss-card's padding on narrow screens — a superset pays the page gutter twice
and squeezed the reps field, which socialscientist93 diagnosed exactly.
Two session bugs that users reported separately and that both sat in the
"what happens when a set ends" path.
insertWarmupRow read rows[at - 1] to find what to ramp from. For the FIRST
warm-up `at` is 0, so that is rows[-1] — undefined — and the `||` fallback
took the LAST row instead: the heaviest work set. "Add warm-up set" handed
you a warm-up at your full working weight, every time, and you corrected it
by hand. It now ramps from the first work row, each added row closing half
the remaining gap (50% / 75% / 87.5%), rounded DOWN to the exercise's own
loading step — a warm-up a notch light costs nothing, one a notch heavy is a
set you have to strip plates off. The step is passed in by the caller so
history.js keeps no dependency on progression.js, which already imports it.
Rest timers stopped at the end of an exercise: the singleton path called
stopRest() and then skipped startRest(), commented as "final sets finish
quietly". But another exercise follows that set, and you rest before it too —
a two-set exercise timed one rest instead of two (issue #3), and the rest
never carried across the gap. Supersets already had the right rule, so the
condition is now shared as restAfterSet(): rest after every completed set
except the last set of the last exercise, which is where zkssyth landed
independently in Discord.
Takes the nine commits as submitted, with three adjustments:
- remote.test.js ran in the node environment while remote.js pulls in
api.js, which reads navigator.userAgent at module scope — the file failed
to import. Same @vitest-environment happy-dom pragma the api tests use.
- Drops skills-lock.json. It pins a personal Claude Code skill chain to
third-party GitHub repos by hash; that is contributor tooling, not a
project artefact, and this project's GitHub access is gone. CLAUDE.md
itself is kept — it is an accurate description of the repo.
- Corrects two stale claims in that CLAUDE.md: the website deploys from
.gitlab-ci.yml, not GitHub Pages, and the CI gate is GitLab, not Gitea
Actions with a dormant GitHub copy.
pt-BR: 23 of the 44 new pt strings are European (ficheiro, telemóvel,
Definições, «guillemets», tu-forms), so they get Brazilian overrides
rather than being inherited; fingerprint re-baselined.
Keeps the ExRx-informed primary/secondary metadata for 223 catalogue
entries and the muscle-group UI, with two fixes to the branch:
- muscles.js dropped metadataOf, the muscleSnapshot fallback. A custom
exercise deleted from the catalogue survives in history only as that
snapshot, so without it those sessions silently stopped counting toward
the body map and Stats — loadOfWorkouts returned {} where main returned
{chest: 1}. Restored and widened to the new primaries/secondaries fields.
- It also replaced the shared isWarmupRow import with a local copy that
only matches the exact string 'warmup'. phaseForSet normalises 'warm-up',
'warm_up', casing and whitespace, so warm-up rows written in any other
spelling would have counted as work here while counting as warm-ups
everywhere else. Restored the import.
Both are covered by new tests. Locale conflicts resolved additively; the
three new muscle-group strings read the same in pt-BR, so they stay
inherited and the inheritance fingerprint is re-baselined.
Resolves against !13 and !1: the picker and library keep the multi-token
search and the equipment-profile filter, and matchExercise now builds its
haystack from exerciseNameSearchText, so a pt-BR profile finds an exercise
by the name it actually sees as well as by the English one. The 'chosen'
sort takes !16's locale-aware localeCompare. Adds regression tests for
localized search and for cache invalidation on a language switch.
The new equipment strings landed in pt.js only, so pt-BR inherited European
wording — «guillemets», 'A mostrar', 'Ginásio', 'tens' — and the locale's
own guard test caught it. Adds Brazilian overrides (você, 'Academia',
'Excluir perfil?', curly double quotes) and re-baselines the inheritance
fingerprint: the one newly inherited entry is !14's note placeholder, which
reads the same in both variants ('anilha' is current usage in Brazil too).
The merge request added 18 user-facing strings and no locale entries, so
every non-English profile would have rendered the equipment card, picker
banner and routine warning in English. Terminology follows each pack's
existing 'Equipment' key (Geräte / Equipo / Attrezzi / Sprzęt / Инвентарь …).
Also replaces the literal \u2019 escape in the Settings footer with the
character itself — the locale key has to match the string as it is written.
mapHeader normalises the header before comparing ('Weight (kg)' -> 'weight
kg') but matches the alias list raw, so an alias written with parentheses
never matches. Three of the added ones were dead entries whose normalised
twin was already in the table; 'set duration (sec)' had no twin, so gravl's
per-set duration was dropped and its cardio rows skipped entirely.
Also moves that column from "time" to "seconds", which is what it is:
toMinutes() would have read gravl's 22 seconds as 22 minutes.
Adds the gravl sample from the merge request as a regression test.
matchExercise rebuilt an NFD-normalised corpus for all ~1300 catalogue
entries on every keystroke (~8ms desktop, several times that on a phone).
Cache it in a WeakMap keyed by the i18n version so a language switch
rebuilds the translated terms, and custom exercises re-cache on their own
because the store hands out fresh objects on update.
Erste APK, die nicht von Hand gebaut wurde. Zertifikats-Fingerprint gegen den
alten 1.2.8-Build und den Keystore geprueft - identisch, Updates installieren
sich also ueber bestehende Installationen.
Die GitLab-Projekt-API liefert einem nicht eingeloggten Aufrufer nur star_count
und forks_count - open_issues_count gibt es dort nur mit Session. site.js hat es
trotzdem gelesen und damit "undefined" in die Kachel geschrieben.
Die Zahl steht stattdessen im X-Total-Header des Issues-Endpunkts, und GitLab
fuehrt den in Access-Control-Expose-Headers, der Browser darf ihn also lesen.
Schlaegt der Aufruf fehl, bleibt der Platzhalter stehen statt einer leeren
Kachel.
Die Regel pruefte nur auf source == web. Ueber die API gestartet ist die Quelle
"api", der Job lief dann nur zufaellig mit - naemlich ueber die
Default-Branch-Regel, waehrend das Script die Variable trotzdem sah.
Die docker-compose.yml im Repo zeigt auf :latest, aber latest entsteht nur aus
einem v*-Tag - bis zum ersten GitLab-Release laeuft ein `docker compose pull`
also ins Leere. Das war ein Fehler im Umzug.
Eine von Hand gestartete Pipeline mit PUBLISH_LATEST=1 baut jetzt genau wie ein
Tag: multi-arch, latest, X.Y und X.Y.Z, Version aus frontend/package.json. Der
Weg wird ohnehin gebraucht, sobald ein Basis-Image eine CVE fixt und latest
nachziehen muss, ohne dass sich am Code etwas geaendert hat.
Bis die Release-Pipeline laeuft, gab es auf GitLab keinen APK zum Laden. Der
aktuelle signierte Build (1.2.8, derselbe, den die Website ausliefert) liegt
jetzt in der Generic Package Registry unter opengym-android/1.2.8/ - genau dem
Pfad, den der build:apk-Job spaeter selbst befuellt. Daneben die .sha256:
sideloaden heisst, dass niemand die Datei fuer dich geprueft hat.
Anonym ladbar, ohne Login - nachgerechnet, die Pruefsumme des heruntergeladenen
Exemplars stimmt mit der lokalen ueberein.
Der grosse gelbe Button stand schon unten in der README, aber der Satz darueber
schickte Leute zum "Sponsor button at the top of the page" - das war GitHubs
FUNDING.yml-Knopf, den es auf GitLab nicht gibt. Stattdessen jetzt ein Badge in
der Kopfzeile neben dem Discord-Badge, und der Satz zeigt dorthin.
Der Server war nur auf der Website verlinkt - im Repo selbst nirgends, obwohl
dort inzwischen das meiste passiert. Jetzt: Badge und eigener Punkt im
Community-Abschnitt der README, erste Zeile der Tabelle in CONTRIBUTING, und ein
Hinweis in der Frage-Vorlage.
Mit der Trennung, die der Sache entspricht: Discord fuer die schnelle Frage,
Issue fuer alles, was der Naechste ueber die Suche finden koennen soll - und
Exploits gehoeren in keines von beiden, sondern in ein vertrauliches Issue.
Statischer Badge, kein Live-Zaehler: das Server-Widget ist aus, shields.io wuerde
sonst "widget disabled" anzeigen.
Ein Release darf keinen APK ausliefern, den niemand installieren kann. Fehlt auf
einem v*-Tag ANDROID_KEYSTORE_B64, ist an den geschuetzten Variablen etwas kaputt
- dann soll der Job scheitern statt still eine unsignierte Datei zu bauen.
GitLab hat kein Dependabot, also laeuft Renovate als Job - aber nur in einer
*geplanten* Pipeline (monatlich, 1. um 04:00), damit es nie mit einem Push um
Runner-Minuten konkurriert. renovate.json uebernimmt die Politik aus
.github/dependabot.yml eins zu eins: monatlich, pro Oekosystem gruppiert, Majors
einzeln, ungerade Node-Majors raus, android/ und ios/ folgen den @capacitor/*-
Paketen statt eigene Bumps zu bekommen.
Damit die geplante Pipeline nicht nebenbei die Suite laufen laesst und die
edge-Images neu schiebt, haben test, build, apk und pages jetzt eine
"schedule -> never"-Regel.
Ein per Sideload installierter APK ist von niemandem geprueft worden, also soll
die Pruefsumme daneben liegen statt gar nicht zu existieren: das Release haengt
jetzt openGym-<ver>.apk.sha256 mit an.
Pages laeuft unter GitLabs "unique domain" (opengym-bc111a.gitlab.io);
duartesantos8.gitlab.io/opengym/ leitet mit 308 dorthin um.
"could not create a builder instance with TLS data loaded from environment" -
der docker-container-Treiber liest DOCKER_HOST + DOCKER_CERT_PATH nicht direkt.
`docker context create tls-environment` friert genau diese Umgebung als Kontext
ein, und darauf laesst sich der Builder anlegen.
gitea.com hat keinen Actions-Runner, also gab es dort seit dem Umzug weder
Container-Images noch einen gebauten APK noch gruene Tests auf Merge Requests.
GitLab kann alles vier, also zieht das Projekt dorthin um.
.gitlab-ci.yml deckt die komplette Kette ab:
- test: Frontend-Suite (346 Tests), Locale-Checks, Fatigue-Probe, MCP-Suite
- build: api- und web-Image nach registry.gitlab.com/duartesantos8/opengym/*,
auf v*-Tags amd64+arm64 mit latest/X.Y/X.Y.Z, sonst amd64 als edge
- package: signierter APK (zipalign + apksigner) plus Upload in die Generic
Package Registry; der Key liegt in geschuetzten CI-Variablen und existiert
damit nur auf main und v*-Tags
- deploy: der Browser-Demo-Build auf GitLab Pages
- release: GitLab-Release mit dem passenden CHANGELOG-Abschnitt und Links auf
APK und Images
GitHub konnte "Tag gepusht" von "Release veroeffentlicht" unterscheiden und hat
Images nur aus letzterem gebaut (Issue #87). GitLab kann das nicht - dort ist die
Tag-Pipeline das, was das Release anlegt. Die Regel steht deshalb als Kommentar
im CI-File, und v*-Tags sind geschuetzt.
Ausserdem: Issue-/MR-Vorlagen unter .gitlab/, und saemtliche Repo-Links in
README, Docs, App, Dockerfile-Labels, docker-compose und Website zeigen auf
GitLab. site.js liest Sterne und Releases jetzt aus der GitLab-API (andere
Feldnamen, deshalb neue sessionStorage-Keys). SECURITY.md hat wieder einen
privaten Meldeweg: ein vertrauliches Issue.
.github/ und .gitea/ bleiben liegen - Spiegel bzw. fuer den Tag, an dem das
GitHub-Konto zurueckkommt.
Wer sich anmeldet, wer es vergeblich versucht und was ein Admin aendert, stand
bisher nirgends — der Server hat schlicht nichts protokolliert.
Aktivitaetslog:
- ./data/audit.log, eine JSON-Zeile pro Event, angehaengt statt neu geschrieben.
Bewusst NICHT in db.json: die Datei wird bei jedem Save komplett neu geschrieben,
und der Login-Handshake ist unauthentifiziert — ein Log darin haette aus einem
Muell-Request einen vollen Rewrite gemacht.
- Aufbewahrung ist eine Obergrenze, kein Archiv: AUDIT_MAX (5000) bzw. AUDIT_DAYS (90).
- Per Default an (AUDIT_LOG=0 schaltet es ganz ab). IP-Adressen per Default AUS;
AUDIT_IP=net speichert nur das Netz, full die ganze Adresse. Nie der User-Agent,
nie die Passkey-ID eines Fehlversuchs, nie ein abgelehnter Invite-Code.
- Adresse kommt aus CF-Connecting-IP, dann X-Forwarded-For, dann X-Real-IP —
ein Cloudflare-Tunnel schreibt den Besucher NICHT in XFF, dort steht sonst nur
der Tunnel selbst und sieht dabei voellig plausibel aus.
- Loeschen wird selbst protokolliert, die Event-IDs zaehlen weiter: die Luecke bleibt sichtbar.
- Neue Karte in views/Admin.jsx (Filter, "Show more"), Aufbereitung in lib/audit.js
mit 20 Tests. GET /api/admin/audit und POST /api/admin/audit/clear, beide hinter requireAdmin.
Demo:
- Die Live-Demo laeuft wieder, jetzt auf der Projektseite selbst statt auf GitHub Pages:
opengym.duarte-santos.ch/demo/. Das eingebettete Telefon auf der Startseite geht damit auch
wieder — es muss derselbe Host sein, X-Frame-Options ist SAMEORIGIN.
Doku: README-Config-Tabelle, .env.example, SELF_HOSTING, SECURITY (inkl. der
api/server.js-Zeilenverweise, die wieder stimmen).
Die Sammelversion fuer alles seit v1.2.7: der Umzug nach gitea.com (Images,
Klon-URL, Anlaufstellen, CI), die Zurueck-Geste auf Android via @capacitor/app,
die richtiggestellte Medien-Lizenz und die Umami-Zaehlung auf der Website (im
Frontend nur, wenn beim Build gesetzt -- selbstgehostet bleibt telemetriefrei).
api/package.json auf 1.2.8 nachgezogen; frontend/package.json und
android/build.gradle standen schon auf 1.2.8.
"exercise data from hasaneyldrm/exercises-dataset (CC)" stand ueberall -- im
README, in NOTICE.md, auf der Website, in den Settings, im compose-File und im
fetch-Script. Der Upstream lizenziert aber zwei Haelften unterschiedlich: Namen,
Attribute und Anleitungstexte sind MIT, die Bilder und GIFs sind (c) Gym visual
und liegen dort mit einer nicht uebertragbaren Erlaubnis.
- NOTICE.md trennt die beiden Teile, zitiert die MIT-Lizenz im Wortlaut und
nennt die Gym-visual-Terms
- README/Website/Settings sagen jetzt MIT + (c) Gym visual statt "CC"
- compose und fetch-media.sh drucken die Herkunft beim Download, damit es auch
sieht, wer die Doku nicht liest
An der Nutzung von openGym aendert das nichts: die Medien lagen nie im Repo, in
der History, im Image oder im APK -- jede Instanz laedt sie beim ersten Start
vom Upstream. An der Weiterverwendung der Medien schon: dafuer braucht es eine
eigene Lizenz von Gym visual.
Die Seite auf opengym.duarte-santos.ch wurde am Ausfalltag direkt im dist bearbeitet,
die Quelle hier blieb auf dem alten Stand: GitHub-Links, GitHub-API fuer die Zaehler,
Demo-iframe auf die tote Pages-Instanz.
Uebernommen: Hinweisblock zur Sperre auf allen drei Seiten, Links und Zaehler auf
gitea.com (site.js liest jetzt stars_count/open_issues_count und die Releases von
dort), Discord-Abschnitt, Demo-Sektion als "Temporarily offline" mit Verweis auf APK
und Selfhosting, dazu die neuen Styles und der Umami-Tag der Website.
Die Zeitleiste auf about.html fuellt sich, sobald hier Releases stehen - die
Release-API von gitea.com liefert aktuell noch nichts.
Das GitHub-Repo ist mit dem gesperrten Account weg, mit ihm die GHCR-Images, die
Pages-Demo und die Discussions. Alles, was jemand zum Selbsthosten anklickt, zeigte
aber weiter dorthin.
- docker-compose zieht jetzt gitea.com/duartesantos/opengym-{api,web}; die
Dockerfile-Labels (source/url/documentation) ebenso
- README, SECURITY, CONTRIBUTING und docs/SELF_HOSTING zeigen auf gitea.com.
Discussions gibt es dort nicht: Fragen und Ideen laufen als gelabelte Issues,
Security-Meldungen ueber eine Issue-Anfrage nach einem privaten Kanal statt
ueber GitHubs Advisories
- Badges auf die Gitea-Shields umgestellt, die tote Pages-Demo aus dem Kopf
genommen (die APK bleibt der Weg zum Ausprobieren)
- .gitea/workflows: Tests und Docker-Publish, weiter mit Release- statt
Tag-Trigger. Kein type=gha-Cache, den gibt es auf den Gitea-Runnern nicht;
der Push braucht ein Repo-Secret PACKAGES_TOKEN mit write:package
- .gitea/ISSUE_TEMPLATE mit denselben Formularen wie auf GitHub
- .github/* bleibt unangetastet, falls der Account zurueckkommt
Die alten Issue-/PR-Nummern im CHANGELOG bleiben als reiner Text stehen - sie
zeigen auf ein totes Repo und passen nicht auf die Nummerierung hier.
website/: fester Umami-Tag fuer opengym.duarte-santos.ch (Landing/About/Docs).
frontend/: vite-Plugin injiziert den Tag NUR wenn VITE_UMAMI_SRC und VITE_UMAMI_ID
beim Build gesetzt sind — ein normales 'npm run build' und damit jede
selbstgehostete Instanz bleibt telemetriefrei.
(Die Download-Zeile auf v1.2.7 lag schon uncommitted im Baum und faehrt mit.)
Capacitor 7 behandelt Zurueck gar nicht selbst, das macht @capacitor/app -- das
Plugin fehlte, also lief jede Zurueck-Geste an der WebView vorbei direkt in
finish(). Die History-Eintraege pro Sheet (#63) haben nur im Browser gewirkt.
Neu: lib/back.js entscheidet Sheet -> Seite -> zweimal Zurueck zum Beenden
(exitApp, weil das Plugin mit registriertem Listener nie mehr selbst beendet),
gesperrte Sheets schlucken Zurueck weiterhin. Version auf 1.2.8/versionCode 9.
docs/AI_COACH.md gab es, verlinkt war es von nirgendwo, und weder README noch
die Website erwaehnten das Feature ueberhaupt. Wer es nicht schon kannte,
konnte es nicht finden.
README: Zeile bei den Features (neben dem MCP-Punkt, denn beides ist optional
und beides bleibt aus dem Standard-Build draussen), Haken im Roadmap, Absatz
unter Tech zur eigentlichen Konstruktion -- Allowlist raus, geschlossene Liste
rein, Anwenden erst nach Zustimmung auf dem Client.
API_TARGET und COACH_DISABLED standen in keiner Konfigurationstabelle und in
keiner .env.example, obwohl das die zwei Schalter sind, die man dafuer braucht.
website/docs.html bekommt einen eigenen Abschnitt neben "Ask an AI" -- die
beiden werden sonst verwechselt: das eine liest read-only ueber MCP, das
andere schreibt Plaene vor. Mit dem Gesundheitshinweis, wie in der App auch.
test.yml baut --target default und --target coach und prueft beide. Nur baut
docker-publish.yml ueberhaupt kein Target: dort steht bloss context ./api,
und damit geht raus, welche Stage im Dockerfile zufaellig zuletzt steht. Genau
dieses Artefakt zieht jeder Selfhoster als :latest -- und es war das einzige,
auf das keine einzige Zusicherung zeigte.
Im Moment steht default zuletzt, es stimmt also. Aber das ist eine Eigenschaft
der Reihenfolge im File, nicht eine, die irgendwo geprueft wird: eine
angehaengte Stage im naechsten PR und das Standard-Image bekaeme SDK,
bubblewrap und Codex, ohne dass ein Build rot wird.
Also dieselbe Negativ-Pruefung noch einmal auf einen Build ohne --target.
common.md wird jedem Prompt vorangestellt, also galt Regel 5 -- "jede
Begruendung nennt das, was in ihren Daten dafuer sprach" -- auch beim ersten
Plan fuer jemanden, der noch nichts geloggt hat. Da gibt es nichts zu nennen,
und die Regel hat das Modell genau dorthin gedraengt, wo es sich etwas
ausdenkt. Neu steht dabei, worauf man sich stattdessen beruft: Ziel, Erfahrung,
Tage, Ausruestung, Einschraenkungen -- und dass ein fehlendes window kein
Fehler ist. review.md sagt jetzt ausserdem, dass ohne Sessions die ehrliche
Antwort nochange ist, statt einen Grund zu erfinden.
repsMax stand im Validator, aber in keiner Tabelle -- das Modell konnte einen
Typ nicht verwenden, den wir akzeptieren.
payload.js laesst history ganz weg, wenn nichts mit Gewicht geloggt ist. Damit
lief die FR-20-Deckelung ins Leere und ein erfundenes Startgewicht ging
unveraendert an einen Anfaenger durch. Ohne Vergleichswerte fliegt weight jetzt
raus; die erste Session setzt die Basis, so wie create.md es ohnehin verspricht.
Dazu vier Luecken, die alle dieselbe Form haben -- etwas wird gezaehlt oder
gesetzt, aber nicht auf Eindeutigkeit geprueft:
- Zwei Routinen mit derselben id: known ist ein Set, die Woche validierte,
ohne dass feststand, welche der beiden gemeint ist.
- Dieselbe Uebung zweimal in einer Routine: danach ist jedes reorder
unerfuellbar (es verlangt jede id genau einmal) und jede gezielte Aenderung
trifft die erste Kopie.
- Eine leere Woche uebersprang die Tagesanzahl-Pruefung ganz: "vier Tage" wurde
mit einem Plan beantwortet, der gar nichts einplant.
- inc war nach oben offen.
add-routine trug ausserdem repsMin, prog und inc nicht mit, obwohl der
Bundle-Pfad sie kennt.
Die drei Codex-Flags sind aus invoke() in ein exportiertes argvFor()
gewandert und werden jetzt beim Wert geprueft. Sie waren vorher nirgends
getestet -- eines davon zu loeschen war ein gruener Build.
Nach dem Annehmen landete man auf /plan — einem Screen, der "heute" gar nicht
kennt und keinen Startknopf hat. Home kennt es laengst: effectiveRoutine fuer
heute, und onToday gibt die Routine an startFlow. Also faehrt der Accept jetzt
dorthin, wenn der Wochenplan uebernommen wurde, und nur sonst noch auf /plan.
Kein zweiter Startpfad, kein neues Sheet.
Was auf Home gefehlt hat: an einem Ruhetag war die Zeile eine Sackgasse. Neu
nennt sie die naechste Einheit — nextTrainingDay() neben effectiveRoutine,
nimmt ein ISO-Datum statt die Uhr zu lesen, ueberspringt Routinen ohne
Uebungen (sonst startet man in eine leere Session) und respektiert dayPlan.
Dabei zwei Fehler gefunden, die genau diesen Weg kaputt gemacht haetten:
- mergePlan schreibt s.week neu, ruehrt s.dayPlan aber nie an. Eine alte
Verschiebung auf 'rest' versteckte damit eine Einheit, die der neue Plan
vorsieht, und eine alte Routine-Id gewann gegen die neue Woche. Der Sweep
sitzt bewusst in applyCreatedPlan, nicht in mergePlan: mergePlan haengt auch
am Plan-Import, und dem jemandem die Verschiebungen zu loeschen, weil er
einen fremden Plan importiert, waere eine ganz andere Aenderung — ohne Undo.
- remove-routine raeumte die Woche auf, den dayPlan aber nicht. Der Zeiger
blieb liegen und der Tag trug dauerhaft das "verschoben"-Abzeichen.
Snapshots tragen dafuer einen Patch der geloeschten Eintraege statt einer
Kopie des ganzen dayPlan — der umfasst jedes je verschobene Datum, und drei
Kopien davon haetten echte Snapshots aus dem 256-KB-Budget gedraengt.
Ausserdem: validateProposal nennt sich Spiegel des Servers, pruefte aber nur,
dass routines nicht leer ist. Der Server lehnt auch eine Routine ohne
Uebungen ab — sonst wird die eingeplant und "heute starten" oeffnet eine
Session ohne Inhalt.
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.
#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.