10 Commits
Author SHA1 Message Date
Duarte Santos 6b3c7d0ed7 v1.3.0 2026-09-03 23:08:45 +02:00
Duarte Santos f190f0ba4a v1.2.16: das Web-Image baut wieder, und ein MR-Check dafuer
web/Dockerfile kopierte nur frontend/, aber frontend/src importiert den Coach-Kern aus
api/coach/core (../../../api/coach/core/*). Der Build-Stage liegt jetzt unter /app/frontend
und bekommt api/coach/core an derselben relativen Stelle wie im Repo. Neuer Job
build:web-check baut das Web-Image in jeder MR-Pipeline, die frontend/, web/ oder den Kern
anfasst (der API-Check gab es schon, den Web-Check nicht — deshalb ist v1.2.15 durchgerutscht).
Auf der VM gebaut und geprueft: App-Shell 200, Coach im Bundle.
2026-09-03 22:45:31 +02:00
Duarte Santos 6c4af7d5fc v1.2.15 2026-09-03 22:36:31 +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 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
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