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.

Add dashboard navigation migration notice

rcourtman9a8b6fb74639
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index bfd808bd80..e0a3bd4431 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -1419,6 +1419,14 @@ owns the dashboard-specific action, KPI, problem-resource, trend, and
customization surfaces. Lane-owned widgets like recent alerts, storage,
and recovery must continue to route through their own subsystem owners instead
of drifting back into a page-local dashboard panel cluster.
+That same dashboard route shell also owns the v5-to-v6 navigation continuity
+notice. When the populated dashboard needs to orient operators who still
+expect the old Proxmox, Docker, or Hosts tabs, `frontend-modern/src/pages/Dashboard.tsx`
+must render the shared `MigrationNoticeBanner` with a dismissible local-storage
+backing key, route the learn-more affordance to the shipped
+`/docs/MIGRATION_UNIFIED_NAV.md` guide, and keep the mapping explicit that
+Infrastructure now holds platform roots while Workloads now holds VMs,
+containers, pods, and container update status.
The recovery feature shell now also depends on the shared
`frontend-modern/src/components/shared/Subtabs.tsx` primitive for its primary
protected-items versus recovery-events workspace switch. The recovery lane may
diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
index d9eca073f9..cb1cbed3a3 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -244,6 +244,12 @@ regression protection.
timing steady-state reads, so one-time retention or auto-vacuum cleanup does
not masquerade as summary-route or chart-batch regression latency.
31. Keep the dashboard overview hot path compact and route-owned. `frontend-modern/src/pages/Dashboard.tsx`, `frontend-modern/src/api/resources.ts`, and `frontend-modern/src/hooks/useDashboardOverview.ts` must hydrate KPI cards, problem-resource rows, and top-infrastructure identities through the compact dashboard-summary API contract owned by the adjacent `api-contracts` and `unified-resources` surfaces, rather than booting the full unfiltered paginated unified-resource list just to derive summary cards.
+32. Keep dashboard migration continuity on the same hot path passive. When
+ `frontend-modern/src/pages/Dashboard.tsx` renders the dismissible v5-to-v6
+ navigation notice, that surface must read and persist only a local
+ dismissal flag and shipped-doc link state; it must not introduce another
+ dashboard fetch, route-blocking readiness check, or legacy topology scan
+ just to decide whether the notice appears.
Any commercial or relay-owned dashboard affordances composed into that
route must remain additive shells on top of the same compact summary
payload instead of reintroducing route-local `all-resources` fetches,
@@ -358,6 +364,12 @@ page-local “selected row” overlays on top of already downsampled summary
history. Hovering a sparkline or density map for one entity must promote that
entity into the shared active series so sibling cards highlight the same object
at once rather than maintaining chart-local hover state, and the synchronized
+The dashboard route shell may now also carry a dismissible migration notice for
+operators coming from v5 navigation, but that continuity affordance stays on
+the same protected hot path. The notice must remain a static route-shell
+projection layered above the existing action/KPI widgets, with dismissal backed
+by local storage only; it must not fork a second dashboard readiness state,
+delay KPI hydration, or displace the governed summary-before-detail scan order.
hover timestamp must remain visible across those sibling cards even when the
active entity has no samples for one metric in the current range. Those
sibling cards should expose the synchronized value through one compact
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 9615cd1809..8cc2001130 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -1292,6 +1292,14 @@ problem-resources table, the route must keep the operator snapshot above the
detail table so the page reads as action queue, summary, then problem detail
rather than dropping operators straight into a long exception list before the
dashboard baseline is visible.
+That same dashboard route shell may also surface a dismissible migration
+continuity notice for operators coming from v5 Proxmox, Docker, and Hosts
+tabs, but the notice must preserve the same scan order: continuity notice
+first when present, action-required summary next, KPI strip after that, and
+problem detail below the snapshot layer. The notice may explain that platform
+roots live under Infrastructure and workloads plus container update status live
+under Workloads, but it must stay read-only and must not push storage/recovery
+widgets or the KPI summary below the problem-resources table again.
The shared recovery type contract must be pinned the same way:
`frontend-modern/src/types/recovery.ts` must stay on the explicit
`recovery-product-surface` proof path instead of riding indirectly on route or
diff --git a/frontend-modern/src/pages/Dashboard.tsx b/frontend-modern/src/pages/Dashboard.tsx
index 6bce454867..4fe1dcc21c 100644
--- a/frontend-modern/src/pages/Dashboard.tsx
+++ b/frontend-modern/src/pages/Dashboard.tsx
@@ -33,10 +33,20 @@ import {
import { RecentAlertsPanel } from '@/components/Alerts/RecentAlertsPanel';
import { DashboardRecoveryStatusPanel } from '@/components/Recovery/DashboardRecoveryStatusPanel';
import { DashboardStoragePanel } from '@/components/Storage/DashboardStoragePanel';
+import { MigrationNoticeBanner } from '@/components/shared/MigrationNoticeBanner';
import type { DashboardWidgetDef, DashboardWidgetId } from '@/features/dashboardOverview/dashboardWidgets';
+import { MIGRATION_GUIDE_DOC_URL } from '@/utils/docsLinks';
+import { createLocalStorageBooleanSignal, STORAGE_KEYS } from '@/utils/localStorage';
+
+const DASHBOARD_MIGRATION_NOTICE_TITLE = 'Looking for Proxmox, Docker, and Hosts?';
+const DASHBOARD_MIGRATION_NOTICE_MESSAGE =
+ 'Use Infrastructure for Proxmox nodes, Docker hosts, clusters, and other systems. Use Workloads for VMs, containers, pods, and Docker update status.';
+
export default function Dashboard() {
const navigate = useNavigate();
const { connected, reconnecting, reconnect, activeAlerts } = useWebSocket();
+ const [dashboardMigrationNoticeDismissed, setDashboardMigrationNoticeDismissed] =
+ createLocalStorageBooleanSignal(STORAGE_KEYS.DASHBOARD_MIGRATION_NOTICE_DISMISSED, false);
const alertsList = createMemo<Alert[]>(() =>
Object.values(activeAlerts as Record<string, Alert | undefined>).filter(
@@ -272,13 +282,23 @@ export default function Dashboard() {
<Match when={initialLoadComplete() && hasCachedData()}>
<section class="space-y-5">
{/* 1. Action Required Panel — only when actions exist */}
+ <Show when={!dashboardMigrationNoticeDismissed()}>
+ <MigrationNoticeBanner
+ title={DASHBOARD_MIGRATION_NOTICE_TITLE}
+ message={DASHBOARD_MIGRATION_NOTICE_MESSAGE}
+ learnMoreHref={MIGRATION_GUIDE_DOC_URL}
+ onDismiss={() => setDashboardMigrationNoticeDismissed(true)}
+ />
+ </Show>
+
+ {/* 2. Action Required Panel — only when actions exist */}
<ActionRequiredPanel
pendingApprovals={actions.pendingApprovals()}
unackedCriticalAlerts={actions.unackedCriticalAlerts()}
findingsNeedingAttention={actions.findingsNeedingAttention()}
/>
- {/* 2. KPI Strip — always visible */}
+ {/* 3. KPI Strip — always visible */}
<KPIStrip
infrastructure={{
total: overview().infrastructure.total,
@@ -300,10 +320,10 @@ export default function Dashboard() {
}}
/>
- {/* 3. Problem Resources Table — only when problems exist */}
+ {/* 4. Problem Resources Table — only when problems exist */}
<ProblemResourcesTable problems={overview().problemResources} />
- {/* 4–5. Customizable widgets: Trend Charts, Recent Alerts */}
+ {/* 5–6. Customizable widgets: Trend Charts, Recent Alerts */}
<For each={widgetGroups()}>
{(group) =>
group.type === 'full' ? (
diff --git a/frontend-modern/src/pages/__tests__/DashboardPage.test.tsx b/frontend-modern/src/pages/__tests__/DashboardPage.test.tsx
index 884ce4b86d..c663ee9560 100644
--- a/frontend-modern/src/pages/__tests__/DashboardPage.test.tsx
+++ b/frontend-modern/src/pages/__tests__/DashboardPage.test.tsx
@@ -4,6 +4,7 @@ import type { DashboardOverview } from '@/hooks/useDashboardOverview';
import type { DashboardRecoverySummary } from '@/hooks/useDashboardRecovery';
import DashboardPage from '@/pages/Dashboard';
import dashboardPageSource from '@/pages/Dashboard.tsx?raw';
+import { STORAGE_KEYS } from '@/utils/localStorage';
let overviewLoading = false;
let overviewError: unknown = undefined;
@@ -118,6 +119,7 @@ describe('Dashboard page module contract', () => {
wsReconnecting = false;
reconnectSpy.mockReset();
navigateSpy.mockReset();
+ localStorage.clear();
overviewMock.health.totalResources = 0;
overviewMock.infrastructure.total = 0;
overviewMock.infrastructure.byStatus = {};
@@ -207,6 +209,45 @@ describe('Dashboard page module contract', () => {
expect(screen.getAllByText(/1\.95 KB \/ 3\.91 KB/i)).toHaveLength(2);
});
+ it('shows a dismissible v5-to-v6 migration notice on the populated dashboard', async () => {
+ overviewMock.health.totalResources = 5;
+ overviewMock.infrastructure.total = 5;
+ overviewMock.infrastructure.byStatus = { online: 5 };
+ overviewMock.workloads.total = 12;
+ overviewMock.workloads.running = 9;
+
+ render(() => <DashboardPage />);
+
+ expect(screen.getByText('Looking for Proxmox, Docker, and Hosts?')).toBeInTheDocument();
+ expect(
+ screen.getByText(
+ 'Use Infrastructure for Proxmox nodes, Docker hosts, clusters, and other systems. Use Workloads for VMs, containers, pods, and Docker update status.',
+ ),
+ ).toBeInTheDocument();
+ expect(screen.getByRole('link', { name: 'See full migration guide' })).toHaveAttribute(
+ 'href',
+ '/docs/MIGRATION_UNIFIED_NAV.md',
+ );
+
+ await fireEvent.click(screen.getByRole('button', { name: 'Dismiss navigation notice' }));
+
+ expect(localStorage.getItem(STORAGE_KEYS.DASHBOARD_MIGRATION_NOTICE_DISMISSED)).toBe('true');
+ expect(screen.queryByText('Looking for Proxmox, Docker, and Hosts?')).not.toBeInTheDocument();
+ });
+
+ it('keeps the dashboard migration notice hidden once dismissed', () => {
+ localStorage.setItem(STORAGE_KEYS.DASHBOARD_MIGRATION_NOTICE_DISMISSED, 'true');
+ overviewMock.health.totalResources = 5;
+ overviewMock.infrastructure.total = 5;
+ overviewMock.infrastructure.byStatus = { online: 5 };
+ overviewMock.workloads.total = 12;
+ overviewMock.workloads.running = 9;
+
+ render(() => <DashboardPage />);
+
+ expect(screen.queryByText('Looking for Proxmox, Docker, and Hosts?')).not.toBeInTheDocument();
+ });
+
it('keeps the KPI strip above problem resources so the dashboard snapshot reads before detail', () => {
overviewMock.health.totalResources = 5;
overviewMock.infrastructure.total = 5;
diff --git a/frontend-modern/src/utils/docsLinks.ts b/frontend-modern/src/utils/docsLinks.ts
index 5996c47edf..24612df3a2 100644
--- a/frontend-modern/src/utils/docsLinks.ts
+++ b/frontend-modern/src/utils/docsLinks.ts
@@ -5,6 +5,7 @@ export function getShippedDocUrl(filename: string): string {
}
export const README_DOC_URL = getShippedDocUrl('README.md');
+export const MIGRATION_GUIDE_DOC_URL = getShippedDocUrl('MIGRATION_UNIFIED_NAV.md');
export const PRIVACY_DOC_URL = getShippedDocUrl('PRIVACY.md');
export const CONFIGURATION_DOC_URL = getShippedDocUrl('CONFIGURATION.md');
export const PROXY_AUTH_DOC_URL = getShippedDocUrl('PROXY_AUTH.md');
diff --git a/frontend-modern/src/utils/localStorage.ts b/frontend-modern/src/utils/localStorage.ts
index 486a91f538..274b31fc6d 100644
--- a/frontend-modern/src/utils/localStorage.ts
+++ b/frontend-modern/src/utils/localStorage.ts
@@ -216,6 +216,7 @@ export const STORAGE_KEYS = {
// Billing / migration guidance
AGENT_MIGRATION_NOTICE_DISMISSED: 'pulse-agent-migration-notice-dismissed',
+ DASHBOARD_MIGRATION_NOTICE_DISMISSED: 'pulse-dashboard-migration-notice-dismissed',
// Audit log
AUDIT_AUTO_VERIFY: 'pulse-audit-auto-verify',
diff --git a/tests/integration/tests/58-dashboard-migration-notice.spec.ts b/tests/integration/tests/58-dashboard-migration-notice.spec.ts
new file mode 100644
index 0000000000..ee988fec90
--- /dev/null
+++ b/tests/integration/tests/58-dashboard-migration-notice.spec.ts
@@ -0,0 +1,72 @@
+import { expect, test, type Page } from '@playwright/test';
+import { ensureAuthenticated, getMockMode, setMockMode } from './helpers';
+
+const waitForDashboardReady = async (page: Page) => {
+ await expect(page).toHaveURL(/\/dashboard(?:\?.*)?$/);
+ await expect(page.getByTestId('dashboard-page')).toBeVisible();
+ await page.waitForFunction(
+ () => !document.querySelector('[data-testid="dashboard-loading"]'),
+ undefined,
+ { timeout: 30_000 },
+ );
+};
+
+test('dashboard keeps the v6 migration notice visible until the operator dismisses it', async ({
+ page,
+}) => {
+ await ensureAuthenticated(page);
+
+ let initialMockMode: { enabled: boolean } | null = null;
+ try {
+ initialMockMode = await getMockMode(page);
+ if (!initialMockMode.enabled) {
+ await setMockMode(page, true);
+ }
+ } catch (error) {
+ console.warn(`[dashboard-migration] unable to read/set mock mode: ${String(error)}`);
+ }
+
+ try {
+ await page.addInitScript(() => {
+ localStorage.setItem('pulse_whats_new_v2_shown', 'true');
+ if (!sessionStorage.getItem('pulse-dashboard-migration-notice-test-initialized')) {
+ localStorage.removeItem('pulse-dashboard-migration-notice-dismissed');
+ sessionStorage.setItem('pulse-dashboard-migration-notice-test-initialized', 'true');
+ }
+ });
+
+ await page.goto('/dashboard', { waitUntil: 'domcontentloaded' });
+ await waitForDashboardReady(page);
+
+ await expect(page.getByText('Looking for Proxmox, Docker, and Hosts?')).toBeVisible();
+ await expect(
+ page.getByText(
+ 'Use Infrastructure for Proxmox nodes, Docker hosts, clusters, and other systems. Use Workloads for VMs, containers, pods, and Docker update status.',
+ ),
+ ).toBeVisible();
+ await expect(page.getByRole('link', { name: 'See full migration guide' })).toHaveAttribute(
+ 'href',
+ '/docs/MIGRATION_UNIFIED_NAV.md',
+ );
+
+ await page.getByRole('button', { name: 'Dismiss navigation notice' }).click();
+
+ await expect(page.getByText('Looking for Proxmox, Docker, and Hosts?')).toHaveCount(0);
+ await expect
+ .poll(() => page.evaluate(() => localStorage.getItem('pulse-dashboard-migration-notice-dismissed')))
+ .toBe('true');
+
+ await page.reload({ waitUntil: 'domcontentloaded' });
+ await waitForDashboardReady(page);
+
+ await expect(page.getByText('Looking for Proxmox, Docker, and Hosts?')).toHaveCount(0);
+ } finally {
+ if (initialMockMode && !initialMockMode.enabled) {
+ try {
+ await setMockMode(page, false);
+ } catch (error) {
+ console.warn(`[dashboard-migration] unable to restore mock mode: ${String(error)}`);
+ }
+ }
+ }
+});