Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Reduce redundant Patrol finding state badges

rcourtman76a2b7b7fab1
diff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
index 0fe73315b1..7cfccba992 100644
--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
@@ -203,6 +203,10 @@ separators rather than CSS-only spacing. Badge counts should preserve readable
plain-text output such as `Findings 1` and `Runs 30`, and metadata trails
should use textual separators like `· acknowledged 22d ago` so copied or
extracted Patrol output does not collapse words together.
+That same finding row should avoid redundant state stacking. When an active
+finding is already explicitly marked `Acknowledged`, the UI should not also add
+the baseline `detected` loop-state badge beside it; loop-state badges only add
+value there when they communicate a more specific Patrol state.
When Patrol is currently running, that strip should still stay factual rather
than switching to another verdict label: the runtime may add an explicit
in-progress indicator, but the primary activity label remains recent activity
diff --git a/frontend-modern/src/components/AI/FindingsPanel.tsx b/frontend-modern/src/components/AI/FindingsPanel.tsx
index 729dcce13e..b744505d15 100644
--- a/frontend-modern/src/components/AI/FindingsPanel.tsx
+++ b/frontend-modern/src/components/AI/FindingsPanel.tsx
@@ -463,6 +463,7 @@ export const FindingsPanel: Component<FindingsPanelProps> = (props) => {
when={
finding.status === 'active' &&
finding.loopState &&
+ !(finding.acknowledgedAt && finding.loopState === 'detected') &&
!finding.investigationStatus &&
!finding.investigationOutcome
}
diff --git a/frontend-modern/src/components/AI/__tests__/FindingsPanel.test.ts b/frontend-modern/src/components/AI/__tests__/FindingsPanel.test.ts
index 9008885df4..7bb50a8216 100644
--- a/frontend-modern/src/components/AI/__tests__/FindingsPanel.test.ts
+++ b/frontend-modern/src/components/AI/__tests__/FindingsPanel.test.ts
@@ -203,6 +203,12 @@ describe('aiFindingPresentation', () => {
expect(patrolWorkspaceSource).toContain('{state.summaryStats().totalActive}');
expect(patrolWorkspaceSource).toContain('{state.displayRunHistory().length}');
});
+
+ it('does not stack a detected loop-state badge on top of acknowledged active findings', () => {
+ expect(findingsPanelSource).toContain(
+ "!(finding.acknowledgedAt && finding.loopState === 'detected')",
+ );
+ });
});
describe('sourceColors', () => {