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.

Clarify Patrol latest run wording

rcourtmanf15754f99aba
diff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
index 6f107caa32..c11f2c4ea2 100644
--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
@@ -146,6 +146,11 @@ recent-activity strip, not a second health verdict: when Patrol is active it
should report recent run activity, run kind, latest run result, and run-count
context instead of emitting another green/amber all-clear headline that can
drift from the governed assessment summary above it.
+That recent-activity copy also has to remain intelligible in compact or
+plain-text renders: the latest-run segment must keep an explicit textual
+separator between run kind and result, so degraded entries read as
+`Scoped run · error` rather than collapsing into concatenated strings like
+`Scoped runerror`.
That same Patrol-owned timing contract also applies to the findings empty
state footer. `frontend-modern/src/components/AI/FindingsPanel.tsx` must use
the canonical Patrol countdown semantics for `next_patrol_at` instead of
diff --git a/frontend-modern/src/components/patrol/PatrolStatusBar.tsx b/frontend-modern/src/components/patrol/PatrolStatusBar.tsx
index 86ad5acab1..51145d775c 100644
--- a/frontend-modern/src/components/patrol/PatrolStatusBar.tsx
+++ b/frontend-modern/src/components/patrol/PatrolStatusBar.tsx
@@ -163,6 +163,7 @@ export const PatrolStatusBar: Component<PatrolStatusBarProps> = (props) => {
<Show when={s().lastRun}>
<span class="text-xs text-muted">
Latest: {s().lastRunTypeLabel}
+ <span class="mx-1 text-muted">·</span>
<span class={`ml-1.5 px-1.5 py-0.5 rounded ${s().lastRunStatus.badgeClass}`}>
{s().lastRunStatus.label}
</span>
diff --git a/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsx b/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsx
index 852ceddb8e..1133ee158c 100644
--- a/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsx
+++ b/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsx
@@ -192,6 +192,7 @@ describe('PatrolStatusBar', () => {
const latestRunSection = screen.getByText('Latest: Scoped run').closest('span');
expect(latestRunSection).not.toBeNull();
+ expect(within(latestRunSection as HTMLElement).getByText('·')).toBeInTheDocument();
expect(within(latestRunSection as HTMLElement).queryByText('healthy')).not.toBeInTheDocument();
expect(within(latestRunSection as HTMLElement).getByText('error')).toBeInTheDocument();
});