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.

Exercise settings: a timed bodyweight hold has one weight field, and its subtitle speaks of the hold

Duarte Santosa99527d81483
diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.js
index 019594c52..d4d1df62f 100644
--- a/frontend/src/locales/ar.js
+++ b/frontend/src/locales/ar.js
@@ -1678,4 +1678,5 @@ export default {
// --- a swap or an add during a workout changes only this session ---
'Use in this workout': 'استخدمه في هذا التمرين',
'Add to this workout': 'أضِف إلى هذا التمرين',
+ 'No weight to enter — just time the hold.': 'لا وزن لإدخاله — فقط احسب مدة الثبات.',
}
diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js
index 35f0264da..800350a55 100644
--- a/frontend/src/locales/de.js
+++ b/frontend/src/locales/de.js
@@ -1645,4 +1645,5 @@ export default {
// --- a swap or an add during a workout changes only this session ---
'Use in this workout': 'In diesem Training verwenden',
'Add to this workout': 'Zu diesem Training hinzufügen',
+ 'No weight to enter — just time the hold.': 'Kein Gewicht einzutragen — nur die Haltezeit.',
}
diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js
index 4d8e08829..f8a6916b0 100644
--- a/frontend/src/locales/es.js
+++ b/frontend/src/locales/es.js
@@ -1625,4 +1625,5 @@ export default {
// --- a swap or an add during a workout changes only this session ---
'Use in this workout': 'Usar en este entrenamiento',
'Add to this workout': 'Añadir a este entrenamiento',
+ 'No weight to enter — just time the hold.': 'Sin peso que anotar — solo cronometra la retención.',
}
diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js
index 7ae7b4209..e7322cd43 100644
--- a/frontend/src/locales/fr.js
+++ b/frontend/src/locales/fr.js
@@ -1625,4 +1625,5 @@ export default {
// --- a swap or an add during a workout changes only this session ---
'Use in this workout': 'Utiliser dans cette séance',
'Add to this workout': 'Ajouter à cette séance',
+ 'No weight to enter — just time the hold.': 'Aucun poids à saisir — chronomètre simplement le maintien.',
}
diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js
index 3759ad539..96ae26610 100644
--- a/frontend/src/locales/hi.js
+++ b/frontend/src/locales/hi.js
@@ -1625,4 +1625,5 @@ export default {
// --- a swap or an add during a workout changes only this session ---
'Use in this workout': 'इस वर्कआउट में इस्तेमाल करें',
'Add to this workout': 'इस वर्कआउट में जोड़ें',
+ 'No weight to enter — just time the hold.': 'कोई वज़न नहीं भरना — बस होल्ड का समय गिनें।',
}
diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.js
index b29a40609..d7199853f 100644
--- a/frontend/src/locales/hu.js
+++ b/frontend/src/locales/hu.js
@@ -1628,4 +1628,5 @@ export default {
// --- a swap or an add during a workout changes only this session ---
'Use in this workout': 'Használat ebben az edzésben',
'Add to this workout': 'Hozzáadás ehhez az edzéshez',
+ 'No weight to enter — just time the hold.': 'Nincs megadandó súly — csak a tartás idejét méred.',
}
diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js
index 54eca1cac..1810ded73 100644
--- a/frontend/src/locales/it.js
+++ b/frontend/src/locales/it.js
@@ -1625,4 +1625,5 @@ export default {
// --- a swap or an add during a workout changes only this session ---
'Use in this workout': 'Usa in questo allenamento',
'Add to this workout': 'Aggiungi a questo allenamento',
+ 'No weight to enter — just time the hold.': 'Nessun peso da inserire — cronometra solo la tenuta.',
}
diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js
index dc4f046a1..cd8fb8482 100644
--- a/frontend/src/locales/ko.js
+++ b/frontend/src/locales/ko.js
@@ -1625,4 +1625,5 @@ export default {
// --- a swap or an add during a workout changes only this session ---
'Use in this workout': '이번 운동에 사용',
'Add to this workout': '이번 운동에 추가',
+ 'No weight to enter — just time the hold.': '입력할 무게 없음 — 버티는 시간만 재세요.',
}
diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js
index 83c4422ea..629ec78dc 100644
--- a/frontend/src/locales/pl.js
+++ b/frontend/src/locales/pl.js
@@ -1625,4 +1625,5 @@ export default {
// --- a swap or an add during a workout changes only this session ---
'Use in this workout': 'Użyj w tym treningu',
'Add to this workout': 'Dodaj do tego treningu',
+ 'No weight to enter — just time the hold.': 'Bez ciężaru do wpisania — mierz tylko czas utrzymania.',
}
diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.js
index 2fa7cbc23..79071470c 100644
--- a/frontend/src/locales/pt-BR.js
+++ b/frontend/src/locales/pt-BR.js
@@ -970,6 +970,7 @@ export const PT_BR_OVERRIDES = {
// --- a swap or an add during a workout changes only this session ---
'Use in this workout': 'Usar neste treino',
'Add to this workout': 'Adicionar a este treino',
+ 'No weight to enter — just time the hold.': 'Sem peso para informar — só cronometre a sustentação.',
}
export default { ...pt, ...PT_BR_OVERRIDES }
diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js
index 1cc42f302..75a6fd50f 100644
--- a/frontend/src/locales/pt.js
+++ b/frontend/src/locales/pt.js
@@ -1625,4 +1625,5 @@ export default {
// --- a swap or an add during a workout changes only this session ---
'Use in this workout': 'Usar neste treino',
'Add to this workout': 'Adicionar a este treino',
+ 'No weight to enter — just time the hold.': 'Sem peso para indicar — cronometra apenas a sustentação.',
}
diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js
index 280a724c4..4a22c16a9 100644
--- a/frontend/src/locales/ru.js
+++ b/frontend/src/locales/ru.js
@@ -1625,4 +1625,5 @@ export default {
// --- a swap or an add during a workout changes only this session ---
'Use in this workout': 'Использовать в этой тренировке',
'Add to this workout': 'Добавить в эту тренировку',
+ 'No weight to enter — just time the hold.': 'Вес вводить не нужно — только засеките время удержания.',
}
diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js
index a05192195..2fdde4a94 100644
--- a/frontend/src/locales/th.js
+++ b/frontend/src/locales/th.js
@@ -1636,4 +1636,5 @@ export default {
// --- a swap or an add during a workout changes only this session ---
'Use in this workout': 'ใช้ในการออกกำลังกายครั้งนี้',
'Add to this workout': 'เพิ่มในการออกกำลังกายครั้งนี้',
+ 'No weight to enter — just time the hold.': 'ไม่ต้องใส่น้ำหนัก — แค่จับเวลาการค้างท่า',
}
diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js
index 5f0d9efd6..2ac0399f4 100644
--- a/frontend/src/locales/tr.js
+++ b/frontend/src/locales/tr.js
@@ -1625,4 +1625,5 @@ export default {
// --- a swap or an add during a workout changes only this session ---
'Use in this workout': 'Bu antrenmanda kullan',
'Add to this workout': 'Bu antrenmana ekle',
+ 'No weight to enter — just time the hold.': 'Girilecek ağırlık yok — sadece tutuşu süreyle ölç.',
}
diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.js
index 4d8412f43..f35a7b3b8 100644
--- a/frontend/src/locales/uk.js
+++ b/frontend/src/locales/uk.js
@@ -1622,4 +1622,5 @@ export default {
// --- a swap or an add during a workout changes only this session ---
'Use in this workout': 'Використати в цьому тренуванні',
'Add to this workout': 'Додати до цього тренування',
+ 'No weight to enter — just time the hold.': 'Вага не потрібна — лише засікайте час утримання.',
}
diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js
index 1dac2842b..8a9d97144 100644
--- a/frontend/src/locales/zh.js
+++ b/frontend/src/locales/zh.js
@@ -1625,4 +1625,5 @@ export default {
// --- a swap or an add during a workout changes only this session ---
'Use in this workout': '用于本次训练',
'Add to this workout': '添加到本次训练',
+ 'No weight to enter — just time the hold.': '无需填写重量 — 只需为保持计时。',
}
diff --git a/frontend/src/sheets.config-typing.test.jsx b/frontend/src/sheets.config-typing.test.jsx
index 5488a1d1b..c1d063ff3 100644
--- a/frontend/src/sheets.config-typing.test.jsx
+++ b/frontend/src/sheets.config-typing.test.jsx
@@ -90,3 +90,30 @@ describe('exercise settings: typing into a field with a minimum', () => {
expect(onSave.mock.calls[0][0].deloadFactor).toBe(0.85)
})
})
+
+// QA 1.3.9: a timed bodyweight hold showed "Weight (kg)" and "Added (kg)", two fields bound to
+// the same value, under a Bodyweight row that said to "just log the reps".
+describe('exercise settings: a timed bodyweight hold', () => {
+ beforeEach(() => {
+ globalThis.IS_REACT_ACT_ENVIRONMENT = true
+ useUI.setState({ sheets: [] })
+ useStore.setState(s => ({ S: { ...s.S, unit: 'kg' } }))
+ document.body.innerHTML = ''
+ })
+ afterEach(() => { act(() => { mounted.splice(0).forEach(root => root.unmount()) }) })
+ const labels = host => [...host.querySelectorAll('.stp-l')].map(l => l.textContent)
+
+ it('has one weight field, the added load, and talks about the hold', () => {
+ const { host } = renderConfig({ mode: 'time', sec: 45, weight: 0, bodyweight: true })
+ expect(labels(host)).not.toContain('Weight (kg)')
+ expect(labels(host).filter(l => l === 'Added (kg)')).toHaveLength(1)
+ expect(host.textContent).toContain('No weight to enter — just time the hold.')
+ expect(host.textContent).not.toContain('just log the reps')
+ })
+
+ it('keeps the one weight field on a loaded hold', () => {
+ const { host } = renderConfig({ mode: 'time', sec: 45, weight: 10, bodyweight: false })
+ expect(labels(host)).toContain('Weight (kg)')
+ expect(labels(host)).not.toContain('Added (kg)')
+ })
+})
diff --git a/frontend/src/sheets.jsx b/frontend/src/sheets.jsx
index 7565db6e5..e675c00a8 100644
--- a/frontend/src/sheets.jsx
+++ b/frontend/src/sheets.jsx
@@ -1466,7 +1466,9 @@ function ExConfig({ ex, existing, onSave, onDelete, onReplace, close, routine, i
</> : mode === 'time' ? <>
<Stepper label={t('Sets')} value={c.sets} step={1} decimal={false} onChange={v => setC(x => ({ ...x, sets: v }))} />
<Stepper label={t('Seconds')} value={c.sec} step={5} decimal={false} onChange={v => setC(x => ({ ...x, sec: v }))} />
- <Stepper label={t('Weight ({0})', st.unit)} value={c.weight} step={2.5} onChange={v => setC(x => ({ ...x, weight: v }))} />
+ {/* A bodyweight hold's load is the "Added" row below — showing both put two fields on
+ one value. */}
+ {!bw && <Stepper label={t('Weight ({0})', st.unit)} value={c.weight} step={2.5} onChange={v => setC(x => ({ ...x, weight: v }))} />}
</> : <>
{/* Rest-pause always trains as exactly two rows — a warm-up at this rep count, then one
rest-pause work set — so "Sets" has nothing left to mean and only invites a mismatch. */}
@@ -1511,7 +1513,7 @@ function ExConfig({ ex, existing, onSave, onDelete, onReplace, close, routine, i
{/* ---------- bodyweight + per side (issues #31/#32/#33) ---------- */}
{!cardio && <div className="sect-b" style={{ marginBottom: 8 }}>
<Row icon="figureStrength" iconTint="var(--acc)" title={t('Bodyweight')}
- subtitle={bw ? t('No weight to enter — just log the reps.') : t('Ask for a weight on every set.')}>
+ subtitle={bw ? (mode === 'time' ? t('No weight to enter — just time the hold.') : t('No weight to enter — just log the reps.')) : t('Ask for a weight on every set.')}>
<Switch checked={bw} onChange={v => setC(x => ({ ...x, bodyweight: v, weight: v ? 0 : x.weight }))} />
</Row>
{mode === 'reps' && <Row icon="shuffle" iconTint="var(--blue)" title={t('Reps per side')}