mirror of
https://github.com/root-fr/jmap-webmail.git
synced 2026-09-24 16:01:18 +00:00
Evaluate JMAP CalendarEventAlert triggers client-side and display toast notifications when alert times are reached. Extracts notification sound into shared utility and mounts ToastContainer globally (fixes silent toast failures across all components). - Pure alert utilities: offset parsing, fire time computation (start/end), effective alerts resolution with useDefaultAlerts, pending alert filtering - Zustand persist store for acknowledged alert deduplication (24h retention) - Global hook with 60s interval check, proactive 24h event fetch via ref (isolated from calendar store), stale closure protection - Settings: calendarNotificationsEnabled, calendarNotificationSound toggles - Toast icon customization, CalendarAlertProvider in layout - i18n: all 8 locales (EN/FR/JA/ES/IT/DE/NL/PT) - 44 tests (36 alert utils + 8 notification store), 558 total passing