Two narrow bands were left where a set row was wider than the content box of the card it sits in,
so its done tick reached into the card's side padding: 360–365 px on an L/R row with an effort
column (over by 6, 5, 4, 3, 2 and 1 px, in a sets card inside a superset card or a list unit,
cards, list and compact alike, with a rating logged or not), and 401–404 px on a plain row with
an effort column in a superset in the list and compact view (over by 4, 3, 2 and 1 px). Nothing
was clipped and nothing left the screen — the page never overflowed and every number field still
had scrollWidth == clientWidth — but a row may not stand in its card's padding.
Both are the same shape: a give-way that ends one pixel before the layout it hands back to fits.
At 401 px the nested cards' padding snapped back to 16 + 14 + 14 per side and took 48 px off the
row in the one pixel the screen had gained, leaving 281 px for cells that want 285; at 360 px the
effort −/+ returned and asked for 35 px more than the row had. So each give-way now ends where
its full-size counterpart fits. The padding give-back for the list view's units, superset cards
and sets cards runs to 404 px instead of 400, because 405 px is the width where the three full
insets and the row's 285 px of cells first add up to the screen. And the effort column, which had
one step (nothing below 360 px, 64 px from 360), gets the intermediate one it was missing: from
360 to 365 px an L/R row's pill is 56 px, its −/+ shrinking to a 12 px floor. They are what that
cell sheds first — a pixel lower they go altogether — and the rating keeps its 28 px tap target.
The weight and reps columns were deliberately left alone: they have the 41 px numbers and the
18 px button floors of every other row, and "WEIGHT (KG)" needs 75.5 px of the weight column's
77, so taking the six pixels there would have wrapped the header onto a second line at the most
common phone width there is.
Measured with scripts/opengym-qa/run/r3-setrow-band/sweep.mjs on the QA rig (slot 31, slot 71 for
fixes-0917), a 1 px sweep from 320 to 440 px across cards / list / compact x effort none / RIR /
RPE x steppers on / off x a plain and an L/R row inside a superset and outside one (3630
measurements per build, values 102.5 / 227.5 kg, 12 / 100 reps per side, RIR 2.5 / RPE 8.5,
Liberation Sans as the Roboto-metric proxy): before, 64 measurements had a row past its card's
content box — exactly 360–365 and 401–404 px — and after, none, with no clipped number field, no
card or unit past its parent or the screen and no page overflow anywhere in the sweep. The empty
effort cell (empty-eff.mjs) was over by the same 6 / 3 / 1 px at 360 / 363 / 365 and is now 0.
The effort cell is 56 px wide at 360–365 px and 64 px again at 366; the weight column stays 77 px
and its header label one line (before: one line at 77 px, two at 73). The picker still opens:
tap-effort.mjs at 360, 363 and 365 px in cards and list, taps at the value's centre ±6 px, 30 of
30 opened it. 320, 368 and 412 px lie outside both edges, and fix-setrow-layout/measure.mjs — the harness of
0b1072d, 108 combinations of width, view, effort, steppers and superset — prints byte-identical
output on this build and on fixes-0917, 0 with problems (QA C2, C3, C4, C5, C21, C22, C24).
The weight/reps steppers gave their two 32 px buttons priority over the number between them, so
on narrow phones the field shrank to nothing: at 320 px a fresh profile (no effort column,
buttons on) showed an empty reps field and "102" for 102.5; per-side rows lost the reps number at
368 px, and inside a superset at 412; the cardio row's 10.5 km/h read "10"; a per-side drop set's
two fields collapsed to 0 px; with an effort column the decimal weights lost their last digit at
320 px; a weighted timed hold showed "102.!" for its load at every phone width; the logged
effort's value shrank to 4 px under its own digits so a tap on it stepped the rating instead of
opening the picker; and the column header over per-side rows stood 17-23 px left of the cells
because it never accounted for the L/R badge. Only the #235 mitigations existed, scoped to rows
with an effort column.
Every number field now reserves the widest value it shows at its own font (`--num`, plus the
field's padding and 2 px against font rounding), the cell is never narrower than that plus two
button floors (18 px, 16 px on the tightest rows), and the buttons shrink first. The weight and
reps buttons, that is: the effort cell is a `.stp` too and its value is a `<button>`, so that
rule stays off it and the value keeps filling its cell instead of sitting in a 32 px box with
dead space beside it. The effort column keeps a 28 px value with 16 px floors; where a row cannot
hold three numbers and six buttons — every row below 360 px, and an L/R row inside a superset in
the list view below 430 px, where three insets leave it 260 px of a 412 px screen for the 277 its
cells want — the effort's −/+ give way and the value alone stays, still opening the picker; from
430 px up that row keeps its −/+ like the plain row above it. A timed hold logs the seconds first
and the load second, so those two columns swap their reserve and their share at every width, not
only below 360. The header carries `per-side`, `timed` and `plain` from Workout.jsx so its columns
freeze exactly where the cells do; per-side drop rows no longer pay the straight row's 32 px
indent twice; a weighted timed hold (one control more than a straight row) gets the effort-row
sizing below 360 px. The list view's grid gets minmax(0,1fr): with floors on the cells the default
`auto` track grew a unit past the screen and carried the ticks off it, which is also why an
earlier draft's list numbers looked fine. The sets card nested in a list unit or superset card
gives up 8 px of side padding at <=400 px so every row has the same 256 px at 320 as in a plain
card.
Measured with scripts/opengym-qa/run/fix-setrow-layout-2/measure.mjs on the QA rig (slot 70), one
fresh guest per combination, 320/368/412 px x cards/list/compact x effort none/RIR/RPE x buttons
on/off x plain/superset (108 combinations), values 102.5 / 227.5 kg, 12 / 100 reps, 22 min @
10.5 km/h, timed holds of 120 s @ 32.5 kg, 90 s @ 102.5 kg and 600 s @ 227.5 kg, per-side
22.5 x 12 and 102.5 x 100 with drops, RIR 2.5 / RPE 8.5, Liberation Sans as the Roboto-metric
proxy: before (fixes-0917) 0 of 108 clean, 698 clipped fields and the list unit 23 px wider than
a 320 px screen; after 108 of 108 clean, no row or unit overflow, header drift 0 px on plain and
per-side rows, the tightest field ("227.5" in a drop row) 2.1 px of slack. The same matrix at 768
and 1280 px (48 combinations): clean. The timed load — the field the earlier run only ever put
32.5 kg in — has 37 px for "102.5" and "227.5" at 320 px, 44 at 368 and 51-67 at 412, with
scrollWidth == clientWidth everywhere (before 17-29 px for a 41.7 px value, i.e. "102.!").
Effort cell (tap-effort.mjs, RPE 8.5, taps at the value's centre +-6 px, 320/368/412, cards and
list): 30 of 30 open the picker (before: 2-3 of 5 stepped the rating at 320/368); its value is
28 px next to 24.4 px of text on a phone and 71.5 px in a 115 px cell at 1280 px, centred between
the −/+ (before 32 px in a 105 px cell, bunched left). L/R rows in a superset in the list view
(budget.mjs, ss-eff.mjs): the effort −/+ are gone at 320-429 px and back from 430 px, where the
row is 278 px wide and nothing overflows — 1 px short at 428 — and at 768 and 1280 px both
buttons and a 28-35 px value are there, as on the plain row beside them. Per-side drop inputs
(drop-rows.mjs): 34/24 px for "22"/"5" at 320 cards, 368 list+superset and 412 list+superset
(before 0/0, 5/5, 13/13). Cardio speed "10.5" (cardio-speed.mjs): 35-45 px for a 32.5 px value at
every width and view (before 0-33 px). Header vs cell centres (header-drift.mjs): 0 px in all 12
configurations (before w -18..-23, r -6..-14).
Four fixes to layouts that only fall apart on narrow phones, all pre-existing:
Exercise config sheet (C6). Double progression on a weighted exercise puts four
steppers in one .cfgrow (Step, Reps from, Reps up to, Deload 1RM). Each spends 64 px
on its buttons, so four abreast left the input 1 px at 320 and 13 px at 368 — "1.25"
read "1.2", "90" read "9(". The row now carries `cfgrow-4` when it holds the four,
and below 480 px it wraps into two pairs (basis half the row minus half the gap).
From 480 up four abreast still leaves 41 px, enough for "1.25".
Routine editor, "Progression" row (C8, same as C23). .lrow-m had a basis of 0 and got
only what the capped value left over: a 37 px box for a 96 px title at 320, so
"Progression" was painted over by "Linear progression". The title column now keeps
104 px, the width of one long word; the value shrinks and ellipsises as before. This
is the same floor the segmented-control rows already use (150 px), which the more
specific rule keeps. All 60 title+value rows in the 15 packs fit at 320 px.
Page header (.hdr) (C25 plus the two reported header cases). The title block could
not shrink below its longest word, so "Упражнения" at 34 px, "Izom szerint" next to
it, or a profile name like "Hi Bartholomew_Jones" pushed the Settings gear or the
"By muscle" button off the right edge, and before that the button's own label wrapped
into two lines. The title block gets min-width:0, a word that does not fit is
hyphenated (hyphens:auto — <html lang> follows the app language) and broken anywhere
only as a last resort, and the header button is flex:none so it keeps its width.
Body-weight card header, Home and Stats. In German the title plus "Ziel" and
"+ Eintragen" outgrow a 320 px card by ~55 px and the last button poked past the
card; the header (`bw-head`) may now wrap the button pair onto a second line, still
flush right.
Measured on the QA rig (scripts/opengym-qa/run/fix-layout-misc/measure.mjs, en/de/ru;
after in DejaVu and with Roboto injected, before in DejaVu):
C6 input clientWidth for "1.25" (needs 37): before 1 / 13 / 24 at 320 / 368 / 412
→ 74 / 98 / 120, two lines; 480: 41, 600: 71, one line (c6-wide.mjs)
C8 title box / paint-over onto the value, 320 en: before 37 px / 47 px over
→ 104 / −20 (Roboto −27); 368 de before 65 / 19 → 104 / −20; 412 ru before 80 / 10
→ 104 / −14; no title clipped in any of the 9 cases
C25 Library button right edge, viewport 320 / 368: ru before 388 / 388 → 304 / 352;
Roboto 304 / 352 / 396 (412), title hyphenated "Упраж-нения" at 320 and 368
hdr Home gear right edge with "Hi Bartholomew_Jones": before 423 at every width
→ 304 / 352 / 396
bw last button past the card's padding, 320 de: before 53 px → 0 (second line);
368 de before 5 → 0
Regression sweep (sweep.mjs: /home /settings /plan /plan/r /stats /library /muscles
/history at 320 and 368 in en/de/ru/hu): no page overflow, nothing off-screen, no row
wider than its card. Vitest: 115 files, 1520 tests green; locales in sync; the
source-string baseline stays at 33.
Both sides cured the same English "Cardiovascular system" for the built-in cardio exercises:
this branch (6796e55) added a capitalised "Cardiovascular system" key to the 13 translated packs,
fix/copy (10ff64b, merged into fixes-0917) made MUSCLE_NAME['cardiovascular system'] lowercase so
the packs' existing dataset key translates it and the places that show it capitalise with CSS.
One mechanism is enough: the lowercase key stays, the 13 capitalised duplicates go, and the pt-BR
guard is back at fixes-0917's numbers (645 overrides, 647 inherited, fingerprint 185cca3d…,
regenerated with scripts/pt-br-inheritance-fingerprint.mjs). The locale packs are now identical
to fixes-0917; the branch's own changes (C10 target = first-tapped primary, C9 MUSCLE_NAME at the
picker row, config sheet, Muscles rows and workout tag) merge cleanly on top.
Routing the target through MUSCLE_NAME (2bf86a5) mapped "cardiovascular system" to the display
name "Cardiovascular system", which no pack carried — only the lowercase dataset key had a
translation. Every built-in cardio exercise (29 in the dataset, plus custom cardio) therefore fell
back to English in the picker row, the routine config sheet and the workout tag, where the parent
build already said "Herz-Kreislauf". The display name now carries the same translation each pack
had for the dataset key (pt-BR inherits it from pt-PT like the other muscle names; fingerprint
regenerated: 648 inherited). That also cures the Library row and the detail sheet, which mapped
through MUSCLE_NAME before this branch and leaked English there all along.
Regression tests: picker row + config sheet (sheets.muscle-names.test.jsx) and the workout tag
(Workout.test.jsx) for burpee 1160 in German, both failing before this change. Rig check on the
branch build (slot 71, de): configTags Cardio/Herz-Kreislauf/Körpergewicht, picker row
"burpee — Herz-Kreislauf · Körpergewicht", workout tags identical to the config tags, Library row
"Herz-Kreislauf · Körpergewicht", detail sheet Cardio/Herz-Kreislauf/Körpergewicht/…
The scroll margin that keeps the current unit out from under the pinned header was a
fixed 96 px, the height of a one-line header. The header renders the session name
without truncation, so a descriptive routine name or a two-routine "A + B" session
makes it two to five lines tall and the unit's label, Current badge and menu ended up
underneath it.
Workout.jsx measures the header right before it scrolls and hands the height to the
list as --whdr-h; .wl-unit's scroll-margin-top uses it (safe area included, since the
header's padding carries it) and keeps the one-line height as the fallback.
Measured on the QA rig (scripts/opengym-qa/run/fix-list-scroll/measure.mjs, gap from
header bottom to the current unit's top, tab-bar return with "Set current" on the 4th
exercise; before: negative = covered):
320 px 8ch 12 | 42ch (143 px header) 12, before −51 | 62ch (165) 12, before −73
368 px 8ch 11 | 42ch (121) 12, before −29 | 62ch (143) 12, before −51
412 px 8ch 11 | 42ch (99) 12, before −7 | 62ch (121) 12, before −29
backfilled session, 42ch name, via ⋯ → Layout → List at 368 px: 16
Choosing List (or Compact) from ⋯ → Layout closes a sheet, and two things put the
page back where it was before that sheet opened, after the list had already scrolled
to the current unit (#224):
- Modals.jsx re-applied the pre-sheet scrollY a second time 350 ms after closing. That
repeat exists for one case only — iOS scrolling the page again while the keyboard
dismisses — so it is now armed only when the keyboard is up at close time. With no
keyboard there is nothing to undo, and the late restore overwrote a scroll the view
made on purpose.
- App.jsx treated the popstate from the sheet's history entry (Modals pushes one per
sheet, #63) as a back-navigation: the pathname is the same, only the navigation type
flips to POP after the PUSH that started the workout, and the effect restored the
position it had recorded — read before the scroll event for the new position had
been dispatched, so it was the old one. A POP that stays on the current route is
not a navigation and is skipped now. That is also why the first sheet close after
Start failed and later ones (POP → POP) did not.
The list's own scroll now runs in the next frame instead of in the effect: App.jsx
asks for its restore frame during the same commit (reload, back-navigation), so a
frame asked for afterwards runs after it. It also re-runs on List ↔ Compact, where
the rows change height and the old offset lands on a different exercise.
Measured at 368 px on the QA rig (scripts/opengym-qa/run/fix-list-scroll/measure.mjs,
current unit's top vs. sticky header bottom, 77 px):
before cards→list via menu: scrollY 2601 at 223 ms, back to 399 at 304 ms, unit
2217 px below the fold (2/2); list→compact ok
after cards→list 93 px (gap 15) 2/2, list→compact 93 px 2/2, compact→list 93 px
2/2, reload 89 px 6/6, reload with a current superset 89 px 4/4, back from
Stats 89 px 2/2; verifier's own scripts 8/8 MENU OK at 368 and 412
LABELS and REASONS never got the three pair.* events and their two reason codes when the
pairing feature landed. The guard test now reads the event and reason lists off
api/server.js itself instead of a hand-kept copy, so the next new event fails the test
rather than printing a dotted identifier at the operator.
UserDetail rendered w.name and setsDone(w) on every stored entry, and the sheet host sits
outside the route's ErrorBoundary, so one null took the React tree down — #root empty until
a full reload, and exactly that account could not be disabled from the dashboard. Entries
without a usable session are skipped now; the API no longer accepts new ones, but a file
written before still answers with them.
readBody rejects with a typed HttpError for unparseable text and for a JSON null, string,
number or array; the catch-all answers it with its status and does not log it — three of
these routes are reachable without a session, and a stack trace per malformed body let
anyone fill the container log. String() on a caller-supplied field went through the same
door ({"code":{"toString":1}} is valid JSON) and is replaced by a text() helper.
PUT /api/data refuses an array state (typeof 'object', but _rev on it is dropped by
JSON.stringify, so the file read back as rev 0 while the response claimed rev N+1) and
drops null and non-object entries from workouts/routines instead of refusing them: such an
entry carries nothing worth keeping, while a 400 would strand a client whose own copy is
already malformed in a re-send loop. Every server-side reader of the document (reminder
tick, admin drill-down) dereferences the entries.
POST /api/push/rest-timer validates seconds before clamping — the clamp ran first, turned
any missing or unusable value into a 1-second push and made the documented 400 unreachable.
A body over 5 MiB is a 413 the client actually gets to read: the remainder of the upload is
drained instead of the socket destroyed under it (which sent a reset that a node client hit
before parsing the answer — the QA proxy reported 502 on 3 of 4 attempts, 5 of 5 read the
413 afterwards); past twice the cap the upload is cut off. openapi.yaml documents the
400/413 bodies and the rest-timer 400.
Custom exercises and the batch-1/Olympic metadata (#207) name muscles by the map's ids, for which
only the display names in MUSCLE_NAME have translations. The detail sheet and the Library row
already mapped through it; the picker row subtitle, the routine config sheet tags, the Muscles
explorer rows and the tag under the exercise name in a workout translated the id directly.
Rig check on the branch build (slot 71, en + de): picker row "Glutes · barbell" / "Gesäß · Langhantel",
custom config tags Glutes/barbell/Forearms/Hip flexors, power clean config tags in German
Beinbeuger/Langhantel/Waden/Unterarme/Schultern, Muscles > Glutes "Primary target · Glutes · barbell",
workout tag "Glutes" / "Gesäß".
Since the muscles are stored in the map's order, the one-word target `tg` was taken from the
head of that sorted list, so a hip thrust or deadlift with Traps as an extra primary showed up as
"Traps · barbell" in the library, the picker and the Muscles view — and because tap order was
discarded, the user had no way to correct it. The list stays in map order; the target is the
primary the user picked first, and editing an exercise keeps its target as long as that muscle
is still a primary.
Rig check on the branch build (slot 71, 368 px, Hamstrings → Glutes → Traps): stored primaries
['trapezius','gluteal','hamstring'], tg 'hamstring'; library row, picker row and Muscles > Glutes /
Hamstrings all read "Hamstrings · barbell".
MUSCLE_NAME values are the i18n keys, but the cardio pseudo-muscle was written as
"Cardiovascular system" while the packs only know the dataset's lowercase spelling, so the
Library row subtitle and the exercise sheet's target tag stayed English in all 13 translated
languages. Both places capitalise with CSS anyway, so the key now matches the packs and the
English rendering is unchanged. A test checks every MUSCLE_NAME value against every pack so
the next name added here cannot silently render English.
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.
parseWorkoutCSV invents a fresh 'im…' id for every name it cannot match, and
mergeImport appended those to S.customEx without looking at what was already
there — so importing Hevy, then a later Hevy export, left two 'Grip Trainer'
entries with one workout of history each (Hevy + Strong + FitNotes grew 25 → 76
customs, 24 of them duplicated names). mergeImport now matches parsed customs
against S.customEx by lower-cased, whitespace-collapsed name (an earlier import
or one made by hand), rewrites the fresh days' entry ids through that map and
only pushes the names with no match — the same shape mergeHevyRoutines and
mergePlan already use. Covers the Hevy API path too, which merges through here.
Both importers summed every set into w.vol, while a workout finished in the app
writes workoutVolume(w), which skips warm-ups — the config sheet promises they
stay out of volume, records and progression. The inflated number is stored with
the workout and read straight back by History, the heatmap and the month totals.
Filter with isWarmupRow, as the topW line right above it already does.
bpFromName matched its rules against the lower-cased name only, while the rules
are written with spaces: 'Stiff-Legged Deadlift' fell through to the deadlift
rule (back) and 'Chest-Supported Row' hit 'chest' before 'row'. The matcher's
wordsOf already treats both spellings as one exercise, so the fallback now
reads '-', '_' and '/' as spaces before the rules run and agrees with it.
Since #206 the search compared every query word of five or more letters against every
word of the exercise's corpus, body part, target and equipment included. A correctly
spelled word one edit away from one of those shared words matched a whole slice of the
catalogue: "wrist" ~ "waist" listed all 169 abs exercises (200 results instead of 31, the
first real wrist curl on row 23), "power" ~ "lower arms" 174 instead of 2, "slide" ~ "side"
34 instead of 1, and in the German UI "drücken" ~ "rücken" returned every back exercise.
Even words with exact hits picked up strays: "squat" led with "all fours squad stretch",
"clean" gained "lean planche".
The typo tolerance now compares against the exercise's own name words only (English and
localized), never body part, target, equipment or description. Lists (library, exercise
picker, muscle explorer) go through the new searchExercises: a word that appears literally
in at least one exercise of the list is taken at its word, and only a word with no exact
hit anywhere ("bnech", "dumbell", "wirst") falls back to the typo tolerance, so real
matches are never buried under fuzzy ones. matchExercise keeps working per exercise for
the progress picker. The existing typo tests keep passing unchanged.
Rig (412 px, /#/library, fresh guest, rows rendered / first genuine row) before -> after:
wrist 40+/23 -> 31/1, power 40+/none -> 2/1, slide 34/33 -> 1/1, thigh 17/none -> 1/1,
squat "squad" first -> "band one arm single leg split squat" first, clean 12 -> 11,
de "drücken" 40+ -> 0; typo queries "wirst curl" 26, "dumbell" 40+, "bnech press" 33 still
find their exercises. Cost per full pass 6 ms -> 0.8-2.5 ms.
The plan file carried only {id, n, bp} for a custom exercise and mergePlan stored exactly
that, so the recipient's copy showed an empty equipment tag and no muscle credit, and —
stored without `custom: true` — had no Edit or Delete anywhere. A wrong import could only
be fixed by hand-editing localStorage.
buildPlanBundle now writes eq, tg, primaries, secondaries, muscleGroups and desc through
one cleanCustom helper, and mergePlan runs the same gate on the way in (a plan file is
someone else's data: only muscles the map can draw, a secondary never repeating a primary)
before storing the exercise in the shape CustomExForm writes, with `custom: true` and `sm`.
Empty fields stay absent, so an old name-plus-body-part file imports as before, now
editable at the other end. The #210 unit conversion is untouched.
Browser check (QA rig, slot 75, before → after): recipient's stored customEx
{id,n,bp} → {id,n,bp,eq,tg,primaries,secondaries,muscleGroups,sm,custom:true};
detail sheet tags ["back",""] → ["back","Upper back","barbell","Biceps"], buttons
["Add to my plan"] → [..., "Edit", "Delete"]; config sheet gains "Edit or delete this
exercise"; library row "back · " → "Upper back · barbell".
"Convert the numbers" walked the sets but left workout.vol, workout.bw and active.bw
alone, so History rows, the detail header, the month calendar and the heatmap
tooltips showed the kg numbers under an lb label (Pull Day "7,535 lb" above sets that
add up to 16,627 lb; the month "57,412.5 lb"). The cached volume is now re-added from
the converted sets, so it agrees with the set list to the number, and the session
body weight converts with the weigh-ins.
Body weight and the goal weight are weighed and edited at 0.1, not loaded on a bar;
rounding them to 0.5 lb / 0.25 kg moved 22 of 24 seed weigh-ins on a kg -> lb -> kg
round trip (78.6 -> 173.5 -> 78.75, Home card 78.8 kg). They now convert to a tenth,
which brings every 0.1-kg value home.
Rig (seed-loaded, kg -> lb -> kg via Settings): 40 workouts, lb vol == lb set sum for
all, vol and bw unchanged after the round trip, 24 weigh-ins 0 changed, targetW 77 ->
169.8 -> 77; History "Pull Day · 16,627 lb", header "48 min · 16,627 lb · 173.3 lb",
calendar "126,644.5 lb", heatmap "48 min · 16,627 lb".
The "Exercises · <muscle>" rows in the Strength view have been styled and announced as
buttons since 64ea41a, but their handler referenced `onExercise`, which is neither a prop
nor anything in scope. Every tap and every Enter on a focused row ended in an uncaught
ReferenceError and nothing opened, on this branch and on v1.3.7 alike.
Each row quotes the exercise's estimated 1RM, so a tap now opens the exercise history sheet
that already exists for exactly this: the top-set / Est. 1RM curve plus the last sessions
set by set. No new strings.
The source-contract test in Stats.test.js had pinned the broken handler literally; it now
pins the working one and rejects a reappearance of `onExercise`. A component test taps a
Strength row with a real click and with Enter, asserts no error reaches the window and that
the history sheet is asked for the tapped exercise.
Verified on the QA rig (slot 78) with the verifier's own repro: seed-loaded @412 and
seed-standard @368 — after tap {"hash":"#/stats","sheets":1}, 0 new errors after
2 clicks + Enter (before: ReferenceError on each).
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.