feat: message bookmarks — star important messages and jump back to them

- Add bookmark button on message hover (amber star icon)
- Bookmarked messages show a small star indicator in the timestamp row
- Floating bookmarks panel to list and jump to bookmarked messages
- Bookmarks persisted in localStorage per session
- i18n support (EN/FR)
This commit is contained in:
Nicolas Varrot
2026-02-14 09:56:37 +00:00
parent 56fccc1e62
commit aa9680cad6
4 changed files with 132 additions and 5 deletions

View File

@@ -142,6 +142,11 @@ const en = {
'settings.sendShortcut': 'Send with',
'settings.sendEnter': 'Enter',
'settings.sendCtrlEnter': 'Ctrl+Enter',
// Bookmarks
'message.bookmark': 'Bookmark message',
'message.removeBookmark': 'Remove bookmark',
'chat.bookmarks': 'Bookmarks',
} as const;
const fr: Record<keyof typeof en, string> = {
@@ -264,6 +269,10 @@ const fr: Record<keyof typeof en, string> = {
'settings.sendShortcut': 'Envoyer avec',
'settings.sendEnter': 'Entrée',
'settings.sendCtrlEnter': 'Ctrl+Entrée',
'message.bookmark': 'Marquer le message',
'message.removeBookmark': 'Retirer le marque-page',
'chat.bookmarks': 'Marque-pages',
};
export type TranslationKey = keyof typeof en;