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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Align Patrol findings footer recency
rcourtmana884b8da1715
diff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex 13fec92fac..4abcc812cd 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -173,6 +173,10 @@ formatting future schedule timestamps through generic relative-time helpers;otherwise the findings footer can contradict the header by rendering the samenext scheduled patrol as `just now` while the main Patrol shell correctlyshows a multi-hour countdown.+That footer must also use the canonical Patrol recency label rather than a+generic `Last:` prefix, so scoped-only recent activity is rendered as+`Last activity` and does not silently revert to patrol/full-verification+language in the findings surface.When Patrol is currently running, that strip should still stay factual ratherthan switching to another verdict label: the runtime may add an explicitin-progress indicator, but the primary activity label remains recent activitydiff --git a/frontend-modern/src/components/AI/FindingsPanel.tsx b/frontend-modern/src/components/AI/FindingsPanel.tsxindex 3c2b2cd09d..7ab018bdfd 100644--- a/frontend-modern/src/components/AI/FindingsPanel.tsx+++ b/frontend-modern/src/components/AI/FindingsPanel.tsx@@ -61,6 +61,7 @@ interface FindingsPanelProps {showControls?: boolean;nextPatrolAt?: string;lastPatrolAt?: string;+ lastPatrolLabel?: string;patrolIntervalMs?: number;scopeResourceIds?: string[];scopeResourceTypes?: string[];@@ -1161,7 +1162,7 @@ export const FindingsPanel: Component<FindingsPanelProps> = (props) => {d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>- <span>Last: {formatTime(props.lastPatrolAt!)}</span>+ <span>{props.lastPatrolLabel ?? 'Last'}: {formatTime(props.lastPatrolAt!)}</span></div></Show><Show when={props.nextPatrolAt}>diff --git a/frontend-modern/src/components/AI/__tests__/FindingsPanel.test.ts b/frontend-modern/src/components/AI/__tests__/FindingsPanel.test.tsindex 14aaff4fff..a5a932e219 100644--- a/frontend-modern/src/components/AI/__tests__/FindingsPanel.test.ts+++ b/frontend-modern/src/components/AI/__tests__/FindingsPanel.test.ts@@ -163,6 +163,11 @@ describe('aiFindingPresentation', () => {expect(findingsPanelSource).toContain('<CountdownTimer targetDate={props.nextPatrolAt!} prefix="Next: " />');expect(findingsPanelSource).not.toContain('Next: {formatTime(props.nextPatrolAt!)}');});++ it('uses the supplied canonical patrol recency label in the footer', () => {+ expect(findingsPanelSource).toContain("{props.lastPatrolLabel ?? 'Last'}: {formatTime(props.lastPatrolAt!)}");+ expect(findingsPanelSource).not.toContain('<span>Last: {formatTime(props.lastPatrolAt!)}</span>');+ });});describe('sourceColors', () => {diff --git a/frontend-modern/src/features/patrol/PatrolIntelligenceWorkspace.tsx b/frontend-modern/src/features/patrol/PatrolIntelligenceWorkspace.tsxindex 502978d42f..2563772430 100644--- a/frontend-modern/src/features/patrol/PatrolIntelligenceWorkspace.tsx+++ b/frontend-modern/src/features/patrol/PatrolIntelligenceWorkspace.tsx@@ -4,10 +4,16 @@ import { ApprovalBanner, PatrolStatusBar, RunHistoryPanel } from '@/components/pimport { getFindingSeverityToneClasses } from '@/utils/aiFindingPresentation';import { formatRelativeTime } from '@/utils/format';import { formatTriggerReason } from '@/utils/patrolFormat';+import { getPatrolRecencyPresentation } from '@/utils/patrolSummaryPresentation';import type { PatrolIntelligenceState } from './usePatrolIntelligenceState';export function PatrolIntelligenceWorkspace(props: { state: PatrolIntelligenceState }) {const state = props.state;+ const recency = () =>+ getPatrolRecencyPresentation({+ runs: state.patrolRunHistory() ?? [],+ lastPatrolAt: state.patrolStatus()?.last_patrol_at,+ });return (<>@@ -96,6 +102,7 @@ export function PatrolIntelligenceWorkspace(props: { state: PatrolIntelligenceSt<FindingsPanelnextPatrolAt={state.patrolStatus()?.next_patrol_at}lastPatrolAt={state.patrolStatus()?.last_patrol_at}+ lastPatrolLabel={recency().label}patrolIntervalMs={state.patrolStatus()?.interval_ms}filterOverride={state.selectedRun() ? 'all' : state.findingsFilterOverride()}filterFindingIds={state.selectedRunFindingIds()}