Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Hide idle Patrol filter bar
rcourtman2bd7c39b9b24
diff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex 1316fd21a0..56952f56c6 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -195,6 +195,10 @@ That same control bar should also stay proportional to the current findingsset. Sort controls belong only when there are multiple Patrol findings toorder; the empty state or single-finding state should not spend header spaceon a no-op sort selector.+The same proportionality rule applies to the findings filter bar itself. When+there are no Patrol findings and no special approval or attention queues to+navigate, the findings surface should not render filter pills that lead only+to the same empty state.When Patrol is currently running, that strip should still stay factual ratherthan switching to another verdict label: the runtime may add an explicitin-progress indicator, but the primary activity label remains recent activitydiff --git a/frontend-modern/src/components/AI/FindingsPanel.tsx b/frontend-modern/src/components/AI/FindingsPanel.tsxindex 71a9c69995..24fbaaa1bf 100644--- a/frontend-modern/src/components/AI/FindingsPanel.tsx+++ b/frontend-modern/src/components/AI/FindingsPanel.tsx@@ -206,6 +206,11 @@ export const FindingsPanel: Component<FindingsPanelProps> = (props) => {});// Filter to only show Patrol findings (exclude threshold alerts)+ const allPatrolFindings = createMemo(() =>+ aiIntelligenceStore.findings.filter(+ (f) => f.source !== 'threshold' && !f.isThreshold && !hasTriggeringAlert(f),+ ),+ );const patrolFindings = createMemo(() =>filteredFindings().filter((f) => f.source !== 'threshold' && !f.isThreshold && !hasTriggeringAlert(f),@@ -226,6 +231,13 @@ export const FindingsPanel: Component<FindingsPanelProps> = (props) => {}),);const emptyStateTone = createMemo(() => getSemanticTonePresentation(emptyStateCopy().tone));+ const showFilterControls = createMemo(+ () =>+ props.showControls !== false &&+ (allPatrolFindings().length > 0 ||+ aiIntelligenceStore.needsAttentionCount > 0 ||+ aiIntelligenceStore.pendingApprovalCount > 0),+ );const isOutOfScope = (finding: UnifiedFinding): boolean => {if (!props.showScopeWarnings) {@@ -1009,7 +1021,7 @@ export const FindingsPanel: Component<FindingsPanelProps> = (props) => {return (<div class="space-y-4">{/* Controls */}- <Show when={props.showControls !== false}>+ <Show when={showFilterControls()}><div class="flex items-center justify-between"><div class="flex text-xs"><For each={filterOptions()}>diff --git a/frontend-modern/src/components/AI/__tests__/FindingsPanel.test.ts b/frontend-modern/src/components/AI/__tests__/FindingsPanel.test.tsindex 46f88e7c2b..32eece73e3 100644--- a/frontend-modern/src/components/AI/__tests__/FindingsPanel.test.ts+++ b/frontend-modern/src/components/AI/__tests__/FindingsPanel.test.ts@@ -176,6 +176,14 @@ describe('aiFindingPresentation', () => {expect(findingsPanelSource).toContain('<Show when={patrolFindings().length > 1}>');expect(findingsPanelSource).toContain('<option value="severity">By Severity</option>');});++ it('hides the filter bar when there are no Patrol findings or special buckets to navigate', () => {+ expect(findingsPanelSource).toContain('const showFilterControls = createMemo(');+ expect(findingsPanelSource).toContain('allPatrolFindings().length > 0');+ expect(findingsPanelSource).toContain('aiIntelligenceStore.needsAttentionCount > 0');+ expect(findingsPanelSource).toContain('aiIntelligenceStore.pendingApprovalCount > 0');+ expect(findingsPanelSource).toContain('<Show when={showFilterControls()}>');+ });});describe('sourceColors', () => {