feat: add suggestion chips to empty chat state

Clickable example prompts appear when a session has no messages,
giving users quick-start ideas. 2x2 grid on desktop, stacked on mobile.
Fully i18n'd (EN/FR).
This commit is contained in:
Nicolas Varrot
2026-02-13 23:55:26 +00:00
parent f46d233553
commit 0bf25f40a9
2 changed files with 28 additions and 1 deletions

View File

@@ -34,6 +34,11 @@ const en = {
// Chat
'chat.welcome': 'PinchChat',
'chat.welcomeSub': 'Send a message to get started',
'chat.suggestions': 'Try asking...',
'chat.suggestion1': 'Summarize my recent emails',
'chat.suggestion2': "What's on my calendar today?",
'chat.suggestion3': 'Search the web for latest news',
'chat.suggestion4': 'Help me write a script',
'chat.loadingHistory': 'Loading messages…',
'chat.inputPlaceholder': 'Type a message…',
'chat.inputLabel': 'Message',
@@ -158,6 +163,11 @@ const fr: Record<keyof typeof en, string> = {
'chat.welcome': 'PinchChat',
'chat.welcomeSub': 'Envoyez un message pour commencer',
'chat.suggestions': 'Essayez par exemple...',
'chat.suggestion1': 'Résume mes derniers emails',
'chat.suggestion2': "Qu'est-ce que j'ai au calendrier aujourd'hui ?",
'chat.suggestion3': 'Cherche sur le web les dernières actus',
'chat.suggestion4': "Aide-moi à écrire un script",
'chat.loadingHistory': 'Chargement des messages…',
'chat.inputPlaceholder': 'Tapez un message…',
'chat.inputLabel': 'Message',