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.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
fix(exercises): credit the lower back on the deadlift variants the muscle map does not carry
choksi221259a481118d5f
diff --git a/frontend/src/lib/exercises.js b/frontend/src/lib/exercises.jsindex e5fa87b65..829093aa5 100644--- a/frontend/src/lib/exercises.js+++ b/frontend/src/lib/exercises.js@@ -28,6 +28,8 @@ const SECONDARY_ADDITIONS = {'0293': ['rear deltoids'], // dumbbell bent over row'0499': ['rear deltoids'], // inverted row'0861': ['rear deltoids'], // cable seated row+ '4133': ['lower back'], // kettlebell suitcase deadlift (#693)+ '10189': ['lower back'], // weighted plate deadlift rear lunge with overhead press (#693)}// Secondary muscles for an exercise, with the small conservative additions applied as andiff --git a/frontend/src/lib/muscles.test.js b/frontend/src/lib/muscles.test.jsindex 59ec8837f..02f68e538 100644--- a/frontend/src/lib/muscles.test.js+++ b/frontend/src/lib/muscles.test.js@@ -123,6 +123,17 @@ describe('catalogue secondary additions', () => {// the alias collapses onto the deltoids slug in the canonical muscle mapexpect(musclesOf(raw)).toHaveProperty('deltoids')})++ it('credits the lower back on the deadlift variants the muscle map does not carry (#693)', () => {+ for (const id of ['4133', '10189']) {+ const raw = EXDB.find(e => e.id === id)+ // the generated rows name no back muscle at all+ expect([...raw.sm, raw.tg, raw.mg].join(' ')).not.toMatch(/back|spine|lats|traps/)+ expect(smOf(raw)).toContain('lower back')+ expect(muscleGroupsOf(EXIDX[id])).toContain('lower-back')+ expect(musclesOf(EXIDX[id])).toHaveProperty('lower-back', 0.4)+ }+ })})