From 2a4d056b59576398acf662c96e508ba09568a361 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 3 Mar 2026 18:48:54 +0100 Subject: [PATCH] Update notification service --- AppImage/components/notification-settings.tsx | 22 +++--- AppImage/scripts/notification_events.py | 78 +++++++++++++++++-- AppImage/scripts/notification_templates.py | 5 +- 3 files changed, 85 insertions(+), 20 deletions(-) diff --git a/AppImage/components/notification-settings.tsx b/AppImage/components/notification-settings.tsx index 77fe37f5..d25018ef 100644 --- a/AppImage/components/notification-settings.tsx +++ b/AppImage/components/notification-settings.tsx @@ -235,7 +235,7 @@ export function NotificationSettings() {
- {EVENT_CATEGORIES.map(cat => { + {EVENT_CATEGORIES.filter(cat => cat.key !== "other").map(cat => { const isEnabled = overrides.categories[cat.key] ?? true const isExpanded = expandedCategories.has(`${chName}.${cat.key}`) const eventsForGroup = evtByGroup[cat.key] || [] @@ -244,7 +244,7 @@ export function NotificationSettings() { ).length return ( -
+
{/* Category row -- entire block is clickable to expand/collapse */}
{ e.stopPropagation() if (!editMode) return @@ -321,7 +321,7 @@ export function NotificationSettings() { {eventsForGroup.map(evt => { const evtEnabled = overrides.events?.[evt.type] ?? evt.default_enabled return ( -
+
{evt.title} @@ -332,7 +332,7 @@ export function NotificationSettings() { disabled={!editMode} className={`relative w-9 h-[18px] shrink-0 rounded-full transition-colors ${ !editMode ? "opacity-50 cursor-not-allowed" : "cursor-pointer" - } ${evtEnabled ? "bg-blue-600" : "bg-muted-foreground/30"}`} + } ${evtEnabled ? "bg-blue-600" : "bg-muted-foreground/20 border border-muted-foreground/40"}`} onClick={() => { if (!editMode) return updateConfig(p => { @@ -788,7 +788,7 @@ matcher: proxmenux-pbs