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.
39 lines
2.0 KiB
HTML
39 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover,user-scalable=no">
|
|
<title>KuentaGYM</title>
|
|
<meta name="description" content="Personal gym & body weight tracker">
|
|
<meta name="theme-color" content="#0c0e12">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
<meta name="apple-mobile-web-app-title" content="KuentaGYM">
|
|
<!-- use-credentials: browsers fetch the manifest without cookies, even same-origin; behind an auth
|
|
proxy (Authelia, Cloudflare Access, Teleport…) that fetch is a login redirect and the Home Screen
|
|
icon comes out generic. iOS 26 reads the icon from the manifest, so this is where it shows. -->
|
|
<link rel="manifest" href="manifest.json" crossorigin="use-credentials">
|
|
<link rel="apple-touch-icon" href="icon-180.png">
|
|
<link rel="icon" type="image/png" href="icon-180.png">
|
|
</head>
|
|
<body>
|
|
<!-- "Diamond Weave" aura — the atmosphere behind every screen.
|
|
Three stacked layers, two of them blurred and composited with mix-blend-mode against the BODY
|
|
background, which is why this container must never carry a background-color of its own: the
|
|
layers would blend against that instead of the page and the effect washes out. The base colour
|
|
lives on body in index.css (warm near-black in the dark theme; the usual light background in
|
|
the light theme, where the layers switch to `multiply` for the same reason).
|
|
It lives here rather than in React so it exists before the app boots — the splash has
|
|
something to sit on — and costs no render. Every layer is decorative: aria-hidden here, and
|
|
pointer-events:none in the CSS so it can never eat a tap. -->
|
|
<div class="aura" aria-hidden="true">
|
|
<div class="aura-layer-1"></div>
|
|
<div class="aura-layer-2"></div>
|
|
<div class="aura-layer-3"></div>
|
|
</div>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.jsx"></script>
|
|
</body>
|
|
</html>
|