78b815ae8f06227de1d34a916045e4e10439b258
7
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
45183c725f |
The splash is the photograph, and it is painted before the app exists
Tests / test (push) Canceled after 0s
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s
Two things about the launch screen on the phone. **No mark on it.** The photograph is the screen now — the logo that sat in the middle is gone, and so is the vignette that existed to keep that logo readable. Nothing to read, just the picture, which is what was asked for. **It no longer waits for React.** Until now the splash was a React element, so it could not appear until the bundle had downloaded, parsed and mounted — on a phone that is the long blank stretch between opening the app and seeing anything, and it is why the splash seemed to arrive late and then flash past: by the time it rendered, the app was nearly ready. index.html now paints the same photograph from inline styles, so it is on screen as soon as the HTML is parsed, with the bundle still downloading behind it. React replaces the container's contents when it mounts, and the two screens are identical — same image, same object-fit, same base colour behind it while the picture decodes — so the handover cannot be seen as anything but the app arriving. The blank before even that is iOS's own launch screen, which is what apple-touch-startup-image covers: production already serves all fourteen, so a PWA that still opens white is one that was installed before those existed. Removing the icon from the home screen and adding it again is what makes iOS pick them up — its launch images are read at install time, not on every launch. |
||
|
|
9e580c4794 |
Cards you can see through, a splash that waits, and iOS launch screens
Tests / test (push) Canceled after 0s
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s
**The transparency was there and invisible.** `--glass` was a near-black at 55% alpha, and a dark film over a dark background reads as solid no matter what the alpha says — so the cards looked exactly as opaque as before. It is 34% now, the family tint weighs a little more (14%) and the blur is 10px instead of 16: heavy blur flattens the backdrop into one colour, which hides the very thing that is supposed to show through. The opaque `@supports` fallback is gone as well. It was copied from the tab bar, where it is right — the bar floats over scrolling text — and it is wrong here: a card sits in the page flow and the only thing behind it is the aura. On any device that took that branch, the cards were solid by construction. **The splash now waits, which is what a launch screen does.** It stays until the boot is finished, with a floor of 1.1s so it can actually be read (a warm boot takes milliseconds, and a splash that lasts that long is a flicker) and a ceiling of 6s so a request that never answers cannot hold anybody behind a photograph — their workouts are already local. The mark pulses slowly while it waits, so it looks like a screen that is loading rather than a photograph that is stuck. **The long white is iOS, before any of our code runs.** The deployed HTML already carries the aura's base colour inline, so what is left is the installed web app's own launch screen: iOS paints it before the page exists, and without an `apple-touch-startup-image` that matches the device it paints nothing. Fourteen entries now cover the phone and tablet sizes the app is opened on, cropped from the same photograph (each device fetches only its own). build-app-icons.mjs fails when the sizes it generates and the sizes index.html links disagree, because a missing entry is the blank screen this exists to remove. |
||
|
|
a0f1f388bc |
The splash nobody could see, the white flash, and cards that let the aura through
Tests / test (push) Canceled after 0s
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s
Three things, and the first two were bugs rather than taste. **The launch screen never appeared.** Its condition was `!ready && !authed`, and `authed` is true from the saved profile — so a signed-in person (everybody who has ever opened the app) went straight past it and only a brand-new device ever saw the photo. It now shows for the first half second on every launch, and beyond that only while there is genuinely nothing to show yet (no profile and boot still running, the original behaviour, which stops the login screen flashing before the server config lands). Deliberately not "until ready": boot pulls from the server, and waiting for it would hide the local copy exactly when the network is bad — working from that copy is what the offline mode is for. **The white screen.** Until the app's stylesheet arrives the browser paints its own default, and the aura's dark base only existed in that stylesheet — so a cold load, or a service worker swapping in a new bundle, started white. index.html now carries the base colour inline, and, next to it, a few lines that apply the saved theme and accent before the first paint: the app reads those after boot, which meant everybody who had chosen anything saw the defaults flash first. Same storage key the store writes, same resolution of 'system'. **The cards.** They were solid --surface, which sat on top of the aura and hid it. Salud's tiles and chart panels are glass now — the family tint over a translucent fill, a hairline border in the same tint, and a 16px blur with a saturation lift so what shows through stays readable. The fill is a warm near-black rather than the neutral grey: a cool card over a warm gradient reads as a dirty edge. The token (`--glass`) is defined per theme, and where backdrop-filter is unsupported the cards go back to solid, which is the trade the tab bar already documents — the fallback block sits AFTER the glass rules, or the cascade would have handed it the blur it cannot render. Only Salud's cards are glass so far; the rest of the app is still opaque, which is a bigger decision than this change should make on its own. |
||
|
|
c3c1c2836c |
Salud: Today by default, chart panels, and an aura behind the whole app
Tests / test (push) Canceled after 0s
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s
Three things the screen was missing, plus the launch photo.
**Today.** The period filter started at 30 days, which buried the question a five-minute
cadence exists to answer: what do the numbers say right now? "Today" is now first and the
default, and it means today — the grid drops metrics nobody has measured today (the scale
is not stepped on every morning), and if nothing has come in yet the grid falls back to
everything and says so rather than showing an empty screen. The number on every card was
always the newest reading; what is new is that the card says which day it is and when it
landed ("hoy · hace 12 min"), so the claim can be checked instead of trusted. The screen
also refreshes itself every minute while it is open, which is what makes a five-minute
cadence visible.
The filter and the charts want different windows, and the view keeps them apart: a
sparkline or a trend needs history, so the fetch never asks for less than a week even in
"Today", and anything labelled with a window says which one it is. (The alternative —
fetching one day and drawing nothing — would have made Today the one mode with no charts.)
**Chart panels.** Every tile carries a 52px sparkline, which shows a shape and cannot be
read. The first few metrics in the catalogue's own order now get a full-width panel each:
axes, the window's min / avg / max, and the card's own colour, so a panel and its tile are
recognisably the same metric.
**The aura.** index.html carries the three "Diamond Weave" layers and index.css puts the
base colour on `body` where the blend modes composite against it, with `#app` lifted to
z-index 1 so the absolutely-positioned layers cannot paint over the page (everything modal
was already higher). Dark keeps `screen`; the light theme switches the same layers to
`multiply`, because screened amber over white is amber that has been washed away. The blur
radii follow the spec per breakpoint, and the layers are fixed rather than absolute so
scrolling never repaints two 200px blurs.
**The launch screen.** assets/splash.jpg is a 3862×5786 photograph from a camera, so
nothing ships it raw: build-app-icons.mjs now derives public/splash.webp (1170px wide, 62 KB
— WebP because it is a photo) for the boot screen and resources/splash.jpg (2732×2732,
fitted on the aura's base colour rather than cropped, so a portrait composition survives)
for @capacitor/assets. The 12 MB original is gitignored: the derived files are committed,
so a clone still builds, and the script says what is missing when regeneration is asked for
without it.
|
||
|
|
87bfd6d4c4 |
Rebrand to KuentaGYM, and start a new profile in pounds and Spanish
The app is now KuentaGYM everywhere a user can see it, and a fresh profile no longer starts on upstream's English/kg defaults. Both are this fork's decisions, so both are pinned by tests rather than left to a find-and-replace. Rename (1,270 references, 149 files) - Visible surfaces: the Login/Home/mobile-onboarding wordmark, the Settings version line, the printed plan, the PWA title + manifest, and the 17 branded strings across all 14 locale packs. - Infrastructure: repo links, the container images and the release endpoints now name git.dploy.lol/dsantillan/kuentagym; .gitea/workflows/docker-publish.yml publishes to this forge's registry instead of gitea.com. - The Android/iOS application id stays ch.duartesantos.opengym on purpose: changing it would make the mobile app a different app that could never update an installed copy. Three things the mechanical pass would have broken, fixed here - The update check asked gitlab.com for upstream's releases and would have installed upstream's APK, putting the old name back on the phone. It now reads this fork's Gitea releases API (the assets shape differs), with the tests rewritten to the payload Gitea actually returns. - Renaming the mobile state/pairing files (opengym-state.json, opengym-remote.json) would lose the on-device copy of a history whose WebView storage may have been evicted, and silently unpair the device. Both are read under their old names and written forward under the new ones. - Renaming the exported plan-file marker (openGym_plan) rejected every plan shared before the rename as "not a plan file". Both markers are accepted. Defaults: pounds and Spanish - DEF.unit = 'lb', DEF.lang = 'es', plus every fallback that independently assumed en/kg (the <html lang> attribute, the Settings pickers, the Store, the MCP, the Coach payload). - Server-generated push copy existed only in English and pt-BR, so a Spanish profile would have been notified in English; Spanish added. - The demo seed states unit: 'kg' — its seeded numbers are kilograms, and inheriting the new default would have introduced an 82.4 lb lifter benching 60. - The module-level language in i18n-core stays English: it is the only language whose strings need no pack, so `t()`, dates, numbers and lists agree before a pack loads. Starting there on 'es' formats a Spanish-shaped UI with English strings. Also - api/package.json's test glob missed push-messages.test.js and verify-error.test.js, which sat beside the modules they cover and never ran. - README, docs/, website/ and the issue templates no longer describe upstream's GitLab/GitHub pipeline, Discord, sponsorship or public demo as if they were this fork's; upstream history and attribution are preserved (NOTICE.md). |
||
|
|
46988c3bfc |
fix: fetch the manifest with cookies (crossorigin=use-credentials) so the Home Screen icon survives an auth proxy
Browsers request the web app manifest without credentials, even from the same
origin — the spec's default; Safari follows it, Chromium sends cookies anyway.
Behind a login proxy (Authelia, Cloudflare Access, Teleport…) that request gets
the proxy's redirect instead of manifest.json. iOS 26 picks the Home Screen icon
from the manifest ("If you define your icons in the manifest, they're used"), so
Add to Home Screen ends with the generic icon.
crossorigin="use-credentials" is the attribute the spec provides for this; MDN
documents it for exactly this case, Home Assistant and GitLab ship it. No effect
on a deployment without a proxy: same origin, same file.
Verified: `npm run build` keeps the attribute in dist/index.html; frontend suite
109 files / 1613 tests.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit 8b82a5d2571c79c92c08f03f17d16cd0c445d70b)
|
||
|
|
7e1d27b218 |
Rewrite frontend in React + Vite (organised component tree)
Ersetzt die 1900-Zeilen-Vanilla-SPA durch eine strukturierte React-App: - frontend/src: views/ (9 Views), components/ (Modals, LineChart, Heatmap, TabBar, Media, Stepper, RestTimer, Toast), store/ (Zustand: State+Sync, UI), lib/ (format, history, exercises, api/WebAuthn, sound, nav) - React Router (Hash), Zustand-Store mit localStorage + Server-Sync - Reaktives DOM-Diffing löst das manuelle Re-Render-Ruckeln (GIF läuft beim Set-Abhaken flüssig weiter) Self-Hosting bleibt ein Befehl: web/ ist jetzt ein Multi-Stage-Dockerfile, das das Frontend IM Container baut und mit nginx ausliefert — keine lokale Node/Build-Kette nötig. Übungsmedien nach ./media ausgelagert. Voller Ablauf im Headless-Browser getestet (Login→Plan→Workout→Stats→ Library→Settings, Feature-Parität) und Standalone-Compose Ende-zu-Ende (React-Build im Docker, /api-Proxy, geforgter Passkey-Login) verifiziert. |