Add notification filters

This commit is contained in:
James Babcock committed 2026-09-08 02:21:50 -07:00
1 parent 5c3b71aeea
commit 3d39d27456
8 files changed
+205 -18

No files matched your search

@@ -1,4 +1,5 @@
import { NotificationsListLayer } from "../../ui/notifications";
import { NotificationFilterLayer } from "../../ui/notification-filter";
import { onAndroidNotificationPosted } from "../../native/notification-icons";
import {
createInProcessWindow,
@@ -25,6 +26,13 @@ export function createNotificationsAppWindow(options: InProcessAppOptions): InPr
iconLetter: "N",
icon: "bell",
closeable: true,
menuItems: () => [{
label: "Notification filter",
onSelect: (ctx) => {
ctx.stack.pop();
ctx.stack.push(new NotificationFilterLayer());
},
}],
actions: options.actions,
baseLayer: new YieldAtRootLayer(new NotificationsListLayer()),
submitFrame: options.submitFrame,