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.

patrol: render finding recommendation on the expanded finding card

rcourtman138088a0736f
diff --git a/frontend-modern/src/components/AI/FindingsPanel.tsx b/frontend-modern/src/components/AI/FindingsPanel.tsx
index 83df71b7ef..3e7af662bd 100644
--- a/frontend-modern/src/components/AI/FindingsPanel.tsx
+++ b/frontend-modern/src/components/AI/FindingsPanel.tsx
@@ -1285,6 +1285,12 @@ export const FindingsPanel: Component<FindingsPanelProps> = (props) => {
<span class="font-medium">Impact:</span> {finding.impact}
</p>
</Show>
+ <Show when={finding.recommendation}>
+ <p class="text-sm text-base-content mt-2">
+ <span class="font-medium">Recommended next step:</span>{' '}
+ {finding.recommendation}
+ </p>
+ </Show>
<Show when={finding.previousResolvedFixSummary}>
<p class="text-sm text-base-content mt-2 px-2 py-1 rounded border border-emerald-200 bg-emerald-50/40 dark:border-emerald-800 dark:bg-emerald-950/30">
<span class="font-medium text-emerald-800 dark:text-emerald-300">
diff --git a/frontend-modern/src/components/AI/__tests__/FindingsPanel.links.test.tsx b/frontend-modern/src/components/AI/__tests__/FindingsPanel.links.test.tsx
index f903f1ac43..1f4118c605 100644
--- a/frontend-modern/src/components/AI/__tests__/FindingsPanel.links.test.tsx
+++ b/frontend-modern/src/components/AI/__tests__/FindingsPanel.links.test.tsx
@@ -465,6 +465,8 @@ describe('FindingsPanel resource links', () => {
description:
'The Unraid array on Tower is running without parity protection while capacity is high.',
impact: 'A disk failure before parity is rebuilt could cause unrecoverable data loss.',
+ recommendation:
+ 'Verify the parity check is progressing and let it complete before making array changes.',
detectedAt: '2026-03-30T11:00:00Z',
lastSeenAt: '2026-03-30T11:05:00Z',
status: 'active',
@@ -531,6 +533,12 @@ describe('FindingsPanel resource links', () => {
'The Unraid array on Tower is running without parity protection while capacity is high.',
),
).toBeInTheDocument();
+ expect(
+ screen.getByText(
+ 'Verify the parity check is progressing and let it complete before making array changes.',
+ ),
+ ).toBeInTheDocument();
+ expect(screen.getByText('Recommended next step:')).toBeInTheDocument();
});
it('can render Patrol findings from the direct Patrol source', async () => {