From 08f49d4d0bd65dbcf54c911e0ec5fbe02ed71a82 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 17 Feb 2026 17:24:47 +0100 Subject: [PATCH] Update health-status-modal.tsx --- AppImage/components/health-status-modal.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/AppImage/components/health-status-modal.tsx b/AppImage/components/health-status-modal.tsx index 0fa3dd46..d4b9a64a 100644 --- a/AppImage/components/health-status-modal.tsx +++ b/AppImage/components/health-status-modal.tsx @@ -568,14 +568,18 @@ export function HealthStatusModal({ open, onOpenChange, getApiUrl }: HealthStatu })} - {/* Dismissed Items Section */} - {dismissedItems.length > 0 && ( + {/* Dismissed Items Section -- hide items whose category has custom suppression */} + {(() => { + const customCats = new Set(customSuppressions.map(cs => cs.category)) + const filteredDismissed = dismissedItems.filter(item => !customCats.has(item.category)) + if (filteredDismissed.length === 0) return null + return (
- Dismissed Items ({dismissedItems.length}) + Dismissed Items ({filteredDismissed.length})
- {dismissedItems.map((item) => { + {filteredDismissed.map((item) => { const catMeta = CATEGORIES.find(c => c.category === item.category || c.key === item.category) const CatIcon = catMeta?.Icon || BellOff const catLabel = catMeta?.label || item.category @@ -628,7 +632,8 @@ export function HealthStatusModal({ open, onOpenChange, getApiUrl }: HealthStatu ) })}
- )} + ) + })()} {/* Custom Suppression Settings Summary */} {customSuppressions.length > 0 && (