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.

Coach-Chat: ohne Tab-Leiste, Composer am unteren Rand, kurze Platzhalter

Duarte Santosb23f52a3d761
diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx
index 0d2519a27..f4da1a6d8 100644
--- a/frontend/src/App.jsx
+++ b/frontend/src/App.jsx
@@ -109,7 +109,8 @@ function Shell() {
)}
</ErrorBoundary>
</div>
- <TabBar onStart={startFlow} />
+ {/* The chat owns the bottom of the screen: its composer sits where the tabs would be. */}
+ {loc.pathname !== '/coach' && <TabBar onStart={startFlow} />}
<RestTimer />
<Modals />
<Toast />
diff --git a/frontend/src/coach.css b/frontend/src/coach.css
index 5c6a2536c..a018c66e9 100644
--- a/frontend/src/coach.css
+++ b/frontend/src/coach.css
@@ -75,7 +75,7 @@
.ob-hint{text-align:center;font-size:13px;color:var(--label-3);margin-top:8px}
/* ---------- chat ---------- */
-.chat{padding-bottom:96px}
+.chat{padding-bottom:40px}
.chat-hdr{display:flex;align-items:center;gap:10px;margin:2px 0 14px}
.chat-hdr .chat-av{
width:38px;height:38px;border-radius:99px;background:var(--acc);color:var(--on-acc);
@@ -158,8 +158,8 @@
/* composer */
.composer{
- position:fixed;left:0;right:0;bottom:calc(78px + var(--sab));z-index:40;
- padding:8px var(--pad) 10px;
+ position:fixed;left:0;right:0;bottom:0;z-index:40;
+ padding:8px var(--pad) calc(10px + var(--sab));
background:color-mix(in srgb,var(--bg) 88%,transparent);
-webkit-backdrop-filter:saturate(180%) blur(12px);backdrop-filter:saturate(180%) blur(12px)
}
diff --git a/frontend/src/lib/pt-br-locale.test.js b/frontend/src/lib/pt-br-locale.test.js
index 069b96c42..ce3f1d661 100644
--- a/frontend/src/lib/pt-br-locale.test.js
+++ b/frontend/src/lib/pt-br-locale.test.js
@@ -27,7 +27,7 @@ describe('Brazilian Portuguese locale', () => {
.sort(byCodeUnit)
const fingerprint = createHash('sha256').update(JSON.stringify(inherited)).digest('hex')
- expect(Object.keys(PT_BR_OVERRIDES)).toHaveLength(532)
+ expect(Object.keys(PT_BR_OVERRIDES)).toHaveLength(535)
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
diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js
index 836393dba..8a2d989b2 100644
--- a/frontend/src/locales/de.js
+++ b/frontend/src/locales/de.js
@@ -1034,4 +1034,7 @@ export default {
'Training regularly': 'Trainiere regelmäßig',
'Back muscles': 'Rücken',
'{0}: what’s planned': '{0}: geplant',
+ 'What should change?': 'Was soll anders sein?',
+ 'Coach is thinking…': 'Coach denkt nach…',
+ 'Message the Coach…': 'Nachricht an den Coach…',
}
diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js
index 5b7c02d9e..3d2ff9ef8 100644
--- a/frontend/src/locales/es.js
+++ b/frontend/src/locales/es.js
@@ -1015,4 +1015,7 @@ export default {
'Training regularly': 'Entreno con regularidad',
'Back muscles': 'Espalda',
'{0}: what’s planned': '{0}: lo previsto',
+ 'What should change?': '¿Qué debería cambiar?',
+ 'Coach is thinking…': 'El Coach está pensando…',
+ 'Message the Coach…': 'Escribe al Coach…',
}
diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js
index 3067abf04..c3efe6db6 100644
--- a/frontend/src/locales/fr.js
+++ b/frontend/src/locales/fr.js
@@ -1015,4 +1015,7 @@ export default {
'Training regularly': 'Je m’entraîne régulièrement',
'Back muscles': 'Dos',
'{0}: what’s planned': '{0} : prévu',
+ 'What should change?': 'Que faut-il changer ?',
+ 'Coach is thinking…': 'Le Coach réfléchit…',
+ 'Message the Coach…': 'Écrire au Coach…',
}
diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js
index 69401c6a4..0eced0b22 100644
--- a/frontend/src/locales/hi.js
+++ b/frontend/src/locales/hi.js
@@ -1015,4 +1015,7 @@ export default {
'Training regularly': 'नियमित प्रशिक्षण',
'Back muscles': 'पीठ',
'{0}: what’s planned': '{0}: योजना',
+ 'What should change?': 'क्या बदलना चाहिए?',
+ 'Coach is thinking…': 'कोच सोच रहा है…',
+ 'Message the Coach…': 'कोच को संदेश…',
}
diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js
index becc9f7b4..912aa058a 100644
--- a/frontend/src/locales/it.js
+++ b/frontend/src/locales/it.js
@@ -1015,4 +1015,7 @@ export default {
'Training regularly': 'Mi alleno regolarmente',
'Back muscles': 'Schiena',
'{0}: what’s planned': '{0}: in programma',
+ 'What should change?': 'Cosa dovrebbe cambiare?',
+ 'Coach is thinking…': 'Il Coach sta pensando…',
+ 'Message the Coach…': 'Scrivi al Coach…',
}
diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js
index bda80dc73..bddfb99da 100644
--- a/frontend/src/locales/ko.js
+++ b/frontend/src/locales/ko.js
@@ -1015,4 +1015,7 @@ export default {
'Training regularly': '꾸준히 훈련 중',
'Back muscles': '등',
'{0}: what’s planned': '{0}: 계획',
+ 'What should change?': '무엇을 바꿀까요?',
+ 'Coach is thinking…': '코치가 생각 중…',
+ 'Message the Coach…': '코치에게 메시지…',
}
diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js
index cf098fc76..7c5bb97dd 100644
--- a/frontend/src/locales/pl.js
+++ b/frontend/src/locales/pl.js
@@ -1015,4 +1015,7 @@ export default {
'Training regularly': 'Trenuję regularnie',
'Back muscles': 'Plecy',
'{0}: what’s planned': '{0}: w planie',
+ 'What should change?': 'Co powinno się zmienić?',
+ 'Coach is thinking…': 'Trener myśli…',
+ 'Message the Coach…': 'Napisz do trenera…',
}
diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.js
index d373a4da1..56ede45ef 100644
--- a/frontend/src/locales/pt-BR.js
+++ b/frontend/src/locales/pt-BR.js
@@ -4,6 +4,10 @@
import pt from './pt.js'
export const PT_BR_OVERRIDES = {
+ 'What should change?': 'O que deve mudar?',
+ 'Coach is thinking…': 'O Coach está pensando…',
+ 'Message the Coach…': 'Escreva ao Coach…',
+
'Press back again to exit': 'Pressione voltar novamente para sair',
'Delete': 'Excluir',
'Save': 'Salvar',
diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js
index 1ebfb0c6b..44da335d8 100644
--- a/frontend/src/locales/pt.js
+++ b/frontend/src/locales/pt.js
@@ -1015,4 +1015,7 @@ export default {
'Training regularly': 'Treino regularmente',
'Back muscles': 'Costas',
'{0}: what’s planned': '{0}: previsto',
+ 'What should change?': 'O que deve mudar?',
+ 'Coach is thinking…': 'O Coach está a pensar…',
+ 'Message the Coach…': 'Escreve ao Coach…',
}
diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js
index 49e8e2a00..f82d7a807 100644
--- a/frontend/src/locales/ru.js
+++ b/frontend/src/locales/ru.js
@@ -1015,4 +1015,7 @@ export default {
'Training regularly': 'Тренируюсь регулярно',
'Back muscles': 'Спина',
'{0}: what’s planned': '{0}: по плану',
+ 'What should change?': 'Что изменить?',
+ 'Coach is thinking…': 'Тренер думает…',
+ 'Message the Coach…': 'Написать тренеру…',
}
diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js
index 4492dcbcd..2ea69c26a 100644
--- a/frontend/src/locales/tr.js
+++ b/frontend/src/locales/tr.js
@@ -1015,4 +1015,7 @@ export default {
'Training regularly': 'Düzenli antrenman yapıyorum',
'Back muscles': 'Sırt',
'{0}: what’s planned': '{0}: planlanan',
+ 'What should change?': 'Ne değişmeli?',
+ 'Coach is thinking…': 'Koç düşünüyor…',
+ 'Message the Coach…': 'Koça yaz…',
}
diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js
index 2622c75d1..857694510 100644
--- a/frontend/src/locales/zh.js
+++ b/frontend/src/locales/zh.js
@@ -1015,4 +1015,7 @@ export default {
'Training regularly': '规律训练中',
'Back muscles': '背部',
'{0}: what’s planned': '{0}:计划',
+ 'What should change?': '需要改什么?',
+ 'Coach is thinking…': '教练思考中…',
+ 'Message the Coach…': '给教练留言…',
}
diff --git a/frontend/src/views/CoachChat.jsx b/frontend/src/views/CoachChat.jsx
index 079ebe2c3..670478b88 100644
--- a/frontend/src/views/CoachChat.jsx
+++ b/frontend/src/views/CoachChat.jsx
@@ -164,8 +164,8 @@ export default function CoachChat() {
const status = job ? t('thinking…') : pending ? t('has a suggestion for you') : t('here when you need it')
const placeholder = pending?.kind === 'create'
- ? t('Tell the Coach what to change…')
- : job ? t('Wait for the Coach to finish…') : t('Ask for a review, or tell the Coach something…')
+ ? t('What should change?')
+ : job ? t('Coach is thinking…') : t('Message the Coach…')
return <div className="narrow chat">
<div className="chat-hdr">