From 35c810a663de9836cd32e648022fc28ff8cb0d9d Mon Sep 17 00:00:00 2001 From: Duarte Santos Date: Sat, 12 Sep 2026 13:41:13 +0200 Subject: [PATCH] Settings and Library QA: a segmented control that does not fit next to its row title wraps under it instead of painting over it (translated packs at 390px), the today title takes two lines, the Language row shows the whole pack name, swipe-to-delete rows share the card radius (no red corners), Best value does not wrap before its unit, FitNotes' stock bench-press name matches on import --- CHANGELOG.md | 12 ++++++++++++ frontend/src/components/SwipeToDelete.jsx | 2 +- frontend/src/index.css | 15 +++++++++++---- frontend/src/lib/import-csv.js | 2 +- frontend/src/sheets.jsx | 2 +- frontend/src/views/Stats.test.js | 2 +- 6 files changed, 27 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8220460..3f87f82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -63,6 +63,18 @@ tab bar mid-screen during a workout. Web bundle, APK and API image. deletes and where; a 413 on sync is shown instead of swallowed; nginx allows 5 MiB on `/api/`. - 🌍 Seven strings that arrived with combine routines, the layout switch and the 1RM deload were in no locale pack and showed in English in every language. +- 🧪 **From a headless sweep of every screen after the above** (phone and desktop, all 14 + languages): the set number in front of a per-side (L/R) set was an unstyled 11-px button; a + unilateral set's volume was max-weight × total reps (14×10 left and 12.5×6 right read 224 kg, + not 215); timed and cardio sets saved by older builds read "0" in history and on the workout + card; the finish summary's tiles cramped into four columns inside the dialog on desktop; + exercise names in menu titles and "added to" toasts were lower-case and the 1RM line said + "Kg"; in German, Russian, Spanish, French, Italian, Portuguese, Polish and Hungarian the + segmented controls in Settings painted over their row titles (the control now wraps under the + title when both do not fit); the Home "today" title can take two lines before the ellipsis + ("Leg Day — in progress" in Hungarian); the Language row shows the full pack name; the routine + editor's rows showed a red sliver of the swipe-to-delete button at their corners; FitNotes' + stock "Flat Barbell Bench Press" now matches on import. - 🔍 **A failed Coach run on the phone says what the provider said.** With your own API key there is no admin card and no instance owner, so "the instance owner needs to check its setup" was the diff --git a/frontend/src/components/SwipeToDelete.jsx b/frontend/src/components/SwipeToDelete.jsx index f2720b7..bdec5ba 100644 --- a/frontend/src/components/SwipeToDelete.jsx +++ b/frontend/src/components/SwipeToDelete.jsx @@ -71,7 +71,7 @@ export default function SwipeToDelete({ children, onDelete, deleteLabel, classNa }, []) return ( -
{ if (e.target.closest('button,input')) return; start(e.touches[0].clientX, e.touches[0].clientY) }} onTouchEnd={end} onMouseDown={e => { if (e.button !== 0 || e.target.closest('button,input')) return; start(e.clientX, e.clientY) }} diff --git a/frontend/src/index.css b/frontend/src/index.css index 3556f68..4bd7ad0 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -249,7 +249,7 @@ h4.sec{ none of the shrink — a long value would otherwise take the whole row and squeeze the title to 21px. A basis of 45% fixes that but reserves the space even for "3", costing the title 141px on the rows that need it most. A cap does neither. */ -.lrow-v{color:var(--label-2);font-size:17px;letter-spacing:-.012em;flex:0 1 auto;max-width:45%;min-width:0; +.lrow-v{color:var(--label-2);font-size:17px;letter-spacing:-.012em;flex:0 1 auto;max-width:55%;min-width:0; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right} .lrow-c{color:var(--label);font-size:15px;flex:none;--icon-stroke:2.4} .lrow-k{color:var(--acc);font-size:17px;flex:none;--icon-stroke:2.4} @@ -540,8 +540,13 @@ body.chips-dragging *{cursor:inherit} .seg button .icn{font-size:16px} .seg button:not(.on){color:var(--label-2);font-weight:400} .seg button:active{opacity:.5} -/* sitting in a list row: shrink to content instead of filling the row */ -.seg-inline{flex:none;min-width:132px} +/* sitting in a list row: shrink to content instead of filling the row. The control never + shrinks below its labels, so a row whose title and control do not both fit — most translated + packs at 390px: "Übungs-Animationen" against "Voll · Klein · Aus" — wraps the control onto its + own line under the title instead of painting it over the title. */ +.seg-inline{flex:none;min-width:132px;max-width:100%;margin-left:auto} +.lrow:has(.seg-inline){flex-wrap:wrap} +.lrow:has(.seg-inline) .lrow-m{min-width:min(150px,100%)} .seg-range{margin-bottom:10px} .seg-inline button{padding:5px 10px;font-size:13px;min-height:28px} .seg-inline button .icn{font-size:14px} @@ -1147,7 +1152,9 @@ body.chips-dragging *{cursor:inherit} .today-row .lbl2{font-size:11px;font-weight:500;letter-spacing:.03em;text-transform:uppercase;color:var(--label-3)} .today-row .ttl{ font-weight:500;font-size:17px;line-height:1.25;text-transform:capitalize; - letter-spacing:-.012em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px; + letter-spacing:-.012em;margin-top:2px; + /* two lines before the ellipsis: "Leg Day — in progress" grows past one line in hu/tr/th/pt-BR */ + display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis; } /* Only where a pointer really hovers — on a phone :hover sticks to the row after the tap. diff --git a/frontend/src/lib/import-csv.js b/frontend/src/lib/import-csv.js index 73ecc94..a53991f 100644 --- a/frontend/src/lib/import-csv.js +++ b/frontend/src/lib/import-csv.js @@ -158,7 +158,7 @@ function buildIndex() { // canonical barbell version, which is what these apps assume when they show it to you. // Extending this table is the intended way to improve import accuracy. const ALIAS_EX = { - 'bench press': '0025', 'barbell bench press': '0025', 'flat bench press': '0025', + 'bench press': '0025', 'barbell bench press': '0025', 'flat bench press': '0025', 'flat barbell bench press': '0025', 'incline bench press': '0047', 'decline bench press': '0033', 'close grip bench press': '0030', 'close-grip bench press': '0030', squat: '0043', 'back squat': '0043', 'barbell squat': '0043', 'front squat': '0042', diff --git a/frontend/src/sheets.jsx b/frontend/src/sheets.jsx index 520c1ca..c76ef5f 100644 --- a/frontend/src/sheets.jsx +++ b/frontend/src/sheets.jsx @@ -648,7 +648,7 @@ function ExerciseDetail({ ex, close }) { {(ex.secondaries?.length ? ex.secondaries : smOf(ex)).slice(0, 3).map((s, i) => {t(s)})}
{ex.desc &&
{ex.desc}
} - {best > 0 &&
{t('Best:')} {fmtNum(best)} {st.unit}{last ? ` · ${t('last')} ${fmtDate(last.d)}: ${last.sets.map(s => setLabel(ex.id, s, last.target)).join(', ')}` : ''}
} + {best > 0 &&
{t('Best:')} {fmtNum(best)} {st.unit}{last ? ` · ${t('last')} ${fmtDate(last.d)}: ${last.sets.map(s => setLabel(ex.id, s, last.target)).join(', ')}` : ''}
} {last && } {ex.custom &&
diff --git a/frontend/src/views/Stats.test.js b/frontend/src/views/Stats.test.js index c0ce185..50f5ec7 100644 --- a/frontend/src/views/Stats.test.js +++ b/frontend/src/views/Stats.test.js @@ -36,7 +36,7 @@ describe('Stats mixed-entry metric contract', () => { expect(uiSource).toContain("className={stackedValue ? 'lrow-stack-value' : ''}") expect(cssSource).toContain('.lrow.lrow-stack-value .lrow-m{grid-column:1;grid-row:1}') expect(cssSource).toContain('.lrow.lrow-stack-value .lrow-v{grid-column:1;grid-row:2;width:100%;max-width:none;text-align:left}') - expect(cssSource).toContain('flex:0 1 auto;max-width:45%;min-width:0;') + expect(cssSource).toContain('flex:0 1 auto;max-width:55%;min-width:0;') expect(cssSource).toContain('overflow:hidden;text-overflow:ellipsis;white-space:nowrap') }) })