Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

v1.3.8: twenty-four reports, the four promised items, and eleven community pull requests

Duarte Santosf91cde15a1c7
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3e8aee1ff..8e1e9a7c2 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 0c04fe3e7..e88d572cb 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 b4ad591d6..38973c8c7 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 f40735982..4919909ef 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 21a04e11c..2f748ecb0 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 a29920c98..2fe67908d 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 226f79180..85f686cfe 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 8db0c4acc..8f7685bd4 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 9c56ab6d1..46fac2404 100644
--- a/website/api.html
+++ b/website/api.html
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<!-- GENERATED FILE - do not edit by hand.
- Built by scripts/build-api-docs.mjs from api/openapi.yaml (openGym API v1.3.7).
+ Built by scripts/build-api-docs.mjs from api/openapi.yaml (openGym API v1.3.8).
Regenerate with: node scripts/build-api-docs.mjs -->
<html lang="en">
<head>
@@ -238,7 +238,7 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
</div>
<p class="api-facts">
<span>OpenAPI 3.1.0</span>
- <span>openGym v1.3.7</span>
+ <span>openGym v1.3.8</span>
<span>30 endpoints</span>
<span>AGPL-3.0-or-later</span>
</p>
@@ -270,7 +270,7 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
</div>
<div class="ov">
<h3>Conventions</h3>
-<ul><li>Every response body is JSON with <code>Cache-Control: no-store</code>.</li><li>Errors are always <code>{&quot;error&quot;: &quot;&lt;human-readable message&gt;&quot;}</code>.</li><li>Unknown method+path pairs return <code>404 {&quot;error&quot;:&quot;not found&quot;}</code>; an unhandled exception returns <code>500 {&quot;error&quot;:&quot;server error&quot;}</code>.</li><li>Request bodies are parsed as JSON regardless of Content-Type; max 5 MiB.</li><li>CORS: the request's <code>Origin</code> is reflected in <code>Access-Control-Allow-Origin</code> <b>without</b> <code>Allow-Credentials</code> — cross-origin callers can only ever authenticate with a Bearer token, never with the cookie.</li></ul>
+<ul><li>Every response body is JSON with <code>Cache-Control: no-store</code>.</li><li>Errors are always <code>{&quot;error&quot;: &quot;&lt;human-readable message&gt;&quot;}</code>.</li><li>Unknown method+path pairs return <code>404 {&quot;error&quot;:&quot;not found&quot;}</code>; an unhandled exception returns <code>500 {&quot;error&quot;:&quot;server error&quot;}</code>.</li><li>Request bodies are parsed as JSON regardless of Content-Type. A body that does not parse, or parses to anything but an object (<code>null</code>, a string, an array), is <code>400 {&quot;error&quot;:&quot;invalid json&quot;}</code> on every route that reads one; an empty body counts as <code>{}</code>. A body over 5 MiB is <code>413 {&quot;error&quot;:&quot;body too large&quot;}</code>; the rest of the upload is discarded so the answer reaches the client.</li><li>CORS: the request's <code>Origin</code> is reflected in <code>Access-Control-Allow-Origin</code> <b>without</b> <code>Allow-Credentials</code> — cross-origin callers can only ever authenticate with a Bearer token, never with the cookie.</li></ul>
</div>
</div>
</section>
@@ -705,7 +705,7 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
</div>
<div class="prow rrow">
<span class="r-code s4">400</span>
- <span class="p-desc"><code>state</code> missing or not an object, or <code>workouts</code>/<code>routines</code> set to anything other than an array or null.<span class="r-sig"><code>{&quot;error&quot;:&quot;state required&quot;}</code> &middot; <code>{&quot;error&quot;:&quot;invalid state&quot;}</code></span></span>
+ <span class="p-desc"><code>state</code> missing or not an object, <code>state</code> an array, or <code>workouts</code>/<code>routines</code> set to anything other than an array or null. Entries inside those two arrays that are not objects (<code>null</code>, numbers, nested arrays) are dropped before the write rather than refused, so a client with a damaged copy still syncs.<span class="r-sig"><code>{&quot;error&quot;:&quot;state required&quot;}</code> &middot; <code>{&quot;error&quot;:&quot;invalid state&quot;}</code></span></span>
</div>
<div class="prow rrow">
<span class="r-code s4">401</span>
@@ -887,8 +887,7 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
<span class="ep-sum">Schedule a server-side rest-timer push</span>
</summary>
<div class="ep-body">
-<p>Schedules one push after <code>seconds</code> (clamped to 1–3600). One pending timer per device — <code>deviceId</code>, 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 <code>deviceId</code> 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.</p>
-<p>Note: the documented <code>400 seconds required</code> exists in the code but is unreachable — the clamp turns any missing/invalid value into 1.</p>
+<p>Schedules one push after <code>seconds</code> (a number or numeric string ≥ 1, clamped to 3600). One pending timer per device — <code>deviceId</code>, 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 <code>deviceId</code> 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.</p>
<p class="ep-auth"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="11" width="16" height="10" rx="2.5"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg><span>Requires a session — the cookie set at sign-in, or <code>Authorization: Bearer &lt;token&gt;</code> from mobile-app pairing.</span></p>
<p class="ep-h">Request body <span class="p-hint">(JSON)</span></p><div class="ptab">
@@ -913,6 +912,10 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
<span class="r-code s2">200</span>
<span class="p-desc">Timer scheduled.<span class="r-sig"><a href="#schema-Ok">Ok</a></span></span>
</div>
+ <div class="prow rrow">
+ <span class="r-code s4">400</span>
+ <span class="p-desc"><code>seconds</code> missing, not numeric, or below 1. Nothing is scheduled.<span class="r-sig"><code>{&quot;error&quot;:&quot;seconds required&quot;}</code></span></span>
+ </div>
<div class="prow rrow">
<span class="r-code s4">401</span>
<span class="p-desc">No session, expired/revoked session, or a disabled account.<span class="r-sig"><code>{&quot;error&quot;:&quot;not signed in&quot;}</code></span></span>
@@ -1046,7 +1049,7 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
<span class="ep-sum">List all users</span>
</summary>
<div class="ep-body">
-<p>One row per user with workout counts, last sync, push status and live presence. Admin only.</p>
+<p>One row per user with workout counts, last sync, push status and live presence. <code>workouts</code> counts only the entries the drill-down can show. Admin only.</p>
<p class="ep-auth"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="11" width="16" height="10" rx="2.5"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg><span>Admin only — a signed-in session whose user is an admin (<code>ADMIN_UIDS</code> or <code>admin:true</code>), as the session cookie or a Bearer token.</span></p>
@@ -1076,7 +1079,7 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
<span class="ep-sum">One user in detail</span>
</summary>
<div class="ep-body">
-<p>Drill-down — full workout history (newest first) and body-weight log for one user. Admin only.</p>
+<p>Drill-down — full workout history (newest first) and body-weight log for one user. Admin only. Anything in <code>routines</code>, <code>bodyweight</code> or <code>workouts</code> 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.</p>
<p class="ep-auth"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="11" width="16" height="10" rx="2.5"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg><span>Admin only — a signed-in session whose user is an admin (<code>ADMIN_UIDS</code> or <code>admin:true</code>), as the session cookie or a Bearer token.</span></p>
<p class="ep-h">Query parameters</p><div class="ptab">
<div class="prow">
diff --git a/website/index.html b/website/index.html
index 18841bf65..c6e712a3c 100644
--- a/website/index.html
+++ b/website/index.html
@@ -51,7 +51,7 @@ try {
"url":"https://opengym.duarte-santos.ch/",
"image":"https://opengym.duarte-santos.ch/img/social.jpg",
"screenshot":["https://opengym.duarte-santos.ch/img/home.png","https://opengym.duarte-santos.ch/img/workout.png","https://opengym.duarte-santos.ch/img/stats.png"],
- "softwareVersion":"1.3.7","datePublished":"2026-07-18","dateModified":"2026-09-13","isAccessibleForFree":true,
+ "softwareVersion":"1.3.8","datePublished":"2026-07-18","dateModified":"2026-09-20","isAccessibleForFree":true,
"featureList":["Weekly plan with a routine per weekday","Guided workouts with rest timer, supersets, warm-up and timed sets","Progression rules: linear, Greyskull LP, double progression","Estimated 1RM, activity heatmap, muscle balance and fatigue maps","Body-weight tracking with a goal line","Import from Hevy, Strong, FitNotes and Apple Health","Passkey login and multi-device sync when self-hosted","Standalone Android APK with no account","14 languages","Optional AI coach on your own API key"],
"downloadUrl":"https://opengym.duarte-santos.ch/openGym.apk",
"author":{"@type":"Person","name":"Duarte Santos","url":"https://duarte-santos.ch"},
@@ -420,7 +420,7 @@ try {
</ul>
<div class="push">
<a class="btn" href="openGym.apk" download>Download for Android</a>
- <p class="meta">v1.3.7 · 27.7 MB · Android 6.0+ · signed APK. Your browser will ask
+ <p class="meta">v1.3.8 · 27.7 MB · Android 6.0+ · signed APK. Your browser will ask
before installing; that is normal outside the Play Store.</p>
<p class="meta">Every release is also built and signed by CI and attached to the
<a href="https://github.com/DuarteSantos8/openGym/releases" rel="noopener">GitHub