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
Polish dashboard state copy
rcourtman27fcdcd1f060
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 5241c285fe..693bd16f96 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -1590,6 +1590,10 @@ resource, alert, storage, or recovery issues that remain elsewhere on thedashboard, and partial/empty dashboard states must describe synchronization orinfrastructure-source onboarding in operator terms instead of exposingimplementation fallback language.+The estate summary may surface resource and alert issue counts only as+below-the-summary detail references; it must not claim the whole dashboard has+no issues when storage or recovery widgets still own independent health+signals.The recovery feature shell now also depends on the shared`frontend-modern/src/components/shared/Subtabs.tsx` primitive for its primaryprotected-items versus recovery-events workspace switch. The recovery lane maydiff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 9ccaac3e4e..38308bf578 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -282,6 +282,10 @@ regression protection.payload instead of reintroducing route-local `all-resources` fetches,summary recomputation, or page-level layout churn that displaces theprotected overview widgets.+ Estate-summary issue copy on that route must use the already-hydrated+ compact overview problem-resource and alert counts; it must not introduce a+ second resource scan, alert fetch, storage read, or recovery read just to+ clarify first-viewport copy.32. Keep infrastructure summary consumers on the compact dashboard overview rather than reopening the all-resources hook. `frontend-modern/src/hooks/useDashboardTrends.ts`, `frontend-modern/src/components/Infrastructure/useInfrastructureSummaryState.ts`, and adjacent dashboard summary consumers may derive chart identity and storage presence from the overview payload they were already given, but they must not call `useResources()` or mount a second unfiltered unified-resource fetch path inside the dashboard hot path. That rule also applies to globally mounted helpers such as `frontend-modern/src/components/AI/Chat/index.tsx`: closed assistant surfaces must read the live websocket snapshot or existing unified-resource cache rather than forcing the dashboard to pay for `all-resources` just because the shell component is mounted. When that assistant shell changes presentation, `frontend-modern/src/utils/aiChatPresentation.ts` must remain the canonical owner for launcher, drawer, session-menu, and empty-state copy so hot-path consumers do not grow one-off inline strings or extra state branches alongside the mounted shell. Blocking shared dialogs must also suppress closed assistant affordances through the shared dialog runtime instead of leaving the mounted shell clickable behind another overlay.That same mounted-shell hot path must protect usable width on constrainedviewports. When the shared assistant drawer opens insidediff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 34980322a1..aae26ea935 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -77,6 +77,10 @@ querying, and the operator-facing storage health presentation layer.protected-inventory-only state so hidden filters cannot make valid historylook empty.3. Add or change storage page UX through `frontend-modern/src/pages/Storage.tsx`, `frontend-modern/src/components/Storage/`, `frontend-modern/src/features/storageBackups/`, and the shared storage-source contract in `frontend-modern/src/utils/storageSources.ts`+ Dashboard route composition may place storage and recovery widgets beside+ the estate summary, but estate-summary copy must not present storage or+ recovery health as resolved. Storage and recovery readiness claims remain+ owned by `DashboardStoragePanel` and `DashboardRecoveryStatusPanel`.4. Route transport changes for storage and recovery endpoints through `internal/api/` and the owning `api-contracts` proof routesThat same adjacent API boundary also owns TrueNAS feature-default semantics forprovider-backed recovery: storage and recovery must treat `truenas_disabled`diff --git a/frontend-modern/src/features/dashboardOverview/EstateSummaryPanel.tsx b/frontend-modern/src/features/dashboardOverview/EstateSummaryPanel.tsxindex 5267d53242..1aa710a46f 100644--- a/frontend-modern/src/features/dashboardOverview/EstateSummaryPanel.tsx+++ b/frontend-modern/src/features/dashboardOverview/EstateSummaryPanel.tsx@@ -14,6 +14,8 @@ import ServerIcon from 'lucide-solid/icons/server';interface EstateSummaryPanelProps {summary: DashboardEstateSummary;+ resourceIssueCount?: number;+ activeAlertCount?: number;}const toneDotClass: Record<DashboardEstateHealthTone, string> = {@@ -31,7 +33,7 @@ const toneTextClass: Record<DashboardEstateHealthTone, string> = {};function formatSurfaceSummary(surfaces: DashboardEstateSurfaceSummary[]): string {- if (surfaces.length === 0) return 'No source coverage yet';+ if (surfaces.length === 0) return 'No source links yet';return surfaces.slice(0, 4).map((surface) =>@@ -42,11 +44,58 @@ function formatSurfaceSummary(surfaces: DashboardEstateSurfaceSummary[]): string.join(' · ');}+const pluralize = (count: number, singular: string, plural = `${singular}s`): string =>+ `${count} ${count === 1 ? singular : plural}`;++const reviewText = (count: number): string =>+ `${pluralize(count, 'system')} ${count === 1 ? 'needs' : 'need'} review`;++function dashboardIssueText(props: EstateSummaryPanelProps): string | null {+ const resourceIssueCount = Math.max(0, Math.trunc(props.resourceIssueCount ?? 0));+ const activeAlertCount = Math.max(0, Math.trunc(props.activeAlertCount ?? 0));++ if (resourceIssueCount > 0 && activeAlertCount > 0) {+ return `${pluralize(resourceIssueCount, 'resource issue')} and ${pluralize(activeAlertCount, 'alert')} below`;+ }+ if (resourceIssueCount > 0) return `${pluralize(resourceIssueCount, 'resource issue')} below`;+ if (activeAlertCount > 0) return `${pluralize(activeAlertCount, 'alert')} active`;+ return null;+}++function dashboardIssueSubtext(props: EstateSummaryPanelProps): string | null {+ const resourceIssueCount = Math.max(0, Math.trunc(props.resourceIssueCount ?? 0));+ const activeAlertCount = Math.max(0, Math.trunc(props.activeAlertCount ?? 0));++ if (resourceIssueCount > 0 && activeAlertCount > 0)+ return 'Resource issues and alerts listed below';+ if (resourceIssueCount > 0) return 'Resource issues listed below';+ if (activeAlertCount > 0) return 'Alerts listed below';+ return null;+}++function latestSignalSubtext(props: EstateSummaryPanelProps): string {+ const issueSubtext = dashboardIssueSubtext(props);++ if (props.summary.attentionSystems > 0) {+ if (issueSubtext) return `${reviewText(props.summary.attentionSystems)}; details below`;+ return reviewText(props.summary.attentionSystems);+ }+ if (issueSubtext) return issueSubtext;+ if (!props.summary.hasCanonicalProjection) return 'System map syncing';+ return 'No infrastructure or alert issues found';+}+export function EstateSummaryPanel(props: EstateSummaryPanelProps) {const latestSeenLabel = () =>props.summary.latestSeen? formatRelativeTime(props.summary.latestSeen, { compact: true })- : 'Waiting for signal';+ : !props.summary.hasCanonicalProjection && props.summary.totalSystems > 0+ ? 'Syncing'+ : 'Waiting for signal';+ const headlineDetail = () => {+ const issueText = dashboardIssueText(props);+ return issueText ? `${props.summary.detail} · ${issueText}` : props.summary.detail;+ };return (<Card@@ -69,7 +118,7 @@ export function EstateSummaryPanel(props: EstateSummaryPanelProps) {<span class={`font-medium ${toneTextClass[props.summary.tone]}`}>{props.summary.headline}</span>- <span> · {props.summary.detail}</span>+ <span> · {headlineDetail()}</span></p></div></div>@@ -91,16 +140,24 @@ export function EstateSummaryPanel(props: EstateSummaryPanelProps) {<p class="mt-0.5 text-xs text-muted">{props.summary.hasCanonicalProjection? `${props.summary.activeSystems} active`- : 'Resource summary fallback'}+ : 'System map syncing'}</p></div><div><p class="text-[11px] font-medium uppercase tracking-wide text-muted">Source coverage</p><p class="mt-1 truncate text-sm font-medium text-base-content">- {formatSurfaceSummary(props.summary.surfaces)}+ {props.summary.hasCanonicalProjection+ ? formatSurfaceSummary(props.summary.surfaces)+ : 'Coverage syncing'}+ </p>+ <p class="mt-0.5 text-xs text-muted">+ {props.summary.hasCanonicalProjection+ ? props.summary.surfaces.length > 0+ ? 'Grouped by monitored system'+ : 'Add source coverage from Infrastructure'+ : 'Awaiting connected-infrastructure map'}</p>- <p class="mt-0.5 text-xs text-muted">Grouped by monitored system</p></div><div>@@ -109,11 +166,7 @@ export function EstateSummaryPanel(props: EstateSummaryPanelProps) {<ClockIcon class="h-3.5 w-3.5 text-muted" aria-hidden="true" />{latestSeenLabel()}</p>- <p class="mt-0.5 text-xs text-muted">- {props.summary.attentionSystems > 0- ? `${props.summary.attentionSystems} needing review`- : 'No system-level attention'}- </p>+ <p class="mt-0.5 text-xs text-muted">{latestSignalSubtext(props)}</p></div></div>diff --git a/frontend-modern/src/features/dashboardOverview/__tests__/estateSummaryModel.test.ts b/frontend-modern/src/features/dashboardOverview/__tests__/estateSummaryModel.test.tsindex a20f09a681..7bb2240299 100644--- a/frontend-modern/src/features/dashboardOverview/__tests__/estateSummaryModel.test.ts+++ b/frontend-modern/src/features/dashboardOverview/__tests__/estateSummaryModel.test.ts@@ -63,7 +63,8 @@ describe('buildDashboardEstateSummary', () => {expect(summary.totalSystems).toBe(4);expect(summary.healthySystems).toBe(3);expect(summary.unknownSystems).toBe(1);- expect(summary.detail).toBe('3 resources online, 1 resource not classified yet.');+ expect(summary.headline).toBe('4 resources reporting');+ expect(summary.detail).toBe('3 resources online while the system map syncs');});it('counts each active system needing attention once', () => {diff --git a/frontend-modern/src/features/dashboardOverview/estateSummaryModel.ts b/frontend-modern/src/features/dashboardOverview/estateSummaryModel.tsindex a9815d58fe..d49c320567 100644--- a/frontend-modern/src/features/dashboardOverview/estateSummaryModel.ts+++ b/frontend-modern/src/features/dashboardOverview/estateSummaryModel.ts@@ -118,15 +118,13 @@ function buildFallbackSummary(fallback: DashboardEstateFallback): DashboardEstatoutdatedSystems: 0,attentionSystems: unknown,headline:- total === 0- ? 'No infrastructure reporting'- : `${pluralize(total, 'infrastructure resource')} reporting`,+ total === 0 ? 'No infrastructure reporting' : `${pluralize(total, 'resource')} reporting`,detail:total === 0? 'Connected systems appear here after the first infrastructure source reports.': unknown > 0- ? `${pluralize(healthy, 'resource')} online, ${pluralize(unknown, 'resource')} not classified yet.`- : 'All reporting resources are online.',+ ? `${pluralize(healthy, 'resource')} online while the system map syncs`+ : 'System map still syncing',tone,surfaces: [],systems: [],diff --git a/frontend-modern/src/pages/Dashboard.tsx b/frontend-modern/src/pages/Dashboard.tsxindex 5923dc9a4d..55857d4d56 100644--- a/frontend-modern/src/pages/Dashboard.tsx+++ b/frontend-modern/src/pages/Dashboard.tsx@@ -36,7 +36,10 @@ import { buildDashboardEstateSummary } from '@/features/dashboardOverview/estateimport { RecentAlertsPanel } from '@/components/Alerts/RecentAlertsPanel';import { DashboardRecoveryStatusPanel } from '@/components/Recovery/DashboardRecoveryStatusPanel';import { DashboardStoragePanel } from '@/components/Storage/DashboardStoragePanel';-import type { DashboardWidgetDef, DashboardWidgetId } from '@/features/dashboardOverview/dashboardWidgets';+import type {+ DashboardWidgetDef,+ DashboardWidgetId,+} from '@/features/dashboardOverview/dashboardWidgets';export default function Dashboard() {const navigate = useNavigate();@@ -298,7 +301,11 @@ export default function Dashboard() {/>{/* 2. Estate orientation — always visible once resources exist */}- <EstateSummaryPanel summary={estateSummary()} />+ <EstateSummaryPanel+ summary={estateSummary()}+ resourceIssueCount={overview().problemResources.length}+ activeAlertCount={overview().alerts.total}+ />{/* 3. KPI Strip — always visible */}<KPIStripdiff --git a/frontend-modern/src/pages/__tests__/DashboardPage.test.tsx b/frontend-modern/src/pages/__tests__/DashboardPage.test.tsxindex a5c9662773..583e065071 100644--- a/frontend-modern/src/pages/__tests__/DashboardPage.test.tsx+++ b/frontend-modern/src/pages/__tests__/DashboardPage.test.tsx@@ -143,6 +143,9 @@ describe('Dashboard page module contract', () => {overviewMock.storage.totalUsed = 0;overviewMock.storage.warningCount = 0;overviewMock.storage.criticalCount = 0;+ overviewMock.alerts.activeCritical = 0;+ overviewMock.alerts.activeWarning = 0;+ overviewMock.alerts.total = 0;connectedInfrastructureMock.length = 0;});@@ -171,12 +174,16 @@ describe('Dashboard page module contract', () => {"from '@/components/Recovery/DashboardRecoveryStatusPanel'",);expect(dashboardPageSource).toContain("from '@/components/Storage/DashboardStoragePanel'");- expect(dashboardPageSource).toContain('const overviewState = useDashboardOverview(alertsList);');+ expect(dashboardPageSource).toContain(+ 'const overviewState = useDashboardOverview(alertsList);',+ );expect(dashboardPageSource).not.toContain("cacheKey: 'all-resources'");});it('routes dashboard trend hydration through the shared dashboard resources snapshot', () => {- expect(dashboardPageSource).toContain('const trends = useDashboardTrends(overview, trendRange);');+ expect(dashboardPageSource).toContain(+ 'const trends = useDashboardTrends(overview, trendRange);',+ );expect(dashboardPageSource).not.toContain('const dashboardResources = useUnifiedResources');});@@ -192,14 +199,16 @@ describe('Dashboard page module contract', () => {it('routes the empty dashboard state to infrastructure install', () => {render(() => <DashboardPage />);- expect(screen.getByRole('heading', { name: 'No resources yet' })).toBeInTheDocument();+ expect(+ screen.getByRole('heading', { name: 'Connect your first infrastructure source' }),+ ).toBeInTheDocument();expect(screen.getByText(- 'Start by opening Settings → Infrastructure → Install on a host and connecting the first system you want Pulse to monitor. Your dashboard overview will appear here once that system starts reporting.',+ 'The dashboard appears after Pulse receives its first monitored system. Add a Pulse Agent or platform API source from Infrastructure setup, then this page becomes the live estate overview.',),).toBeInTheDocument();- fireEvent.click(screen.getByRole('button', { name: 'Open infrastructure install' }));+ fireEvent.click(screen.getByRole('button', { name: 'Add infrastructure source' }));expect(navigateSpy).toHaveBeenCalledWith('/settings/infrastructure?add=agent');});@@ -273,6 +282,8 @@ describe('Dashboard page module contract', () => {const problemHeading = screen.getByRole('heading', { name: 'Problem Resources' });expect(screen.getByText('1 system needs attention')).toBeInTheDocument();+ expect(screen.getAllByText(/1 resource issue below/).length).toBeGreaterThan(0);+ expect(screen.getByText('1 system needs review; details below')).toBeInTheDocument();expect(screen.getByText('2 active')).toBeInTheDocument();expect(screen.getByText(/Proxmox/)).toBeInTheDocument();expect(screen.getByText(/TrueNAS/)).toBeInTheDocument();@@ -281,6 +292,46 @@ describe('Dashboard page module contract', () => {).toBe(Node.DOCUMENT_POSITION_FOLLOWING);});+ it('keeps healthy system copy distinct from resource and alert issues', () => {+ overviewMock.health.totalResources = 5;+ overviewMock.infrastructure.total = 1;+ overviewMock.infrastructure.byStatus = { online: 1 };+ overviewMock.alerts.activeWarning = 2;+ overviewMock.alerts.total = 2;+ connectedInfrastructureMock.push({+ id: 'homelab',+ name: 'homelab',+ status: 'active',+ healthStatus: 'online',+ lastSeen: Date.now(),+ surfaces: [{ id: 'agent:homelab', kind: 'agent', label: 'Host telemetry' }],+ });+ overviewMock.problemResources = [+ {+ resource: {+ id: 'container-1',+ type: 'app-container',+ name: 'Container 1',+ displayName: 'Container 1',+ platformId: 'container-1',+ platformType: 'docker',+ sourceType: 'api',+ status: 'offline',+ lastSeen: Date.now(),+ } as DashboardOverview['problemResources'][number]['resource'],+ problems: ['Offline'],+ worstValue: 200,+ },+ ];++ render(() => <DashboardPage />);++ expect(screen.getByText('1 system reporting')).toBeInTheDocument();+ expect(screen.getAllByText(/1 resource issue and 2 alerts below/).length).toBeGreaterThan(0);+ expect(screen.getByText('Resource issues and alerts listed below')).toBeInTheDocument();+ expect(screen.queryByText('No dashboard issues found')).toBeNull();+ });+it('keeps the KPI strip above problem resources so the dashboard snapshot reads before detail', () => {overviewMock.health.totalResources = 5;overviewMock.infrastructure.total = 5;@@ -309,8 +360,8 @@ describe('Dashboard page module contract', () => {const kpiLabel = screen.getByText('Infrastructure');const problemHeading = screen.getByRole('heading', { name: 'Problem Resources' });- expect(kpiLabel.compareDocumentPosition(problemHeading) & Node.DOCUMENT_POSITION_FOLLOWING).toBe(- Node.DOCUMENT_POSITION_FOLLOWING,- );+ expect(+ kpiLabel.compareDocumentPosition(problemHeading) & Node.DOCUMENT_POSITION_FOLLOWING,+ ).toBe(Node.DOCUMENT_POSITION_FOLLOWING);});});diff --git a/frontend-modern/src/utils/__tests__/dashboardEmptyStatePresentation.test.ts b/frontend-modern/src/utils/__tests__/dashboardEmptyStatePresentation.test.tsindex 2288c2f755..961d6f6c7f 100644--- a/frontend-modern/src/utils/__tests__/dashboardEmptyStatePresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/dashboardEmptyStatePresentation.test.ts@@ -77,10 +77,10 @@ describe('dashboardEmptyStatePresentation', () => {actionLabel: 'Reconnect',});expect(getDashboardNoResourcesState()).toEqual({- title: 'No resources yet',+ title: 'Connect your first infrastructure source',description:- 'Start by opening Settings → Infrastructure → Install on a host and connecting the first system you want Pulse to monitor. Your dashboard overview will appear here once that system starts reporting.',- actionLabel: 'Open infrastructure install',+ 'The dashboard appears after Pulse receives its first monitored system. Add a Pulse Agent or platform API source from Infrastructure setup, then this page becomes the live estate overview.',+ actionLabel: 'Add infrastructure source',});});});diff --git a/frontend-modern/src/utils/dashboardEmptyStatePresentation.ts b/frontend-modern/src/utils/dashboardEmptyStatePresentation.tsindex 4bb977cec1..247babdfc5 100644--- a/frontend-modern/src/utils/dashboardEmptyStatePresentation.ts+++ b/frontend-modern/src/utils/dashboardEmptyStatePresentation.ts@@ -57,9 +57,9 @@ export function getDashboardUnavailableState() {export function getDashboardNoResourcesState() {return {- title: 'No resources yet',+ title: 'Connect your first infrastructure source',description:- 'Start by opening Settings → Infrastructure → Install on a host and connecting the first system you want Pulse to monitor. Your dashboard overview will appear here once that system starts reporting.',- actionLabel: 'Open infrastructure install',+ 'The dashboard appears after Pulse receives its first monitored system. Add a Pulse Agent or platform API source from Infrastructure setup, then this page becomes the live estate overview.',+ actionLabel: 'Add infrastructure source',} as const;}diff --git a/tests/integration/tests/71-dashboard-estate-orientation.spec.ts b/tests/integration/tests/71-dashboard-estate-orientation.spec.tsindex e4d4f28861..e03919e1ba 100644--- a/tests/integration/tests/71-dashboard-estate-orientation.spec.ts+++ b/tests/integration/tests/71-dashboard-estate-orientation.spec.ts@@ -31,6 +31,9 @@ test('dashboard first viewport preserves connected infrastructure orientation',await expect(estateSummary.getByRole('link', { name: 'View infrastructure' })).toBeVisible();await expect(estateSummary.getByText(/systems? reporting|systems? need/)).toBeVisible();await expect(estateSummary.getByText('Resource summary fallback')).toHaveCount(0);+ await expect(estateSummary.getByText('No system-level attention')).toHaveCount(0);+ await expect(estateSummary.getByText('No source coverage yet')).toHaveCount(0);+ await expect(estateSummary.getByText('No dashboard issues found')).toHaveCount(0);const estateBox = await estateSummary.boundingBox();const kpiBox = await page.getByTestId('dashboard-kpi-infrastructure').boundingBox();