feat: file variety, user status, DND gate, drag-drop, mentions, link preview, emoji picker, soundboard, ringtone
Attachments
- Video: native <video controls>, decrypted blob, metadata preload
- PDF: collapsible <object> viewer with download + preview toggle
- Generic: file card with lazy decrypt, mime-to-extension map
- MessageBubble dispatch: audio/image/video/pdf/generic by mime
- Composer accept widened from image/* to any; AttachmentPreview renders
non-images as file cards
User status
- usePeerPresence returns { state, statusMessage } and tracks both fields
via realtime updates
- ConversationHeader subtitle shows custom status_message when peer is
online/idle/dnd (with message set); falls back to localized presence
label; always "Offline" when state === 'offline'
- UserBar: status_message input in dropdown (max 128 chars, save on
blur/Enter), subtitle uses same precedence as peer view
- AuthContext: auto-flip offline → online on session mount; best-effort
offline on beforeunload/pagehide; respects explicit idle/dnd/invisible
- i18n: presence.status_placeholder (DE + EN)
DND
- CallUI: incoming ring suppressed when own presence === 'dnd' (outgoing
rings stay audible — user-initiated)
- CallContext: presenceRef mirrors profile.presenceState, incoming-call
and missed-call OS notifications skipped under DND
- ConversationsContext already gated message tone + notify
Drag/drop + paste
- Page-root drag handlers feed ingestFiles; overlay shown while dragging
- Textarea onPaste extracts clipboard image items
@mentions in groups
- MentionAutocomplete: keyboard-driven dropdown, arrow/enter/tab/esc
- Composer onChange parses trailing @token, auto-open
- renderBodyWithMentions highlights @username tokens in bubbles
Link previews
- Migration 20260421000003_link_previews.sql (cache table, auth read,
service-role write via edge function)
- Edge function og-preview: POST {url}, fetches HTML (6s timeout, 1MB
cap), regex-parses OG/twitter/description, upserts cache
- useLinkPreview hook with in-memory cache + inflight dedup
- LinkPreviewCard rendered from first URL in message body
Emoji picker
- Built-in curated set (~250 emojis) across five categories
- Search by keyword/emoji char/category, recent list persisted in
localStorage
- Trigger button next to + and voice buttons in composer
Soundboard + ringtone + mic pipeline
- Pulled in (user-authored) SoundboardManagerDialog/Panel/Settings,
RingtoneSettings, mic pipeline + hotkeys + storage modules
- AuthContext imports updateOwnProfile for presence auto-flip
Fixes
- AttachmentAudio min-width so bubbles don't collapse to 0px on peer
side
- Focus flicker: visibility/online wake refresh throttled to 30s,
focus listener dropped, loading flag only on first fetch
This commit is contained in:
@@ -15,7 +15,8 @@
|
||||
"idle": "Abwesend",
|
||||
"dnd": "Nicht stören",
|
||||
"invisible": "Unsichtbar",
|
||||
"offline": "Offline"
|
||||
"offline": "Offline",
|
||||
"status_placeholder": "Status setzen…"
|
||||
},
|
||||
"chats": {
|
||||
"empty_title": "Noch keine Unterhaltungen",
|
||||
@@ -194,7 +195,61 @@
|
||||
"allow_dms_strangers_hint": "Wenn aus, können dich nur Freunde direkt anschreiben.",
|
||||
"this_device": "Dieses Gerät",
|
||||
"danger_zone": "Gefahrenzone",
|
||||
"sign_out": "Abmelden"
|
||||
"sign_out": "Abmelden",
|
||||
"section_ringtone": "Klingelton",
|
||||
"ringtone_incoming": "Eingehender Anruf",
|
||||
"ringtone_default_active": "Standard-Klingelton (Doppelton)",
|
||||
"ringtone_custom_active": "{{name}} · {{size}} MB",
|
||||
"ringtone_upload": "Hochladen",
|
||||
"ringtone_replace": "Ersetzen",
|
||||
"ringtone_preview": "Vorhören",
|
||||
"ringtone_stop": "Stop",
|
||||
"ringtone_reset": "Zurücksetzen",
|
||||
"ringtone_hint": "MP3, WAV, OGG oder M4A bis 2 MB. Nur für eingehende Anrufe — ausgehend bleibt der Standard.",
|
||||
"ringtone_error_too_large": "Datei zu groß (max {{max}} MB).",
|
||||
"ringtone_error_not_audio": "Nur Audio-Dateien werden unterstützt.",
|
||||
"ringtone_error_generic": "Ringtone konnte nicht gespeichert werden.",
|
||||
"ringtone_error_play": "Ringtone konnte nicht abgespielt werden.",
|
||||
"section_soundboard": "Soundboard"
|
||||
},
|
||||
"soundboard": {
|
||||
"summary_title": "Deine Sounds",
|
||||
"summary_empty": "Noch keine Sounds vorhanden.",
|
||||
"summary_counts": "{{sounds}} Sounds · {{categories}} Kategorien · {{hotkeys}} mit Hotkey",
|
||||
"settings_hint": "Hotkeys sind optional. Sounds lassen sich auch während eines Anrufs direkt im UI abspielen.",
|
||||
"manage": "Verwalten",
|
||||
"manager_title": "Soundboard verwalten",
|
||||
"manager_hint": "Beliebig viele Sounds, kein Hotkey nötig. Hotkeys feuern nur während eines Anrufs.",
|
||||
"add": "Sound hinzufügen",
|
||||
"empty": "Noch keine Sounds. Lade oben welche hoch.",
|
||||
"category_placeholder": "Kategorie…",
|
||||
"category_uncategorized": "(Ohne Kategorie)",
|
||||
"hotkey_capture": "Hotkey binden (Esc = abbrechen)",
|
||||
"hotkey_press": "Drücke…",
|
||||
"hotkey_none": "Kein Hotkey",
|
||||
"hotkey_clear": "Hotkey entfernen",
|
||||
"hotkey_conflict_ptt": "Konflikt mit Push-to-Talk.",
|
||||
"hotkey_conflict_sound": "Bereits von \"{{name}}\" belegt.",
|
||||
"gain_title": "Lautstärke",
|
||||
"preview": "Vorhören",
|
||||
"preview_stop": "Stop",
|
||||
"move_up": "Nach oben",
|
||||
"move_down": "Nach unten",
|
||||
"delete": "Löschen",
|
||||
"delete_confirm": "Sound löschen?",
|
||||
"error_too_large": "Datei zu groß (max {{max}} MB).",
|
||||
"error_not_audio": "Nur Audio-Dateien werden unterstützt.",
|
||||
"error_generic": "Sound konnte nicht gespeichert werden.",
|
||||
"toggle": "Soundboard",
|
||||
"panel_title": "Soundboard",
|
||||
"panel_close": "Schließen",
|
||||
"panel_search": "Suche…",
|
||||
"panel_empty": "Keine Sounds gespeichert. Füge welche in den Einstellungen hinzu.",
|
||||
"panel_no_matches": "Keine Treffer.",
|
||||
"panel_master": "Master",
|
||||
"panel_monitor": "Mithören",
|
||||
"panel_stop_all": "Alle stoppen",
|
||||
"pad_stop": "Stoppen"
|
||||
},
|
||||
"update": {
|
||||
"available": "Update verfügbar",
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
"idle": "Idle",
|
||||
"dnd": "Do not disturb",
|
||||
"invisible": "Invisible",
|
||||
"offline": "Offline"
|
||||
"offline": "Offline",
|
||||
"status_placeholder": "Set status…"
|
||||
},
|
||||
"chats": {
|
||||
"empty_title": "No conversations yet",
|
||||
@@ -194,7 +195,61 @@
|
||||
"allow_dms_strangers_hint": "When off, only friends can DM you.",
|
||||
"this_device": "This device",
|
||||
"danger_zone": "Danger zone",
|
||||
"sign_out": "Sign out"
|
||||
"sign_out": "Sign out",
|
||||
"section_ringtone": "Ringtone",
|
||||
"ringtone_incoming": "Incoming call",
|
||||
"ringtone_default_active": "Default ringtone (double beep)",
|
||||
"ringtone_custom_active": "{{name}} · {{size}} MB",
|
||||
"ringtone_upload": "Upload",
|
||||
"ringtone_replace": "Replace",
|
||||
"ringtone_preview": "Preview",
|
||||
"ringtone_stop": "Stop",
|
||||
"ringtone_reset": "Reset",
|
||||
"ringtone_hint": "MP3, WAV, OGG or M4A up to 2 MB. Incoming calls only — outgoing keeps the default.",
|
||||
"ringtone_error_too_large": "File too large (max {{max}} MB).",
|
||||
"ringtone_error_not_audio": "Only audio files are supported.",
|
||||
"ringtone_error_generic": "Could not save the ringtone.",
|
||||
"ringtone_error_play": "Could not play the ringtone.",
|
||||
"section_soundboard": "Soundboard"
|
||||
},
|
||||
"soundboard": {
|
||||
"summary_title": "Your sounds",
|
||||
"summary_empty": "No sounds stored yet.",
|
||||
"summary_counts": "{{sounds}} sounds · {{categories}} categories · {{hotkeys}} with hotkey",
|
||||
"settings_hint": "Hotkeys are optional. Sounds can also be played from the in-call panel.",
|
||||
"manage": "Manage",
|
||||
"manager_title": "Manage soundboard",
|
||||
"manager_hint": "Any number of sounds, hotkeys optional. Hotkeys fire only while in a call.",
|
||||
"add": "Add sound",
|
||||
"empty": "No sounds yet. Upload some above.",
|
||||
"category_placeholder": "Category…",
|
||||
"category_uncategorized": "(Uncategorized)",
|
||||
"hotkey_capture": "Bind hotkey (Esc = cancel)",
|
||||
"hotkey_press": "Press…",
|
||||
"hotkey_none": "No hotkey",
|
||||
"hotkey_clear": "Clear hotkey",
|
||||
"hotkey_conflict_ptt": "Conflicts with Push-to-Talk.",
|
||||
"hotkey_conflict_sound": "Already bound to \"{{name}}\".",
|
||||
"gain_title": "Volume",
|
||||
"preview": "Preview",
|
||||
"preview_stop": "Stop",
|
||||
"move_up": "Move up",
|
||||
"move_down": "Move down",
|
||||
"delete": "Delete",
|
||||
"delete_confirm": "Delete this sound?",
|
||||
"error_too_large": "File too large (max {{max}} MB).",
|
||||
"error_not_audio": "Only audio files are supported.",
|
||||
"error_generic": "Could not save the sound.",
|
||||
"toggle": "Soundboard",
|
||||
"panel_title": "Soundboard",
|
||||
"panel_close": "Close",
|
||||
"panel_search": "Search…",
|
||||
"panel_empty": "No sounds stored. Add some from settings.",
|
||||
"panel_no_matches": "No matches.",
|
||||
"panel_master": "Master",
|
||||
"panel_monitor": "Monitor",
|
||||
"panel_stop_all": "Stop all",
|
||||
"pad_stop": "Stop"
|
||||
},
|
||||
"update": {
|
||||
"available": "Update available",
|
||||
|
||||
Reference in New Issue
Block a user