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
Tests: a saved workout being corrected shows no plate line and no Plate loading in its menu, as it showed no bar chip before the plate lines came in (#194, #203)
Duarte Santosf1129a9a23b1
diff --git a/frontend/src/views/Workout.plates.test.jsx b/frontend/src/views/Workout.plates.test.jsxindex 46438d347..6e78468fc 100644--- a/frontend/src/views/Workout.plates.test.jsx+++ b/frontend/src/views/Workout.plates.test.jsx@@ -175,4 +175,21 @@ describe('plate line under set rows', () => {expect(item.textContent).toContain('Bar 45 lb')act(() => sr.unmount()); sc.remove()})++ it('a saved workout being corrected (#203) has no plate line and no Plate loading in its menu', () => {+ mount([entry(SQUAT, [warm(95), work(145)], { w: 145 })])+ expect(lines().length).toBe(2)+ act(() => useStore.setState(s => ({ S: { ...s.S, active: { ...s.S.active, editingWorkoutId: 'saved' } } })))+ expect(container.textContent).toContain('Editing a saved workout')+ expect(lines()).toEqual([])+ const more = [...container.querySelectorAll('button')].find(b => (b.getAttribute('aria-label') || b.title || '') === 'More' && !b.classList.contains('n'))+ act(() => more.click())+ const sc = document.createElement('div')+ document.body.appendChild(sc)+ const sr = createRoot(sc)+ act(() => sr.render(useUI.getState().sheets.at(-1).render(() => {})))+ expect(sc.textContent).toContain('Details')+ expect(sc.textContent).not.toContain('Plate loading')+ act(() => sr.unmount()); sc.remove()+ })})