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
Simplify infrastructure source onboarding
rcourtman1450b442b0f7
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex 07b0b07b94..e3297de07e 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -180,6 +180,13 @@ from governed Pulse Agent host profiles. Host/appliance compatibility such asUnraid is presented as an agent install/profile path sourced from the manifest`agent_host_profiles` section, not as `PLATFORM_TYPE_KEYS` membership or apeer API-backed platform.+The add-infrastructure picker must preserve that boundary while presenting a+plain operator-facing system finder: users choose recognizable systems such as+Unraid, TrueNAS, Proxmox, Docker, Kubernetes, or standalone hosts, and the+helper maps those choices into API-backed, agent-backed, or availability-probe+routes only after selection. The first picker surface must support aliases for+common operator terms and must not make API/agent/probe taxonomy the primary+choice model.Agent runtime normalization must use that same governed host-profile manifest:profile identity tokens and runtime platform fallback values such as`unraid` -> `linux` are generated into the runtime resolver instead of beingdiff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex bd499cba52..1a31cca36a 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -545,9 +545,10 @@ prompt explain the same operator-facing priority.detect-from-address utility, and typed add routes jump straight into thematching credentialslot through `initialType`.- The picker and typed add dialog must use the shared source-strategy- vocabulary so users choose between API inventory, Agent telemetry, and API- + Agent coverage rather than only choosing a product logo.+ The picker must keep that first choice in recognizable system/service+ vocabulary, while the typed add dialog may use the shared source-strategy+ vocabulary after selection to explain API inventory, Agent telemetry, or+ API + Agent coverage.Credential slots are dispatched by the detected or manually-selected typeand must still reach the canonical form body rather than diverging into arevived provider-specific workspace.diff --git a/frontend-modern/src/components/Settings/InfrastructureSourcePicker.tsx b/frontend-modern/src/components/Settings/InfrastructureSourcePicker.tsxindex 5004912a29..f57add5ef5 100644--- a/frontend-modern/src/components/Settings/InfrastructureSourcePicker.tsx+++ b/frontend-modern/src/components/Settings/InfrastructureSourcePicker.tsx@@ -1,131 +1,153 @@-import { Component, For, Show } from 'solid-js';+import { Component, For, Show, createMemo, createSignal } from 'solid-js';import { Activity, Archive, Cpu, Database, Mail, Search, Server, ServerCog } from 'lucide-solid';-import type { InfrastructureOnboardingConnectionType } from '@/utils/infrastructureOnboardingPresentation';+import type {+ InfrastructureSourcePickerItemId,+ InfrastructureSourcePickerItemPresentation,+ InfrastructureSourcePickerRouteStep,+} from '@/utils/infrastructureOnboardingPresentation';import {getInfrastructureGovernanceBadgeLabel,- getInfrastructureSourcePickerGroups,- getInfrastructureOnboardingProductPresentation,- getInfrastructureSourceStrategyPresentation,+ getInfrastructureSourcePickerItems,} from '@/utils/infrastructureOnboardingPresentation';interface InfrastructureSourcePickerProps {- onSelectType: (type: InfrastructureOnboardingConnectionType) => void;+ onSelectStep: (step: InfrastructureSourcePickerRouteStep) => void;onDetectFromAddress?: () => void;}const detectButtonClass =- 'inline-flex items-center rounded-md border border-border px-3 py-2 text-sm font-medium text-base-content transition-colors hover:bg-surface-hover';+ 'inline-flex items-center justify-center rounded-md border border-border px-3 py-2 text-sm font-medium text-base-content transition-colors hover:bg-surface-hover';++const readinessBadgeClass =+ 'inline-flex items-center rounded-full border border-blue-200 bg-blue-100 px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide text-blue-800 dark:border-blue-900 dark:bg-blue-950/40 dark:text-blue-200';++const searchInputClass =+ 'h-10 w-full rounded-md border border-border bg-surface py-2 pl-9 pr-3 text-sm text-base-content outline-none transition-colors placeholder:text-muted focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20';-const CARD_ICON: Record<InfrastructureOnboardingConnectionType, Component<{ class?: string }>> = {+const CARD_ICON: Record<InfrastructureSourcePickerItemId, Component<{ class?: string }>> = {vmware: ServerCog,- truenas: Database,pve: Server,+ truenas: Database,+ unraid: Database,pbs: Archive,pmg: Mail,- agent: Cpu,+ 'linux-host': Cpu,+ docker: Server,+ kubernetes: ServerCog,availability: Activity,};+const itemMatchesQuery = (item: InfrastructureSourcePickerItemPresentation, query: string) => {+ if (!query) return true;+ const searchableText = [+ item.label,+ item.catalogDescription,+ item.bestFor,+ item.coverage,+ item.id,+ item.connectionType,+ ...item.searchAliases,+ ]+ .join(' ')+ .toLowerCase();+ return query+ .split(/\s+/)+ .filter(Boolean)+ .every((term) => searchableText.includes(term));+};+export const InfrastructureSourcePicker: Component<InfrastructureSourcePickerProps> = (props) => {- const groups = () => getInfrastructureSourcePickerGroups();+ const [query, setQuery] = createSignal('');+ const items = () => getInfrastructureSourcePickerItems();+ const normalizedQuery = createMemo(() => query().trim().toLowerCase());+ const visibleItems = createMemo(() =>+ items().filter((item) => itemMatchesQuery(item, normalizedQuery())),+ );+ const heading = createMemo(() => (normalizedQuery() ? 'Matching choices' : 'Common choices'));return (- <div class="space-y-6 p-4">- <Show when={props.onDetectFromAddress}>- <div class="flex flex-col gap-3 rounded-md border border-border bg-surface-alt p-3 sm:flex-row sm:items-center sm:justify-between">- <div class="space-y-1">- <div class="text-sm font-medium text-base-content">Not sure which source to use?</div>- <p class="text-xs text-muted">- Probe an address and Pulse will open the matching API inventory flow when it- recognizes the platform.- </p>- </div>+ <div class="space-y-4 p-4">+ <div class="flex flex-col gap-2 border-b border-border pb-4 sm:flex-row">+ <label class="relative flex-1">+ <span class="sr-only">Search infrastructure type</span>+ <Search+ aria-hidden="true"+ class="pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted"+ />+ <input+ type="search"+ value={query()}+ onInput={(event) => setQuery(event.currentTarget.value)}+ class={searchInputClass}+ placeholder="Search Unraid, TrueNAS, Proxmox, Docker..."+ />+ </label>+ <Show when={props.onDetectFromAddress}><buttontype="button"onClick={props.onDetectFromAddress}- class={`${detectButtonClass} self-start sm:self-center`}+ class={`${detectButtonClass} sm:w-auto`}><Search class="mr-2 h-4 w-4" />Detect from address</button>- </div>- </Show>+ </Show>+ </div>- <For each={groups()}>- {(group) => (- <section class="space-y-3">- <div class="space-y-1">- <h3 class="text-sm font-semibold text-base-content">{group.label}</h3>- <p class="text-xs text-muted">{group.description}</p>+ <section class="space-y-2">+ <div class="flex items-center justify-between gap-3">+ <h3 class="text-sm font-semibold text-base-content">{heading()}</h3>+ <Show when={normalizedQuery()}>+ <div class="text-xs text-muted">+ {visibleItems().length} match{visibleItems().length === 1 ? '' : 'es'}</div>+ </Show>+ </div>- <div class="grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-3">- <For each={group.products}>- {(product) => {- const Icon = CARD_ICON[product.type];- const details = getInfrastructureOnboardingProductPresentation(product.type);- const strategy = getInfrastructureSourceStrategyPresentation(- details.sourceStrategy,- );- const governanceBadge = getInfrastructureGovernanceBadgeLabel(- details.governanceState,- details.readinessStage,- );- return (- <button- type="button"- onClick={() => props.onSelectType(product.type)}- class="group flex h-full flex-col gap-3 rounded-md border border-border bg-surface p-4 text-left transition-colors hover:border-blue-500 hover:bg-blue-50/40 dark:hover:bg-blue-950/20"+ <Show+ when={visibleItems().length > 0}+ fallback={+ <div class="rounded-md border border-dashed border-border bg-surface-alt p-4 text-sm text-muted">+ No matching source yet. Try a platform name, a host type, or use detect from address.+ </div>+ }+ >+ <div class="grid grid-cols-1 gap-2 sm:grid-cols-2 xl:grid-cols-3">+ <For each={visibleItems()}>+ {(item) => {+ const Icon = CARD_ICON[item.id];+ const governanceBadge = getInfrastructureGovernanceBadgeLabel(+ item.governanceState,+ item.readinessStage,+ );+ return (+ <button+ type="button"+ onClick={() => props.onSelectStep(item.routeStep)}+ class="group flex h-full min-h-[82px] items-start gap-3 rounded-md border border-border bg-surface p-3 text-left transition-colors hover:border-blue-500 hover:bg-blue-50/40 dark:hover:bg-blue-950/20"+ >+ <div+ aria-hidden="true"+ class="flex h-9 w-9 flex-none items-center justify-center rounded-md border border-border bg-surface-alt text-base-content">- <div class="flex items-start gap-3">- <div- aria-hidden="true"- class="flex h-10 w-10 flex-none items-center justify-center rounded-md border border-border bg-surface-alt text-base-content"- >- <Icon class="h-5 w-5" />- </div>- <div class="min-w-0 space-y-1">- <div class="flex flex-wrap items-center gap-2">- <div class="text-sm font-semibold text-base-content">- {details.label}- </div>- <span class="inline-flex items-center rounded-full border border-border bg-surface-alt px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide text-base-content">- {strategy.label}- </span>- <Show when={governanceBadge}>- <span class="inline-flex items-center rounded-full border border-blue-200 bg-blue-100 px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide text-blue-800 dark:border-blue-900 dark:bg-blue-950/40 dark:text-blue-200">- {governanceBadge}- </span>- </Show>- </div>- <div class="text-xs text-muted">{details.catalogDescription}</div>- </div>- </div>-- <p class="text-[11px] text-muted">{strategy.detail}</p>-- <div class="grid gap-2 text-[11px] text-muted">- <div>- <div class="font-medium uppercase tracking-wide text-base-content">- Best for- </div>- <div>{details.bestFor}</div>- </div>- <div>- <div class="font-medium uppercase tracking-wide text-base-content">- Unlocks- </div>- <div>{details.coverage}</div>- </div>+ <Icon class="h-4 w-4" />+ </div>+ <div class="min-w-0 flex-1 space-y-2">+ <div class="flex flex-wrap items-center gap-2">+ <div class="text-sm font-semibold text-base-content">{item.label}</div>+ <Show when={governanceBadge}>+ <span class={readinessBadgeClass}>{governanceBadge}</span>+ </Show></div>- </button>- );- }}- </For>- </div>- </section>- )}- </For>+ <p class="text-xs leading-5 text-muted">{item.catalogDescription}</p>+ </div>+ </button>+ );+ }}+ </For>+ </div>+ </Show>+ </section></div>);};diff --git a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsxindex df790abd11..602837bfcb 100644--- a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx+++ b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx@@ -44,6 +44,7 @@ import {} from './useInfrastructureOperationsState';import {getInfrastructureOnboardingProductPresentation,+ getInfrastructureSourcePickerItemForRouteStep,getInfrastructureSourceStrategyPresentation,type InfrastructureOnboardingConnectionType,} from '@/utils/infrastructureOnboardingPresentation';@@ -58,6 +59,10 @@ type ManagedAddTypeStep = Exclude<InfrastructureAddStep, 'detect'>;const ADD_STEP_TO_TYPE: Record<ManagedAddTypeStep, ConnectionType> = {agent: 'agent',+ 'linux-host': 'agent',+ unraid: 'agent',+ docker: 'agent',+ kubernetes: 'agent',pve: 'pve',pbs: 'pbs',pmg: 'pmg',@@ -71,6 +76,8 @@ const closeButtonClass =const buttonClass ='inline-flex min-h-10 sm:min-h-9 items-center justify-center rounded-md border border-border px-3 py-2 text-sm font-medium text-base-content transition-colors hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-60';+const trimSentenceTerminal = (value: string): string => value.trim().replace(/\.+$/, '');+const describeManagedSourceType = (type: ConnectionType | null): string => {if (!type) return 'Infrastructure';if (@@ -116,6 +123,9 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =if (!step || step === 'pick' || step === 'detect') return null;return ADD_STEP_TO_TYPE[step as ManagedAddTypeStep];});+ const activeCatalogItem = createMemo(() =>+ getInfrastructureSourcePickerItemForRouteStep(routeStep()),+ );const editingConnection = createMemo<Connection | null>(() => editingRow()?.connection ?? null);const attachedAgentConnections = createMemo(() =>(editingRow()?.attachedConnections ?? []).filter((connection) => connection.type === 'agent'),@@ -797,13 +807,15 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =const step = routeStep();if (!step || step === 'pick') return 'Add infrastructure';if (step === 'detect') return 'Detect infrastructure source';+ const catalogItem = activeCatalogItem();+ if (catalogItem) return `Add ${catalogItem.label}`;return `Add ${describeManagedSourceType(activeAddType())}`;});const addDialogDescription = createMemo(() => {const step = routeStep();if (!step || step === 'pick') {- return 'Choose how Pulse should collect from this system: platform API, Pulse Agent, or both.';+ return 'Choose the system, platform, host, or service you want Pulse to monitor.';}if (step === 'detect') {return 'Probe an address and let Pulse open the matching credential flow when it recognizes the platform.';@@ -817,11 +829,16 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =if (probed && probed.type === activeAddType()) {return `Pulse detected ${probed.host}. Review the endpoint, finish the credentials, and then save it as a monitored source.`;}+ const catalogItem = activeCatalogItem();+ if (catalogItem) {+ const strategy = getInfrastructureSourceStrategyPresentation(catalogItem.sourceStrategy);+ return `${strategy.label}. ${trimSentenceTerminal(catalogItem.bestFor)}. ${trimSentenceTerminal(catalogItem.coverage)}.`;+ }const presentation = getInfrastructureOnboardingProductPresentation(activeAddType() as InfrastructureOnboardingConnectionType,);const strategy = getInfrastructureSourceStrategyPresentation(presentation.sourceStrategy);- return `${strategy.label}. ${presentation.bestFor}. ${presentation.coverage}.`;+ return `${strategy.label}. ${trimSentenceTerminal(presentation.bestFor)}. ${trimSentenceTerminal(presentation.coverage)}.`;});const editDialogTitle = createMemo(() => {@@ -923,9 +940,7 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =<Switch><Match when={routeStep() === 'pick'}><InfrastructureSourcePicker- onSelectType={(type) => {- openAddFlow(type === 'agent' ? 'agent' : (type as ManagedAddTypeStep));- }}+ onSelectStep={(step) => openAddFlow(step as ManagedAddTypeStep)}onDetectFromAddress={() => openAddFlow('detect')}/></Match>diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureSourcePicker.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureSourcePicker.test.tsxindex f8e33d161a..4828dfebad 100644--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureSourcePicker.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureSourcePicker.test.tsx@@ -1,5 +1,5 @@import { afterEach, describe, expect, it, vi } from 'vitest';-import { cleanup, render, screen } from '@solidjs/testing-library';+import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';import { InfrastructureSourcePicker } from '../InfrastructureSourcePicker';describe('InfrastructureSourcePicker', () => {@@ -8,14 +8,45 @@ describe('InfrastructureSourcePicker', () => {});it('labels admitted VMware as first-lab-ready and keeps Pulse Agent on the host profile path', () => {- render(() => <InfrastructureSourcePicker onSelectType={vi.fn()} />);+ render(() => <InfrastructureSourcePicker onSelectStep={vi.fn()} />);- expect(screen.getByText('First lab ready')).toBeInTheDocument();- expect(screen.queryByText('Available now')).toBeNull();expect(- screen.getByText(- 'Linux, macOS, Windows, FreeBSD, and Unraid host/appliance profiles where you want low-overhead node-local telemetry.',- ),+ screen.getByPlaceholderText('Search Unraid, TrueNAS, Proxmox, Docker...'),).toBeInTheDocument();+ expect(screen.getByText('Common choices')).toBeInTheDocument();+ expect(screen.getByText('First lab ready')).toBeInTheDocument();+ expect(screen.queryByText('Available now')).toBeNull();+ expect(screen.getByText('Unraid')).toBeInTheDocument();+ expect(screen.getByText('Linux, macOS, Windows host')).toBeInTheDocument();+ expect(screen.getByText('Array health, disks, Docker, host telemetry')).toBeInTheDocument();+ expect(screen.queryByText('Agent telemetry')).toBeNull();+ });++ it('routes user-facing catalog choices into the canonical setup flow', () => {+ const onSelectStep = vi.fn();+ render(() => <InfrastructureSourcePicker onSelectStep={onSelectStep} />);++ const unraidButton = screen.getByText('Unraid').closest('button');+ expect(unraidButton).not.toBeNull();+ fireEvent.click(unraidButton!);+ expect(onSelectStep).toHaveBeenLastCalledWith('unraid');++ const trueNasButton = screen.getByText('TrueNAS SCALE').closest('button');+ expect(trueNasButton).not.toBeNull();+ fireEvent.click(trueNasButton!);+ expect(onSelectStep).toHaveBeenLastCalledWith('truenas');+ });++ it('filters the catalog by user-recognizable names and aliases', () => {+ render(() => <InfrastructureSourcePicker onSelectStep={vi.fn()} />);++ fireEvent.input(screen.getByPlaceholderText('Search Unraid, TrueNAS, Proxmox, Docker...'), {+ target: { value: 'nas' },+ });++ expect(screen.getByText('Matching choices')).toBeInTheDocument();+ expect(screen.getByText('TrueNAS SCALE')).toBeInTheDocument();+ expect(screen.getByText('Unraid')).toBeInTheDocument();+ expect(screen.queryByText('VMware vCenter')).toBeNull();});});diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsxindex ea61370081..30b21423cf 100644--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx@@ -618,16 +618,18 @@ describe('InfrastructureWorkspace', () => {expect(screen.getAllByText('Add infrastructure').length).toBeGreaterThan(0);expect(screen.getByText(- 'Choose how Pulse should collect from this system: platform API, Pulse Agent, or both.',+ 'Choose the system, platform, host, or service you want Pulse to monitor.',),).toBeInTheDocument();+ expect(+ within(dialog).getByPlaceholderText('Search Unraid, TrueNAS, Proxmox, Docker...'),+ ).toBeInTheDocument();expect(within(dialog).getByRole('button', { name: 'Detect from address' })).toBeInTheDocument();- expect(within(dialog).getByText('Virtualization')).toBeInTheDocument();- expect(within(dialog).getAllByText('API inventory').length).toBeGreaterThan(0);- expect(within(dialog).getByText('Agent telemetry')).toBeInTheDocument();- expect(within(dialog).getAllByText('API first').length).toBeGreaterThan(0);- expect(within(dialog).getAllByText('Unlocks').length).toBeGreaterThan(0);+ expect(within(dialog).getByText('Common choices')).toBeInTheDocument();+ expect(within(dialog).queryByText('Agent telemetry')).toBeNull();+ expect(within(dialog).queryByText('API inventory')).toBeNull();expect(within(dialog).getByRole('button', { name: /TrueNAS SCALE/i })).toBeInTheDocument();+ expect(within(dialog).getByText('Unraid')).toBeInTheDocument();});it('routes the picker detect action into the detect dialog', async () => {diff --git a/frontend-modern/src/components/Settings/__tests__/infrastructureWorkspaceModel.test.ts b/frontend-modern/src/components/Settings/__tests__/infrastructureWorkspaceModel.test.tsindex 3c750a6446..062673fe0d 100644--- a/frontend-modern/src/components/Settings/__tests__/infrastructureWorkspaceModel.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/infrastructureWorkspaceModel.test.ts@@ -17,6 +17,12 @@ describe('infrastructureWorkspaceModel', () => {expect(buildInfrastructureOnboardingPath('truenas')).toBe('/settings/infrastructure?add=truenas',);+ expect(buildInfrastructureOnboardingPath('unraid')).toBe(+ '/settings/infrastructure?add=unraid',+ );+ expect(buildInfrastructureOnboardingPath('docker')).toBe(+ '/settings/infrastructure?add=docker',+ );expect(buildInfrastructureOnboardingPath('vmware')).toBe('/settings/infrastructure?add=vmware',);@@ -31,5 +37,9 @@ describe('infrastructureWorkspaceModel', () => {expect(deriveAddStepFromLocation('/settings/infrastructure', '?add=truenas')).toBe('truenas',);+ expect(deriveAddStepFromLocation('/settings/infrastructure', '?add=unraid')).toBe('unraid');+ expect(deriveAddStepFromLocation('/settings/infrastructure', '?add=kubernetes')).toBe(+ 'kubernetes',+ );});});diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex d3016bd018..cfda73902f 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -498,12 +498,12 @@ describe('settings architecture guardrails', () => {expect(infrastructureSourceManagerSource).toContain('setupConfidenceAction');expect(infrastructureSourceManagerSource).not.toContain('Connection types');expect(infrastructureSourcePickerSource).toContain('Detect from address');- expect(infrastructureSourcePickerSource).toContain('getInfrastructureSourcePickerGroups');- expect(infrastructureSourcePickerSource).toContain(+ expect(infrastructureSourcePickerSource).toContain('getInfrastructureSourcePickerItems');+ expect(infrastructureSourcePickerSource).toContain('itemMatchesQuery');+ expect(infrastructureSourcePickerSource).toContain('catalogDescription');+ expect(infrastructureSourcePickerSource).not.toContain('getInfrastructureSourceStrategyPresentation',);- expect(infrastructureSourcePickerSource).toContain('Unlocks');- expect(infrastructureSourcePickerSource).toContain('group.label');expect(settingsHeaderMetaSource).toContain("description: 'Configure the public URL, CORS, embedding, and webhook network boundaries.'",);@@ -546,7 +546,7 @@ describe('settings architecture guardrails', () => {expect(connectionEditorStateSource).not.toContain('getSourcePlatformFamily');expect(infrastructureOnboardingPresentationSource).toContain('getSourcePlatformManifestEntry');expect(infrastructureOnboardingPresentationSource).toContain(- 'getInfrastructureSourcePickerGroups',+ 'getInfrastructureSourcePickerItems',);expect(infrastructureOnboardingPresentationSource).toContain('getInfrastructureSourceStrategyPresentation',diff --git a/frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts b/frontend-modern/src/components/Settings/infrastructureWorkspaceModel.tsindex 07c7f684bf..0819fdd9c7 100644--- a/frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts+++ b/frontend-modern/src/components/Settings/infrastructureWorkspaceModel.ts@@ -1,5 +1,9 @@export type InfrastructureAddStep =| 'agent'+ | 'linux-host'+ | 'unraid'+ | 'docker'+ | 'kubernetes'| 'detect'| 'pve'| 'pbs'@@ -29,6 +33,10 @@ export function normalizeInfrastructurePanelStep(case 'pick':case 'detect':case 'agent':+ case 'linux-host':+ case 'unraid':+ case 'docker':+ case 'kubernetes':case 'pve':case 'pbs':case 'pmg':diff --git a/frontend-modern/src/utils/__tests__/infrastructureOnboardingPresentation.test.ts b/frontend-modern/src/utils/__tests__/infrastructureOnboardingPresentation.test.tsindex 38cc091f67..f03333b881 100644--- a/frontend-modern/src/utils/__tests__/infrastructureOnboardingPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/infrastructureOnboardingPresentation.test.ts@@ -10,7 +10,8 @@ import {INFRASTRUCTURE_ONBOARDING_PATHS,getInfrastructureOnboardingProductPresentation,getInfrastructureSourceManagerProducts,- getInfrastructureSourcePickerGroups,+ getInfrastructureSourcePickerItemPresentation,+ getInfrastructureSourcePickerItems,getInfrastructureSourceStrategyPresentation,getInfrastructureSupportSummaryBadges,} from '@/utils/infrastructureOnboardingPresentation';@@ -109,7 +110,7 @@ describe('infrastructureOnboardingPresentation', () => {expect(getInfrastructureGovernanceBadgeLabel('supported', 'supported')).toBeNull();});- it('derives picker groups, auto-detect copy, and landing summaries from the shared helper', () => {+ it('derives picker items, auto-detect copy, and landing summaries from the shared helper', () => {expect(getInfrastructureSourceManagerProducts()).toEqual([expect.objectContaining({type: 'vmware',@@ -148,44 +149,50 @@ describe('infrastructureOnboardingPresentation', () => {}),]);- expect(getInfrastructureSourcePickerGroups()).toEqual([- {- id: 'virtualization',- label: 'Virtualization',- description: 'Hypervisors, VM inventory, and cluster health.',- types: ['vmware', 'pve'],- products: [- expect.objectContaining({ type: 'vmware', label: 'VMware vCenter' }),- expect.objectContaining({ type: 'pve', label: 'Proxmox VE' }),- ],- },- {- id: 'storage',- label: 'Storage',- description: 'Storage appliances and dataset visibility.',- types: ['truenas'],- products: [expect.objectContaining({ type: 'truenas', label: 'TrueNAS SCALE' })],- },- {- id: 'backup-mail',- label: 'Backup and Mail',- description: 'Backup infrastructure and mail-gateway operations.',- types: ['pbs', 'pmg'],- products: [- expect.objectContaining({ type: 'pbs', label: 'Proxmox Backup Server' }),- expect.objectContaining({ type: 'pmg', label: 'Proxmox Mail Gateway' }),- ],- },- {- id: 'host-monitoring',- label: 'Host monitoring',- description: 'Low-overhead machine telemetry and simple availability checks.',- types: ['agent', 'availability'],- products: [- expect.objectContaining({ type: 'agent', label: 'Pulse Agent' }),- expect.objectContaining({ type: 'availability', label: 'Network endpoint' }),- ],- },+ expect(getInfrastructureSourcePickerItems()).toEqual([+ expect.objectContaining({+ id: 'unraid',+ connectionType: 'agent',+ label: 'Unraid',+ catalogDescription: 'Array health, disks, Docker, host telemetry',+ }),+ expect.objectContaining({+ id: 'truenas',+ connectionType: 'truenas',+ label: 'TrueNAS SCALE',+ }),+ expect.objectContaining({ id: 'pve', connectionType: 'pve', label: 'Proxmox VE' }),+ expect.objectContaining({ id: 'docker', connectionType: 'agent', label: 'Docker' }),+ expect.objectContaining({+ id: 'linux-host',+ connectionType: 'agent',+ label: 'Linux, macOS, Windows host',+ }),+ expect.objectContaining({+ id: 'vmware',+ connectionType: 'vmware',+ label: 'VMware vCenter',+ }),+ expect.objectContaining({+ id: 'kubernetes',+ connectionType: 'agent',+ label: 'Kubernetes',+ }),+ expect.objectContaining({+ id: 'pbs',+ connectionType: 'pbs',+ label: 'Proxmox Backup Server',+ }),+ expect.objectContaining({+ id: 'pmg',+ connectionType: 'pmg',+ label: 'Proxmox Mail Gateway',+ }),+ expect.objectContaining({+ id: 'availability',+ connectionType: 'availability',+ label: 'Network endpoint',+ }),]);expect(getInfrastructureAutoDetectLabels()).toEqual([@@ -228,6 +235,27 @@ describe('infrastructureOnboardingPresentation', () => {expect(getInfrastructureEmptyStateDetail()).toContain('Docker and Kubernetes are discovered');});+ it('keeps user-facing agent-backed catalog choices on the agent setup route', () => {+ expect(getInfrastructureSourcePickerItemPresentation('unraid')).toMatchObject({+ routeStep: 'unraid',+ connectionType: 'agent',+ label: 'Unraid',+ sourceStrategy: 'agent',+ catalogDescription: 'Array health, disks, Docker, host telemetry',+ searchAliases: expect.arrayContaining(['nas', 'home server']),+ });+ expect(getInfrastructureSourcePickerItemPresentation('docker')).toMatchObject({+ routeStep: 'docker',+ connectionType: 'agent',+ label: 'Docker',+ });+ expect(getInfrastructureSourcePickerItemPresentation('kubernetes')).toMatchObject({+ routeStep: 'kubernetes',+ connectionType: 'agent',+ label: 'Kubernetes',+ });+ });+it('owns the source-manager coverage-complete copy outside the component', () => {expect(getInfrastructureCoverageCompleteActionPresentation()).toEqual({label: 'Coverage coherent',diff --git a/frontend-modern/src/utils/infrastructureOnboardingPresentation.ts b/frontend-modern/src/utils/infrastructureOnboardingPresentation.tsindex 02610220f2..b640470aa1 100644--- a/frontend-modern/src/utils/infrastructureOnboardingPresentation.ts+++ b/frontend-modern/src/utils/infrastructureOnboardingPresentation.ts@@ -19,6 +19,7 @@ export interface InfrastructureOnboardingProductPresentation {bestFor: string;coverage: string;catalogDescription: string;+ searchAliases: readonly string[];sourceStrategy: InfrastructureSourceStrategy;autoDetect: boolean;governanceState: PlatformGovernanceState;@@ -33,11 +34,36 @@ export interface InfrastructureSourceManagerProductPresentation extends InfrastractionLabel: string;}-export interface InfrastructureSourcePickerGroupPresentation {- id: 'virtualization' | 'storage' | 'backup-mail' | 'host-monitoring';+export type InfrastructureSourcePickerItemId =+ | 'vmware'+ | 'pve'+ | 'truenas'+ | 'unraid'+ | 'pbs'+ | 'pmg'+ | 'linux-host'+ | 'docker'+ | 'kubernetes'+ | 'availability';++export type InfrastructureSourcePickerRouteStep = InfrastructureSourcePickerItemId;++export interface InfrastructureSourcePickerItemPresentation {+ id: InfrastructureSourcePickerItemId;+ routeStep: InfrastructureSourcePickerRouteStep;+ connectionType: InfrastructureOnboardingConnectionType;label: string;- description: string;- types: InfrastructureOnboardingConnectionType[];+ bestFor: string;+ coverage: string;+ catalogDescription: string;+ searchAliases: readonly string[];+ sourceStrategy: InfrastructureSourceStrategy;+ autoDetect: boolean;+ governanceState: PlatformGovernanceState;+ readinessStage: PlatformReadinessStage;+ primaryMode: PlatformPrimaryMode;+ canonicalProjections: readonly string[];+ supportFloor: PlatformSupportFloor;}interface BaseProductPresentation {@@ -45,6 +71,7 @@ interface BaseProductPresentation {bestFor: string;coverage: string;catalogDescription: string;+ searchAliases?: readonly string[];sourceStrategy: InfrastructureSourceStrategy;autoDetect: boolean;sourcePlatformId?: string;@@ -148,6 +175,7 @@ const PRODUCT_PRESENTATION: Record<bestFor: `${getInfrastructureAgentHostProfileSupportText()} where you want low-overhead node-local telemetry.`,coverage: 'Low-overhead host telemetry, SMART, services, Docker, and Kubernetes',catalogDescription: 'Low-overhead host telemetry, services, Docker, Kubernetes',+ searchAliases: ['host', 'server', 'machine', 'node', 'ubuntu', 'debian', 'windows', 'mac'],sourceStrategy: 'agent',autoDetect: false,defaultSurfaceKeys: ['host'],@@ -157,6 +185,7 @@ const PRODUCT_PRESENTATION: Record<bestFor: 'vCenter-managed VMware environments',coverage: 'VM inventory, ESXi host health, datastore status',catalogDescription: 'VM inventory, ESXi hosts, datastores',+ searchAliases: ['vsphere', 'esxi', 'vcenter', 'vmware cluster'],sourceStrategy: 'api',autoDetect: true,sourcePlatformId: 'vmware-vsphere',@@ -167,6 +196,7 @@ const PRODUCT_PRESENTATION: Record<bestFor: 'TrueNAS appliances with API-backed management',coverage: 'Pools, datasets, apps, replications',catalogDescription: 'Pools, datasets, apps, replications',+ searchAliases: ['nas', 'storage', 'zfs', 'truenas scale'],sourceStrategy: 'api',autoDetect: true,sourcePlatformId: 'truenas',@@ -178,6 +208,7 @@ const PRODUCT_PRESENTATION: Record<coverage:'VMs, containers, storage, and cluster health through the Proxmox API. Install Pulse Agent only on nodes where you want full node-local telemetry such as temperatures and SMART data',catalogDescription: 'VMs, containers, storage, cluster health',+ searchAliases: ['proxmox', 'pve', 'hypervisor', 'vm host', 'cluster'],sourceStrategy: 'api-agent',autoDetect: true,sourcePlatformId: 'proxmox-pve',@@ -189,6 +220,7 @@ const PRODUCT_PRESENTATION: Record<coverage:'Backup jobs, sync, verify, prune, and GC through the Proxmox API. Install Pulse Agent only where host-local telemetry is needed',catalogDescription: 'Backup jobs, sync, verify, prune, GC',+ searchAliases: ['backup', 'proxmox backup', 'pbs'],sourceStrategy: 'api-agent',autoDetect: true,sourcePlatformId: 'proxmox-pbs',@@ -206,6 +238,7 @@ const PRODUCT_PRESENTATION: Record<bestFor: 'Mail filtering and delivery operations',coverage: 'Mail stats, queues, quarantine, relay health',catalogDescription: 'Mail stats, queues, quarantine, relay health',+ searchAliases: ['mail', 'email', 'gateway', 'proxmox mail', 'pmg'],sourceStrategy: 'api',autoDetect: true,sourcePlatformId: 'proxmox-pmg',@@ -216,6 +249,7 @@ const PRODUCT_PRESENTATION: Record<bestFor: 'Devices that expose ICMP, TCP, or HTTP but cannot run Pulse Agent',coverage: 'Agentless availability checks and downtime alerts',catalogDescription: 'Ping, TCP port, and HTTP availability checks',+ searchAliases: ['ping', 'tcp', 'http', 'endpoint', 'website', 'ip address'],sourceStrategy: 'probe',autoDetect: false,primaryMode: 'api-backed',@@ -224,6 +258,83 @@ const PRODUCT_PRESENTATION: Record<},};+const DEFAULT_AGENT_SUPPORT_FLOOR = {+ setup: 'supported',+ visibility: 'supported',+ workloads: 'n/a',+ storage: 'supported',+ recovery: 'n/a',+ alerts: 'supported',+ assistantRead: 'supported',+ assistantControl: 'supported',+} satisfies PlatformSupportFloor;++const AGENT_CATALOG_ITEMS: Record<+ 'linux-host' | 'unraid' | 'docker' | 'kubernetes',+ Omit<+ InfrastructureSourcePickerItemPresentation,+ | 'id'+ | 'connectionType'+ | 'governanceState'+ | 'readinessStage'+ | 'primaryMode'+ | 'canonicalProjections'+ | 'supportFloor'+ >+> = {+ 'linux-host': {+ routeStep: 'linux-host',+ label: 'Linux, macOS, Windows host',+ bestFor: 'Standalone machines where you want low-overhead node-local telemetry.',+ coverage: 'Host telemetry, services, SMART, sensors, network metrics, and remote update state',+ catalogDescription: 'Machine telemetry, services, SMART, sensors',+ searchAliases: ['host', 'server', 'machine', 'node', 'ubuntu', 'debian', 'freebsd', 'windows'],+ sourceStrategy: 'agent',+ autoDetect: false,+ },+ unraid: {+ routeStep: 'unraid',+ label: 'Unraid',+ bestFor: 'Unraid servers where array health and host-local telemetry both matter.',+ coverage: 'Array health, disk posture, SMART, services, Docker containers, and host telemetry',+ catalogDescription: 'Array health, disks, Docker, host telemetry',+ searchAliases: ['nas', 'array', 'storage', 'home server', 'docker host'],+ sourceStrategy: 'agent',+ autoDetect: false,+ },+ docker: {+ routeStep: 'docker',+ label: 'Docker',+ bestFor: 'Docker hosts where containers should be discovered from the machine running them.',+ coverage: 'Docker inventory plus host CPU, memory, disk, network, services, and SMART telemetry',+ catalogDescription: 'Containers plus host telemetry',+ searchAliases: ['containers', 'container host', 'compose'],+ sourceStrategy: 'agent',+ autoDetect: false,+ },+ kubernetes: {+ routeStep: 'kubernetes',+ label: 'Kubernetes',+ bestFor: 'Small clusters and lab nodes where Pulse Agent can collect cluster and node context.',+ coverage: 'Kubernetes workload context plus node-local host telemetry from the agent',+ catalogDescription: 'Workload context plus node telemetry',+ searchAliases: ['k8s', 'pods', 'cluster', 'workloads'],+ sourceStrategy: 'agent',+ autoDetect: false,+ },+};++const SOURCE_PICKER_PRODUCT_ITEMS: Partial<+ Record<InfrastructureSourcePickerItemId, InfrastructureOnboardingConnectionType>+> = {+ vmware: 'vmware',+ pve: 'pve',+ truenas: 'truenas',+ pbs: 'pbs',+ pmg: 'pmg',+ availability: 'availability',+};+const governanceStateForType = (type: InfrastructureOnboardingConnectionType,): PlatformGovernanceState => {@@ -294,31 +405,17 @@ export const INFRASTRUCTURE_AGENT_DISCOVERY_LABELS = [export const INFRASTRUCTURE_AGENT_HOST_LABELS = getInfrastructureAgentHostProfileLabels();-const SOURCE_PICKER_GROUPS: InfrastructureSourcePickerGroupPresentation[] = [- {- id: 'virtualization',- label: 'Virtualization',- description: 'Hypervisors, VM inventory, and cluster health.',- types: ['vmware', 'pve'],- },- {- id: 'storage',- label: 'Storage',- description: 'Storage appliances and dataset visibility.',- types: ['truenas'],- },- {- id: 'backup-mail',- label: 'Backup and Mail',- description: 'Backup infrastructure and mail-gateway operations.',- types: ['pbs', 'pmg'],- },- {- id: 'host-monitoring',- label: 'Host monitoring',- description: 'Low-overhead machine telemetry and simple availability checks.',- types: ['agent', 'availability'],- },+const SOURCE_PICKER_ITEM_ORDER: InfrastructureSourcePickerItemId[] = [+ 'unraid',+ 'truenas',+ 'pve',+ 'docker',+ 'linux-host',+ 'vmware',+ 'kubernetes',+ 'pbs',+ 'pmg',+ 'availability',];export const getInfrastructureOnboardingProductPresentation = (@@ -329,26 +426,66 @@ export const getInfrastructureOnboardingProductPresentation = (return {type,...presentation,+ searchAliases: presentation.searchAliases ?? [],governanceState: manifestEntry?.governanceState ?? governanceStateForType(type),readinessStage: manifestEntry?.readinessStage ?? 'supported',primaryMode: manifestEntry?.primaryMode ?? presentation.primaryMode ?? 'agent-backed',canonicalProjections: manifestEntry?.canonicalProjections ??presentation.canonicalProjections ?? ['agent'],- supportFloor:- manifestEntry?.supportFloor ??- ({- setup: 'supported',- visibility: 'supported',- workloads: 'n/a',- storage: 'supported',- recovery: 'n/a',- alerts: 'supported',- assistantRead: 'supported',- assistantControl: 'supported',- } satisfies PlatformSupportFloor),+ supportFloor: manifestEntry?.supportFloor ?? DEFAULT_AGENT_SUPPORT_FLOOR,+ };+};++export const getInfrastructureSourcePickerItemPresentation = (+ id: InfrastructureSourcePickerItemId,+): InfrastructureSourcePickerItemPresentation => {+ const productType = SOURCE_PICKER_PRODUCT_ITEMS[id];+ if (productType) {+ const product = getInfrastructureOnboardingProductPresentation(productType);+ return {+ id,+ routeStep: id,+ connectionType: product.type,+ label: product.label,+ bestFor: product.bestFor,+ coverage: product.coverage,+ catalogDescription: product.catalogDescription,+ sourceStrategy: product.sourceStrategy,+ autoDetect: product.autoDetect,+ searchAliases: product.searchAliases,+ governanceState: product.governanceState,+ readinessStage: product.readinessStage,+ primaryMode: product.primaryMode,+ canonicalProjections: product.canonicalProjections,+ supportFloor: product.supportFloor,+ };+ }++ const agentItem = AGENT_CATALOG_ITEMS[id as keyof typeof AGENT_CATALOG_ITEMS];+ return {+ id,+ ...agentItem,+ connectionType: 'agent',+ governanceState: 'supported',+ readinessStage: 'supported',+ primaryMode: 'agent-backed',+ canonicalProjections: ['agent'],+ supportFloor: DEFAULT_AGENT_SUPPORT_FLOOR,};};+export const getInfrastructureSourcePickerItemForRouteStep = (+ step: string | null | undefined,+): InfrastructureSourcePickerItemPresentation | null => {+ const normalized = (step || '').trim();+ if (!normalized) return null;+ for (const id of SOURCE_PICKER_ITEM_ORDER) {+ const item = getInfrastructureSourcePickerItemPresentation(id);+ if (item.routeStep === normalized) return item;+ }+ return null;+};+export const getInfrastructureSourceStrategyPresentation = (strategy: InfrastructureSourceStrategy,): InfrastructureSourceStrategyPresentation => SOURCE_STRATEGY_PRESENTATION[strategy];@@ -376,15 +513,8 @@ export const getInfrastructureApiProductsByGovernanceState = ((product) => product.governanceState === governanceState,);-export const getInfrastructureSourcePickerGroups = (): Array<- InfrastructureSourcePickerGroupPresentation & {- products: InfrastructureOnboardingProductPresentation[];- }-> =>- SOURCE_PICKER_GROUPS.map((group) => ({- ...group,- products: group.types.map((type) => getInfrastructureOnboardingProductPresentation(type)),- }));+export const getInfrastructureSourcePickerItems = (): InfrastructureSourcePickerItemPresentation[] =>+ SOURCE_PICKER_ITEM_ORDER.map((id) => getInfrastructureSourcePickerItemPresentation(id));export const getInfrastructureAutoDetectLabels = (): string[] =>getInfrastructureApiProductPresentations()