From b23f52a3d76162c16bb3b81db8fe4f4952cf11fd Mon Sep 17 00:00:00 2001 From: Duarte Santos Date: Sun, 30 Aug 2026 17:58:54 +0200 Subject: [PATCH] Coach-Chat: ohne Tab-Leiste, Composer am unteren Rand, kurze Platzhalter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Die Tab-Leiste nahm im Chat nur Platz weg; der Zurueck-Pfeil fuehrt ohnehin zum Plan. Der Composer sitzt jetzt direkt ueber der Safe-Area, und die Platzhalter passen in eine Zeile ('Nachricht an den Coach…' statt 'Um eine Auswertung bitten oder dem Coach etwas sagen…'). --- frontend/src/App.jsx | 3 ++- frontend/src/coach.css | 6 +++--- frontend/src/lib/pt-br-locale.test.js | 2 +- frontend/src/locales/de.js | 3 +++ frontend/src/locales/es.js | 3 +++ frontend/src/locales/fr.js | 3 +++ frontend/src/locales/hi.js | 3 +++ frontend/src/locales/it.js | 3 +++ frontend/src/locales/ko.js | 3 +++ frontend/src/locales/pl.js | 3 +++ frontend/src/locales/pt-BR.js | 4 ++++ frontend/src/locales/pt.js | 3 +++ frontend/src/locales/ru.js | 3 +++ frontend/src/locales/tr.js | 3 +++ frontend/src/locales/zh.js | 3 +++ frontend/src/views/CoachChat.jsx | 4 ++-- 16 files changed, 45 insertions(+), 7 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 0d2519a..f4da1a6 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -109,7 +109,8 @@ function Shell() { )} - + {/* The chat owns the bottom of the screen: its composer sits where the tabs would be. */} + {loc.pathname !== '/coach' && } diff --git a/frontend/src/coach.css b/frontend/src/coach.css index 5c6a253..a018c66 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 069b96c..ce3f1d6 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 836393d..8a2d989 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 5b7c02d..3d2ff9e 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 3067abf..c3efe6d 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 69401c6..0eced0b 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 becc9f7..912aa05 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 bda80dc..bddfb99 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 cf098fc..7c5bb97 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 d373a4d..56ede45 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 1ebfb0c..44da335 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 49e8e2a..f82d7a8 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 4492dcb..2ea69c2 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 2622c75..8576945 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 079ebe2..670478b 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