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
Clarify infrastructure platform badges
rcourtmanf4b743745603
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 9c71897778..1798d815d4 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -412,6 +412,14 @@ work extends shared components instead of creating new local variants.carries only the connection-scoped `SystemManageAction` variant —`inventory-active` / `inventory-ignored` manage kinds must notreturn.+ Frontend infrastructure feature surfaces inherit that same source/platform+ vocabulary. `frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx`+ must label the operator-facing resource filter and table column as+ `Platform`, not `Source`, while lower-level unified-resource contracts+ preserve merged-source detail for tooltips, accessibility metadata, and+ routing. Collection methods such as Pulse Agent may appear as option or+ detail labels, but they must not become the primary top-level platform+ wording when a provider/API platform owns the resource.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/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex a37a5ddf6f..5b3939f1f0 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -677,6 +677,13 @@ matching, and row titles on the infrastructure page must use the canonicallocal instance identity rather than governed AI-summary text, so performancework cannot “optimize” the table into ambiguous labels that collapse multipleresources into the same visible name.+The same protected table path treats the visible platform column as+platform-first presentation over canonical merged-source data. Sort derivation+for that column must use the normalized infrastructure platform key, while the+render path may keep full merged-source detail in tooltips. When a row contains+both `agent` and a provider/API platform such as Proxmox, the table must render+the provider platform as the compact visible badge rather than adding extra+Agent badge width or sorting primarily by the telemetry method.That derived workload owner now also routes grouped row windowing through`frontend-modern/src/components/Dashboard/useGroupedTableWindowing.ts`, whichowns row-window thresholds, overscan behavior, reveal-index clamping, anddiff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex f09f7e42b6..deefac854a 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -129,6 +129,14 @@ cross-source deduplication.1. Add new resource types and identity fields in `internal/unifiedresources/types.go`2. Add typed accessors and views in `internal/unifiedresources/views.go`3. Add source ingestion/adaptation in the adapter layer only+ Infrastructure table platform presentation extends through+ `frontend-modern/src/utils/resourceBadgePresentation.ts`,+ `frontend-modern/src/components/Infrastructure/resourceBadges.ts`, and the+ unified resource table sections. Visible infrastructure table headers,+ filters, sort keys, and compact row badges must present the owning+ infrastructure platform first, while full merged-source detail remains+ available for tooltips, accessibility metadata, and routing. Agent telemetry+ is collection-method detail when a provider/API platform is also present.Resource detail mappers now reuse the shared`frontend-modern/src/utils/textPresentation.ts` title-case helper for sensor@@ -1792,6 +1800,15 @@ sources, `frontend-modern/src/utils/sourcePlatforms.ts` must still resolve theplatform as `truenas` and the source mode as `hybrid`, so workload andinfrastructure consumers do not collapse API-backed TrueNAS systems or appsback onto the generic agent path just because host telemetry is also present.+That same boundary also owns the infrastructure table's operator-facing+platform vocabulary. `frontend-modern/src/utils/resourceBadgePresentation.ts`,+`frontend-modern/src/components/Infrastructure/resourceBadges.ts`, and the+unified resource table sections may preserve full merged-source detail in+tooltips and accessibility metadata, but visible table headers, filters, sort+keys, and row badges must present the owning infrastructure platform first.+Agent telemetry is collection-method detail when a stronger platform source is+present, not a peer platform label that should crowd the table or drive the+primary platform sort.The route file `frontend-modern/src/pages/Infrastructure.tsx` is now only thenavigation boundary for that surface; canonical infrastructure filter, search,deep-link, and expansion state now live behind the dedicated infrastructurediff --git a/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx b/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsxindex c28aa871de..d33a164d87 100644--- a/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx+++ b/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx@@ -19,6 +19,7 @@ import { StackedDiskBar } from '@/components/Dashboard/StackedDiskBar';import { StackedMemoryBar } from '@/components/Dashboard/StackedMemoryBar';import { buildMetricKeyForUnifiedResource } from '@/utils/metricsKeys';import {+ getInfrastructurePlatformBadges,getPlatformBadge,getSourceBadge,getUnifiedSourceBadges,@@ -301,8 +302,10 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar});const platformBadge = createMemo(() => getPlatformBadge(resource.platformType));const sourceBadge = createMemo(() => getSourceBadge(resource.sourceType));- const unifiedSourceBadges = createMemo(() =>- getUnifiedSourceBadges(table.getUnifiedSources(resource)),+ const unifiedSources = createMemo(() => table.getUnifiedSources(resource));+ const sourceBadges = createMemo(() => getUnifiedSourceBadges(unifiedSources()));+ const platformBadges = createMemo(() =>+ getInfrastructurePlatformBadges(unifiedSources()),);const policyBadges = createMemo(() =>getResourcePolicyTableBadges(resource.policy),@@ -586,9 +589,10 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCarclassList={{ hidden: table.isMobile() || !table.isVisible('secondary') }}><UnifiedResourceSourceBadgeCell- unifiedBadges={unifiedSourceBadges()}+ unifiedBadges={platformBadges()}platformBadge={platformBadge()}sourceBadge={sourceBadge()}+ titleBadges={sourceBadges()}layoutMode={table.layoutMode()}/></TableCell>diff --git a/frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx b/frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsxindex 14d43c6fab..a0f1236549 100644--- a/frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx+++ b/frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx@@ -16,6 +16,7 @@ import {TableRow,} from '@/components/shared/Table';import {+ getInfrastructurePlatformBadges,getPlatformBadge,getSourceBadge,getUnifiedSourceBadges,@@ -118,8 +119,10 @@ export const UnifiedResourcePBSTableSection: Component<UnifiedResourcePBSTableSeconst pbsRow = createMemo(() => getPBSTableRow(resource));const platformBadge = createMemo(() => getPlatformBadge(resource.platformType));const sourceBadge = createMemo(() => getSourceBadge(resource.sourceType));- const unifiedSourceBadges = createMemo(() =>- getUnifiedSourceBadges(table.getUnifiedSources(resource)),+ const unifiedSources = createMemo(() => table.getUnifiedSources(resource));+ const sourceBadges = createMemo(() => getUnifiedSourceBadges(unifiedSources()));+ const platformBadges = createMemo(() =>+ getInfrastructurePlatformBadges(unifiedSources()),);const healthClass = createMemo(() =>@@ -253,9 +256,10 @@ export const UnifiedResourcePBSTableSection: Component<UnifiedResourcePBSTableSe<TableCell classList={{ hidden: !table.isServiceVisible('secondary') }}><UnifiedResourceSourceBadgeCell- unifiedBadges={unifiedSourceBadges()}+ unifiedBadges={platformBadges()}platformBadge={platformBadge()}sourceBadge={sourceBadge()}+ titleBadges={sourceBadges()}layoutMode={table.layoutMode()}/></TableCell>diff --git a/frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx b/frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsxindex be5fc524e4..4ea607d776 100644--- a/frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx+++ b/frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx@@ -16,6 +16,7 @@ import {TableRow,} from '@/components/shared/Table';import {+ getInfrastructurePlatformBadges,getPlatformBadge,getSourceBadge,getUnifiedSourceBadges,@@ -132,8 +133,10 @@ export const UnifiedResourcePMGTableSection: Component<UnifiedResourcePMGTableSeconst pmgRow = createMemo(() => getPMGTableRow(resource));const platformBadge = createMemo(() => getPlatformBadge(resource.platformType));const sourceBadge = createMemo(() => getSourceBadge(resource.sourceType));- const unifiedSourceBadges = createMemo(() =>- getUnifiedSourceBadges(table.getUnifiedSources(resource)),+ const unifiedSources = createMemo(() => table.getUnifiedSources(resource));+ const sourceBadges = createMemo(() => getUnifiedSourceBadges(unifiedSources()));+ const platformBadges = createMemo(() =>+ getInfrastructurePlatformBadges(unifiedSources()),);const healthClass = createMemo(() =>@@ -283,9 +286,10 @@ export const UnifiedResourcePMGTableSection: Component<UnifiedResourcePMGTableSe<TableCell classList={{ hidden: !table.isServiceVisible('secondary') }}><UnifiedResourceSourceBadgeCell- unifiedBadges={unifiedSourceBadges()}+ unifiedBadges={platformBadges()}platformBadge={platformBadge()}sourceBadge={sourceBadge()}+ titleBadges={sourceBadges()}layoutMode={table.layoutMode()}/></TableCell>diff --git a/frontend-modern/src/components/Infrastructure/UnifiedResourceSourceBadgeCell.tsx b/frontend-modern/src/components/Infrastructure/UnifiedResourceSourceBadgeCell.tsxindex ecb765acf7..a853b70601 100644--- a/frontend-modern/src/components/Infrastructure/UnifiedResourceSourceBadgeCell.tsx+++ b/frontend-modern/src/components/Infrastructure/UnifiedResourceSourceBadgeCell.tsx@@ -7,6 +7,7 @@ interface UnifiedResourceSourceBadgeCellProps {unifiedBadges: ResourceBadge[];platformBadge: ResourceBadge | null;sourceBadge: ResourceBadge | null;+ titleBadges?: ResourceBadge[];layoutMode: UnifiedResourceTableLayoutMode;}@@ -21,24 +22,18 @@ const getSourceBadgeDisplayLabel = (layoutMode: UnifiedResourceTableLayoutMode,): string => (layoutMode === 'wide' ? label : compactSourceBadgeLabel(label));-const getCompactSourceDotClasses = (classes: string): string => {- const toneClasses = classes- .split(/\s+/)- .filter((className) => className.startsWith('bg-') || className.startsWith('dark:bg-'))- .join(' ');-- return toneClasses || 'bg-muted';-};-export const UnifiedResourceSourceBadgeCell: Component<UnifiedResourceSourceBadgeCellProps> = (props,) => {const badges = createMemo(() => {if (props.unifiedBadges.length > 0) return props.unifiedBadges;- return [props.platformBadge, props.sourceBadge].filter((badge): badge is ResourceBadge =>- Boolean(badge),+ return [props.platformBadge, props.platformBadge ? null : props.sourceBadge].filter(+ (badge): badge is ResourceBadge => Boolean(badge),);});+ const titleBadges = createMemo(() =>+ props.titleBadges && props.titleBadges.length > 0 ? props.titleBadges : badges(),+ );const visibleBadges = createMemo(() =>badges().slice(0, getVisibleSourceBadgeLimit(props.layoutMode)),);@@ -50,77 +45,39 @@ export const UnifiedResourceSourceBadgeCell: Component<UnifiedResourceSourceBadg: `+${hiddenBadgeCount()}`,);const title = createMemo(() =>- badges()+ titleBadges().map((badge) => badge.title ?? badge.label).join(', '),);- const shouldUseCompactSourceList = createMemo(- () => (props.layoutMode === 'mobile' || props.layoutMode === 'tablet') && badges().length > 0,- );return (<divclass="flex min-w-0 max-w-full items-center justify-center gap-1 overflow-hidden"- aria-label={title() ? `Sources: ${title()}` : undefined}+ aria-label={title() ? `Platform: ${title()}` : undefined}title={title()}>- <Show- when={shouldUseCompactSourceList()}- fallback={- <>- <For each={visibleBadges()}>- {(badge) => (- <span- class={`${badge.classes} min-w-0 max-w-full overflow-hidden px-1`}- title={badge.title}- >- <span class="min-w-0 truncate">- {getSourceBadgeDisplayLabel(badge.label, props.layoutMode)}- </span>- </span>- )}- </For>- <Show when={hiddenBadgeCount() > 0}>- <span- class="inline-flex min-w-0 max-w-full items-center overflow-hidden rounded bg-surface-alt px-1 py-0.5 text-[10px] font-medium text-muted"- aria-label={`Additional sources: ${hiddenBadges()- .map((badge) => badge.title ?? badge.label)- .join(', ')}`}- title={title()}- >- <span class="min-w-0 truncate">{hiddenBadgeLabel()}</span>- </span>- </Show>- </>- }- >- <For each={visibleBadges()}>- {(badge) => (- <span- class="inline-flex shrink-0 items-center gap-0.5 overflow-hidden rounded"- title={badge.title}- >- <span- class={`${getCompactSourceDotClasses(badge.classes)} h-1.5 w-1.5 shrink-0 rounded-full`}- aria-hidden="true"- />- <span class="whitespace-nowrap text-[10px] font-medium leading-none text-base-content">- {compactSourceBadgeLabel(badge.label)}- </span>- </span>- )}- </For>- <Show when={hiddenBadgeCount() > 0}>+ <For each={visibleBadges()}>+ {(badge) => (<span- class="shrink-0 whitespace-nowrap text-[10px] font-medium leading-none text-muted"- aria-label={`Additional sources: ${hiddenBadges()- .map((badge) => badge.title ?? badge.label)- .join(', ')}`}- title={title()}+ class={`${badge.classes} min-w-0 max-w-full overflow-hidden px-1`}+ title={badge.title}>- {hiddenBadgeLabel()}+ <span class="min-w-0 truncate">+ {getSourceBadgeDisplayLabel(badge.label, props.layoutMode)}+ </span></span>- </Show>+ )}+ </For>+ <Show when={hiddenBadgeCount() > 0}>+ <span+ class="inline-flex min-w-0 max-w-full items-center overflow-hidden rounded bg-surface-alt px-1 py-0.5 text-[10px] font-medium text-muted"+ aria-label={`Additional sources: ${hiddenBadges()+ .map((badge) => badge.title ?? badge.label)+ .join(', ')}`}+ title={title()}+ >+ <span class="min-w-0 truncate">{hiddenBadgeLabel()}</span>+ </span></Show></div>);diff --git a/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsxindex c8739fee61..4c4bb4fa26 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx@@ -210,7 +210,7 @@ describe('UnifiedResourceTable performance contract', () => {await waitFor(() => {expect(getByText('Net').closest('th')).not.toHaveClass('hidden');- expect(getByText('Src').closest('th')).not.toHaveClass('hidden');+ expect(getByText('Plat').closest('th')).not.toHaveClass('hidden');expect(getByText('I/O').closest('th')).toHaveClass('hidden');expect(getByText('Up').closest('th')).toHaveClass('hidden');});@@ -223,7 +223,7 @@ describe('UnifiedResourceTable performance contract', () => {await waitFor(() => {expect(getByText('Net').closest('th')).not.toHaveClass('hidden');expect(getByText('I/O').closest('th')).not.toHaveClass('hidden');- expect(getByText('Src').closest('th')).not.toHaveClass('hidden');+ expect(getByText('Plat').closest('th')).not.toHaveClass('hidden');expect(getByText('Up').closest('th')).toHaveClass('hidden');});@@ -232,7 +232,7 @@ describe('UnifiedResourceTable performance contract', () => {await waitFor(() => {expect(getByText('Net I/O').closest('th')).not.toHaveClass('hidden');expect(getByText('Disk I/O').closest('th')).not.toHaveClass('hidden');- expect(getByText('Src').closest('th')).not.toHaveClass('hidden');+ expect(getByText('Platform').closest('th')).not.toHaveClass('hidden');expect(getByText('Up').closest('th')).not.toHaveClass('hidden');expect(getByText('Temp').closest('th')).not.toHaveClass('hidden');});@@ -241,7 +241,7 @@ describe('UnifiedResourceTable performance contract', () => {await waitFor(() => {expect(getByText('Memory')).toBeInTheDocument();- expect(getByText('Source').closest('th')).not.toHaveClass('hidden');+ expect(getByText('Platform').closest('th')).not.toHaveClass('hidden');expect(getByText('Uptime').closest('th')).not.toHaveClass('hidden');});});@@ -258,7 +258,7 @@ describe('UnifiedResourceTable performance contract', () => {uptime: 86400,}),];- const { getByText, queryByText } = render(() => (+ const { container, getByText, queryByText } = render(() => (<UnifiedResourceTableresources={resources}expandedResourceId={null}@@ -276,13 +276,16 @@ describe('UnifiedResourceTable performance contract', () => {await waitFor(() => {expect(getByText('Store').closest('th')).not.toHaveClass('hidden');expect(getByText('Jobs').closest('th')).not.toHaveClass('hidden');- expect(getByText('Src').closest('th')).not.toHaveClass('hidden');+ expect(getByText('Plat').closest('th')).not.toHaveClass('hidden');expect(getByText('Up').closest('th')).toHaveClass('hidden');});expect(getByText('PBS')).toBeInTheDocument();- expect(getByText('Agent')).toBeInTheDocument();+ expect(queryByText('Agent')).toBeNull();expect(queryByText('PBS+Agent')).toBeNull();expect(queryByText('+1')).toBeNull();+ expect(+ container.querySelectorAll('[aria-label^="Platform:"] .h-1\\.5.w-1\\.5.rounded-full'),+ ).toHaveLength(0);emitResizeObserverWidth(660);diff --git a/frontend-modern/src/components/Infrastructure/__tests__/infrastructureSelectors.test.ts b/frontend-modern/src/components/Infrastructure/__tests__/infrastructureSelectors.test.tsindex ae1edf1fe4..615a80cc60 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/infrastructureSelectors.test.ts+++ b/frontend-modern/src/components/Infrastructure/__tests__/infrastructureSelectors.test.ts@@ -229,6 +229,33 @@ describe('infrastructureSelectors', () => {]);});+ it('sorts the visible platform column by infrastructure platform, not telemetry method', () => {+ const resources = [+ makeResource(1, {+ displayName: 'PVE hybrid',+ platformType: 'proxmox-pve',+ sourceType: 'hybrid',+ }),+ makeResource(2, {+ displayName: 'Agent only',+ platformType: 'agent',+ sourceType: 'agent',+ }),+ makeResource(3, {+ displayName: 'Kubernetes',+ platformType: 'kubernetes',+ sourceType: 'hybrid',+ }),+ ];++ const sorted = sortResources(resources, 'source', 'asc');+ expect(sorted.map((resource) => resource.id)).toEqual([+ 'resource-2',+ 'resource-3',+ 'resource-1',+ ]);+ });+it('sorts cpu with direction toggle and keeps default tie-breaker', () => {const resources = [makeResource(1, { displayName: 'Bravo', cpu: { current: 80 } }),diff --git a/frontend-modern/src/components/Infrastructure/__tests__/unifiedResourceTableStateModel.test.ts b/frontend-modern/src/components/Infrastructure/__tests__/unifiedResourceTableStateModel.test.tsindex 7463757c5b..42edcfc785 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/unifiedResourceTableStateModel.test.ts+++ b/frontend-modern/src/components/Infrastructure/__tests__/unifiedResourceTableStateModel.test.ts@@ -159,8 +159,11 @@ describe('unifiedResourceTableStateModel', () => {expect(wideColumns.ioColumn.width).toBe('12.5%');expect(wideColumns.serviceActionColumn.width).toBe('16%');expect(getUnifiedResourceTableHeaderLabels('wide').memory).toBe('Memory');+ expect(getUnifiedResourceTableHeaderLabels('wide').source).toBe('Platform');expect(getUnifiedResourceTableHeaderLabels('compact').memory).toBe('Mem');+ expect(getUnifiedResourceTableHeaderLabels('compact').source).toBe('Platform');expect(getUnifiedResourceTableHeaderLabels('tablet').network).toBe('Net');+ expect(getUnifiedResourceTableHeaderLabels('tablet').source).toBe('Plat');expect(getUnifiedResourceTableHeaderLabels('mobile').datastores).toBe('Store');expect(shouldShowUnifiedResourceHostTable(0, 0)).toBe(true);expect(shouldShowUnifiedResourceHostTable(0, 2)).toBe(false);diff --git a/frontend-modern/src/components/Infrastructure/infrastructureSelectors.ts b/frontend-modern/src/components/Infrastructure/infrastructureSelectors.tsindex 8f1e89ce40..be46b3e381 100644--- a/frontend-modern/src/components/Infrastructure/infrastructureSelectors.ts+++ b/frontend-modern/src/components/Infrastructure/infrastructureSelectors.ts@@ -1,6 +1,9 @@import type { Resource } from '@/types/resource';import { getCpuPercent, getDiskPercent, getMemoryPercent } from '@/types/resource';-import { getPreferredInfrastructureDisplayName, getPreferredResourceDisplayName } from '@/utils/resourceIdentity';+import {+ getPreferredInfrastructureDisplayName,+ getPreferredResourceDisplayName,+} from '@/utils/resourceIdentity';import { normalizeSourcePlatformKey, type KnownSourcePlatform } from '@/utils/sourcePlatforms';import { getCanonicalStatusLabel, STATUS_SORT_ORDER } from '@/utils/status';import type { SummarySeriesGroupScope } from '@/components/shared/summaryCardInteraction';@@ -86,7 +89,7 @@ const getSortValue = (resource: Resource, key: string): number | string | null =case 'diskio':return resource.diskIO ? resource.diskIO.readRate + resource.diskIO.writeRate : null;case 'source':- return `${resource.platformType ?? ''}-${resource.sourceType ?? ''}`;+ return resource.platformType ?? '';case 'temp':return resource.temperature ?? null;default:@@ -291,9 +294,7 @@ export const groupResources = (return entries;};-export const buildInfrastructureSummaryGroupId = (- cluster: string | null | undefined,-): string => {+export const buildInfrastructureSummaryGroupId = (cluster: string | null | undefined): string => {const normalizedCluster = (cluster ?? '').trim();return normalizedCluster? `cluster:${normalizedCluster}`@@ -315,7 +316,9 @@ export const buildInfrastructureSummaryGroupScope = (return {id: buildInfrastructureSummaryGroupId(group.cluster),- label: clusterLabel ? `${clusterLabel} (${resourceCountLabel})` : `Standalone (${resourceCountLabel})`,+ label: clusterLabel+ ? `${clusterLabel} (${resourceCountLabel})`+ : `Standalone (${resourceCountLabel})`,seriesIds,};};@@ -327,7 +330,9 @@ export const infrastructureHasVisibleSummaryGroupScope = (if (!scope) {return false;}- const visibleResourceIds = new Set(resources.map((resource) => resource.id?.trim() || '').filter(Boolean));+ const visibleResourceIds = new Set(+ resources.map((resource) => resource.id?.trim() || '').filter(Boolean),+ );return scope.seriesIds.some((seriesId) => visibleResourceIds.has(seriesId.trim()));};diff --git a/frontend-modern/src/components/Infrastructure/resourceBadges.ts b/frontend-modern/src/components/Infrastructure/resourceBadges.tsindex 7a6c703074..1176a025f2 100644--- a/frontend-modern/src/components/Infrastructure/resourceBadges.ts+++ b/frontend-modern/src/components/Infrastructure/resourceBadges.ts@@ -1,6 +1,7 @@export type { ResourceBadge } from '@/utils/resourceBadgePresentation';export {getContainerRuntimeBadge,+ getInfrastructurePlatformBadges,getPlatformBadge,getSourceBadge,getTypeBadge,diff --git a/frontend-modern/src/components/Infrastructure/unifiedResourceTableStateModel.ts b/frontend-modern/src/components/Infrastructure/unifiedResourceTableStateModel.tsindex b8b3e2caa7..4e13312de8 100644--- a/frontend-modern/src/components/Infrastructure/unifiedResourceTableStateModel.ts+++ b/frontend-modern/src/components/Infrastructure/unifiedResourceTableStateModel.ts@@ -287,7 +287,7 @@ export const getUnifiedResourceTableHeaderLabels = (disk: 'Disk',network: 'Net I/O',diskIo: 'Disk I/O',- source: 'Source',+ source: 'Platform',uptime: 'Uptime',temp: 'Temp',datastores: 'Datastores',@@ -309,7 +309,7 @@ export const getUnifiedResourceTableHeaderLabels = (disk: 'Disk',network: 'Net I/O',diskIo: 'Disk I/O',- source: 'Src',+ source: 'Platform',uptime: 'Up',temp: 'Temp',datastores: 'Stores',@@ -330,7 +330,7 @@ export const getUnifiedResourceTableHeaderLabels = (disk: 'Disk',network: 'Net',diskIo: 'I/O',- source: 'Src',+ source: 'Plat',uptime: 'Up',temp: 'C',datastores: 'Store',diff --git a/frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx b/frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsxindex 729f2c886f..319ac01950 100644--- a/frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx+++ b/frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx@@ -82,14 +82,10 @@ export function InfrastructurePageSurface() {const infrastructureLoadFailureState = () => getInfrastructureLoadFailureState();return (- <div- ref={setSummaryClearSurfaceRootRef}- data-testid="infrastructure-page"- class="space-y-4"- >+ <div ref={setSummaryClearSurfaceRootRef} data-testid="infrastructure-page" class="space-y-4"><PageHeadertitle="Infrastructure"- description="Inspect connected resources, filter by source and status, and drill into live health and capacity."+ description="Inspect connected resources, filter by platform and status, and drill into live health and capacity."/><Show@@ -176,188 +172,188 @@ export function InfrastructurePageSurface() {</Show><div class="space-y-3" data-testid="infrastructure-interaction-surface">- <Show when={!kioskMode()}>- <div data-summary-clear-ignore>- <Card padding="sm" class="mb-4">- <PageControls- search={- <SearchInput- value={searchQuery}- onChange={setSearchQuery}- placeholder="Search resources, IDs, IPs, or tags..."- class="w-full"- typeToSearch- history={{- storageKey: STORAGE_KEYS.RESOURCES_SEARCH_HISTORY,- emptyMessage: 'Recent infrastructure searches appear here.',+ <Show when={!kioskMode()}>+ <div data-summary-clear-ignore>+ <Card padding="sm" class="mb-4">+ <PageControls+ search={+ <SearchInput+ value={searchQuery}+ onChange={setSearchQuery}+ placeholder="Search resources, IDs, IPs, or tags..."+ class="w-full"+ typeToSearch+ history={{+ storageKey: STORAGE_KEYS.RESOURCES_SEARCH_HISTORY,+ emptyMessage: 'Recent infrastructure searches appear here.',+ }}+ />+ }+ mobileFilters={{+ enabled: isMobile(),+ onToggle: () => setFiltersOpen((o) => !o),+ count: activeFilterCount(),}}- />- }- mobileFilters={{- enabled: isMobile(),- onToggle: () => setFiltersOpen((o) => !o),- count: activeFilterCount(),- }}- resetAction={{- show: hasActiveFilters(),- onClick: clearFilters,- label: 'Clear',- class: 'ml-auto text-base-content',- }}- showFilters={!isMobile() || filtersOpen()}- toolbarClass="lg:flex-nowrap"- >- <LabeledFilterSelect- id="infra-source-filter"- label="Source"- value={selectedSource()}- onChange={(e) => setSelectedSource(e.currentTarget.value)}- selectClass="min-w-[8rem]"- >- <option value="">All</option>- <For each={sourceOptions()}>- {(source) => <option value={source.key}>{source.label}</option>}- </For>- </LabeledFilterSelect>+ resetAction={{+ show: hasActiveFilters(),+ onClick: clearFilters,+ label: 'Clear',+ class: 'ml-auto text-base-content',+ }}+ showFilters={!isMobile() || filtersOpen()}+ toolbarClass="lg:flex-nowrap"+ >+ <LabeledFilterSelect+ id="infra-source-filter"+ label="Platform"+ value={selectedSource()}+ onChange={(e) => setSelectedSource(e.currentTarget.value)}+ selectClass="min-w-[8rem]"+ >+ <option value="">All</option>+ <For each={sourceOptions()}>+ {(source) => <option value={source.key}>{source.label}</option>}+ </For>+ </LabeledFilterSelect>- <LabeledFilterSelect- id="infra-status-filter"- label="Status"- value={selectedStatus()}- onChange={(e) => setSelectedStatus(e.currentTarget.value)}- selectClass="min-w-[7rem]"- >- <option value="">All</option>- <For each={statusOptions()}>- {(status) => <option value={status.key}>{status.label}</option>}- </For>- </LabeledFilterSelect>+ <LabeledFilterSelect+ id="infra-status-filter"+ label="Status"+ value={selectedStatus()}+ onChange={(e) => setSelectedStatus(e.currentTarget.value)}+ selectClass="min-w-[7rem]"+ >+ <option value="">All</option>+ <For each={statusOptions()}>+ {(status) => <option value={status.key}>{status.label}</option>}+ </For>+ </LabeledFilterSelect>- <FilterSegmentedControl- value={groupingMode()}- onChange={(value) => setGroupingMode(value as GroupingMode)}- aria-label="Group By"- options={[- {- value: 'grouped',- title: 'Group by cluster',- label: (- <>- <svg- class="w-3 h-3"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- >- <path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2v11z" />- </svg>- Grouped- </>- ),- },- {- value: 'flat',- title: 'Flat list view',- label: (- <>- <svg- class="w-3 h-3"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- >- <line x1="8" y1="6" x2="21" y2="6" />- <line x1="8" y1="12" x2="21" y2="12" />- <line x1="8" y1="18" x2="21" y2="18" />- <line x1="3" y1="6" x2="3.01" y2="6" />- <line x1="3" y1="12" x2="3.01" y2="12" />- <line x1="3" y1="18" x2="3.01" y2="18" />- </svg>- List- </>- ),- },- ]}- />+ <FilterSegmentedControl+ value={groupingMode()}+ onChange={(value) => setGroupingMode(value as GroupingMode)}+ aria-label="Group By"+ options={[+ {+ value: 'grouped',+ title: 'Group by cluster',+ label: (+ <>+ <svg+ class="w-3 h-3"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ >+ <path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2v11z" />+ </svg>+ Cluster+ </>+ ),+ },+ {+ value: 'flat',+ title: 'Flat list view',+ label: (+ <>+ <svg+ class="w-3 h-3"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ >+ <line x1="8" y1="6" x2="21" y2="6" />+ <line x1="8" y1="12" x2="21" y2="12" />+ <line x1="8" y1="18" x2="21" y2="18" />+ <line x1="3" y1="6" x2="3.01" y2="6" />+ <line x1="3" y1="12" x2="3.01" y2="12" />+ <line x1="3" y1="18" x2="3.01" y2="18" />+ </svg>+ List+ </>+ ),+ },+ ]}+ />- <FilterSegmentedControl- class="hidden lg:inline-flex"- value={summaryCollapsed() ? 'hidden' : 'shown'}- onChange={() => setSummaryCollapsed((c) => !c)}- aria-label="Charts"- options={[- {- value: 'shown',- title: summaryCollapsed() ? 'Show charts' : 'Hide charts',- label: (- <>- <svg- class="w-3 h-3"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- >- <polyline points="22 12 18 12 15 21 9 3 6 12 2 12" />- </svg>- Charts- </>- ),- },- ]}- />- </PageControls>- </Card>- </div>- </Show>+ <FilterSegmentedControl+ class="hidden lg:inline-flex"+ value={summaryCollapsed() ? 'hidden' : 'shown'}+ onChange={() => setSummaryCollapsed((c) => !c)}+ aria-label="Charts"+ options={[+ {+ value: 'shown',+ title: summaryCollapsed() ? 'Show charts' : 'Hide charts',+ label: (+ <>+ <svg+ class="w-3 h-3"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ >+ <polyline points="22 12 18 12 15 21 9 3 6 12 2 12" />+ </svg>+ Charts+ </>+ ),+ },+ ]}+ />+ </PageControls>+ </Card>+ </div>+ </Show>- <Show- when={hasFilteredResources()}- fallback={- <Card class="p-6">- <EmptyState- icon={<ServerIcon class="w-6 h-6 text-slate-400" />}- title={infrastructureFilterEmptyState().title}- description={infrastructureFilterEmptyState().description}- actions={- <Show when={hasActiveFilters()}>- <button- type="button"- onClick={clearFilters}- class="inline-flex items-center gap-2 rounded-md border border-border bg-surface px-3 py-1.5 text-xs font-medium text-base-content shadow-sm hover:bg-slate-50"- >- {infrastructureFilterEmptyState().actionLabel}- </button>- </Show>- }+ <Show+ when={hasFilteredResources()}+ fallback={+ <Card class="p-6">+ <EmptyState+ icon={<ServerIcon class="w-6 h-6 text-slate-400" />}+ title={infrastructureFilterEmptyState().title}+ description={infrastructureFilterEmptyState().description}+ actions={+ <Show when={hasActiveFilters()}>+ <button+ type="button"+ onClick={clearFilters}+ class="inline-flex items-center gap-2 rounded-md border border-border bg-surface px-3 py-1.5 text-xs font-medium text-base-content shadow-sm hover:bg-slate-50"+ >+ {infrastructureFilterEmptyState().actionLabel}+ </button>+ </Show>+ }+ />+ </Card>+ }+ >+ <div class="space-y-3">+ <UnifiedResourceTable+ resources={filteredResources()}+ expandedResourceId={expandedResourceId()}+ clearPinnedSummaryScope={clearPinnedSummaryScope}+ activeSummaryGroupScope={activeSummaryResourceGroupScope()}+ hoveredSummaryGroupScope={hoveredSummaryResourceGroupScope()}+ focusedSummaryGroupScope={focusedSummaryResourceGroupScope()}+ focusedSummaryGroupId={focusedSummaryResourceGroupId()}+ hoveredResourceId={activeSummaryResourceId()}+ highlightedResourceId={highlightedResourceId()}+ revealedResourceId={revealedResourceId()}+ onExpandedResourceChange={setExpandedResourceId}+ onGroupFocusChange={setFocusedResourceGroupId}+ onGroupHoverChange={setHoveredResourceGroupScope}+ onHoverChange={setHoveredResourceId}+ groupingMode={groupingMode()}+ onDeployCluster={(id, name) => setDeployCluster({ id, name })}+ setTableRootRef={setSummaryTableRootRef}/>- </Card>- }- >- <div class="space-y-3">- <UnifiedResourceTable- resources={filteredResources()}- expandedResourceId={expandedResourceId()}- clearPinnedSummaryScope={clearPinnedSummaryScope}- activeSummaryGroupScope={activeSummaryResourceGroupScope()}- hoveredSummaryGroupScope={hoveredSummaryResourceGroupScope()}- focusedSummaryGroupScope={focusedSummaryResourceGroupScope()}- focusedSummaryGroupId={focusedSummaryResourceGroupId()}- hoveredResourceId={activeSummaryResourceId()}- highlightedResourceId={highlightedResourceId()}- revealedResourceId={revealedResourceId()}- onExpandedResourceChange={setExpandedResourceId}- onGroupFocusChange={setFocusedResourceGroupId}- onGroupHoverChange={setHoveredResourceGroupScope}- onHoverChange={setHoveredResourceId}- groupingMode={groupingMode()}- onDeployCluster={(id, name) => setDeployCluster({ id, name })}- setTableRootRef={setSummaryTableRootRef}- />- </div>- </Show>+ </div>+ </Show></div></div></Show>diff --git a/frontend-modern/src/pages/__tests__/Infrastructure.pbs-pmg.test.tsx b/frontend-modern/src/pages/__tests__/Infrastructure.pbs-pmg.test.tsxindex a8900c6044..4d27700f4b 100644--- a/frontend-modern/src/pages/__tests__/Infrastructure.pbs-pmg.test.tsx+++ b/frontend-modern/src/pages/__tests__/Infrastructure.pbs-pmg.test.tsx@@ -119,7 +119,7 @@ describe('Infrastructure PBS/PMG integration', () => {it('syncs source filter selection to query params', async () => {const { getByLabelText } = render(() => <Infrastructure />);- fireEvent.change(getByLabelText('Source'), { target: { value: 'proxmox-pmg' } });+ fireEvent.change(getByLabelText('Platform'), { target: { value: 'proxmox-pmg' } });await waitFor(() => {expect(navigateSpy).toHaveBeenCalled();diff --git a/frontend-modern/src/utils/__tests__/resourceBadgePresentation.test.ts b/frontend-modern/src/utils/__tests__/resourceBadgePresentation.test.tsindex c87415ede0..5c3cb536ff 100644--- a/frontend-modern/src/utils/__tests__/resourceBadgePresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/resourceBadgePresentation.test.ts@@ -1,6 +1,7 @@import { describe, expect, it } from 'vitest';import {dedupeResourceBadges,+ getInfrastructurePlatformBadges,getPlatformBadge,getSourceBadge,getTypeBadge,@@ -28,6 +29,19 @@ describe('resourceBadgePresentation', () => {expect(badges.map((badge) => badge.label)).toEqual(['TrueNAS', 'PVE']);});+ it('keeps agent as telemetry detail when another infrastructure platform is present', () => {+ expect(getUnifiedSourceBadges(['agent', 'proxmox']).map((badge) => badge.label)).toEqual([+ 'Agent',+ 'PVE',+ ]);+ expect(+ getInfrastructurePlatformBadges(['agent', 'proxmox']).map((badge) => badge.label),+ ).toEqual(['PVE']);+ expect(getInfrastructurePlatformBadges(['agent']).map((badge) => badge.label)).toEqual([+ 'Agent',+ ]);+ });+it('deduplicates repeated header badge labels', () => {const badges = dedupeResourceBadges([getTypeBadge('agent'),diff --git a/frontend-modern/src/utils/resourceBadgePresentation.ts b/frontend-modern/src/utils/resourceBadgePresentation.tsindex a43d4f2c4c..c9ab97e8f1 100644--- a/frontend-modern/src/utils/resourceBadgePresentation.ts+++ b/frontend-modern/src/utils/resourceBadgePresentation.ts@@ -18,6 +18,24 @@ const baseBadge =const typeClasses = 'bg-surface-alt text-base-content';+const normalizeUnifiedSourceKeys = (sources?: string[] | null): KnownSourcePlatform[] => {+ if (!sources || sources.length === 0) return [];+ const normalized = sources+ .map((source) => normalizeSourcePlatformKey(source))+ .filter((source): source is KnownSourcePlatform => Boolean(source));+ return Array.from(new Set(normalized));+};++const buildUnifiedSourceBadges = (sources: KnownSourcePlatform[]): ResourceBadge[] =>+ sources.map((source) => {+ const sharedBadge = getSourcePlatformBadge(source);+ return {+ label: sharedBadge?.label ?? source,+ classes: sharedBadge?.classes ?? `${baseBadge} ${typeClasses}`,+ title: sharedBadge?.title ?? source,+ };+ });+export function getPlatformBadge(platformType?: PlatformType): ResourceBadge | null {if (!platformType) return null;const sharedBadge = getSourcePlatformBadge(platformType);@@ -52,19 +70,17 @@ export function getTypeBadge(resourceType?: ResourceType | string): ResourceBadg}export function getUnifiedSourceBadges(sources?: string[] | null): ResourceBadge[] {- if (!sources || sources.length === 0) return [];- const normalized = sources- .map((source) => normalizeSourcePlatformKey(source))- .filter((source): source is KnownSourcePlatform => Boolean(source));- const unique = Array.from(new Set(normalized));- return unique.map((source) => {- const sharedBadge = getSourcePlatformBadge(source);- return {- label: sharedBadge?.label ?? source,- classes: sharedBadge?.classes ?? `${baseBadge} ${typeClasses}`,- title: sharedBadge?.title ?? source,- };- });+ return buildUnifiedSourceBadges(normalizeUnifiedSourceKeys(sources));+}++export function getInfrastructurePlatformBadges(sources?: string[] | null): ResourceBadge[] {+ const normalized = normalizeUnifiedSourceKeys(sources);+ if (normalized.length <= 1) {+ return buildUnifiedSourceBadges(normalized);+ }++ const platformSources = normalized.filter((source) => source !== 'agent');+ return buildUnifiedSourceBadges(platformSources.length > 0 ? platformSources : normalized);}export function dedupeResourceBadges(