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.
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.
Settings → During a workout → "Weigh in before workouts", on by default. Off, tapping Start
begins the session straight away with no body weight on it — what "Start without weighing
in" did, without the sheet. Home and Stats still log weight by hand, and the Home
body-weight footer stops promising "it's also asked before every workout" while it is off.
S.weighIn (DEF true, read as `!== false` so older profiles keep asking, same as checkIn).
startFlow is the single entry point for every Start button, so the check lives there;
"log a past workout" never asked and is unchanged. Three new strings in all 14 locales,
pt-BR as explicit overrides (inherited set and fingerprint unchanged). Test:
sheets.weighin.test.jsx — on / legacy profile / off, through the real store and sheet stack.
Closes#137.
An exercise's restSec runs after every set, warm-up ramp included, so a heavy lift with a
150 s working rest also puts 150 s between two light ramp sets. Exercises may now carry a
second optional field, warmupRestSec: the rest between warm-up ramp sets.
- The break after the LAST ramp set (into the first work set) stays the working rest, because
that is the rest the first heavy set actually needs.
- Without the field nothing changes: ramp sets rest like work sets, exactly as before.
- Like restSec, the field is set by plan files (and by external planners writing routines);
no new UI, no new string, no locale change. It travels with a shared plan the same way
restSec does and is dropped when unset.
Where:
- src/lib/supersetFlow.js: warmupRestSecFor(entry, setIdx, workRestSec), the pure rule,
tested beside it (supersetFlow.test.js)
- src/views/Workout.jsx: the rest started after a checked set goes through it, at all four
start sites (re-check, singleton, unit done, superset round done)
- src/lib/plan-share.js: export/import passthrough with the same clamp as restSec
(plan-share.test.js)
- src/views/Workout.test.jsx: 45 s between ramp sets, 150 s after the last ramp set and
after work sets
Why: a lifter asked for it after two sessions ("warm-up sets have way too large of a rest
period, it should only be 60-90 seconds max") while wanting 90-150 s on the working sets.
The only lever today is one number per exercise.
Tests: cd frontend && npm test -> 1338 passing (93 files), including the new cases.
Compatibility: additive. Old routines, old plan files and old sessions have no field and
behave exactly as before. The API stores routines as opaque JSON, so nothing server-side
changes. The AI Coach's payload allowlist does not include the field (not needed there).
- reminder tick: a due reminder is sent for up to 15 minutes after its time (once per local
date) instead of only on the exact minute — a restart across that minute used to lose the day;
state files are stat'ed and re-read only when they changed
- sendPush prunes 403 (stale VAPID key) like 404/410; optional device targeting
- POST /api/push/subscribe is an upsert that keeps created and stores a deviceId;
GET /api/push/status says whether the server holds an endpoint
- rest timers keyed per user+device; cancel without a device id keeps the old account-wide
behaviour
- sw.js: payload parsed inside waitUntil (never a silent push), pushsubscriptionchange
re-subscribes and registers the new endpoint
- lib/push.js: syncPushSubscription() (called once per signed-in boot from App.jsx and when
Settings opens) re-registers a lost row, replaces a subscription made against another key,
pushSupported() is false off https; deviceId() per browser
- Settings: the notifications switch shows what the server holds
- tests: server-reminder (window, dedupe, trained day), server-push-status (upsert, status,
per-device timers), lib/push.test.js
- useRevealActiveChip sets the strip's own scrollLeft instead of scrollIntoView, which
walked every scrollable ancestor and jumped the page when the strip sat above the fold;
.chips contain overscroll on both axes.
- Every .sheet cap (and .center) carries env(safe-area-inset-top); the dead
-webkit-overflow-scrolling is gone.
- viewport-guard: with the keyboard down and the page displaced, a text field that kept
focus (WebKit does not blur on button taps) is blurred and the correction runs; while
Modals has the body pinned it unpins for one scroll and pins back where it was.
Modals blurs a page field when a sheet opens; ticking a set blurs the row's input.
- Android: shortEdges cutout mode so --sat is real, adjustResize for the keyboard.