feat: add loading indicator when switching sessions

Show a spinner with 'Loading messages…' text while chat history
is being fetched during session switches, instead of briefly
flashing the empty welcome screen. Includes EN/FR i18n.
This commit is contained in:
Nicolas Varrot
2026-02-12 05:52:06 +00:00
parent 4b923a1ec2
commit cb882f5ead
4 changed files with 19 additions and 6 deletions

View File

@@ -31,6 +31,7 @@ const en = {
// Chat
'chat.welcome': 'PinchChat',
'chat.welcomeSub': 'Send a message to get started',
'chat.loadingHistory': 'Loading messages…',
'chat.inputPlaceholder': 'Type a message…',
'chat.inputLabel': 'Message',
'chat.attachFile': 'Attach file',
@@ -106,6 +107,7 @@ const fr: Record<keyof typeof en, string> = {
'chat.welcome': 'PinchChat',
'chat.welcomeSub': 'Envoyez un message pour commencer',
'chat.loadingHistory': 'Chargement des messages…',
'chat.inputPlaceholder': 'Tapez un message…',
'chat.inputLabel': 'Message',
'chat.attachFile': 'Joindre un fichier',