feat: add date separators between messages from different days

Shows a subtle horizontal line with the date label (Today, Yesterday, or
full date) when messages span multiple days. Helps orient users when
scrolling through long conversation histories.

Includes i18n support (EN/FR) for the date labels.
This commit is contained in:
Nicolas Varrot
2026-02-12 00:40:03 +00:00
parent 788909f0b3
commit 375bd102d4
2 changed files with 41 additions and 3 deletions

View File

@@ -63,6 +63,7 @@ const en = {
// Timestamps
'time.yesterday': 'Yesterday',
'time.today': 'Today',
// Keyboard shortcuts
'shortcuts.title': 'Keyboard Shortcuts',
@@ -131,6 +132,7 @@ const fr: Record<keyof typeof en, string> = {
'message.retry': 'Renvoyer le message',
'time.yesterday': 'Hier',
'time.today': "Aujourd'hui",
'shortcuts.title': 'Raccourcis clavier',
'shortcuts.send': 'Envoyer le message',