diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e8aee1..8e1e9a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,93 @@ # Changelog +## v1.3.8 — 2026-09-20 + +Twenty-four reports closed: the keyboard that would not stay open on iPhone and iPad, notifications +that arrived with notifications switched off, reps you could not read on a narrow phone, and +assisted pull-ups that recorded your progress backwards. Plus the four things this milestone +promised — reorder your routines, a Smith machine with no bar, two-decimal weights, and deleting an +account for real. Eleven community pull requests from six contributors. Web bundle, APK and API image. + +**The fixes people actually hit** + +- ⌨️ **The keyboard stays open** (FabianReitz, hectorroaz, #242). On iPhone and iPad, tapping a field + threw the keyboard straight back out about four times in five — worst on "Create new profile", + where a new user could not type a name. The page-alignment guard blurred the field you had just + tapped, because its "is the keyboard open?" check compares two numbers that *both* move while the + keyboard animates in. Measured on iOS 26.6: `innerHeight` fell 684 → 374 while the visual viewport + sat at 158, so the keyboard read as closed ~100 ms after every tap. Nothing acts on that check + while a text field has focus now. +- 🔔 **Notifications respect the switch** (shibbrich1, #239). The rest-timer alert asked for the + browser permission itself and then fired whether or not Push was on — and a permission cannot be + handed back. Off is off. +- 📱 **Reps are readable again on a narrow phone** (seals187, #235). A row with weight, reps, an + effort column and the +/− buttons left the number nothing: at 320 px the reps field was empty and + 102.5 kg showed as "102". Every number field now reserves the widest value it shows and the + buttons give way first — checked across 108 combinations of width, layout, effort mode and + per-side rows. +- 🏋️ **Assisted pull-ups and dips count the right way** (dpatrongomez, kvalev, #232, #176). The + stack carries part of your weight, so less assistance is the harder set — but 30 kg stayed the + record over 20 kg, and progression answered a clean session by offering *more* help. Eight + catalogue exercises are affected, and `assisted` on a custom exercise marks any other. +- 📋 **List view keeps your place** (xwr3, #224) — it opens at the exercise you are on, not at the + top of the session. +- ➕ **Extra sets stay out of the plan** (kvalev, #233). A heavier bonus set used to raise next + session's weight, and a hard one taken short reported the whole session as missed. +- 🌐 **Subpath deployments work** (leon332157, #238). Behind a proxy that strips its prefix there is + nothing to configure; one that passes the prefix through takes `BASE_PATH=/gym`. + +**The four this milestone promised** + +- ↕️ **Reorder your routines** (hjeroen-git, #142) — arrows in Plan, and the Start screen, the + day sheets and every picker follow the same order. +- 🔩 **"No bar"** (Aoto Ideguchi, #138) — a Smith machine that carries its own carriage now counts + plates from zero instead of snapping back to a 9 kg bar. +- 🔢 **Two-decimal weights** (Aoto Ideguchi, #139) — Settings → Weight decimals, for quarter plates + and microplates. 62.75 stays 62.75 instead of rounding to 62.8. +- 🗑️ **Delete an account** (shibbrich1, #107) — the admin dashboard can remove a profile and + everything attached to it, not just disable it. It asks twice and offers their data as a download + first; it refuses to delete you or the last admin. + +**Community pull requests** + +- kurktchiev: the iOS Home Screen icon behind an auth proxy (#184), an unknown path no longer serves + a shell that cannot load (#185), and a way back to the Start screen on a day that already has a + plan (#237). +- Space-Hermes: typo-tolerant exercise search (#206), Olympic-lift muscle groups (#207), shared plans + keep their kg/lb unit (#210), and a Coach test that no longer fails around midnight (#208). +- aaron-rai: the activity heatmap follows your week-start setting (#220). +- ncbachh: rename a workout while it is running (#228). +- Strazdonis: the big weight read-out can be typed into (#234). +- mkoester: standard ß in the German pack (#190). + +**Found by a QA sweep of every screen, and fixed** + +- 🔍 Search: "wrist" returned 200 abdominal exercises, because the typo tolerance matched body parts + and equipment as well as names. Fuzzy matching is now name-only, and only for words with no exact + hit anywhere. +- ⚖️ Switching kg ↔ lb left each workout's stored total and session body weight in the old unit, so + History, the calendar and the heatmap showed kilo totals under a pound label. Body weight also + converts at 0.1 now, not in plate steps, so a round trip comes home. +- 📤 Sharing a plan stripped a custom exercise down to its name and body part: it arrived with no + equipment, no muscles, and no way to edit or delete it. +- 📥 Importing a second export re-created the custom exercises the first one had made, splitting the + history in two; imported volume counted warm-up sets; hyphenated names ("Stiff-Legged Deadlift") + were filed under the wrong body part. +- 📊 Tapping an exercise in Stats → Strength threw instead of opening its history. +- 🛠️ Admin: a profile whose stored file held a malformed entry blanked the whole dashboard, and that + account could then not be disabled. The API answers 400 (or 413) for a request the client got + wrong instead of 500 with a stack trace, and refuses an array as the state document — which used + to wipe the profile and silently reset its revision. +- 📐 Phone-width layout: the double-progression row wraps into pairs, list-row titles keep their + width, page headers give way before their button, drop-set rows and cardio speeds are readable, + and the column header lines up over per-side rows. +- 🇷🇺 Muscle names no longer leak internal ids ("gluteal", "hip-flexors") into the picker, the config + sheet or the Muscles list, and a day with one routine says "1 routine". + +**Known and not fixed**: counts in Russian and the other Slavic packs use the English two-form plural +rule, so "2 дней" where it should read "2 дня". It affects every counter in the app and is being +done properly rather than patched here. + ## v1.3.7 — 2026-09-12 The v1.3.6 tag's Android build failed on a double dash inside an XML comment, so the APK for everything in v1.3.6 is this one — plus the iPhone timer-sound fix that landed an hour later. Web bundle, APK and API image; v1.3.6 and v1.3.7 are the same code apart from the two items below. diff --git a/ROADMAP.md b/ROADMAP.md index 0c04fe3..e88d572 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -72,16 +72,19 @@ the phone, nginx resolver, custom-exercise equipment, per-side data, warm-up res QA sweep of every screen. Left over: routine reordering (#142), the Smith-bar "no bar" option (#138), two decimals (#139), delete user in the admin (#107). -## v1.3.8 — Promised items (2026-09-27) +## v1.3.8 — Promised items (released 2026-09-20, a week early) -- Reorder routines in Plan; the Start sheet follows that order (#142) -- "No bar" per exercise, so Smith-machine lifts calculate plates and drop sets from 0 (#138) -- Two decimals on per-side weights, as a display toggle (#139) -- Delete a user from the admin dashboard: credentials, state file, subscriptions, Coach data (#107) +All four promises, plus the iOS keyboard, the assisted machines and a QA sweep of every screen — +twenty-four reports in total. See the changelog for the full list. + +- Reorder routines in Plan; the Start sheet follows that order (#142) ✅ +- "No bar" per exercise, so Smith-machine lifts calculate plates and drop sets from 0 (#138) ✅ +- Two decimals on weights, as a display toggle (#139) ✅ +- Delete a user from the admin dashboard: credentials, state file, subscriptions, Coach data (#107) ✅ - Custom-exercise muscle order is fixed, not click order; the import fallback classifies "wrist - curl", "row … neutral grip" and Romanian deadlifts correctly (Discord) + curl", "row … neutral grip" and Romanian deadlifts correctly (Discord) ✅ - The small open pull requests: unknown-path redirect (#185), manifest behind an auth proxy (#184), - standard ß (#190), distance in feet and the distance mode (#177, #178) + standard ß (#190) ✅ — the distance mode (#177, #178) moves to a later release ## v1.3.9 — Editing history (2026-10-11) diff --git a/api/openapi.yaml b/api/openapi.yaml index b4ad591..38973c8 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -6,7 +6,7 @@ openapi: 3.1.0 info: title: openGym API - version: 1.3.7 + version: 1.3.8 summary: Passkey (WebAuthn) auth + per-user state storage for openGym description: | The backend of [openGym](https://opengym.duarte-santos.ch) — a free, open-source diff --git a/api/package-lock.json b/api/package-lock.json index f407359..4919909 100644 --- a/api/package-lock.json +++ b/api/package-lock.json @@ -1,12 +1,12 @@ { "name": "gym-api", - "version": "1.3.7", + "version": "1.3.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "gym-api", - "version": "1.3.7", + "version": "1.3.8", "license": "AGPL-3.0-or-later", "dependencies": { "@simplewebauthn/server": "^13.1.1", diff --git a/api/package.json b/api/package.json index 21a04e1..2f748ec 100644 --- a/api/package.json +++ b/api/package.json @@ -1,6 +1,6 @@ { "name": "gym-api", - "version": "1.3.7", + "version": "1.3.8", "private": true, "type": "module", "main": "server.js", diff --git a/frontend/android/app/build.gradle b/frontend/android/app/build.gradle index a29920c..2fe6790 100644 --- a/frontend/android/app/build.gradle +++ b/frontend/android/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "ch.duartesantos.opengym" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 21 - versionName "1.3.7" + versionCode 22 + versionName "1.3.8" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" aaptOptions { // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 226f791..85f686c 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "opengym-frontend", - "version": "1.3.7", + "version": "1.3.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "opengym-frontend", - "version": "1.3.7", + "version": "1.3.8", "license": "AGPL-3.0-or-later", "dependencies": { "@aparajita/capacitor-secure-storage": "^7.1.6", diff --git a/frontend/package.json b/frontend/package.json index 8db0c4a..8f7685b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "opengym-frontend", "private": true, - "version": "1.3.7", + "version": "1.3.8", "type": "module", "scripts": { "dev": "vite", diff --git a/website/api.html b/website/api.html index 9c56ab6..46fac24 100644 --- a/website/api.html +++ b/website/api.html @@ -1,6 +1,6 @@
@@ -238,7 +238,7 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fonOpenAPI 3.1.0 - openGym v1.3.7 + openGym v1.3.8 30 endpoints AGPL-3.0-or-later
@@ -270,7 +270,7 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fonCache-Control: no-store.{"error": "<human-readable message>"}.404 {"error":"not found"}; an unhandled exception returns 500 {"error":"server error"}.Origin is reflected in Access-Control-Allow-Origin without Allow-Credentials — cross-origin callers can only ever authenticate with a Bearer token, never with the cookie.Cache-Control: no-store.{"error": "<human-readable message>"}.404 {"error":"not found"}; an unhandled exception returns 500 {"error":"server error"}.null, a string, an array), is 400 {"error":"invalid json"} on every route that reads one; an empty body counts as {}. A body over 5 MiB is 413 {"error":"body too large"}; the rest of the upload is discarded so the answer reaches the client.Origin is reflected in Access-Control-Allow-Origin without Allow-Credentials — cross-origin callers can only ever authenticate with a Bearer token, never with the cookie.state missing or not an object, or workouts/routines set to anything other than an array or null.{"error":"state required"} · {"error":"invalid state"}
+ state missing or not an object, state an array, or workouts/routines set to anything other than an array or null. Entries inside those two arrays that are not objects (null, numbers, nested arrays) are dropped before the write rather than refused, so a client with a damaged copy still syncs.{"error":"state required"} · {"error":"invalid state"}
Schedules one push after seconds (clamped to 1–3600). One pending timer per device — deviceId, the same token the subscription was registered with; a new call from the same device replaces it, and the push goes only to that device's subscriptions. Without a deviceId there is one timer per account and the push goes to every subscription, as before. The client schedules this on rest start/extend and cancels on skip or on-screen completion — the push only actually fires when the tab was backgrounded/suspended and never got to cancel it. Timers live in memory: an API restart drops them.
Note: the documented 400 seconds required exists in the code but is unreachable — the clamp turns any missing/invalid value into 1.
Schedules one push after seconds (a number or numeric string ≥ 1, clamped to 3600). One pending timer per device — deviceId, the same token the subscription was registered with; a new call from the same device replaces it, and the push goes only to that device's subscriptions. Without a deviceId there is one timer per account and the push goes to every subscription, as before. The client schedules this on rest start/extend and cancels on skip or on-screen completion — the push only actually fires when the tab was backgrounded/suspended and never got to cancel it. Timers live in memory: an API restart drops them.
Requires a session — the cookie set at sign-in, or Authorization: Bearer <token> from mobile-app pairing.
Request body (JSON)
seconds missing, not numeric, or below 1. Nothing is scheduled.{"error":"seconds required"}
+ {"error":"not signed in"}
@@ -1046,7 +1049,7 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
List all users
One row per user with workout counts, last sync, push status and live presence. Admin only.
+One row per user with workout counts, last sync, push status and live presence. workouts counts only the entries the drill-down can show. Admin only.
Admin only — a signed-in session whose user is an admin (ADMIN_UIDS or admin:true), as the session cookie or a Bearer token.
Drill-down — full workout history (newest first) and body-weight log for one user. Admin only.
+Drill-down — full workout history (newest first) and body-weight log for one user. Admin only. Anything in routines, bodyweight or workouts that is not an object is left out, and a list that is not an array reads as empty: PUT /api/data drops those entries now, but a state file written before it did still has them and this route has to answer for it.
Admin only — a signed-in session whose user is an admin (ADMIN_UIDS or admin:true), as the session cookie or a Bearer token.
Query parameters