fix(webui): refine browser notifications (NAN-227)

Reconcile the original notification fix with the integrated main snapshot.

Group notification settings and simplify localized copy and documentation.
Preserve permission opt-out and notification click routing across app transitions.
Suppress late completion notifications for discarded temporary chats and align
notification settings skeletons with the loaded layout.
This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-20 13:45:04 +08:00
1 parent 7b2af031c0
commit 11152626f8
34 files changed
+728 -289

No files matched your search

+18 -1
View File
@@ -178,6 +178,21 @@ const LOCALIZED_SETTINGS_COPY_KEYS = [
"settings.help.codeWrap",
"settings.help.brandLogos",
"settings.help.browserNotifications",
"settings.nav.notifications",
"settings.notifications.scope",
"settings.notifications.intro",
"settings.notifications.pageRequired",
"settings.notifications.revoked",
"settings.notifications.retry",
"settings.notifications.statusOff",
"settings.notifications.statusPermission",
"settings.notifications.statusOn",
"settings.notifications.statusBlocked",
"settings.notifications.statusRevoked",
"settings.notifications.statusUnavailable",
"settings.notifications.statusWorker",
"settings.notifications.statusBusy",
"settings.notifications.statusError",
"settings.notifications.test",
"settings.notifications.testBody",
"settings.notifications.waiting",
@@ -639,7 +654,9 @@ describe("webui i18n", () => {
...LOCALIZED_CHANNEL_SHELL_KEYS,
...LOCALIZED_NEW_SURFACE_KEYS,
].filter(
(key) => current.get(key) === english.get(key),
// “Notifications” is also the native French label.
(key) => current.get(key) === english.get(key)
&& !(locale === "fr" && key === "settings.nav.notifications"),
);
expect({ locale, leaked }).toEqual({ locale, leaked: [] });