From 80c64e07601242d24beb5215ba8337846dabccf7 Mon Sep 17 00:00:00 2001 From: heaven Date: Mon, 29 Jun 2026 19:57:28 +0300 Subject: [PATCH] refactor(notifications): drop bundled Cinny message chime + DM-call ring audio; alerts now system-owned (native ringtone, web push) --- docs/ai/architecture.md | 6 +- public/locales/en.json | 4 +- public/locales/ru.json | 4 +- public/sound/notification.ogg | Bin 11295 -> 0 bytes public/sound/ring.mp3 | Bin 15273 -> 0 bytes public/sound/ring.ogg | Bin 18586 -> 0 bytes src/app/features/settings/about/About.tsx | 6 +- .../notifications/SystemNotification.tsx | 9 -- src/app/pages/IncomingCallStripRenderer.tsx | 90 ++++-------------- src/app/pages/client/ClientNonUIFeatures.tsx | 82 +--------------- src/app/state/settings.ts | 17 +++- src/sw.ts | 8 +- 12 files changed, 50 insertions(+), 176 deletions(-) delete mode 100755 public/sound/notification.ogg delete mode 100644 public/sound/ring.mp3 delete mode 100644 public/sound/ring.ogg diff --git a/docs/ai/architecture.md b/docs/ai/architecture.md index a24c2d3f..e8b212ef 100644 --- a/docs/ai/architecture.md +++ b/docs/ai/architecture.md @@ -266,9 +266,11 @@ Slate-based. `Editor.tsx` (Slate root — preserve), `Editor.preview.tsx`, `Elem ### settings.ts fields & migrations -Current `Settings` fields: `themeId? ('light-theme'|'dark-theme')`, `useSystemTheme`, `monochromeMode?`, `isMarkdown`, `editorToolbar`, `twitterEmoji`, `pageZoom`, `hideActivity`, `isPeopleDrawer`, `memberSortFilterIndex`, `enterForNewline`, `hideMembershipEvents`, `hideNickAvatarEvents` (default true), `mediaAutoLoad`, `urlPreview`, `encUrlPreview`, `showHiddenEvents`, `isNotificationSounds`, `inviteSpamFilter`, `developerTools`, `migrationsApplied?`. +Current `Settings` fields: `themeId? ('light-theme'|'dark-theme')`, `useSystemTheme`, `monochromeMode?`, `isMarkdown`, `editorToolbar`, `twitterEmoji`, `pageZoom`, `hideActivity`, `isPeopleDrawer`, `memberSortFilterIndex`, `enterForNewline`, `hideMembershipEvents`, `hideNickAvatarEvents` (default true), `mediaAutoLoad`, `urlPreview`, `encUrlPreview`, `showHiddenEvents`, `inviteSpamFilter`, `developerTools`, `migrationsApplied?`. -`getSettings()` runs three one-shot migrations: `dawn-redesign-v1` (pins **existing** users — stored JSON present — to dark; brand-new users keep `useSystemTheme:true`), `dawn-p3c-cleanup` (drops `messageLayout`/`messageSpacing`/`legacyUsernameColor`), `system-time-format-cleanup` (drops `hour24Clock`/`dateFormatString` — time/date now derive from the runtime locale via `Intl.DateTimeFormat` in `utils/time.ts`). **Known platform limitation**: Android's manual "24-hour" toggle is invisible to `Intl`; only a native bridge to `DateFormat.is24HourFormat` would respect it. +`getSettings()` runs one-shot, stamped migrations: `dawn-redesign-v1` (pins **existing** users — stored JSON present — to dark; brand-new users keep `useSystemTheme:true`), `dawn-p3c-cleanup` (drops `messageLayout`/`messageSpacing`/`legacyUsernameColor`), `system-time-format-cleanup` (drops `hour24Clock`/`dateFormatString` — time/date now derive from the runtime locale via `Intl.DateTimeFormat` in `utils/time.ts`), `dawn-orphan-settings-cleanup` (drops `editorToolbar`/`encUrlPreview`/`showHiddenEvents`), `notification-sound-cleanup` (drops `isNotificationSounds` — the bundled in-app alert sounds were removed; alerts are owned by the system: Android native notification channels + web push). **Known platform limitation**: Android's manual "24-hour" toggle is invisible to `Intl`; only a native bridge to `DateFormat.is24HourFormat` would respect it. + +**No bundled alert sounds.** Vojo ships **no** `