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
Remove Proxmox overview Patrol coverage strip
rcourtman887855e5e535
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex b528874372..1ba0c0f776 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -1930,12 +1930,14 @@ a new API state machine, queue contract, or verification-accounting field.and the Patrol verification summary derived from run history, so the page also states whether recent Patrol evidence came from a successful full patrol or only from scoped/erroring runs instead of leaving verification scope implicitand the same-day activity-mix explanation derived from that governed run history, so when a recent full patrol is followed by alert-triggered or anomaly-triggered scoped work the verification surface can explain the mix directly instead of reconstructing it from page-local timing heuristicsand the Patrol status recency split, so `last_patrol_at` remains reserved for completed full Patrol sweeps while scoped runs and verification checks advance `last_activity_at` without claiming a fresh full-estate verification pass- and the monitor-context Patrol coverage posture boundary, so specific- monitor overviews may consume API-owned Patrol status, latest run history,- current findings, and pending approvals as semantic input for a compact- coverage/schedule signal, but they must not add a new payload, infer- resource-specific proof from global Patrol counters, or duplicate the Patrol- queue/empty-work contract on generic dashboard or Home surfaces+ and the monitor-context Patrol coverage posture boundary, so Proxmox+ overview and other monitor-first launch pages must not consume API-owned+ Patrol status, latest run history, current findings, or pending approvals as+ a generic coverage/schedule proof strip. Future scoped monitor affordances+ may reuse those API signals only from an operator action or selected Patrol+ context, without adding a new payload, inferring resource-specific proof from+ global Patrol counters, or duplicating the Patrol queue/empty-work contract on+ generic dashboard or Home surfacesand the Patrol Assistant handoff model, so frontend handoff prompts passcurrent finding context, safe action posture, and resource references asbounded request metadata while leaving tool selection and remediationdiff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 84800124c0..54b9f5e6c2 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -1392,10 +1392,12 @@ settings`, and candidate review when discovered sources are waiting. It mustchecks, setup failures, and overdue scheduled protection are ruled out; itmust stay subordinate to the empty queue and must not become a generic Home,dashboard, trust, or proof strip. Monitor-context Patrol coverage posture- may use the same compact list and badge primitives on a specific platform- overview when it is attached to that monitor surface, but it must use- distinct monitor labels and must not become a nested card, generic- dashboard strip, trust summary, or duplicate Patrol empty-work list. The+ must not use the shared compact list and badge primitives as a generic+ Proxmox overview or monitor-first launch-page proof strip. A future scoped+ monitor affordance may use these primitives only when it is attached to an+ operator action or selected Patrol context, uses distinct monitor labels,+ and does not become a nested card, generic dashboard strip, trust summary,+ or duplicate Patrol empty-work list. ThePatrol schedule and model drawer is part of that sharedfeature-presentation boundary: it must stay viewport-bounded, expose anaccessible dialog label, keep the four-level control policy on the defaultdiff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex e641beb7a5..9c5d3175a1 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -102,11 +102,11 @@ or historical proof/counting for resolved-only work.history, and finding composition, but it must stay contextual to Patrol'sempty queue and must not render on monitor-first launch pages, become a Homesummary, or promote trust/history counters into current work.- Monitor-context coverage posture is a separate presentation boundary. It may- appear on a specific monitor overview, such as Proxmox, only after the same- current-work, failed-check, setup, running-check, and overdue-schedule gates- have ruled out Patrol work. It must use monitor-context labels, point active- work back to Patrol, omit drift/trust proof counters, and must not reuse the+ Monitor-context coverage posture is a separate presentation boundary, but it+ must not render as a generic proof strip on Proxmox overview or other+ monitor-first launch pages. A future monitor-specific Patrol affordance must+ be scoped to an operator action or selected Patrol context, point active work+ back to Patrol, omit drift/trust proof counters, and must not reuse the`Patrol protection posture` list as a launch-page strip or generic Homesummary.Runtime/setup findings are still active Patrol work, but setup-only runtimediff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex b72c492a01..5112f163d4 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -110,13 +110,12 @@ interpreted as backup visibility, recovery readiness, restore capability, or astorage/recovery-owned command path. Suppressing those notices when the API hasno deployable agent update target is likewise lifecycle/frontend behavior anddoes not change Proxmox backup or recovery evidence.-Proxmox overview Patrol coverage posture is also adjacent monitor/Patrol-context, not storage/recovery evidence. `ProxmoxPageSurface` may render a-compact monitor-context Patrol coverage list from Patrol status, latest run,-current findings, and approvals when no current Patrol work or failed/stale-Patrol check exists, but that list must not be treated as backup coverage,-restore readiness, PBS verification/protection proof, or a replacement for the-Proxmox Backups tab and workload Backup column.+Proxmox overview Patrol coverage posture is adjacent Patrol context, not+storage/recovery evidence, and must not render on `ProxmoxPageSurface`.+Patrol coverage, schedule, finding, and approval state belongs on Patrol-owned+surfaces or explicit Patrol affordances; Proxmox overview must not treat it as+backup coverage, restore readiness, PBS verification/protection proof, or a+replacement for the Proxmox Backups tab and workload Backup column.Proxmox backup inventory loading and load-failure chrome is likewise afrontend-primitives dependency. `ProxmoxBackupsTable` owns the backup APIqueries, recovery model, filters, coverage split, and backup-specific errordiff --git a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsxindex b001b7200b..de98a07d87 100644--- a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx@@ -1,7 +1,6 @@import { useLocation } from '@solidjs/router';-import { For, Show, createMemo, createResource, type Accessor } from 'solid-js';+import { Show, createMemo, createResource, type Accessor } from 'solid-js';import { StatusDot } from '@/components/shared/StatusDot';-import { MetadataBadge } from '@/components/shared/MetadataBadge';import StorageSurface from '@/components/Storage/Storage';import { WorkloadsFilter } from '@/components/Workloads/WorkloadsFilter';import { WorkloadsSurface } from '@/components/Workloads/WorkloadsSurface';@@ -43,15 +42,6 @@ import { ProxmoxNodesTable } from './ProxmoxNodesTable';import { ProxmoxReplicationTable, fetchReplicationJobs } from './ProxmoxReplicationTable';import { useUnifiedResources } from '@/hooks/useUnifiedResources';import { updateStore } from '@/stores/updates';-import { aiIntelligenceStore } from '@/stores/aiIntelligence';-import { getPatrolWorkTypeComposition } from '@/utils/aiFindingPresentation';-import {- getPatrolRunHistory,- getPatrolStatus,- type PatrolRunRecord,- type PatrolStatus,-} from '@/api/patrol';-import { getMonitorContextPatrolProtectionPosture } from '@/features/patrol/patrolControlPresentation';import {PROXMOX_TAB_SPECS,buildProxmoxPageModel,@@ -86,25 +76,6 @@ const ProxmoxIcon = getPlatformIcon('proxmox');const proxmoxIcon = () => <ProxmoxIcon class="h-6 w-6 text-slate-400" />;const EMPTY_PROXMOX_PAGE_MODEL = buildProxmoxPageModel([]);-interface MonitorPatrolContext {- latestRun: PatrolRunRecord | null;- status: PatrolStatus | null;-}--async function loadMonitorPatrolContext(): Promise<MonitorPatrolContext> {- const [, , statusResult, historyResult] = await Promise.allSettled([- aiIntelligenceStore.loadPatrolFindings(),- aiIntelligenceStore.loadPendingApprovals(),- getPatrolStatus(),- getPatrolRunHistory(1),- ]);-- return {- status: statusResult.status === 'fulfilled' ? statusResult.value : null,- latestRun: historyResult.status === 'fulfilled' ? (historyResult.value[0] ?? null) : null,- };-}-export function ProxmoxPageSurface() {const location = useLocation();const { resources, loading, error, refetch } = useUnifiedResources({@@ -121,7 +92,6 @@ export function ProxmoxPageSurface() {// Reading an errored resource throws, hence the `.error` guards.const [replicationJobs, { refetch: refetchReplicationJobs }] =createResource(fetchReplicationJobs);- const [monitorPatrolContext] = createResource(loadMonitorPatrolContext);const replicationJobCount = createMemo(() =>replicationJobs.error ? 0 : (replicationJobs() ?? []).length,);@@ -229,7 +199,6 @@ export function ProxmoxPageSurface() {setMetricDisplayMode={setMetricDisplayMode}metricHistoryRange={metricHistoryRange}setMetricHistoryRange={setMetricHistoryRange}- patrolContext={monitorPatrolContext}/></Show><Show when={activeTab() === 'storage'}>@@ -286,7 +255,6 @@ interface ProxmoxOverviewProps {setMetricDisplayMode: (value: WorkloadsMetricDisplayMode) => void;metricHistoryRange: Accessor<WorkloadTableMetricHistoryRange>;setMetricHistoryRange: (value: WorkloadTableMetricHistoryRange) => void;- patrolContext: Accessor<MonitorPatrolContext | undefined>;}function ProxmoxOverview(props: ProxmoxOverviewProps) {@@ -324,19 +292,6 @@ function ProxmoxOverview(props: ProxmoxOverviewProps) {workloadsState.search(),),);- const activePatrolFindings = createMemo(() =>- aiIntelligenceStore.patrolFindings.filter((finding) => finding.status === 'active'),- );- const monitorPatrolPosture = createMemo(() =>- getMonitorContextPatrolProtectionPosture({- findingCount: activePatrolFindings().length,- latestRun: props.patrolContext()?.latestRun ?? null,- monitoredResourceCount: currentModel().resources.length,- patrolStatus: props.patrolContext()?.status ?? null,- pendingApprovalCount: aiIntelligenceStore.patrolPendingApprovalCount,- workTypeComposition: getPatrolWorkTypeComposition(activePatrolFindings()),- }),- );return (<div class="space-y-4">@@ -378,29 +333,6 @@ function ProxmoxOverview(props: ProxmoxOverviewProps) {/></div></Show>- <Show when={monitorPatrolPosture().length > 0}>- <div- role="list"- aria-label="Proxmox Patrol coverage"- class="grid gap-2 sm:grid-cols-2 xl:grid-cols-3"- >- <For each={monitorPatrolPosture()}>- {(item) => (- <div- role="listitem"- class="rounded-md border border-border-subtle bg-surface-alt/50 px-3 py-2"- >- <div class="flex min-w-0 flex-wrap items-center gap-2">- <MetadataBadge tone={item.tone} size="xs" shape="rounded">- {item.label}- </MetadataBadge>- </div>- <p class="mt-1 text-xs leading-5 text-muted">{item.detail}</p>- </div>- )}- </For>- </div>- </Show><ProxmoxNodesTablenodes={filteredNodes()}guests={currentModel().guests}diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsxindex 4e58f24569..60b3f7c2e6 100644--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx@@ -334,10 +334,10 @@ describe('ProxmoxBackupsTable', () => {expect(proxmoxPageSurfaceSource).not.toContain('workloads={workloadsState.allGuests');});- it('keeps monitor-context Patrol coverage out of backup evidence surfaces', () => {- expect(proxmoxPageSurfaceSource).toContain('getMonitorContextPatrolProtectionPosture');- expect(proxmoxPageSurfaceSource).toContain('getPatrolRunHistory(1)');- expect(proxmoxPageSurfaceSource).toContain('aria-label="Proxmox Patrol coverage"');+ it('keeps Patrol coverage out of Proxmox evidence surfaces', () => {+ expect(proxmoxPageSurfaceSource).not.toContain('getMonitorContextPatrolProtectionPosture');+ expect(proxmoxPageSurfaceSource).not.toContain('getPatrolRunHistory(1)');+ expect(proxmoxPageSurfaceSource).not.toContain('aria-label="Proxmox Patrol coverage"');expect(proxmoxPageSurfaceSource).not.toContain('aria-label="Patrol protection posture"');expect(proxmoxBackupsTableSource).not.toContain('Proxmox Patrol coverage');});diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsxindex 0e3525ab28..d6169bf298 100644--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx@@ -1,4 +1,4 @@-import { cleanup, render, screen, waitFor } from '@solidjs/testing-library';+import { cleanup, render, screen } from '@solidjs/testing-library';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';import type { Resource } from '@/types/resource';import { ProxmoxPageSurface } from '../ProxmoxPageSurface';@@ -6,20 +6,6 @@ import { ProxmoxPageSurface } from '../ProxmoxPageSurface';const mockUseUnifiedResources = vi.fn();const mockPathname = vi.hoisted(() => vi.fn(() => '/proxmox/overview'));const mockVersionInfo = vi.hoisted(() => vi.fn());-const mockGetPatrolStatus = vi.hoisted(() => vi.fn());-const mockGetPatrolRunHistory = vi.hoisted(() => vi.fn());-const mockLoadPatrolFindings = vi.hoisted(() => vi.fn());-const mockLoadPendingApprovals = vi.hoisted(() => vi.fn());-const mockPatrolState = vi.hoisted(() => ({- findings: [] as Array<{- investigationOutcome?: string;- investigationStatus?: string;- regressionCount?: number;- status: string;- timesRaised?: number;- }>,- pendingApprovalCount: 0,-}));const makeResource = (resource: Partial<Resource> & Pick<Resource, 'id' | 'type'>): Resource =>({@@ -66,24 +52,6 @@ vi.mock('@/stores/updates', () => ({},}));-vi.mock('@/stores/aiIntelligence', () => ({- aiIntelligenceStore: {- get patrolFindings() {- return mockPatrolState.findings;- },- get patrolPendingApprovalCount() {- return mockPatrolState.pendingApprovalCount;- },- loadPatrolFindings: mockLoadPatrolFindings,- loadPendingApprovals: mockLoadPendingApprovals,- },-}));--vi.mock('@/api/patrol', () => ({- getPatrolStatus: mockGetPatrolStatus,- getPatrolRunHistory: mockGetPatrolRunHistory,-}));-vi.mock('@solidjs/router', async () => {const actual = await vi.importActual<typeof import('@solidjs/router')>('@solidjs/router');return {@@ -157,27 +125,6 @@ describe('ProxmoxPageSurface contract', () => {beforeEach(() => {mockPathname.mockReturnValue('/proxmox/overview');mockVersionInfo.mockReturnValue(null);- mockPatrolState.findings = [];- mockPatrolState.pendingApprovalCount = 0;- mockLoadPatrolFindings.mockResolvedValue(undefined);- mockLoadPendingApprovals.mockResolvedValue(undefined);- mockGetPatrolStatus.mockResolvedValue({- enabled: true,- error_count: 0,- findings_count: 0,- healthy: true,- next_patrol_at: '2099-06-30T14:05:00Z',- resources_checked: 4,- running: false,- runtime_state: 'active',- });- mockGetPatrolRunHistory.mockResolvedValue([- {- error_count: 0,- resources_checked: 4,- status: 'healthy',- },- ]);});afterEach(() => {@@ -251,7 +198,7 @@ describe('ProxmoxPageSurface contract', () => {expect(totals).toHaveTextContent('1 stopped');});- it('renders monitor-context Patrol coverage without using the Patrol empty-work strip', async () => {+ it('keeps Patrol coverage off the Proxmox overview', () => {setResources([makeResource({id: 'agent:pve-1',@@ -262,41 +209,20 @@ describe('ProxmoxPageSurface contract', () => {render(() => <ProxmoxPageSurface />);- await waitFor(() => expect(mockGetPatrolStatus).toHaveBeenCalled());- const posture = await screen.findByRole('list', { name: 'Proxmox Patrol coverage' });- expect(mockLoadPatrolFindings).toHaveBeenCalled();- expect(mockLoadPendingApprovals).toHaveBeenCalled();- expect(posture).toHaveTextContent('Patrol checked 4 resources');- expect(posture).toHaveTextContent('No Patrol work waiting');- expect(posture).toHaveTextContent('Next check scheduled');+ expect(screen.getByTestId('nodes-table')).toHaveAttribute('data-rows', '1');+ expect(screen.queryByRole('list', { name: 'Proxmox Patrol coverage' })).not.toBeInTheDocument();expect(screen.queryByText('Protection current')).not.toBeInTheDocument();expect(screen.queryByRole('list', { name: 'Patrol protection posture' }),).not.toBeInTheDocument();});- it('does not crash when Patrol state refreshes before Proxmox resources hydrate', async () => {+ it('does not crash while Proxmox resources hydrate', () => {setResourcesSnapshot(undefined, true);render(() => <ProxmoxPageSurface />);expect(screen.getByTestId('platform-table-loading-state')).toBeInTheDocument();- await waitFor(() => expect(mockLoadPatrolFindings).toHaveBeenCalled());- expect(screen.queryByRole('list', { name: 'Proxmox Patrol coverage' })).not.toBeInTheDocument();- });-- it('does not render monitor-context Patrol coverage when active Patrol work exists', () => {- mockPatrolState.findings = [{ status: 'active' }];- setResources([- makeResource({- id: 'agent:pve-1',- type: 'agent',- proxmox: { nodeName: 'pve-1', clusterName: 'homelab' },- }),- ]);-- render(() => <ProxmoxPageSurface />);-expect(screen.queryByRole('list', { name: 'Proxmox Patrol coverage' }),).not.toBeInTheDocument();diff --git a/tests/integration/tests/78-monitor-first-patrol-workbench.spec.ts b/tests/integration/tests/78-monitor-first-patrol-workbench.spec.tsindex 73a9f05ff8..17ee705b8c 100644--- a/tests/integration/tests/78-monitor-first-patrol-workbench.spec.ts+++ b/tests/integration/tests/78-monitor-first-patrol-workbench.spec.ts@@ -511,7 +511,7 @@ test.describe("Monitor-first Patrol workbench browser contract", () => {).toHaveCount(0);});- test("calm-day Patrol coverage stays contextual after infrastructure launch", async ({+ test("calm-day Patrol coverage stays on Patrol after infrastructure launch", async ({page,}, testInfo) => {test.skip(@@ -536,19 +536,14 @@ test.describe("Monitor-first Patrol workbench browser contract", () => {await expect(page.getByRole("list", { name: "Patrol protection posture" }),).toHaveCount(0);- const monitorPatrolCoverage = page.getByRole("list", {- name: "Proxmox Patrol coverage",- });- await expect(monitorPatrolCoverage).toBeVisible();- await expect(- monitorPatrolCoverage.getByText("Patrol checked 1 resource"),- ).toBeVisible();await expect(- monitorPatrolCoverage.getByText("No Patrol work waiting"),- ).toBeVisible();+ page.getByRole("list", { name: "Proxmox Patrol coverage" }),+ ).toHaveCount(0);+ await expect(page.getByText("Patrol checked 1 resource")).toHaveCount(0);+ await expect(page.getByText("No Patrol work waiting")).toHaveCount(0);await expect(- monitorPatrolCoverage.getByText("Next check scheduled"),- ).toBeVisible();+ page.getByText("Next check scheduled"),+ ).toHaveCount(0);await page.getByRole("tab", { name: "Patrol" }).click();await expect(page).toHaveURL(/\/patrol$/);