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.

Load resolved findings for the All tab too, not just Resolved

rcourtman0d0e82c1db2f
diff --git a/frontend-modern/src/components/AI/FindingsPanel.tsx b/frontend-modern/src/components/AI/FindingsPanel.tsx
index 522a7da5e7..6676d8f750 100644
--- a/frontend-modern/src/components/AI/FindingsPanel.tsx
+++ b/frontend-modern/src/components/AI/FindingsPanel.tsx
@@ -179,12 +179,15 @@ export const FindingsPanel: Component<FindingsPanelProps> = (props) => {
});
// The Patrol findings endpoint defaults to active-only. When the
- // operator switches to the Resolved tab, we need to fetch the full
+ // operator switches to a tab that needs history (Resolved, or All —
+ // both surfaces are meaningless if they only show what the Active
+ // tab already shows), fetch the full
// active+resolved+dismissed+snoozed set so the audit-trail filter has
// data to show. The trust strip credits "N auto-resolved" without
- // this load and the Resolved tab is otherwise empty.
+ // this load and those tabs are otherwise empty.
createEffect(() => {
- if (filter() === 'resolved' && isPatrolFindingsSource()) {
+ const f = filter();
+ if ((f === 'resolved' || f === 'all') && isPatrolFindingsSource()) {
void aiIntelligenceStore.loadPatrolFindings({ includeResolved: true });
}
});