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
Coach-Onboarding: Trainingsdauer als Stunden:Minuten-Raeder statt Uhrzeit, '1 Tag pro Woche', Platz unter der Einwilligung
Duarte Santos51bf980e897e
diff --git a/frontend/src/coach.css b/frontend/src/coach.cssindex aaa5157f6..fe324f2a6 100644--- a/frontend/src/coach.css+++ b/frontend/src/coach.css@@ -9,7 +9,7 @@.ob-dot.on{background:var(--acc);width:18px}.ob-dot.done{background:var(--acc);opacity:.55}.ob-skip{background:none;color:var(--label-2);font-size:15px;padding:6px 2px}-.ob-body{flex:1}+.ob-body{flex:1;padding-bottom:150px}.ob-eyebrow{color:var(--acc);font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;margin-bottom:8px}.ob-h{font-size:30px;line-height:1.12;font-weight:700;letter-spacing:-.026em;margin:0 0 8px}.ob-p{color:var(--label-2);font-size:16px;line-height:1.45;margin:0 0 24px;letter-spacing:-.006em}@@ -53,6 +53,8 @@}:root[data-theme="light"] .ob-time input[type=time]{color-scheme:light}.ob-time input[type=time]::-webkit-calendar-picker-indicator{display:none}+.ob-time .ob-wheel{appearance:none;-webkit-appearance:none;background:transparent;border:0;color:var(--label);font-size:56px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.02em;padding:0 4px;text-align:center;min-width:1.6em}+.ob-time .ob-time-sep{font-size:56px;font-weight:700;color:var(--label);margin:0 -2px;transform:translateY(-4px)}.ob-time .ob-time-l{font-size:15px;color:var(--label-2)}.ob-quick{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;margin-top:12px}.ob-chips{display:flex;flex-wrap:wrap;gap:8px}diff --git a/frontend/src/lib/coach.js b/frontend/src/lib/coach.jsindex 73e9eb460..c23a1dbdb 100644--- a/frontend/src/lib/coach.js+++ b/frontend/src/lib/coach.js@@ -316,7 +316,7 @@ export function profileLines(p) {const lines = []if (goal) lines.push(t(goal))if (exp) lines.push(t(exp))- if (p.daysPerWeek) lines.push(t('{0} days a week', p.daysPerWeek))+ if (p.daysPerWeek) lines.push(p.daysPerWeek === 1 ? t('1 day a week') : t('{0} days a week', p.daysPerWeek))if (p.sessionMin) lines.push(t('{0} min per session', p.sessionMin))if (p.equipment?.length) lines.push(p.equipment.join(', '))if (p.limitations) lines.push(t('Limits: {0}', p.limitations))diff --git a/frontend/src/lib/pt-br-locale.test.js b/frontend/src/lib/pt-br-locale.test.jsindex b19b451d9..8737580a0 100644--- a/frontend/src/lib/pt-br-locale.test.js+++ b/frontend/src/lib/pt-br-locale.test.js@@ -28,10 +28,10 @@ describe('Brazilian Portuguese locale', () => {const fingerprint = createHash('sha256').update(JSON.stringify(inherited)).digest('hex')expect(Object.keys(PT_BR_OVERRIDES)).toHaveLength(422)- expect(inherited).toHaveLength(541)+ expect(inherited).toHaveLength(542)// If this fails, review the changed keys and wording before accepting a new hash. From// frontend/: node scripts/pt-br-inheritance-fingerprint.mjs --list- expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('d4f338190ba41fe089ddb45049a812c36fbbda0887cc4f6ab073114c98a49e90')+ expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('9e13b3bcfd80c38ae15ceb5518094b9f2243a7cd0011feb9cd68e818065b9909')})test('does not leak European Portuguese UI terms', () => {diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.jsindex 67029e06b..ac4a9ebb1 100644--- a/frontend/src/locales/de.js+++ b/frontend/src/locales/de.js@@ -920,5 +920,6 @@ export default {'has a suggestion for you': 'hat einen Vorschlag für dich','here when you need it': 'da, wenn du ihn brauchst','thinking…': 'denkt nach…',- '{0} min per session': '{0} Min. pro Einheit'+ '{0} min per session': '{0} Min. pro Einheit',+ '1 day a week': '1 Tag pro Woche'}diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.jsindex de2a2b585..5b68023c2 100644--- a/frontend/src/locales/es.js+++ b/frontend/src/locales/es.js@@ -903,5 +903,6 @@ export default {'has a suggestion for you': 'tiene una sugerencia para ti','here when you need it': 'aquí cuando lo necesites','thinking…': 'pensando…',- '{0} min per session': '{0} min por sesión'+ '{0} min per session': '{0} min por sesión',+ '1 day a week': '1 día a la semana'}diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.jsindex 33dd6f5b9..3787c25f3 100644--- a/frontend/src/locales/fr.js+++ b/frontend/src/locales/fr.js@@ -903,5 +903,6 @@ export default {'has a suggestion for you': 'a une suggestion pour toi','here when you need it': 'là quand tu en as besoin','thinking…': 'réfléchit…',- '{0} min per session': '{0} min par séance'+ '{0} min per session': '{0} min par séance',+ '1 day a week': '1 jour par semaine'}diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.jsindex 4f79d8605..aecdc339c 100644--- a/frontend/src/locales/hi.js+++ b/frontend/src/locales/hi.js@@ -903,5 +903,6 @@ export default {'has a suggestion for you': 'आपके लिए एक सुझाव है','here when you need it': 'जब ज़रूरत हो, यहाँ है','thinking…': 'सोच रहा है…',- '{0} min per session': 'प्रति सत्र {0} मिनट'+ '{0} min per session': 'प्रति सत्र {0} मिनट',+ '1 day a week': 'सप्ताह में 1 दिन'}diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.jsindex 6c61e9c87..d3541ae84 100644--- a/frontend/src/locales/it.js+++ b/frontend/src/locales/it.js@@ -903,5 +903,6 @@ export default {'has a suggestion for you': 'ha un suggerimento per te','here when you need it': 'qui quando serve','thinking…': 'sta pensando…',- '{0} min per session': '{0} min a sessione'+ '{0} min per session': '{0} min a sessione',+ '1 day a week': '1 giorno a settimana'}diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.jsindex 0be827500..e82b85fa9 100644--- a/frontend/src/locales/ko.js+++ b/frontend/src/locales/ko.js@@ -903,5 +903,6 @@ export default {'has a suggestion for you': '제안이 있습니다','here when you need it': '필요할 때 여기 있어요','thinking…': '생각 중…',- '{0} min per session': '세션당 {0}분'+ '{0} min per session': '세션당 {0}분',+ '1 day a week': '주 1일'}diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.jsindex ce8434560..2656c5335 100644--- a/frontend/src/locales/pl.js+++ b/frontend/src/locales/pl.js@@ -903,5 +903,6 @@ export default {'has a suggestion for you': 'ma dla Ciebie propozycję','here when you need it': 'tu, gdy potrzebujesz','thinking…': 'myśli…',- '{0} min per session': '{0} min na sesję'+ '{0} min per session': '{0} min na sesję',+ '1 day a week': '1 dzień w tygodniu'}diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.jsindex 0dd558b8c..b5856ff54 100644--- a/frontend/src/locales/pt.js+++ b/frontend/src/locales/pt.js@@ -903,5 +903,6 @@ export default {'has a suggestion for you': 'tem uma sugestão para ti','here when you need it': 'aqui quando precisares','thinking…': 'a pensar…',- '{0} min per session': '{0} min por sessão'+ '{0} min per session': '{0} min por sessão',+ '1 day a week': '1 dia por semana'}diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.jsindex 0fcc26ca7..085938cb6 100644--- a/frontend/src/locales/ru.js+++ b/frontend/src/locales/ru.js@@ -903,5 +903,6 @@ export default {'has a suggestion for you': 'есть предложение для вас','here when you need it': 'здесь, когда нужен','thinking…': 'думает…',- '{0} min per session': '{0} мин за тренировку'+ '{0} min per session': '{0} мин за тренировку',+ '1 day a week': '1 день в неделю'}diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.jsindex fc8d3c78d..9e0d09be1 100644--- a/frontend/src/locales/tr.js+++ b/frontend/src/locales/tr.js@@ -903,5 +903,6 @@ export default {'has a suggestion for you': 'senin için bir önerisi var','here when you need it': 'ihtiyacın olduğunda burada','thinking…': 'düşünüyor…',- '{0} min per session': 'Seans başına {0} dk'+ '{0} min per session': 'Seans başına {0} dk',+ '1 day a week': 'Haftada 1 gün'}diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.jsindex 3ce2dc7ca..1057f9562 100644--- a/frontend/src/locales/zh.js+++ b/frontend/src/locales/zh.js@@ -903,5 +903,6 @@ export default {'has a suggestion for you': '有一个建议给你','here when you need it': '随时待命','thinking…': '思考中…',- '{0} min per session': '每次 {0} 分钟'+ '{0} min per session': '每次 {0} 分钟',+ '1 day a week': '每周 1 天'}diff --git a/frontend/src/views/CoachIntake.jsx b/frontend/src/views/CoachIntake.jsxindex 46007fa92..6e33ed7cc 100644--- a/frontend/src/views/CoachIntake.jsx+++ b/frontend/src/views/CoachIntake.jsx@@ -158,9 +158,18 @@ export default function CoachIntake() {<div className="ob-eyebrow">{t('Session length')}</div><h1 className="ob-h">{t('How long is a session?')}</h1><p className="ob-p">{t('The Coach fits the volume to the time you actually have, including rest between sets.')}</p>- <div className="ob-time">- <input type="time" value={toHHMM(p.sessionMin || 60)} step={300} min="00:10" max="04:00"- onChange={e => { const m = fromHHMM(e.target.value); if (m != null) set({ sessionMin: m }) }} />+ {/* A duration, not a clock time — so two wheels (hours, minutes in fives), never the+ native time input, which insists on AM/PM. */}+ <div className="ob-time" role="group" aria-label={t('How long is a session?')}>+ <select className="ob-wheel" value={Math.floor((p.sessionMin || 60) / 60)}+ onChange={e => set({ sessionMin: (+e.target.value) * 60 + ((p.sessionMin || 60) % 60) || 5 })}>+ {[0, 1, 2, 3].map(h => <option key={h} value={h}>{String(h).padStart(2, '0')}</option>)}+ </select>+ <span className="ob-time-sep">:</span>+ <select className="ob-wheel" value={(p.sessionMin || 60) % 60}+ onChange={e => set({ sessionMin: Math.floor((p.sessionMin || 60) / 60) * 60 + (+e.target.value) || 5 })}>+ {[0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55].map(m => <option key={m} value={m}>{String(m).padStart(2, '0')}</option>)}+ </select><span className="ob-time-l">{t('h:mm')}</span></div><div className="ob-quick">