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
Trim infrastructure workspace onboarding papercuts
rcourtman446a70ee6944
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex 6adcd751ae..8cfa727dfe 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -359,7 +359,13 @@ an add-only capacity posture.aligned with that same lifecycle path. Bare infrastructure settings routesmust default to the install workspace, and the workspace shell must makethe first-host sequence explicit before operators drift into reporting and- control surfaces.+ control surfaces. The third workspace subtab owns the reporting-and-control+ surface at route `/settings/infrastructure/operations`; its user-facing+ label is `Inventory` so the workspace narrative leads new operators from+ install-or-connect into a reporting surface named after what it shows, not+ after the internal lifecycle stage. The first-host orientation card must+ hide once any platform connection or agent resource is already reporting,+ so established operators do not see a first-system prompt.8. Keep post-install lifecycle completion explicit inside`frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx`and `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx`.diff --git a/frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx b/frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsxindex 6a885c78b1..2ed373d1a6 100644--- a/frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx+++ b/frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx@@ -136,34 +136,6 @@ export const InfrastructureInstallerSection: Component = () => {)}</Show>- <div class="rounded-md border border-blue-200 bg-blue-50 px-4 py-3 text-sm text-blue-900 dark:border-blue-700 dark:bg-blue-900 dark:text-blue-100">- <p class="font-semibold">Use this workspace for the first agent-managed host.</p>- <p class="mt-1 text-xs text-blue-800 dark:text-blue-200">- Install the Pulse agent here only when the first system should run the unified agent- directly. If the first system is API-backed, such as TrueNAS or Proxmox, open Platform- connections instead.- </p>- </div>-- <Show when={!state.isEmbedded()}>- <div class="rounded-md border border-emerald-200 bg-emerald-50 px-4 py-3 text-sm text-emerald-900 dark:border-emerald-700 dark:bg-emerald-900 dark:text-emerald-100">- <div class="space-y-2">- <p class="text-sm">- API-backed platforms such as Proxmox and TrueNAS belong in Platform connections. Use- this install workspace only for systems where Pulse should run the unified agent on- the machine itself.- </p>- <button- type="button"- onClick={state.openPlatformConnections}- class="inline-flex min-h-10 sm:min-h-9 items-center rounded-md px-2 py-1.5 text-sm font-medium text-emerald-800 underline hover:bg-emerald-100 hover:text-emerald-900 dark:text-emerald-200 dark:hover:bg-emerald-900 dark:hover:text-emerald-100"- >- Open Platform connections →- </button>- </div>- </div>- </Show>-<div class="space-y-5"><div class="space-y-3"><div class="space-y-1">@@ -257,38 +229,70 @@ export const InfrastructureInstallerSection: Component = () => {</Show><Show when={state.requiresToken() && !state.commandsUnlocked()}>- <div class="pointer-events-none select-none space-y-3 opacity-60">- <div class="flex items-center justify-between">- <div>- <h4 class="text-sm font-semibold text-base-content">- <span class="mr-1.5 inline-flex h-5 w-5 items-center justify-center rounded-full bg-slate-400 text-xs font-bold text-white">- 2- </span>- Installation commands- </h4>- <p class="ml-6 mt-0.5 text-xs text-muted">- Generate an install token above to unlock the commands for your first host.- </p>- </div>- </div>- <div class="rounded-md border border-border bg-surface-hover px-4 py-6 text-center">- <svg- class="mx-auto mb-2 h-8 w-8 text-muted"- fill="none"- viewBox="0 0 24 24"- stroke="currentColor"- stroke-width="1.5"- >- <path- stroke-linecap="round"- stroke-linejoin="round"- d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"- />- </svg>- <p class="text-sm text-muted">- Click "Generate token" above to see the install commands for your first host.+ <div class="space-y-3">+ <div>+ <h4 class="text-sm font-semibold text-base-content">+ <span class="mr-1.5 inline-flex h-5 w-5 items-center justify-center rounded-full bg-slate-400 text-xs font-bold text-white">+ 2+ </span>+ Installation commands+ </h4>+ <p class="ml-6 mt-0.5 text-xs text-muted">+ Preview — generate a token above to enable copying. The{' '}+ <code class="rounded bg-surface-hover px-1">{'<api-token>'}</code> placeholder+ below will be replaced automatically once a token exists.</p></div>+ <div class="space-y-4">+ <For each={state.commandSections()}>+ {(section) => (+ <div class="space-y-3 rounded-md border border-border p-4 opacity-70">+ <div class="space-y-1">+ <h5 class="text-sm font-semibold text-base-content">{section.title}</h5>+ <p class="text-xs text-muted">{section.description}</p>+ </div>+ <div class="space-y-3">+ <For each={section.snippets}>+ {(snippet) => (+ <div class="space-y-2">+ <h6 class="text-xs font-semibold uppercase tracking-wide text-muted">+ {snippet.label}+ </h6>+ <div class="relative">+ <button+ type="button"+ disabled+ class="absolute right-2 top-2 inline-flex min-h-10 min-w-10 cursor-not-allowed items-center justify-center rounded-md bg-surface-hover p-2 opacity-50 sm:min-h-9 sm:min-w-9"+ title="Generate a token above to enable copying"+ aria-label="Copy disabled until an install token is generated"+ >+ <svg+ width="16"+ height="16"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ >+ <rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect>+ <path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"></path>+ </svg>+ </button>+ <pre class="overflow-x-auto rounded-md bg-base p-3 pr-12 text-xs text-base-content">+ <code>{snippet.command}</code>+ </pre>+ </div>+ <Show when={snippet.note}>+ <p class="text-xs text-muted">{snippet.note}</p>+ </Show>+ </div>+ )}+ </For>+ </div>+ </div>+ )}+ </For>+ </div></div></Show>@@ -462,7 +466,14 @@ export const InfrastructureInstallerSection: Component = () => {</p><p class="mt-1.5 text-xs text-muted">API-backed platforms such as TrueNAS connect through Platform connections- rather than a dedicated install profile here.+ rather than a dedicated install profile here.{' '}+ <button+ type="button"+ onClick={state.openPlatformConnections}+ class="text-blue-600 underline hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300"+ >+ Open Platform connections+ </button></p><Show when={state.getInstallProfileFlags().length > 0}><p class="mt-1.5 text-xs text-muted">@@ -615,8 +626,8 @@ export const InfrastructureInstallerSection: Component = () => {>{isConnected()? state.lookupWasAutoDetected()- ? `${agent().displayName || agent().hostname} started reporting and Pulse detected it automatically. Open the dashboard to verify your first overview, or continue in Reporting & control to inspect this host and add more infrastructure.`- : `${agent().displayName || agent().hostname} is reporting live telemetry to Pulse. Open the dashboard to verify your first overview, or continue in Reporting & control to inspect this host and add more infrastructure.`+ ? `${agent().displayName || agent().hostname} started reporting and Pulse detected it automatically. Open the dashboard to verify your first overview, or open Inventory to inspect this host and add more infrastructure.`+ : `${agent().displayName || agent().hostname} is reporting live telemetry to Pulse. Open the dashboard to verify your first overview, or open Inventory to inspect this host and add more infrastructure.`: `${agent().displayName || agent().hostname} has been found, but Pulse is not receiving a live check-in yet. Keep the installer running on that machine and check again.`}</p></div>@@ -662,7 +673,7 @@ export const InfrastructureInstallerSection: Component = () => {onClick={state.openInfrastructureInventory}class="inline-flex items-center justify-center rounded-md border border-emerald-300 bg-white px-3 py-2 text-sm font-medium text-emerald-900 transition-colors hover:bg-emerald-100 dark:border-emerald-700 dark:bg-emerald-950 dark:text-emerald-100 dark:hover:bg-emerald-800">- Open reporting & control+ Open inventory</button></div></Show>@@ -711,9 +722,11 @@ export const InfrastructureInstallerSection: Component = () => {</div></Show>- <div class="mt-4 border-t border-border pt-4">- <div class="space-y-3">- <h4 class="text-sm font-semibold text-base-content">Uninstall agent</h4>+ <details class="mt-4 border-t border-border pt-4">+ <summary class="cursor-pointer text-sm font-semibold text-base-content">+ Uninstall agent+ </summary>+ <div class="mt-3 space-y-3"><p class="text-xs text-muted">Run the appropriate command on your machine to remove the Pulse agent:</p>@@ -785,7 +798,7 @@ export const InfrastructureInstallerSection: Component = () => {</div></div></div>- </div>+ </details></div></SettingsPanel>);diff --git a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsxindex 7d074ab7e5..4bb6f9f68b 100644--- a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx+++ b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx@@ -30,6 +30,19 @@ export const InfrastructureWorkspace: Component<InfrastructureWorkspaceProps> =? INFRASTRUCTURE_WORKSPACE_TABS.filter((tab) => tab.id === 'inventory'): INFRASTRUCTURE_WORKSPACE_TABS,);+ const hasAnySystem = createMemo(() => {+ const summary = props.platformConnectionsSummary?.();+ const platformCount = summary+ ? summary.pveCount ++ summary.pbsCount ++ summary.pmgCount ++ summary.truenasCount ++ summary.vmwareCount+ : 0;+ const agentCount = props.agentStateResources?.()?.length ?? 0;+ return platformCount + agentCount > 0;+ });+ const showOrientation = createMemo(() => !readOnlyWorkspace() && !hasAnySystem());const openView = (view: InfrastructureWorkspaceView) =>navigate(buildInfrastructureWorkspacePath(view));@@ -42,7 +55,7 @@ export const InfrastructureWorkspace: Component<InfrastructureWorkspaceProps> =return (<div class="space-y-6">- <Show when={!readOnlyWorkspace()}>+ <Show when={showOrientation()}><Card padding="lg" class="rounded-xl border border-border shadow-sm"><div class="space-y-4"><div class="space-y-2">@@ -78,8 +91,8 @@ export const InfrastructureWorkspace: Component<InfrastructureWorkspaceProps> =3. Confirm reporting</p><p class="mt-1 text-sm text-base-content">- Run the command on that machine, then use Reporting & control once the first- system starts reporting.+ Run the command on that machine, then open Inventory once the first system starts+ reporting.</p></div></div>@@ -87,28 +100,26 @@ export const InfrastructureWorkspace: Component<InfrastructureWorkspaceProps> =<buttontype="button"onClick={() => navigate(installPath())}+ aria-current={activeView() === 'install' ? 'page' : undefined}class={`inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors ${activeView() === 'install'? 'bg-blue-600 text-white': 'border border-border bg-surface text-base-content hover:bg-surface-hover'}`}>- {activeView() === 'install'- ? 'Install on a host selected'- : 'Open Install on a host'}+ Open Install on a host</button><buttontype="button"onClick={() => navigate(platformsPath())}+ aria-current={activeView() === 'platforms' ? 'page' : undefined}class={`inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors ${activeView() === 'platforms'? 'bg-emerald-600 text-white': 'border border-border bg-surface text-base-content hover:bg-surface-hover'}`}>- {activeView() === 'platforms'- ? 'Platform connections selected'- : 'Open Platform connections'}+ Open Platform connections</button></div><p class="text-sm text-muted">diff --git a/frontend-modern/src/components/Settings/ProxmoxSettingsPanel.tsx b/frontend-modern/src/components/Settings/ProxmoxSettingsPanel.tsxindex 144ca12b11..10373637fa 100644--- a/frontend-modern/src/components/Settings/ProxmoxSettingsPanel.tsx+++ b/frontend-modern/src/components/Settings/ProxmoxSettingsPanel.tsx@@ -1,13 +1,9 @@-import { Component, Show } from 'solid-js';-import { useNavigate } from '@solidjs/router';-import { CalloutCard } from '@/components/shared/CalloutCard';+import { Component } from 'solid-js';import { ProxmoxDirectWorkspace } from './ProxmoxDirectWorkspace';import { SettingsSectionNav } from './SettingsSectionNav';import type { InfrastructurePlatformSettingsProps } from './proxmoxSettingsModel';export const ProxmoxSettingsPanel: Component<InfrastructurePlatformSettingsProps> = (props) => {- const navigate = useNavigate();-return (<><SettingsSectionNav@@ -16,42 +12,6 @@ export const ProxmoxSettingsPanel: Component<InfrastructurePlatformSettingsPropsclass="mb-6"/>- <Show when={!props.embedded}>- <CalloutCard- class="mb-6"- icon={- <svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">- <path- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="2"- d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"- />- </svg>- }- description={- <>- <p>- <strong>Recommended:</strong> use the unified agent for Proxmox hosts. It- auto-creates the API token, links the host, and unlocks temperature monitoring plus- Pulse Patrol automation.- </p>- <p class="text-xs text-blue-700 dark:text-blue-300">- Use this fallback path only when you cannot install the unified agent on the host.- </p>- </>- }- >- <button- type="button"- onClick={() => navigate('/settings')}- class="text-sm font-medium text-blue-700 underline hover:text-blue-800 dark:text-blue-300 dark:hover:text-blue-200"- >- Open infrastructure setup →- </button>- </CalloutCard>- </Show>-<ProxmoxDirectWorkspace {...props} /></>);diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureOperationsController.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureOperationsController.test.tsxindex 6dfc9917a3..d69d7b02fa 100644--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureOperationsController.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureOperationsController.test.tsx@@ -984,7 +984,7 @@ describe('InfrastructureOperationsController agent lookup', () => {});expect(screen.getByText(- 'First Host started reporting and Pulse detected it automatically. Open the dashboard to verify your first overview, or continue in Reporting & control to inspect this host and add more infrastructure.',+ 'First Host started reporting and Pulse detected it automatically. Open the dashboard to verify your first overview, or open Inventory to inspect this host and add more infrastructure.',),).toBeInTheDocument();expect((screen.getByPlaceholderText('Hostname or agent ID') as HTMLInputElement).value).toBe(@@ -1046,14 +1046,14 @@ describe('InfrastructureOperationsController agent lookup', () => {expect(screen.getByText('First host connected')).toBeInTheDocument();expect(screen.getByText(- 'Host One is reporting live telemetry to Pulse. Open the dashboard to verify your first overview, or continue in Reporting & control to inspect this host and add more infrastructure.',+ 'Host One is reporting live telemetry to Pulse. Open the dashboard to verify your first overview, or open Inventory to inspect this host and add more infrastructure.',),).toBeInTheDocument();fireEvent.click(screen.getByRole('button', { name: 'Open dashboard' }));expect(navigateMock).toHaveBeenCalledWith('/dashboard');- fireEvent.click(screen.getByRole('button', { name: 'Open reporting & control' }));+ fireEvent.click(screen.getByRole('button', { name: 'Open inventory' }));expect(navigateMock).toHaveBeenCalledWith('/settings/infrastructure/operations');});diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsxindex 7921334490..bd611ede24 100644--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx@@ -83,7 +83,7 @@ describe('InfrastructureWorkspace', () => {'aria-selected','false',);- expect(screen.getByRole('tab', { name: 'Reporting & control' })).toHaveAttribute(+ expect(screen.getByRole('tab', { name: 'Inventory' })).toHaveAttribute('aria-selected','false',);@@ -113,7 +113,7 @@ describe('InfrastructureWorkspace', () => {mockPathname = '/settings/infrastructure/operations';renderWorkspace();- expect(screen.getByRole('tab', { name: 'Reporting & control' })).toHaveAttribute(+ expect(screen.getByRole('tab', { name: 'Inventory' })).toHaveAttribute('aria-selected','true',);@@ -123,7 +123,7 @@ describe('InfrastructureWorkspace', () => {it('uses the guided workspace actions to open install and platform paths', () => {renderWorkspace();- fireEvent.click(screen.getByRole('button', { name: 'Install on a host selected' }));+ fireEvent.click(screen.getByRole('button', { name: 'Open Install on a host' }));fireEvent.click(screen.getByRole('button', { name: 'Open Platform connections' }));expect(navigateSpy).toHaveBeenNthCalledWith(1, '/settings/infrastructure/install');@@ -139,6 +139,61 @@ describe('InfrastructureWorkspace', () => {expect(navigateSpy).toHaveBeenCalledWith('/settings/infrastructure/install');});+ it('hides the first-system orientation card once any platform connection exists', () => {+ render(+ () =>+ (+ <InfrastructureWorkspace+ {...({+ pveNodes: () => [],+ pbsNodes: () => [],+ pmgNodes: () => [],+ agentStateResources: () => [],+ platformConnectionsSummary: () => ({+ pveCount: 1,+ pbsCount: 0,+ pmgCount: 0,+ truenasCount: 0,+ truenasAvailable: true,+ vmwareCount: 0,+ vmwareAvailable: true,+ }),+ } as any)}+ />+ ) as any,+ );++ expect(screen.queryByText('Connect your first system')).not.toBeInTheDocument();+ expect(screen.getByRole('tab', { name: 'Install on a host' })).toBeInTheDocument();+ });++ it('hides the first-system orientation card once any agent resource is reporting', () => {+ render(+ () =>+ (+ <InfrastructureWorkspace+ {...({+ pveNodes: () => [],+ pbsNodes: () => [],+ pmgNodes: () => [],+ agentStateResources: () => [{ id: 'agent-1' }],+ platformConnectionsSummary: () => ({+ pveCount: 0,+ pbsCount: 0,+ pmgCount: 0,+ truenasCount: 0,+ truenasAvailable: true,+ vmwareCount: 0,+ vmwareAvailable: true,+ }),+ } as any)}+ />+ ) as any,+ );++ expect(screen.queryByText('Connect your first system')).not.toBeInTheDocument();+ });+it('collapses the workspace to reporting and redirects install routes in read-only mode', () => {presentationPolicyIsReadOnlyMock.mockReturnValue(true);mockPathname = '/settings/infrastructure/install';@@ -147,7 +202,7 @@ describe('InfrastructureWorkspace', () => {expect(screen.queryByText('Connect your first system')).not.toBeInTheDocument();expect(screen.queryByRole('tab', { name: 'Install on a host' })).not.toBeInTheDocument();expect(screen.queryByRole('tab', { name: 'Platform connections' })).not.toBeInTheDocument();- expect(screen.getByRole('tab', { name: 'Reporting & control' })).toHaveAttribute(+ expect(screen.getByRole('tab', { name: 'Inventory' })).toHaveAttribute('aria-selected','false',);diff --git a/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.ts b/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.tsindex 5ee95fff5a..9cead8463b 100644--- a/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/monitoredSystemModelGuardrails.test.ts@@ -478,7 +478,6 @@ describe('monitored-system model guardrails', () => {expect(relaySettingsPanelStateSource).toContain('getRelayConnectionPresentation');expect(relaySettingsPanelStateSource).toContain('trackPaywallViewed');expect(relayPairingSectionSource).toContain('getRelayDiagnosticClass');- expect(proxmoxSettingsPanelSource).toContain('CalloutCard');expect(proxmoxSettingsPanelSource).not.toContain('Loading configuration...');expect(proxmoxSettingsPanelSource).toContain('./ProxmoxDirectWorkspace');expect(proxmoxDirectWorkspaceSource).toContain('./useProxmoxDirectWorkspaceState');diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex 897faa167e..678d81dbfe 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -729,7 +729,6 @@ describe('Settings architecture guardrails', () => {it('keeps the direct Proxmox settings workspace split into section owners', () => {expect(proxmoxSettingsPanelSource).toContain('./ProxmoxDirectWorkspace');expect(proxmoxSettingsPanelSource).toContain('./proxmoxSettingsModel');- expect(proxmoxSettingsPanelSource).toContain('CalloutCard');expect(proxmoxSettingsPanelSource).toContain('SettingsSectionNav');expect(proxmoxSettingsPanelSource).not.toContain('./useProxmoxSettingsPanelState');expect(proxmoxSettingsPanelSource).not.toContain('./useProxmoxDirectWorkspaceState');diff --git a/frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts b/frontend-modern/src/components/Settings/infrastructureWorkspaceModel.tsindex 139879b65c..a2eaa7db97 100644--- a/frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts+++ b/frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts@@ -19,7 +19,7 @@ export const INFRASTRUCTURE_WORKSPACE_TABS: readonly InfrastructureWorkspaceTabD},{id: 'inventory',- label: 'Reporting & control',+ label: 'Inventory',path: '/settings/infrastructure/operations',},];