diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ce6be1..dde2037 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,76 @@ # Changelog +## v1.3.2 โ€” 2026-09-05 + +Seventeen community merge requests from twelve contributors, each read, rebased onto a staging +instance and put through a tester round before landing, plus the fixes that round turned up. The +web bundle and the images change; the API only gains the Coach schema tightening. The Android APK +ships with a real version code again (16 โ€” the last two releases had reused 15). + +### Active workout + +- ๐Ÿ“‹ **List view.** Settings โ†’ During a workout โ†’ Workout view: Cards (as before) or List, the + whole session stacked and scrollable, the current exercise outlined, "Set current" to move the + marker, supersets grouped with their own Unpair. (dpatrongomez, !96 โ€” issues #28, #44, #50) +- โš–๏ธ **The working weight is captured, not asked.** Finishing an exercise no longer opens the + "confirm your working weight" sheet: the heaviest completed work set becomes the working weight, + for both members of a superset, and the current marker stays where you are until you press Next. + Working weights are stored when the workout is finished, so a typo corrected before that, or a + discarded session, never becomes your "Best". (mflova, !92 โ€” issue #18) +- ๐Ÿ”ข **One tap, one step โ€” in supersets too.** The +/โˆ’ on weight, reps and RIR moved two steps + per tap on the second member of a superset. (ErrorUsernameAlreadyTaken, !97 โ€” issue #41) +- โž• **The weight stepper uses the exercise's own increment** (1.25 kg plates, 5 lb, whatever you + set), with progression's rounding, on set rows and drop-set rows; timed sets keep their seconds. + A value off the increment grid steps by exactly one increment rather than snapping. (mflova, !84) +- ๐ŸŽฏ **Routines with progression off keep their targets.** The same exercise as 2ร—15 in one routine + and 4ร—8 in another no longer opens the second with the first's reps โ€” also when adding or swapping + an exercise mid-session and when saving the progression sheet. (mflova, !71) +- ๐Ÿ“‰ **No deload spiral.** A weight change starts a new stall streak, so one bad day at the lighter + weight after a deload cannot trigger the next one. (arhx91, !93) +- ๐Ÿ›ก๏ธ **The progression sheet cannot save into the wrong exercise** after the list shifted under it + or the workout was replaced. (Space-Hermes, !77) +- โฑ๏ธ **Timer flash blinks the theme** instead of a black/white overlay and settles back on your + theme. A timer that ended while the app was in the background no longer replays the beep and + flash when you come back; a quiet toast still says the rest is over. (mzspicoli, !89) + +### Planning and library + +- โœจ **Four starter plans.** Home, Plan and Settings โ†’ Load starter plan open a chooser: Push/Pull/Legs, + Upper/Lower, Full Body, 5ร—5. Free weekdays load at once, occupied ones ask first; existing + routines are never touched. (lordlukem, !94) +- ๐Ÿ’ช **Muscle explorer.** Library โ†’ "By muscle" (and "By muscle" inside Add exercise): tap a muscle + on the body map or its chip, filter by search, body part and equipment, open details or plan it. + Follows your equipment profile like the library does. (prasad_gade05, !87) +- ๐Ÿ“„ **Copy routine** at the bottom of the routine editor. (ErrorUsernameAlreadyTaken, !85) +- โž• **The "+" in the exercise picker adds immediately** with the default config (freestyle: last + session's) and says so in a toast; tapping the row still opens the config sheet. (surohsusej, !72) +- ๐Ÿ“ Stats โ†’ Exercise progress: long exercise names use the full width. (mflova, !80) + +### MCP and Coach + +- ๐Ÿ” **`preview_session`** โ€” a ninth MCP tool: what a routine will actually open with after the + progression policy, the confirmed weight and history have had their say, with the source of every + number and a list of exercises where plan and screen disagree. Built on the app's own session + builder, so progression-off and deload routines preview exactly what the screen shows. + (koyosan, !90) +- โฒ๏ธ `get_routine` reports each exercise's own rest as `rest_sec`. (TheophileDiot, !81 โ€” issue #36) +- ๐Ÿง  The Coach's create schema requires a routine id and a week and caps the arrays, so a small + local model cannot answer with a plan the validator can only reject. (subdee, !99) +- ๐Ÿงช BodyMap tests import the geometry before the first render โ€” no more one-off failures on a + slow runner. (TheophileDiot, !82 โ€” issue #35) + +### Self-hosting and infrastructure + +- ๐Ÿ” **nginx re-resolves the api container per request.** Recreating only `api` (new IP) no longer + leaves `web` answering 502 until it is restarted too. (issue #16) +- ๐Ÿ”’ The published `api` image drops npm and both images take alpine's package fixes at build time; + the image scan reports nothing. +- ๐Ÿ—๏ธ CI: JUnit and coverage in every merge request, a bundle-size diff against main, a compose smoke + test of the pushed images, a Trivy scan with SBOMs attached to the release, a tag preflight + (versions and changelog checked before anything builds), and pipelines for contributors' fork MRs + started automatically for returning contributors. +- ๐Ÿค– Renovate runs again: its configuration had two unknown keys and had stopped opening MRs. (issue #37) + ## v1.3.1 โ€” 2026-09-04 - ๐Ÿ“ฑ **"Use my self-hosted openGym" works on a paired phone.** The phone app never fetched the diff --git a/api/openapi.yaml b/api/openapi.yaml index f6dc0de..d3db779 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -6,7 +6,7 @@ openapi: 3.1.0 info: title: openGym API - version: 1.3.1 + version: 1.3.2 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 1453070..e32344a 100644 --- a/api/package-lock.json +++ b/api/package-lock.json @@ -1,12 +1,12 @@ { "name": "gym-api", - "version": "1.3.1", + "version": "1.3.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "gym-api", - "version": "1.3.1", + "version": "1.3.2", "license": "AGPL-3.0-or-later", "dependencies": { "@simplewebauthn/server": "^13.1.1", diff --git a/api/package.json b/api/package.json index afd1e40..b25ce93 100644 --- a/api/package.json +++ b/api/package.json @@ -1,6 +1,6 @@ { "name": "gym-api", - "version": "1.3.1", + "version": "1.3.2", "private": true, "type": "module", "main": "server.js", diff --git a/frontend/android/app/build.gradle b/frontend/android/app/build.gradle index f477595..fb1f3c7 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 15 - versionName "1.2.14" + versionCode 16 + versionName "1.3.2" 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 3718b2f..72e41b2 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "opengym-frontend", - "version": "1.3.1", + "version": "1.3.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "opengym-frontend", - "version": "1.3.1", + "version": "1.3.2", "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 9a6654f..b282830 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "opengym-frontend", "private": true, - "version": "1.3.1", + "version": "1.3.2", "type": "module", "scripts": { "dev": "vite", diff --git a/renovate.json b/renovate.json index 2ca8c02..7864072 100644 --- a/renovate.json +++ b/renovate.json @@ -1,90 +1,137 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["config:recommended", ":semanticCommitsDisabled"], - - "_comment": [ + "description": [ "Dependency updates, deliberately quiet โ€” the GitLab counterpart of .github/dependabot.yml,", "with the same policy behind it. openGym is dependency-light on purpose: the frontend is", "React + Router + Zustand, api/ has two runtime dependencies. A default setup would still", "open an MR per package per week, which on a solo project means the MRs stop being read โ€”", "the opposite of what this is for. So: monthly, everything in an ecosystem grouped into one", "MR, and a low cap on open MRs.", - "Run by the `renovate` job in .gitlab-ci.yml, which fires only on *scheduled* pipelines." - ], - - "timezone": "Europe/Zurich", - "schedule": ["* 0-6 1 * *"], - "prConcurrentLimit": 5, - "prHourlyLimit": 0, - "labels": ["dependencies"], - "rangeStrategy": "bump", - "dependencyDashboard": true, - - "_managers": [ + "Run by the `renovate` job in .gitlab-ci.yml, which fires only on *scheduled* pipelines.", "gradle (frontend/android) and cocoapods (frontend/ios) are deliberately NOT managed:", "Capacitor generates those shells and pins the native versions to the @capacitor/* npm", "packages. Bumping them independently desyncs the two and breaks the mobile build; they", "follow the npm update instead." ], - "enabledManagers": ["npm", "dockerfile", "gitlabci"], - + "extends": [ + "config:recommended", + ":semanticCommitsDisabled" + ], + "timezone": "Europe/Zurich", + "schedule": [ + "* 0-6 1 * *" + ], + "prConcurrentLimit": 5, + "prHourlyLimit": 0, + "labels": [ + "dependencies" + ], + "rangeStrategy": "bump", + "dependencyDashboard": true, + "enabledManagers": [ + "npm", + "dockerfile", + "gitlabci" + ], "packageRules": [ { "description": "Frontend routine bumps arrive as one MR. Runtime and build tooling move together anyway (a Vite bump usually wants its plugin bumped), and splitting them doubles the review without splitting the risk.", - "matchManagers": ["npm"], - "matchFileNames": ["frontend/package.json"], - "matchUpdateTypes": ["minor", "patch"], + "matchManagers": [ + "npm" + ], + "matchFileNames": [ + "frontend/package.json" + ], + "matchUpdateTypes": [ + "minor", + "patch" + ], "groupName": "frontend" }, { "description": "Frontend majors get their own MR. The first grouped run on GitHub bundled a Capacitor 7 โ†’ 8 migration in with six siblings, where it read as housekeeping โ€” and CI would have gone green on it, because the test job builds the web app and never touches the mobile flavour. A major that lands alone is at least obviously a decision.", - "matchManagers": ["npm"], - "matchFileNames": ["frontend/package.json"], - "matchUpdateTypes": ["major"], + "matchManagers": [ + "npm" + ], + "matchFileNames": [ + "frontend/package.json" + ], + "matchUpdateTypes": [ + "major" + ], "groupName": "frontend-major" }, { "description": "Capacitor 8 needs Node >= 22 and frontend/android + frontend/ios are committed, so a major also means migrating the native projects โ€” Gradle/AGP, the Podfile. That is a deliberate piece of work, not a dependency bump. Drop this rule when you want to do it.", - "matchPackageNames": ["@capacitor/**"], - "matchUpdateTypes": ["major"], + "matchPackageNames": [ + "@capacitor/**" + ], + "matchUpdateTypes": [ + "major" + ], "enabled": false }, { "description": "Backend, api/package.json (@simplewebauthn/server, web-push).", - "matchManagers": ["npm"], - "matchFileNames": ["api/package.json"], - "matchUpdateTypes": ["minor", "patch"], + "matchManagers": [ + "npm" + ], + "matchFileNames": [ + "api/package.json" + ], + "matchUpdateTypes": [ + "minor", + "patch" + ], "groupName": "api" }, { "description": "Two dependencies, but one of them verifies passkeys โ€” a major there is worth reading on its own rather than alongside anything else.", - "matchManagers": ["npm"], - "matchFileNames": ["api/package.json"], - "matchUpdateTypes": ["major"], + "matchManagers": [ + "npm" + ], + "matchFileNames": [ + "api/package.json" + ], + "matchUpdateTypes": [ + "major" + ], "groupName": "api-major" }, { "description": "Base images in api/Dockerfile and web/Dockerfile.", - "matchManagers": ["dockerfile"], + "matchManagers": [ + "dockerfile" + ], "groupName": "base images" }, { "description": "Odd-numbered Node majors are 'Current', never LTS โ€” they stop getting fixes in about six months. Dependabot's first run offered 22 โ†’ 25, which for something other people self-host is a stability downgrade for nothing. Even majors (22 โ†’ 24 โ†’ 26) are still proposed, which is the move actually worth reviewing.", - "matchDatasources": ["docker"], - "matchPackageNames": ["node"], + "matchDatasources": [ + "docker" + ], + "matchPackageNames": [ + "node" + ], "allowedVersions": "/^(\\d*[02468])\\./" }, { "description": "The images the pipeline itself runs on. Same reasoning as the GitHub-Actions rule this replaces: these jobs publish the container images and build the signed APK, so the blast radius is real โ€” but they move in lockstep and none is worth an MR of its own.", - "matchManagers": ["gitlabci"], + "matchManagers": [ + "gitlabci" + ], "groupName": "ci images" } ], - "vulnerabilityAlerts": { "description": "Security fixes ignore the monthly schedule and the group โ€” they land immediately, on their own.", - "schedule": ["at any time"], - "labels": ["dependencies", "security"], + "schedule": [ + "at any time" + ], + "labels": [ + "dependencies", + "security" + ], "prPriority": 10 } } diff --git a/web/nginx.conf.template b/web/nginx.conf.template index b1c6bc4..f92ce83 100644 --- a/web/nginx.conf.template +++ b/web/nginx.conf.template @@ -20,7 +20,13 @@ server { # as /api/anything.json would be matched by the \.(js|css|json|html)$ block instead and be # looked for on disk rather than proxied. location ^~ /api/ { - proxy_pass http://${BACKEND}:${PORT}; + # Resolved per request through Docker's DNS, not once at start-up: nginx otherwise pins + # the api container's IP when it boots, and a recreated api (new IP) means 502 on every + # /api call until web is restarted too (issue #16). The variable is what makes nginx + # re-resolve; lowercase so the entrypoint's envsubst leaves it alone. + resolver 127.0.0.11 valid=10s ipv6=off; + set $api_upstream http://${BACKEND}:${PORT}; + proxy_pass $api_upstream; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; diff --git a/website/api.html b/website/api.html index ad0d5d0..9e01ae3 100644 --- a/website/api.html +++ b/website/api.html @@ -1,6 +1,6 @@ @@ -232,7 +232,7 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon

OpenAPI 3.1.0 - openGym v1.3.1 + openGym v1.3.2 28 endpoints AGPL-3.0-or-later