From bcacd8b98e012b31df3a4fda9aef96a8cd77fb9b Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 24 Mar 2026 17:48:52 +0100 Subject: [PATCH] Update notification service --- AppImage/components/health-status-modal.tsx | 26 ++++++++++++++++++++- AppImage/scripts/health_monitor.py | 6 ++--- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/AppImage/components/health-status-modal.tsx b/AppImage/components/health-status-modal.tsx index 04860138..26daa7f6 100644 --- a/AppImage/components/health-status-modal.tsx +++ b/AppImage/components/health-status-modal.tsx @@ -677,7 +677,31 @@ export function HealthStatusModal({ open, onOpenChange, getApiUrl }: HealthStatu {isExpanded && (
{reason && ( -

{reason}

+
+

{reason}

+ {/* Show dismiss button for UNKNOWN status at category level when dismissable */} + {status === "UNKNOWN" && categoryData?.dismissable && !hasChecks && ( + + )} +
)} {hasChecks ? ( renderChecks(checks, key) diff --git a/AppImage/scripts/health_monitor.py b/AppImage/scripts/health_monitor.py index 050b9f22..c4f1a148 100644 --- a/AppImage/scripts/health_monitor.py +++ b/AppImage/scripts/health_monitor.py @@ -273,7 +273,7 @@ class HealthMonitor: ['journalctl', '--since', '10 minutes ago', '--no-pager', '-p', 'warning'], capture_output=True, text=True, - timeout=10 + timeout=20 ) if result.returncode == 0: cache['output'] = result.stdout @@ -3209,7 +3209,7 @@ class HealthMonitor: ['journalctl', '--since', '3 minutes ago', '--no-pager', '-p', 'warning'], capture_output=True, text=True, - timeout=10 + timeout=20 ) # Fetch logs from the previous 3-minute interval to detect spikes/cascades @@ -3217,7 +3217,7 @@ class HealthMonitor: ['journalctl', '--since', '6 minutes ago', '--until', '3 minutes ago', '--no-pager', '-p', 'warning'], capture_output=True, text=True, - timeout=10 + timeout=20 ) if result_recent.returncode == 0: