Backend: in-memory presence map + POST /api/activity heartbeat (authed); each /api/admin/users row carries a fresh 'live' snapshot (routine, exercise x/y, sets done/total, started-at) with a ~70s TTL. Disabling a user clears their presence immediately. Frontend: the workout screen pings /api/activity every 20s (signed-in only) and sends a leave signal on unmount (fetch + sendBeacon). The dashboard gains a 'Training now' section and live markers, auto- refreshing every 15s. Cuts the complete admin-dashboard feature (phases 1+2) as v1.1.4.
129 lines
7.6 KiB
Markdown
129 lines
7.6 KiB
Markdown
# Changelog
|
||
|
||
## v1.1.4 — 2026-07-22
|
||
|
||
Admin dashboard for self-hosters (opt-in — off by default).
|
||
|
||
- 🛠️ **Admin dashboard** (Settings → Admin dashboard) for whoever runs the instance: a users
|
||
overview with workout counts and last-active times, plus a per-user drill-down into their full
|
||
workout history and body-weight log.
|
||
- 🟢 **Live "training now"** — see who's mid-workout in real time, with their current exercise and
|
||
set progress, updated by a lightweight heartbeat while a workout is on screen.
|
||
- 🚫 **Disable / enable accounts** — a disabled account is signed out and locked out everywhere
|
||
until you re-enable it.
|
||
- 🔑 **Invite-only signup** (optional) — require an invite code to create a profile; generate and
|
||
revoke codes from the dashboard. Existing accounts are unaffected.
|
||
- ⚙️ Configured via environment: `ADMIN_UIDS` (comma-separated user ids who are admins) and
|
||
`INVITE_ONLY=1`; both default off, so a fresh instance stays open with no admin. See
|
||
`.env.example`. Admin access is gated by your passkey and enforced server-side.
|
||
|
||
## v1.1.3 — 2026-07-22
|
||
|
||
- 🔎 **Minimize the exercise animation during a workout** (#12). A ⤡ Minimize / ⤢ Expand button
|
||
on the animation shrinks it to a thin strip so the set rows sit right under your thumb — no more
|
||
scrolling past a big GIF to tick off a set. Your choice is remembered and applied to every
|
||
exercise and future workout until you change it, so you set it once. Tapping the animation still
|
||
pauses/plays it as before.
|
||
|
||
## v1.1.2 — 2026-07-22
|
||
|
||
Custom exercises, full localization, and input fixes.
|
||
|
||
### Custom exercises (#11)
|
||
|
||
- ✨ **Create your own exercise** from the exercise picker or the Exercises tab: a name and a
|
||
body part is all it takes. Your search text is pre-filled as the name, so "no match" flows
|
||
straight into "create it".
|
||
- 📝 **Optional description** — setup, cues, anything you want to remember. It shows on the
|
||
exercise's detail and config sheets (where a built-in exercise would show its animation),
|
||
and it's searchable, so you can find your own exercises by their cues too.
|
||
- 🏋️ Custom exercises behave like built-in ones everywhere — routines, supersets, workout
|
||
logging, weight suggestions, PRs, stats and history. The animation stays blank by design.
|
||
- 🏃 Pick the *cardio* body part and it logs time + speed instead of weight × reps, like the
|
||
built-in cardio exercises.
|
||
- ✏️ Edit (rename, change body part or description) or delete your custom exercises — from
|
||
their detail sheet in the Exercises tab, or straight from the exercise inside a routine via
|
||
"Edit or delete this exercise". Deleting removes them from your routines; already-logged
|
||
workouts keep their sets and still show the exercise name. (The routine sheet's old "Remove
|
||
exercise" button is now labelled "Remove from routine", so the two are no longer confusable.)
|
||
|
||
### Localization (#7)
|
||
|
||
- 🌍 **12 UI languages**: English, Deutsch, Español, Français, Italiano, Português, Polski,
|
||
Türkçe, Русский, 中文, 한국어, हिन्दी. Pick yours under Settings → Appearance → Language;
|
||
the choice syncs with your profile like the theme does.
|
||
- 📖 **Localized exercise instructions** for 10 of those languages (all except German and
|
||
Portuguese, which the upstream dataset doesn't cover yet — those fall back to English),
|
||
covering all 1,324 exercises. Body-part filters, equipment and muscle tags are translated
|
||
too; exercise *names* stay English (upstream limitation). Custom exercises are translated too.
|
||
- 📅 Dates, weekday and month labels follow the selected language.
|
||
- ⚡ Zero cost when unused: the app still ships English-only by default. Each UI language is a
|
||
~7 kB chunk and each instruction pack ~80–120 kB (gzipped), downloaded only when you switch —
|
||
the initial bundle size is unchanged.
|
||
- 🛠️ New `scripts/build-instructions.mjs` regenerates the instruction packs from the upstream
|
||
dataset; translations live in `frontend/src/locales/` (PRs welcome — it's one flat
|
||
English-string → translation map per language).
|
||
- Known gaps: push notification texts (sent by the server) and plural forms in some languages
|
||
are approximated; happy to take corrections from native speakers.
|
||
|
||
### Fixes
|
||
|
||
- ⌨️ Weight and other numeric fields now accept a comma as decimal separator ("33,5") — iOS
|
||
decimal keyboards in many locales only offer a comma, which previously reset the field to 0.
|
||
Partial input like "33," no longer snaps to 0 while typing. (#13)
|
||
- 📱 Fixed the exercise-config sheet (Sets / Reps / Weight, and the cardio variant) overflowing the
|
||
screen edge on narrow phones — the Weight stepper was clipped and could make the whole page pan
|
||
sideways in iOS Safari. Steppers now shrink to fit the viewport. (#10)
|
||
- 🛡️ Added a global horizontal-overflow guard so a single too-wide element can no longer knock the
|
||
page layout off-scale.
|
||
|
||
## v1.1.1 — 2026-07-21
|
||
|
||
Reliability fixes for the push notifications shipped in v1.1.0, found through live testing:
|
||
|
||
- 🌍 Workout day reminder now fires by each user's own browser-detected timezone instead of a
|
||
single server-wide one — works correctly regardless of where the server runs, and follows you
|
||
automatically if you travel.
|
||
- 💾 Settings changes (like the reminder time) are flushed to the server immediately when the tab
|
||
backgrounds or closes, instead of relying solely on a 1.5s debounce that could get cut short.
|
||
- ⏱️ Reminder check tightened from a 60s to a 10s interval, and pushes are now marked
|
||
`urgency: 'high'` — cuts avoidable delay on top of it, though delivery time is ultimately up to
|
||
Apple/Google's push relay.
|
||
- 🪵 Push send failures are now logged instead of silently swallowed.
|
||
|
||
## v1.1.0 — 2026-07-21
|
||
|
||
- 🐳 Prebuilt Docker images published to `ghcr.io/duartesantos8/opengym-{api,web}` (amd64 + arm64)
|
||
via GitHub Actions, so self-hosting no longer requires building from source. `docker compose pull`
|
||
grabs them; `docker compose up -d --build` still builds locally if you'd rather.
|
||
- 🔔 Push notifications: rest-timer-over alert (fires even if the app is closed) and an optional
|
||
daily reminder on days you have a workout planned but haven't logged one yet. Opt in per-profile
|
||
in Settings — requires a signed-in passkey profile. Backend gains one dependency (`web-push`);
|
||
VAPID keys are generated on first run.
|
||
- 🐛 Fixed the rest timer stalling when the tab/app is backgrounded — it's now anchored to a real
|
||
timestamp instead of a plain per-second counter, so it stays accurate after you come back.
|
||
|
||
## v1.0.0 — 2026-07-20
|
||
|
||
First public release. A complete, self-hostable gym & body-weight tracker.
|
||
|
||
**Highlights**
|
||
- ⚖️ Body-weight tracking with an interactive chart + goal line
|
||
- 🏋️ Weekly routine planner over 1,324 exercises with animated demos
|
||
- ▶️ Guided workouts: body-weight check-in, pre-filled weights, rest timer, PR detection, per-exercise weight tracking
|
||
- 🔗 Supersets and 🏃 cardio (time + speed) logging
|
||
- 🗓️ Per-day rescheduling without touching your weekly plan
|
||
- 🟩 GitHub-style activity heatmap (by time trained)
|
||
- 🔑 Passkey (WebAuthn) login with per-profile data that syncs across devices
|
||
- 🎨 Light/dark themes + 8 accent colors, synced to your profile
|
||
- 📦 JSON export/import, guest mode, PWA install, no telemetry
|
||
|
||
**Stack**
|
||
- React 19 + Vite (React Router, Zustand)
|
||
- Node backend, no framework, single dependency (`@simplewebauthn/server`), JSON-file storage
|
||
- nginx + multi-stage Docker so `docker compose up` builds and serves everything
|
||
|
||
**Notes**
|
||
- Exercise media (~140 MB) is fetched from [hasaneyldrm/exercises-dataset](https://github.com/hasaneyldrm/exercises-dataset) on first run.
|
||
- Licensed under GNU AGPL v3.0.
|