The weekday header on the Plan screen and the toast after "Add to my plan" both formatted
their count with the plural key only, so a single routine read "1 routines". The singular
"{0} routine" has been in every pack all along — a routineCount helper next to exCount in
lib/format.js now picks the form, and the import sheet's own summary line uses it too instead
of spelling the choice out again. The toast needed a real singular string, "Added {0} routine
to your plan", added to all 14 packs; pt-BR overrides it like the plural, so the inherited
pt-PT set and its fingerprint are unchanged and only the override count moves to 645.
The GitHub-style activity heatmap hardcoded Monday-first weeks — both the
column anchoring and the Mon/Wed/Fri row labels — while every other "this
week" surface (Plan, streaks, muscle balance, effort chart) already reads
S.weekStart. Anchor the grid with weekDayOffset() and derive the row labels
from it too, so a Sunday-first profile gets a Sunday-first grid.
Lighthouse desktop flagged the one in-text link that relied on colour alone;
the hero and rail images gain a 480w candidate so a 2× phone no longer
downloads the 600w file.
- Screenshots retaken from the v1.3.7 demo build (the old set still showed the
pre-1.3.3 workout screen with its button rows). The five phone images are now
served through <picture> as WebP at 600/1170 px with the PNG as fallback; the
hero image is preloaded. website/build-images.sh produces img/ from assets/.
- og:image on every page is a 1200×630 card (assets/social.jpg) with width,
height and alt; robots meta with max-image-preview:large; preconnect to the
analytics host; SoftwareApplication JSON-LD carries version, dates,
screenshots and a feature list.
- Every page starts with a Skip-to-content link and the content sits in
<main id="main">; scroll reveals are also disabled for print.
- The GitHub and Discord counters wait for requestIdleCallback instead of
racing the hero image. Cache-bust ?v=18. llms.txt names GitHub as the home.
- robots.txt, sitemap.xml and llms.txt now live in website/ so the site is
fully regenerable from the repo.
iOS fetches the Home Screen icon outside the page, without the session cookie
(observed on iOS 26.6 behind Teleport: the page and the manifest reach nginx,
the icon request never does, iOS draws a letter tile). The manifest attribute
in the previous commit covers the manifest fetch; the icon fetch is the proxy's
to exempt. Names the knob for Authelia, Authentik, Cloudflare Access and
oauth2-proxy, and says what a proxy without path exemptions has to do instead.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The app routes behind the hash (/#/plan, /#/history …), so a path is never a
screen, and the shell's asset URLs are relative (vite base './' — the Pages demo
lives under /demo/). nginx's SPA fallback served index.html AT the requested
path: for /plan/r/x (a typo, a stale link, anything not a file) the page's
scripts resolved to /plan/r/assets/… and 404'd — a blank page with a 200.
try_files now ends in a named location that answers 302 / (query string kept;
the hash never reaches the server). absolute_redirect off keeps the Location
relative, so the redirect stays on whatever scheme and host the reverse proxy
in front presented instead of nginx's own http://host:80. Files, directories,
/api/ and the regex locations are untouched.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit e49f1326e2c2c63c6688dfe85fc3e4bdd444231f)
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)
Three things iOS needs that a desktop browser does not, all in lib/sound.js:
1. The ring/silent switch mutes Web Audio: a page whose only audio is Web Audio gets the
Ambient category, which obeys the switch. The way out is the 'playback' audio-session type
(iOS 17+), which is exclusive — it pauses whatever else is playing and WebKit never tells that
app it may resume — so it is a setting, off by default: Settings → Sounds → "Play sounds when
the phone is on silent" (S.soundOnSilent, applied page-wide by App.jsx). Offered only where it
means something: a WebKit with navigator.audioSession on a device with a switch.
2. Locking the screen or switching apps leaves a suspended context suspended, and a suspended
context makes no sound: every tone resumes the context first. The context sleeps again a
second after the last tone so it does not keep the phone's audio session busy.
3. A context created outside a tap starts suspended and no timer tick can start it: unlock()
runs from the taps that lead to a timer (turning Sounds on, starting a hold).
Split out of #165 at the maintainer's request; the per-kind rest-over sounds and the timer-bar
work stay there. Tests: lib/sound.test.js (fake AudioContext + audioSession), views/Settings.sound.test.jsx.