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:
1 parent
7b2af031c0
commit
11152626f8
34 files changed
+728
-289
No files matched your search
@@ -23,7 +23,7 @@ function Row({ control }: { control: Control }) {
|
||||
<div className="settings-control">
|
||||
{control === "feature" ? <div className={cn(block, "mr-3 h-3 w-14")} /> : null}
|
||||
{control === "duration" ? <div className="w-full"><div className={cn(block, "h-9 w-full rounded-full")} /><div className="mt-1.5 flex h-4 items-center"><div className={cn(block, "h-2.5 w-4/5 opacity-60")} /></div></div> : <div data-skeleton-switch={toggle ? "" : undefined} className={cn(block,
|
||||
toggle ? "h-5 w-[38px] shrink-0 rounded-full" : control === "input" ? "h-9 w-full rounded-full"
|
||||
toggle ? "h-5 w-9 shrink-0 rounded-full" : control === "input" ? "h-9 w-full rounded-full"
|
||||
: control === "segments" || control === "theme" ? "segmented-control w-44 rounded-full" : control === "edit" ? "ml-auto h-9 w-9 rounded-full" : "h-[19.5px] w-24",
|
||||
control === "segments" && "h-[34px]", control === "theme" && "h-8",
|
||||
)} />}
|
||||
@@ -52,7 +52,14 @@ export function SettingsSectionSkeleton({ section, showRestart = false }: { sect
|
||||
</>;
|
||||
else switch (section) {
|
||||
case "appearance":
|
||||
content = <><Group controls={["theme", "input"]} /><Group controls={["segments", "segments", "switch", "switch", "switch", "switch"]} /></>;
|
||||
content = <><Group controls={["theme", "input"]} /><Group controls={["segments", "segments", "switch", "switch"]} /></>;
|
||||
break;
|
||||
case "notifications":
|
||||
content = <section><Title /><SettingsGroup>
|
||||
<Row control="switch" />
|
||||
<div className="settings-list-inset" aria-hidden="true"><div className="border-t border-border/40" /></div>
|
||||
<Row control="switch" />
|
||||
</SettingsGroup><p className="settings-list-inset mt-3 text-[12px] leading-5"><span className={cn(block, "text-transparent")}>{t("settings.notifications.pageRequired")}</span></p></section>;
|
||||
break;
|
||||
case "overview":
|
||||
content = <>
|
||||
|
||||
Reference in new issue
Block a user