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.

Flag legacy Patrol snapshots in collapsed run rows

rcourtman4be282968c9c
diff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
index a85ac9ce20..84b0891924 100644
--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
@@ -289,6 +289,9 @@ That same caveat belongs in compact latest-run summaries too. When the most
recent Patrol run predates findings snapshots, the status bar's latest-run
segment should say that findings snapshot data is unavailable instead of
flattening the run into a plain healthy-looking summary.
+That same caveat belongs in collapsed run-history rows. Legacy runs without
+findings snapshot ids must carry an explicit snapshot-unavailable marker in the
+top row instead of looking like a clean zero-findings run until expanded.
That same findings surface should keep its section chrome functional rather
than promotional. Inside the Patrol findings tab, the selected tab already
names the surface, so the findings card should not add another in-card product
diff --git a/frontend-modern/src/components/patrol/RunHistoryEntry.tsx b/frontend-modern/src/components/patrol/RunHistoryEntry.tsx
index ecd79c4aa9..c99a5eb250 100644
--- a/frontend-modern/src/components/patrol/RunHistoryEntry.tsx
+++ b/frontend-modern/src/components/patrol/RunHistoryEntry.tsx
@@ -188,6 +188,9 @@ export function RunHistoryEntry(props: RunHistoryEntryProps) {
<Show when={run.rejected_findings}>
<span class="text-muted">• {run.rejected_findings} rejected</span>
</Show>
+ <Show when={!hasFindingsSnapshot && run.new_findings === 0 && run.existing_findings === 0}>
+ <span class="text-blue-600 dark:text-blue-400">• Findings snapshot unavailable</span>
+ </Show>
</div>
</button>
diff --git a/frontend-modern/src/components/patrol/__tests__/RunHistoryEntry.test.tsx b/frontend-modern/src/components/patrol/__tests__/RunHistoryEntry.test.tsx
index f6d7020d03..08755963ff 100644
--- a/frontend-modern/src/components/patrol/__tests__/RunHistoryEntry.test.tsx
+++ b/frontend-modern/src/components/patrol/__tests__/RunHistoryEntry.test.tsx
@@ -131,6 +131,7 @@ describe('RunHistoryEntry', () => {
/>
));
+ expect(screen.getByText('• Findings snapshot unavailable')).toBeInTheDocument();
expect(screen.getByTestId('findings-panel')).toBeInTheDocument();
expect(findingsPanelState.latestProps).toMatchObject({
filterFindingIds: undefined,