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
Add infrastructure workspace peer navigation
rcourtman53a9339e4e7c
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex 9ec8d73698..20ecedd4d6 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -863,6 +863,10 @@ rather than stacking beneath the systems ledger. When the operator opensplatform connection management, install tooling, or the legacy operationsworkspace route, `InfrastructureWorkspace.tsx` must not keep the systems tablemounted above that second surface.+That shared infrastructure shell must also preserve explicit peer navigation+between `Systems`, `Connections`, and `Install`, so entering platform+management or installer tooling never strands the operator on a sub-route with+no governed path back to the ledger or to Linux/Windows install commands.That same lifecycle-owned platform-connections workspace must keep API-backedprovider state operationally useful, not CRUD-only. `TrueNASSettingsPanel.tsx`and `useTrueNASSettingsPanelState.ts` must surface the shared runtime health,diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex f887959e52..0b917f1e24 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -226,6 +226,10 @@ work extends shared components instead of creating new local variants.page header instead of keeping the systems ledger mounted above them, so thesame system or connection context is not duplicated once in the defaultledger and again inside a secondary management workspace.+ That same shared shell boundary must expose `Systems`, `Connections`, and+ `Install` as peer infrastructure views, so route-driven entry into platform+ management never removes governed navigation back to the systems ledger or+ to the Linux/Windows installer workspace.6. Keep Proxmox deep-link route selection on the shared settings-navigation boundary. `frontend-modern/src/components/Settings/settingsNavigationModel.ts` and `frontend-modern/src/components/Settings/useSettingsNavigation.ts` must treat the canonical PBS and PMG Proxmox deep links as agent-selection authority even though those URLs resolve to the shared `infrastructure-operations` tab. Reloading or remounting on a PBS or PMG deep link must not silently fall back to the PVE selector state.7. Keep shared storage feature presenters on canonical platform truth. When reusable storage presenters under `frontend-modern/src/features/storageBackups/` classify canonical resources for the shared storage route, API-backed virtualization datastores such as VMware must stay inventory-only datastores instead of inheriting PBS-specific backup-repository or protected-target copy from older fallback branches.8. Keep shared source/platform vocabulary on the governed manifest boundary. `frontend-modern/src/utils/platformSupportManifest.generated.ts` must be the tracked frontend projection of `docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json`, `frontend-modern/src/utils/platformSupportManifest.ts`, `frontend-modern/src/utils/sourcePlatforms.ts`, and `frontend-modern/src/utils/sourcePlatformOptions.ts` must consume that generated projection instead of embedding divergent future-label lists, setup/onboarding path allowlists, or presentation-only guesses, and `frontend-modern/scripts/canonical-platform-audit.mjs` must fail when the generated projection drifts from the governed manifest.diff --git a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsxindex 02a57b6968..0a530f3756 100644--- a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx+++ b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx@@ -1,5 +1,6 @@import { Component, Match, Show, Switch, createEffect, createMemo, createSignal } from 'solid-js';import { useLocation, useNavigate } from '@solidjs/router';+import { Subtabs } from '@/components/shared/Subtabs';import { Dialog } from '@/components/shared/Dialog';import { presentationPolicyIsReadOnly } from '@/stores/sessionPresentationPolicy';import { AgentProfilesPanel } from './AgentProfilesPanel';@@ -17,8 +18,10 @@ import { InfrastructureIgnoredRowDetails } from './InfrastructureIgnoredRowDetaiimport { InfrastructureStopMonitoringDialog } from './InfrastructureStopMonitoringDialog';import { PlatformConnectionsWorkspace } from './PlatformConnectionsWorkspace';import {+ INFRASTRUCTURE_WORKSPACE_TABS,buildInfrastructureWorkspacePath,getInfrastructureWorkspaceViewFromPath,+ type InfrastructureWorkspaceTabView,} from './infrastructureWorkspaceModel';import type { InfrastructurePlatformSettingsProps } from './proxmoxSettingsModel';import {@@ -51,11 +54,6 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =readOnlyWorkspace()? []: [- {- label: 'Manage connections',- onSelect: () => navigate(buildInfrastructureWorkspacePath('platforms')),- tone: 'secondary' as const,- },{label: 'Agent profiles',onSelect: () => setProfilesOpen(true),@@ -132,6 +130,20 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =return (<div class="space-y-8">+ <Show when={!readOnlyWorkspace() && activeView() !== 'operations'}>+ <Subtabs+ value={activeView()}+ onChange={(value) =>+ navigate(buildInfrastructureWorkspacePath(value as InfrastructureWorkspaceTabView))+ }+ ariaLabel="Infrastructure workspace"+ tabs={INFRASTRUCTURE_WORKSPACE_TABS.map((tab) => ({+ value: tab.id,+ label: tab.label,+ }))}+ />+ </Show>+<Show when={activeView() === 'inventory'}><ConnectionsTablerows={rows}diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsxindex 91555aa85c..1b570565a1 100644--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx@@ -167,9 +167,13 @@ describe('InfrastructureWorkspace', () => {it('renders only the top-level ledger at the base infrastructure route', () => {renderWorkspace();- expect(screen.getByText('Systems')).toBeInTheDocument();- expect(screen.getByRole('button', { name: 'Manage connections' })).toBeInTheDocument();+ expect(screen.getByRole('heading', { name: 'Systems' })).toBeInTheDocument();+ expect(screen.getByRole('tablist', { name: 'Infrastructure workspace' })).toBeInTheDocument();+ expect(screen.getByRole('tab', { name: 'Systems' })).toBeInTheDocument();+ expect(screen.getByRole('tab', { name: 'Connections' })).toBeInTheDocument();+ expect(screen.getByRole('tab', { name: 'Install' })).toBeInTheDocument();expect(screen.getByRole('button', { name: 'Agent profiles' })).toBeInTheDocument();+ expect(screen.queryByRole('button', { name: 'Manage connections' })).toBeNull();expect(screen.queryByTestId('inventory-section')).toBeNull();expect(screen.queryByTestId('platform-section')).toBeNull();expect(screen.queryByTestId('install-section')).toBeNull();@@ -239,10 +243,10 @@ describe('InfrastructureWorkspace', () => {expect(screen.getByTestId('active-details')).toBeInTheDocument();});- it('routes connection management into the platform workspace instead of the main ledger', () => {+ it('navigates from the systems ledger into the peer connections workspace', () => {renderWorkspace();- fireEvent.click(screen.getByRole('button', { name: 'Manage connections' }));+ fireEvent.click(screen.getByRole('tab', { name: 'Connections' }));expect(navigateSpy).toHaveBeenCalledWith('/settings/infrastructure/platforms');});@@ -251,11 +255,17 @@ describe('InfrastructureWorkspace', () => {mockPathname = '/settings/infrastructure/platforms/truenas';renderWorkspace();- expect(screen.queryByText('Systems')).toBeNull();+ expect(screen.queryByRole('heading', { name: 'Systems' })).toBeNull();+ expect(screen.getByRole('tablist', { name: 'Infrastructure workspace' })).toBeInTheDocument();+ expect(screen.getByRole('tab', { name: 'Systems' })).toBeInTheDocument();+ expect(screen.getByRole('tab', { name: 'Connections' })).toHaveAttribute(+ 'aria-selected',+ 'true',+ );+ expect(screen.getByRole('tab', { name: 'Install' })).toBeInTheDocument();expect(screen.getByTestId('platform-section')).toBeInTheDocument();expect(screen.queryByTestId('inventory-section')).toBeNull();expect(screen.queryByTestId('install-section')).toBeNull();- expect(screen.queryByRole('button', { name: 'Manage connections' })).toBeNull();expect(screen.queryByRole('button', { name: 'Agent profiles' })).toBeNull();expect(screen.queryByTestId('agent-profiles')).toBeNull();});@@ -264,11 +274,30 @@ describe('InfrastructureWorkspace', () => {mockPathname = '/settings/infrastructure/install';renderWorkspace();- expect(screen.queryByText('Systems')).toBeNull();+ expect(screen.queryByRole('heading', { name: 'Systems' })).toBeNull();+ expect(screen.getByRole('tablist', { name: 'Infrastructure workspace' })).toBeInTheDocument();+ expect(screen.getByRole('tab', { name: 'Install' })).toHaveAttribute('aria-selected', 'true');expect(screen.getByTestId('install-section')).toBeInTheDocument();expect(screen.queryByTestId('inventory-section')).toBeNull();expect(screen.queryByTestId('platform-section')).toBeNull();- expect(screen.queryByRole('button', { name: 'Manage connections' })).toBeNull();+ });++ it('lets platform deep links navigate back to the systems ledger', () => {+ mockPathname = '/settings/infrastructure/platforms/truenas';+ renderWorkspace();++ fireEvent.click(screen.getByRole('tab', { name: 'Systems' }));++ expect(navigateSpy).toHaveBeenCalledWith('/settings/infrastructure');+ });++ it('keeps Linux and Windows install tooling reachable from the shared workspace tabs', () => {+ mockPathname = '/settings/infrastructure/platforms/truenas';+ renderWorkspace();++ fireEvent.click(screen.getByRole('tab', { name: 'Install' }));++ expect(navigateSpy).toHaveBeenCalledWith('/settings/infrastructure/install');});it('opens agent profiles in a dedicated drawer instead of inline', () => {@@ -285,6 +314,7 @@ describe('InfrastructureWorkspace', () => {renderWorkspace();expect(navigateSpy).toHaveBeenCalledWith('/settings/infrastructure', { replace: true });+ expect(screen.queryByRole('tablist', { name: 'Infrastructure workspace' })).toBeNull();expect(screen.queryByRole('button', { name: /\+ Add a system/i })).toBeNull();expect(screen.queryByRole('button', { name: 'Agent profiles' })).toBeNull();expect(screen.queryByTestId('platform-section')).toBeNull();diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex d3f9fe93c7..b4a6352704 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -897,6 +897,8 @@ describe('Settings architecture guardrails', () => {expect(infrastructureWorkspaceSource).toContain('InfrastructureStopMonitoringDialog');expect(infrastructureWorkspaceSource).toContain('AgentProfilesPanel');expect(infrastructureWorkspaceSource).toContain('PlatformConnectionsWorkspace');+ expect(infrastructureWorkspaceSource).toContain("import { Subtabs } from '@/components/shared/Subtabs'");+ expect(infrastructureWorkspaceSource).toContain('<Subtabs');expect(infrastructureWorkspaceSource).toContain("activeView() === 'operations'");expect(infrastructureWorkspaceSource).toContain("activeView() === 'platforms'");expect(infrastructureWorkspaceSource).toContain("activeView() === 'install'");@@ -953,8 +955,8 @@ describe('Settings architecture guardrails', () => {);expect(infrastructureActiveRowDetailsSource).toContain('useInfrastructureOperationsContext');expect(infrastructureIgnoredRowDetailsSource).toContain('useInfrastructureOperationsContext');- expect(infrastructureWorkspaceModelSource).not.toContain(- 'INFRASTRUCTURE_WORKSPACE_TABS',+ expect(infrastructureWorkspaceModelSource).toContain(+ 'export const INFRASTRUCTURE_WORKSPACE_TABS',);expect(infrastructureWorkspaceModelSource).toContain('export function getInfrastructureWorkspaceViewFromPath',diff --git a/frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts b/frontend-modern/src/components/Settings/infrastructureWorkspaceModel.tsindex 0c8c58edd6..de341f1c09 100644--- a/frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts+++ b/frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts@@ -1,4 +1,11 @@export type InfrastructureWorkspaceView = 'inventory' | 'install' | 'platforms' | 'operations';+export type InfrastructureWorkspaceTabView = Exclude<InfrastructureWorkspaceView, 'operations'>;++export interface InfrastructureWorkspaceTabDefinition {+ id: InfrastructureWorkspaceTabView;+ label: string;+ path: string;+}const INFRASTRUCTURE_WORKSPACE_PATHS: Record<InfrastructureWorkspaceView, string> = {inventory: '/settings/infrastructure',@@ -7,6 +14,24 @@ const INFRASTRUCTURE_WORKSPACE_PATHS: Record<InfrastructureWorkspaceView, stringoperations: '/settings/infrastructure/operations',};+export const INFRASTRUCTURE_WORKSPACE_TABS: readonly InfrastructureWorkspaceTabDefinition[] = [+ {+ id: 'inventory',+ label: 'Systems',+ path: INFRASTRUCTURE_WORKSPACE_PATHS.inventory,+ },+ {+ id: 'platforms',+ label: 'Connections',+ path: INFRASTRUCTURE_WORKSPACE_PATHS.platforms,+ },+ {+ id: 'install',+ label: 'Install',+ path: INFRASTRUCTURE_WORKSPACE_PATHS.install,+ },+];+export function getInfrastructureWorkspaceViewFromPath(pathname: string,): InfrastructureWorkspaceView {