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.

CHANGELOG + test: catalogue defaults only for fresh picks, equipment needs, lower back on deadlifts (#693, #694, #717, #736)

Duarte Santos5ef0410ae35b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d03fcf53a..b9cb3c606 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -59,6 +59,11 @@ per muscle. Settings → Workout → Fine-tuning turns it off.
exercises for it, the same way the "Not trained" chips do (#553).
- Stats' Week rows lose a stray line over each done/planned figure, which also sat a little
low next to its bar.
+- **Exercises start the way you do them.** Add a plank, a wall sit or a dead hang and it starts
+ as a timed hold (#694, thanks @lodepav). A one-arm row or a single-leg press starts per side
+ (#736, thanks @lodepav). Jumping jacks, burpees, star jumps and tuck jumps start as sets × reps
+ instead of minutes and speed (#717, thanks @zykll18). Only fresh picks: what's already in your
+ routines and history stays exactly as you set it up.
**Security.** Follow-ups to v1.4.2's audit.
- **Pairing the phone app asks you to confirm it's you** (passkey, or your password where that
@@ -101,6 +106,14 @@ little Ready / Recovering / Fatigued bar, plus when it drops back to Recovering
you leave it alone. Handy for deciding whether those legs are really ready (thanks @sg41).
**Fixes**
+- Deadlift variants that forgot your lower back remember it now: the kettlebell suitcase
+ deadlift and the plate deadlift lunge press (#693, #700, thanks @JeromeTDev and @choksi2212).
+- Equipment profiles know more about what an exercise needs. An inverted row needs a bar (unless
+ it's the under-the-table kind), a dumbbell fly or a pullover needs a bench, and the massage
+ ball is no longer filed as a foam roller. Own no dumbbells at all? The Dumbbells sheet now says
+ how to keep them out of the library and the Coach's plans. Profiles you already had keep
+ showing what they did.
+- The knee-to-chest push-up lives with the chest exercises, not in cardio.
- **Rest days in the rotation**, and the same routine more than once (A → B → C → B → D): Add
offers a rest day and every routine, including the ones already in the loop (#536).
- Your lats show up: the upper back is "Lats & upper back" in Stats, on the body map and in the
diff --git a/frontend/src/lib/catalogue-defaults.existing.test.js b/frontend/src/lib/catalogue-defaults.existing.test.js
new file mode 100644
index 000000000..8274f2145
--- /dev/null
+++ b/frontend/src/lib/catalogue-defaults.existing.test.js
@@ -0,0 +1,34 @@
+import { describe, expect, it } from 'vitest'
+import { routineFromSession } from './session-routines.js'
+import { modeOf, pickedExerciseConfig } from './history.js'
+import { isHold, isOneLimb } from './exercises.js'
+
+// The 1.4.3 catalogue defaults (a plank starts timed #694, a one-arm row per side #736) are for
+// exercises picked fresh. What someone already logged or planned keeps its own shape.
+describe('catalogue defaults leave existing plans alone', () => {
+ const PLANK = '0463'
+ const ROW = '0292'
+
+ it('fresh picks get the new defaults', () => {
+ expect(isHold(PLANK) && isOneLimb(ROW)).toBe(true)
+ expect(pickedExerciseConfig(PLANK)).toMatchObject({ mode: 'time' })
+ expect(pickedExerciseConfig(ROW)).toMatchObject({ side: true })
+ })
+
+ it('a plank planned as reps before there was a mode still reads as reps', () => {
+ expect(modeOf({ id: PLANK, sets: 3, reps: 10, weight: 0 })).toBe('reps')
+ })
+
+ it('a session that logged a plank as reps saves as a reps routine', () => {
+ const w = { id: 'w', entries: [{ id: PLANK, target: { sets: 3, reps: 10, weight: 0 }, sets: [{ w: 0, r: 12, done: true }] }] }
+ const cfg = routineFromSession(w, 'Core').ex[0]
+ expect(modeOf(cfg)).toBe('reps')
+ expect(cfg).toMatchObject({ reps: 12 })
+ expect(cfg.sec).toBeUndefined()
+ })
+
+ it('a one-arm row logged as one row a set is not turned per side', () => {
+ const w = { id: 'w', entries: [{ id: ROW, target: { mode: 'reps', sets: 3, reps: 10, weight: 20 }, sets: [{ w: 20, r: 10, done: true }] }] }
+ expect(routineFromSession(w, 'Pull').ex[0].side).toBeUndefined()
+ })
+})