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.

fix(a11y): the workout header's menu button said "Workout view"

Boris 'B' Kurktchievb9c7d1f78dba
diff --git a/frontend/src/lib/pt-br-locale.test.js b/frontend/src/lib/pt-br-locale.test.js
index 890175234..f3ca00106 100644
--- a/frontend/src/lib/pt-br-locale.test.js
+++ b/frontend/src/lib/pt-br-locale.test.js
@@ -41,7 +41,7 @@ describe('Brazilian Portuguese locale', () => {
// has to be taught is a number nobody reads. What the numbers stood for is asserted above.
// If the hash fails, review the changed keys and wording before accepting a new one. From
// frontend/: node scripts/pt-br-inheritance-fingerprint.mjs --list
- expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('9be6cc7996a836338e4c6d4aaa075dc40f350dad94c72ef67c0a021870720c49')
+ expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('896c21e80d97e1b52f79c3ee3855236c35013e51e87e69a60ec94622974b23df')
})
test('does not leak European Portuguese UI terms', () => {
diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.js
index 07697206c..eac170aa0 100644
--- a/frontend/src/locales/ar.js
+++ b/frontend/src/locales/ar.js
@@ -783,6 +783,7 @@ export default {
'Next session: {0}, {1}': 'الجلسة القادمة: {0}، {1}',
'Week starts on': 'بداية الأسبوع',
'Exercise animations': 'رسوم التمارين المتحركة',
+ 'Workout options': 'خيارات التمرين',
'Full': 'كاملة',
'Small': 'صغيرة',
'Hidden': 'مخفية',
diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js
index 663a5a5bb..aadc5a3fe 100644
--- a/frontend/src/locales/de.js
+++ b/frontend/src/locales/de.js
@@ -577,6 +577,7 @@ export default {
'Minimize': 'Verkleinern',
'Expand': 'Vergrößern',
'Exercise animations': 'Übungs-Animationen',
+ 'Workout options': 'Workout-Optionen',
'Workout view': 'Trainingsansicht',
'Cards': 'Karten',
'List': 'Liste',
diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js
index 8e1d9aa99..a9453df23 100644
--- a/frontend/src/locales/es.js
+++ b/frontend/src/locales/es.js
@@ -558,6 +558,7 @@ export default {
'Minimize': 'Minimizar',
'Expand': 'Ampliar',
'Exercise animations': 'Animaciones de los ejercicios',
+ 'Workout options': 'Opciones del entrenamiento',
'Workout view': 'Vista del entrenamiento',
'Cards': 'Tarjetas',
'List': 'Lista',
diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js
index ee904194c..24f3868eb 100644
--- a/frontend/src/locales/fr.js
+++ b/frontend/src/locales/fr.js
@@ -558,6 +558,7 @@ export default {
'Minimize': 'Réduire',
'Expand': 'Agrandir',
'Exercise animations': 'Animations des exercices',
+ 'Workout options': 'Options de la séance',
'Workout view': 'Vue de l’entraînement',
'Cards': 'Cartes',
'List': 'Liste',
diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js
index ccb0ca2aa..c8458a039 100644
--- a/frontend/src/locales/hi.js
+++ b/frontend/src/locales/hi.js
@@ -558,6 +558,7 @@ export default {
'Minimize': 'छोटा करें',
'Expand': 'बड़ा करें',
'Exercise animations': 'व्यायाम एनिमेशन',
+ 'Workout options': 'वर्कआउट विकल्प',
'Workout view': 'वर्कआउट दृश्य',
'Cards': 'कार्ड',
'List': 'सूची',
diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.js
index 61b151edc..c821bc728 100644
--- a/frontend/src/locales/hu.js
+++ b/frontend/src/locales/hu.js
@@ -562,6 +562,7 @@ export default {
'Minimize': 'Kicsinyítés',
'Expand': 'Kibontás',
'Exercise animations': 'Gyakorlat-animációk',
+ 'Workout options': 'Edzés beállításai',
'Workout view': 'Edzésnézet',
'Cards': 'Kártyák',
'List': 'Lista',
diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js
index 48e5dd34d..5d310c39d 100644
--- a/frontend/src/locales/it.js
+++ b/frontend/src/locales/it.js
@@ -558,6 +558,7 @@ export default {
'Minimize': 'Riduci',
'Expand': 'Ingrandisci',
'Exercise animations': 'Animazioni degli esercizi',
+ 'Workout options': 'Opzioni dell\'allenamento',
'Workout view': 'Vista allenamento',
'Cards': 'Schede',
'List': 'Elenco',
diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js
index 02628fa0a..4830948e4 100644
--- a/frontend/src/locales/ko.js
+++ b/frontend/src/locales/ko.js
@@ -558,6 +558,7 @@ export default {
'Minimize': '축소',
'Expand': '확대',
'Exercise animations': '운동 애니메이션',
+ 'Workout options': '운동 옵션',
'Workout view': '운동 보기',
'Cards': '카드',
'List': '목록',
diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js
index f5910a684..bf80222fe 100644
--- a/frontend/src/locales/pl.js
+++ b/frontend/src/locales/pl.js
@@ -558,6 +558,7 @@ export default {
'Minimize': 'Zmniejsz',
'Expand': 'Powiększ',
'Exercise animations': 'Animacje ćwiczeń',
+ 'Workout options': 'Opcje treningu',
'Workout view': 'Widok treningu',
'Cards': 'Karty',
'List': 'Lista',
diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js
index 65dd8ff54..2632b401f 100644
--- a/frontend/src/locales/pt.js
+++ b/frontend/src/locales/pt.js
@@ -558,6 +558,7 @@ export default {
'Minimize': 'Minimizar',
'Expand': 'Ampliar',
'Exercise animations': 'Animações dos exercícios',
+ 'Workout options': 'Opções do treino',
'Workout view': 'Vista do treino',
'Cards': 'Cartões',
'List': 'Lista',
diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js
index 2df1568f7..b5c034ea4 100644
--- a/frontend/src/locales/ru.js
+++ b/frontend/src/locales/ru.js
@@ -558,6 +558,7 @@ export default {
'Minimize': 'Свернуть',
'Expand': 'Развернуть',
'Exercise animations': 'Анимации упражнений',
+ 'Workout options': 'Параметры тренировки',
'Workout view': 'Вид тренировки',
'Cards': 'Карточки',
'List': 'Список',
diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js
index 3604d80fa..af382d37f 100644
--- a/frontend/src/locales/th.js
+++ b/frontend/src/locales/th.js
@@ -562,6 +562,7 @@ export default {
'Minimize': 'ย่อ',
'Expand': 'ขยาย',
'Exercise animations': 'ภาพเคลื่อนไหวท่าออกกำลังกาย',
+ 'Workout options': 'ตัวเลือกการเทรน',
'Workout view': 'มุมมองการฝึก',
'Cards': 'การ์ด',
'List': 'รายการ',
diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js
index 1c96ebc30..cd9b5b7ae 100644
--- a/frontend/src/locales/tr.js
+++ b/frontend/src/locales/tr.js
@@ -558,6 +558,7 @@ export default {
'Minimize': 'Küçült',
'Expand': 'Büyüt',
'Exercise animations': 'Egzersiz animasyonları',
+ 'Workout options': 'Antrenman seçenekleri',
'Workout view': 'Antrenman görünümü',
'Cards': 'Kartlar',
'List': 'Liste',
diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.js
index ba239e0c8..4ff76ac32 100644
--- a/frontend/src/locales/uk.js
+++ b/frontend/src/locales/uk.js
@@ -392,6 +392,7 @@ export default {
'Minimize': 'Згорнути',
'Expand': 'Розгорнути',
'Exercise animations': 'Анімації вправ',
+ 'Workout options': 'Параметри тренування',
'Full': 'Повна',
'Small': 'Мала',
'Hidden': 'Приховано',
diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js
index 84237894a..116d6eda1 100644
--- a/frontend/src/locales/zh.js
+++ b/frontend/src/locales/zh.js
@@ -558,6 +558,7 @@ export default {
'Minimize': '缩小',
'Expand': '放大',
'Exercise animations': '动作动画',
+ 'Workout options': '训练选项',
'Workout view': '训练视图',
'Cards': '卡片',
'List': '列表',
diff --git a/frontend/src/views/Workout.jsx b/frontend/src/views/Workout.jsx
index 39340a4ed..53463f0e7 100644
--- a/frontend/src/views/Workout.jsx
+++ b/frontend/src/views/Workout.jsx
@@ -1254,7 +1254,7 @@ function ActiveWorkout() {
<button className="iconbtn" aria-label={t(editing ? 'Close editor' : 'Discard')} onClick={() => editing ? exitWorkoutEdit() : confirmSheet({ title: t('Discard workout?'), message: t('The sets you logged in this session will be lost.'), confirmText: t('Discard'), danger: true, onConfirm: () => { update(s => { s.active = null }); stopRest(); stopWork(); nav('/home') } })}><Icon name="xmark" /></button>
<div style={{ textAlign: 'center' }}><div style={{ fontWeight: 600 }}>{A.name}</div><div className="sub">{(A.backfill || editing) ? fmtDate(A.d, true) : <Elapsed start={A.start} />} · {t('{0} sets', done + '/' + total)}</div></div>
<div className="row" style={{ gap: 4, flex: 'none' }}>
- <button className="iconbtn" aria-label={t('Workout view')} title={t('Workout view')} onClick={openViewMenu}><Icon name="more" /></button>
+ <button className="iconbtn" aria-label={t('Workout options')} title={t('Workout options')} onClick={openViewMenu}><Icon name="more" /></button>
<button className="iconbtn" style={{ color: 'var(--acc)' }} aria-label={t(editing ? 'Save changes' : 'Finish')} onClick={finishWorkout}><Icon name="check" /></button>
</div>
</div>
diff --git a/frontend/src/views/Workout.noprog-session.test.jsx b/frontend/src/views/Workout.noprog-session.test.jsx
index b5d0b556f..eb254367b 100644
--- a/frontend/src/views/Workout.noprog-session.test.jsx
+++ b/frontend/src/views/Workout.noprog-session.test.jsx
@@ -71,7 +71,7 @@ function renderTopSheet() {
return sheetContainer
}
const openHeaderMenu = () => {
- const more = container.querySelector('button[aria-label="Workout view"]')
+ const more = container.querySelector('button[aria-label="Workout options"]')
expect(more).toBeTruthy()
act(() => more.click())
return renderTopSheet()
diff --git a/frontend/src/views/Workout.test.jsx b/frontend/src/views/Workout.test.jsx
index f9413ea94..9289a5021 100644
--- a/frontend/src/views/Workout.test.jsx
+++ b/frontend/src/views/Workout.test.jsx
@@ -1661,7 +1661,7 @@ describe('the plan line', () => {
describe('workout view header menu', () => {
const openMenu = async () => {
- const btn = container.querySelector('button[aria-label="Workout view"]')
+ const btn = container.querySelector('button[aria-label="Workout options"]')
expect(btn).toBeTruthy()
await act(async () => { btn.dispatchEvent(new dom.Event('click', { bubbles: true })) })
return mocks.menuSheet.mock.calls.at(-1)[0]
@@ -2026,7 +2026,7 @@ describe('the reference line: last time or best set', () => {
// #284: logging a past workout that went as planned takes one tap, not one per set.
describe('mark all sets done while logging a past workout', () => {
const openMenu = async () => {
- const btn = container.querySelector('button[aria-label="Workout view"]')
+ const btn = container.querySelector('button[aria-label="Workout options"]')
await act(async () => { btn.dispatchEvent(new dom.Event('click', { bubbles: true })) })
return mocks.menuSheet.mock.calls.at(-1)[0]
}