Coach-Chat: ohne Tab-Leiste, Composer am unteren Rand, kurze Platzhalter
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…').
This commit is contained in:
1 parent
833795b5f7
commit
b23f52a3d7
16 files changed
+45
-7
No files matched your search
@@ -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 />
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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…',
|
||||
}
|
||||
@@ -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…',
|
||||
}
|
||||
@@ -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…',
|
||||
}
|
||||
@@ -1015,4 +1015,7 @@ export default {
|
||||
'Training regularly': 'नियमित प्रशिक्षण',
|
||||
'Back muscles': 'पीठ',
|
||||
'{0}: what’s planned': '{0}: योजना',
|
||||
'What should change?': 'क्या बदलना चाहिए?',
|
||||
'Coach is thinking…': 'कोच सोच रहा है…',
|
||||
'Message the Coach…': 'कोच को संदेश…',
|
||||
}
|
||||
@@ -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…',
|
||||
}
|
||||
@@ -1015,4 +1015,7 @@ export default {
|
||||
'Training regularly': '꾸준히 훈련 중',
|
||||
'Back muscles': '등',
|
||||
'{0}: what’s planned': '{0}: 계획',
|
||||
'What should change?': '무엇을 바꿀까요?',
|
||||
'Coach is thinking…': '코치가 생각 중…',
|
||||
'Message the Coach…': '코치에게 메시지…',
|
||||
}
|
||||
@@ -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…',
|
||||
}
|
||||
@@ -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',
|
||||
|
||||
@@ -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…',
|
||||
}
|
||||
@@ -1015,4 +1015,7 @@ export default {
|
||||
'Training regularly': 'Тренируюсь регулярно',
|
||||
'Back muscles': 'Спина',
|
||||
'{0}: what’s planned': '{0}: по плану',
|
||||
'What should change?': 'Что изменить?',
|
||||
'Coach is thinking…': 'Тренер думает…',
|
||||
'Message the Coach…': 'Написать тренеру…',
|
||||
}
|
||||
@@ -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…',
|
||||
}
|
||||
@@ -1015,4 +1015,7 @@ export default {
|
||||
'Training regularly': '规律训练中',
|
||||
'Back muscles': '背部',
|
||||
'{0}: what’s planned': '{0}:计划',
|
||||
'What should change?': '需要改什么?',
|
||||
'Coach is thinking…': '教练思考中…',
|
||||
'Message the Coach…': '给教练留言…',
|
||||
}
|
||||
@@ -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">
|
||||
|
||||
Reference in new issue
Block a user