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.

Test: the picker's quick-add labels carry the title-cased name

Duarte Santosd88fe4995263
diff --git a/frontend/src/sheets.picker-type.test.jsx b/frontend/src/sheets.picker-type.test.jsx
index 861b312d3..9716e0f8d 100644
--- a/frontend/src/sheets.picker-type.test.jsx
+++ b/frontend/src/sheets.picker-type.test.jsx
@@ -8,7 +8,7 @@ import { createRoot } from 'react-dom/client'
import { DEF, useStore } from './store/useStore.js'
import { useUI } from './store/useUI.js'
import { EXDB } from './lib/exercises.js'
-import { exerciseNameFor } from './lib/i18n.js'
+import { exerciseNameText } from './lib/format.js'
import { exercisePicker } from './sheets.jsx'
const mounted = []
@@ -60,7 +60,7 @@ describe('exercise picker type filter', () => {
expect(isOn(chipByText(host, 'stretching'))).toBe(true)
const names = listed(host)
expect(names.length).toBeGreaterThan(0)
- const catOf = new Map(EXDB.map(e => [`Add “${exerciseNameFor(e)}”`, e.cat]))
+ const catOf = new Map(EXDB.map(e => [`Add “${exerciseNameText(e)}”`, e.cat]))
expect(names.filter(n => catOf.get(n) !== 'stretching')).toEqual([])
})