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
Remove legacy infrastructure route
rcourtmane38f0b8e1f93
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex 9bcc1d8bab..5f5ae8a08c 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -992,9 +992,11 @@ profile and assignment columns, but embedded table framing must route throughplatform-management shell. The secondary agent handoff must land on`/settings/infrastructure?add=agent`.When the first host reports successfully, the install workflow must treat- that as a completion handoff with direct navigation into `/infrastructure`- and `/settings/infrastructure/operations` instead of leaving operators on a- generic lookup result. When the workspace starts from zero active connected+ that as a completion handoff with direct navigation into+ `/settings/infrastructure` and the first visible platform/runtime page+ instead of leaving operators on a generic lookup result or reviving the+ removed `/infrastructure` route. When the workspace starts from zero+ active connectedinfrastructure and install commands are available, the same lifecycle pathmust auto-watch the canonical `/api/state` projection for the firstreporting host rather than requiring a brand-new operator to know and typediff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 59b3892f53..b70b54a458 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -1405,9 +1405,10 @@ the canonical monitored-system blocked payload.boundary: when`frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx`receives a successful connected-agent lookup result, the canonical install- flow must expose direct navigation into `/infrastructure` and- `/settings/infrastructure/operations` rather than leaving the operator on a- transport-only status readout.+ flow must expose direct navigation into `/settings/infrastructure` and the+ first visible platform/runtime page rather than leaving the operator on a+ transport-only status readout or reviving the removed `/infrastructure`+ route.21. Keep the shared first-host detection contract explicit on `/api/state` asused by`frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx`:diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex c7ccfe9045..364bc60599 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -415,11 +415,12 @@ not a replacement status card, CTA band, or page-local nested card.labels operator-readable: count-led labels may aggregate repeated resources,but uncountable or category-like resource types such as storage must useresource wording instead of naive pluralization.- Infrastructure filter chrome under `frontend-modern/src/features/infrastructure/`- must use mode-oriented labels for table presentation controls: grouped table- mode is `Grouped`, not `Cluster`, because cluster remains a- platform/resource concept for Proxmox, Kubernetes, and similar inventory- details.+ Infrastructure table chrome on active platform/runtime pages must use+ mode-oriented labels for table presentation controls: grouped table mode is+ `Grouped`, not `Cluster`, because cluster remains a platform/resource+ concept for Proxmox, Kubernetes, and similar inventory details. The retired+ top-level infrastructure feature directory must not be recreated for table+ chrome ownership.Settings shell search copy belongs to`frontend-modern/src/utils/settingsShellPresentation.ts`. Shared settingssearch must not display non-actionable shortcut chips such as `Any key`;@@ -460,7 +461,9 @@ not a replacement status card, CTA band, or page-local nested card.frontend primitives must not register `/cloud` or `/cloud/signup` as publicproduct-runtime routes, because Cloud signup belongs to Pulse Account andthe Cloud control plane rather than a local in-product trial page.- Compatibility top-level operator routes such as `/infrastructure`,+ The former top-level `/infrastructure` operator route never shipped as a+ stable v6 surface and must remain unregistered instead of being kept as a+ compatibility redirect. Other retired top-level operator routes such as`/workloads`, `/storage`, `/recovery`, and `/ceph` may remain registered in`frontend-modern/src/App.tsx` only as thin routes into their owning productsurfaces or canonical redirect targets. They must not become preloaded@@ -798,16 +801,16 @@ not a replacement status card, CTA band, or page-local nested card.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 keep the operator-facing resource filter on `Platform`, not `Source`,- while the infrastructure table labels its primary identity column as- `System`. Lower-level unified-resource contracts preserve merged-source- detail for tooltips, accessibility metadata, and routing. Collection methods- such as Pulse Agent and runtime capabilities such as Docker may appear as- option or detail labels, but they must not become the primary top-level- system wording when a provider/API platform or reported host OS/appliance- identity better explains what the operator is looking at.+ Active infrastructure settings and platform/runtime surfaces inherit that+ same source/platform vocabulary. Settings may label configured ingestion+ entries and endpoint probes as `Source`, while resource tables label their+ primary identity column as `System`. Lower-level unified-resource contracts+ preserve merged-source detail for tooltips, accessibility metadata, and+ routing. Collection methods such as Pulse Agent and runtime capabilities+ such as Docker may appear as option or detail labels, but they must not+ become the primary top-level system wording when a provider/API platform or+ reported host OS/appliance identity better explains what the operator is+ looking at.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.Those reusable storage presenters must also keep primary issue copy separate@@ -1311,11 +1314,11 @@ not a replacement status card, CTA band, or page-local nested card.or proposed fix, must pass `autonomousMode:false` as a request-localoverride so the drawer shows approval-required posture without mutating thepersistent Assistant control setting.-11. Keep shared filter primitives coherent with route-owned option hydration.- Feature shells such as `frontend-modern/src/features/infrastructure/`- must keep a route-owned canonical option visible in shared selects like- `LabeledFilterSelect` even when current results do not contain that- option, so provider-scoped handoffs do not flash back to `All`.+11. Keep shared filter primitives coherent with source-owned option hydration.+ Active platform/runtime pages and Settings infrastructure surfaces must keep+ canonical options visible in shared filter controls even when current+ results do not contain that option, so provider- or endpoint-scoped+ handoffs do not flash back to generic host-only language.12. Keep the first welcome screen in`frontend-modern/src/components/SetupWizard/steps/WelcomeStep.tsx`explicit about operator context. The shell must explain that the bootstrap@@ -1494,13 +1497,12 @@ not a replacement status card, CTA band, or page-local nested card.`frontend-modern/src/components/shared/useUpgradeNavigation.ts` instead ofguessing from labels, hardcoding `target="_blank"`, or calling`window.open(...)` from each feature surface.-35. Keep same-shell infrastructure route transitions on retained shared state.- `frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx`- may show its full-page loading shell only before the first compatible- resource snapshot exists; once a fresh canonical snapshot is already- present in the shared app shell, top-level tab switches must reuse that- state boundary instead of flashing a transient infrastructure page- takeover between tabs.+35. Keep same-shell platform/runtime route transitions on retained shared state.+ Active infrastructure consumers may show full-page loading only before the+ first compatible resource snapshot exists; once a fresh canonical snapshot+ is already present in the shared app shell, top-level platform/runtime tab+ switches must reuse that state boundary instead of flashing a transient+ page takeover between tabs.36. Keep self-hosted paid-service prompts opt-in at the shared shell layer.`settingsNavCatalog.ts`, `settingsNavVisibility.ts`, shared upgrade linkprimitives, trial banners, monitored-system warning banners, history-lock@@ -2023,21 +2025,15 @@ handoff remains limited to explicit Plans, hosted, activation, recovery, orsupport surfaces; feature gates may show neutral "View plans" links through`frontend-modern/src/utils/upgradePresentation.ts` only where presentationpolicy allows commercial discovery.-Top-level route files are now also expected to stay thin when a feature owns-the real product surface. `frontend-modern/src/pages/Infrastructure.tsx` now-acts only as the route boundary, while-`frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx`-owns the shell, `frontend-modern/src/features/infrastructure/useInfrastructurePageState.ts`-owns page-control composition, persistence, and route composition,-`frontend-modern/src/features/infrastructure/infrastructurePageModel.ts`-owns filter/search/catalog derivation, and-`frontend-modern/src/features/infrastructure/useInfrastructurePageRouteState.ts`-owns infrastructure route/deep-link synchronization. Future feature-surfaces under `frontend-modern/src/features/` should follow that same pattern-instead of letting page files accumulate route sync, filter, and modal-orchestration inline.-The infrastructure feature state owner may opt into websocket-first unified-resource hydration only when it also schedules canonical REST revalidation+Top-level route files are now expected to stay thin when a feature owns the+real product surface, but the former `/infrastructure` surface is not one of+those compatibility cases. It never shipped as a stable v6 route, so+`frontend-modern/src/App.tsx` must not register it and future feature surfaces+must extend Settings infrastructure, platform/runtime pages, or shared+Infrastructure components instead of recreating+`frontend-modern/src/features/infrastructure/` as a hidden page shell.+Infrastructure resource consumers may opt into websocket-first unified+resource hydration only when they also schedule canonical REST revalidationafter the first-paint settle window; shared route composition must not re-routethe table through a blocking resource fetch just to confirm infrastructure thatthe realtime store has already reported. Authenticated cold starts must render@@ -3421,7 +3417,6 @@ path inside Infrastructure.`frontend-modern/src/components/Settings/settingsHeaderMeta.ts`,`frontend-modern/src/components/Settings/settingsNavigationModel.ts`,`frontend-modern/src/utils/workloadEmptyStatePresentation.ts`,-`frontend-modern/src/utils/infrastructureEmptyStatePresentation.ts`, andadjacent setup guidance must use `Add infrastructure` as the operator-facingfirst-run label for API-backed onboarding, resolve that label to the shared`Infrastructure` destination and its inline `ConnectionEditor` add flow, and@@ -3447,13 +3442,14 @@ summary vocabulary for connection health and contribution counts. While VMwareremains admitted rather than supported, shared settings primitives must renderits source-picker card with the manifest-derived preview badge and keepsupported-source empty-state copy from listing VMware as available now.-That same shared filter-presentation boundary also owns infrastructure-route-filter continuity. `frontend-modern/src/features/infrastructure/`-must keep a route-owned canonical source option such as `truenas` visible in-the shared `LabeledFilterSelect` even when current unified-resource results do-not contain that source, so platform handoffs from settings and other-surfaces do not flash back to `All` while the operator is still in a-provider-scoped investigation flow.+That same shared filter-presentation boundary also owns infrastructure source+continuity on active surfaces. Settings infrastructure and platform/runtime+pages must keep known canonical source options such as `truenas` and+`availability` visible when configuration or route context establishes them,+even when current unified-resource results do not contain that source, so+platform handoffs from settings and other surfaces do not flash back to+generic host-only language while the operator is still in a provider- or+endpoint-scoped investigation flow.That same shared feature-presentation boundary also owns storage disk-detailfallback messaging in `frontend-modern/src/features/storageBackups/`. Shareddetail presenters must describe the actual capability or identity gap thatdiff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.jsonindex e6887a8843..d504a021c0 100644--- a/docs/release-control/v6/internal/subsystems/registry.json+++ b/docs/release-control/v6/internal/subsystems/registry.json@@ -5070,10 +5070,6 @@"frontend-modern/src/features/docker/DockerSwarmNodesTable.tsx","frontend-modern/src/features/docker/DockerTasksTable.tsx","frontend-modern/src/features/docker/DockerVolumesTable.tsx",- "frontend-modern/src/features/infrastructure/infrastructurePageModel.ts",- "frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx",- "frontend-modern/src/features/infrastructure/useInfrastructurePageRouteState.ts",- "frontend-modern/src/features/infrastructure/useInfrastructurePageState.ts","frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx","frontend-modern/src/features/kubernetes/KubernetesClustersTable.tsx","frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx",@@ -5219,10 +5215,6 @@"frontend-modern/src/features/docker/DockerSwarmNodesTable.tsx","frontend-modern/src/features/docker/DockerTasksTable.tsx","frontend-modern/src/features/docker/DockerVolumesTable.tsx",- "frontend-modern/src/features/infrastructure/infrastructurePageModel.ts",- "frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx",- "frontend-modern/src/features/infrastructure/useInfrastructurePageRouteState.ts",- "frontend-modern/src/features/infrastructure/useInfrastructurePageState.ts","frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx","frontend-modern/src/features/kubernetes/KubernetesClustersTable.tsx","frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx",@@ -5263,8 +5255,6 @@"frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx","frontend-modern/src/features/docker/__tests__/dockerPageModel.test.ts","frontend-modern/src/features/docker/__tests__/DockerPageSurface.test.tsx",- "frontend-modern/src/features/infrastructure/__tests__/infrastructurePageModel.test.ts",- "frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.guardrails.test.ts","frontend-modern/src/features/kubernetes/__tests__/KubernetesAutoscalingTable.test.tsx","frontend-modern/src/features/kubernetes/__tests__/KubernetesClustersTable.test.tsx","frontend-modern/src/features/kubernetes/__tests__/KubernetesConfigTable.test.tsx",diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex c1b59733e1..559c6c030a 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -94,57 +94,53 @@ cross-source deduplication.70. `frontend-modern/src/components/Infrastructure/useUnifiedResourceTableViewportSync.ts`71. `frontend-modern/src/components/Discovery/DiscoveryTab.tsx`72. `frontend-modern/src/components/Discovery/useDiscoveryTabState.ts`-73. `frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx`-74. `frontend-modern/src/features/infrastructure/useInfrastructurePageRouteState.ts`-75. `frontend-modern/src/features/infrastructure/useInfrastructurePageState.ts`-76. `frontend-modern/src/features/infrastructure/infrastructurePageModel.ts`-77. `frontend-modern/src/components/Infrastructure/InfrastructureSummary.tsx`-78. `frontend-modern/src/components/Infrastructure/useInfrastructureSummaryState.ts`-79. `frontend-modern/src/components/Infrastructure/infrastructureSummaryModel.ts`-80. `frontend-modern/src/utils/agentResources.ts`-81. `frontend-modern/src/utils/canonicalResourceTypes.ts`-82. `frontend-modern/src/utils/resourceBadgePresentation.ts`-83. `frontend-modern/src/utils/resourceChangePresentation.ts`-84. `frontend-modern/src/utils/actionAuditPresentation.ts`-85. `frontend-modern/src/utils/resourceCorrelationPresentation.ts`-86. `frontend-modern/src/utils/resourcePlatformData.ts`-87. `frontend-modern/src/utils/resourcePolicyPresentation.ts`-88. `frontend-modern/src/utils/resourceStateAdapters.ts`-89. `frontend-modern/src/utils/resourceTypeCompat.ts`-90. `frontend-modern/src/utils/resourceTypePresentation.ts`-91. `frontend-modern/src/utils/serviceHealthPresentation.ts`-92. `frontend-modern/src/utils/sourceTypePresentation.ts`-93. `frontend-modern/src/utils/workloadTypePresentation.ts`-94. `frontend-modern/src/components/PMG/ServiceHealthBadge.tsx`-95. `frontend-modern/src/utils/resourceIdentity.ts`-96. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerIdentityModel.ts`-97. `frontend-modern/src/hooks/useUnifiedResources.ts`-98. `frontend-modern/src/types/resource.ts`-99. `frontend-modern/src/utils/sourcePlatforms.ts`-100. `frontend-modern/src/utils/platformSupportManifest.generated.ts`-101. `internal/unifiedresources/kubernetes_metric_ids.go`-102. `internal/unifiedresources/policy_posture.go`-103. `internal/unifiedresources/clone.go`-104. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerPresentation.ts`-105. `internal/unifiedresources/storage_consumers.go`-106. `frontend-modern/src/features/agents/agentsPageModel.ts`-107. `frontend-modern/src/features/agents/AgentsPageSurface.tsx`-108. `frontend-modern/src/features/agents/AgentsMachinesTable.tsx`-109. `internal/platformsupport/manifest_generated.go`-110. `frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx`-111. `frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx`-112. `frontend-modern/src/features/kubernetes/kubernetesPageModel.ts`-113. `frontend-modern/src/features/kubernetes/KubernetesClustersTable.tsx`-114. `frontend-modern/src/features/kubernetes/KubernetesDeploymentsTable.tsx`-115. `frontend-modern/src/features/kubernetes/KubernetesNodesTable.tsx`-116. `frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx`-117. `frontend-modern/src/features/kubernetes/KubernetesStorageTable.tsx`-118. `frontend-modern/src/features/kubernetes/KubernetesNetworkingTable.tsx`-119. `frontend-modern/src/features/kubernetes/KubernetesServicesTable.tsx`-120. `frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx`-121. `frontend-modern/src/features/kubernetes/KubernetesPolicyTable.tsx`-122. `frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx`-123. `frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx`+73. `frontend-modern/src/components/Infrastructure/InfrastructureSummary.tsx`+74. `frontend-modern/src/components/Infrastructure/useInfrastructureSummaryState.ts`+75. `frontend-modern/src/components/Infrastructure/infrastructureSummaryModel.ts`+76. `frontend-modern/src/utils/agentResources.ts`+77. `frontend-modern/src/utils/canonicalResourceTypes.ts`+78. `frontend-modern/src/utils/resourceBadgePresentation.ts`+79. `frontend-modern/src/utils/resourceChangePresentation.ts`+80. `frontend-modern/src/utils/actionAuditPresentation.ts`+81. `frontend-modern/src/utils/resourceCorrelationPresentation.ts`+82. `frontend-modern/src/utils/resourcePlatformData.ts`+83. `frontend-modern/src/utils/resourcePolicyPresentation.ts`+84. `frontend-modern/src/utils/resourceStateAdapters.ts`+85. `frontend-modern/src/utils/resourceTypeCompat.ts`+86. `frontend-modern/src/utils/resourceTypePresentation.ts`+87. `frontend-modern/src/utils/serviceHealthPresentation.ts`+88. `frontend-modern/src/utils/sourceTypePresentation.ts`+89. `frontend-modern/src/utils/workloadTypePresentation.ts`+90. `frontend-modern/src/components/PMG/ServiceHealthBadge.tsx`+91. `frontend-modern/src/utils/resourceIdentity.ts`+92. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerIdentityModel.ts`+93. `frontend-modern/src/hooks/useUnifiedResources.ts`+94. `frontend-modern/src/types/resource.ts`+95. `frontend-modern/src/utils/sourcePlatforms.ts`+96. `frontend-modern/src/utils/platformSupportManifest.generated.ts`+97. `internal/unifiedresources/kubernetes_metric_ids.go`+98. `internal/unifiedresources/policy_posture.go`+99. `internal/unifiedresources/clone.go`+100. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerPresentation.ts`+101. `internal/unifiedresources/storage_consumers.go`+102. `frontend-modern/src/features/agents/agentsPageModel.ts`+103. `frontend-modern/src/features/agents/AgentsPageSurface.tsx`+104. `frontend-modern/src/features/agents/AgentsMachinesTable.tsx`+105. `internal/platformsupport/manifest_generated.go`+106. `frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx`+107. `frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx`+108. `frontend-modern/src/features/kubernetes/kubernetesPageModel.ts`+109. `frontend-modern/src/features/kubernetes/KubernetesClustersTable.tsx`+110. `frontend-modern/src/features/kubernetes/KubernetesDeploymentsTable.tsx`+111. `frontend-modern/src/features/kubernetes/KubernetesNodesTable.tsx`+112. `frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx`+113. `frontend-modern/src/features/kubernetes/KubernetesStorageTable.tsx`+114. `frontend-modern/src/features/kubernetes/KubernetesNetworkingTable.tsx`+115. `frontend-modern/src/features/kubernetes/KubernetesServicesTable.tsx`+116. `frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx`+117. `frontend-modern/src/features/kubernetes/KubernetesPolicyTable.tsx`+118. `frontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsx`+119. `frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx`## Shared Boundaries@@ -725,18 +721,20 @@ AI-only summary payloads, or page-local heuristics.3. Route runtime changes through the explicit unified-resource proof policies in `registry.json`; default fallback proof routing is not allowed4. Tighten banned-path tests when a compatibility bridge is removed5. Keep the infrastructure landing empty state on canonical first-run routing:- when inventory is empty, `frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx`- and `frontend-modern/src/utils/infrastructureEmptyStatePresentation.ts`+ when inventory is empty, `frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx`+ and `frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx`must send operators directly to `/settings/infrastructure?add=pick`, namesource strategy selection as the default next step, and present platform- API inventory plus Pulse Agent telemetry as peer source options instead of- regressing to generic settings-root CTAs, an agent-only install jump, the- retired `Platform connections` split, or provider-specific one-off routes.-6. Keep infrastructure route-backed source filters on canonical unified-resource- truth. `frontend-modern/src/features/infrastructure/` must preserve a- route-owned source such as `truenas` in the filter option set even when the- current unified-resource snapshot does not contain that source, so- cross-surface handoffs do not silently fall back to `All`.+ API inventory, endpoint probes, and Pulse Agent telemetry as peer source+ options instead of regressing to generic settings-root CTAs, an agent-only+ install jump, the retired `Platform connections` split, provider-specific+ one-off routes, or the removed top-level `/infrastructure` page.+6. Keep infrastructure source visibility on canonical unified-resource truth.+ Settings infrastructure source filters and summaries must preserve known+ sources such as `truenas` and `availability` through the shared source+ normalization boundary even when the current unified-resource snapshot has+ no matching rows, so cross-surface context does not silently fall back to+ generic host-only wording during hydration or empty-filter states.7. Keep first-class platform classification on`docs/release-control/v6/internal/PLATFORM_SUPPORT_MODEL.md`. New platformwork must declare its primary ingestion mode and canonical resource@@ -782,21 +780,18 @@ AI-only summary payloads, or page-local heuristics.the row may highlight in place through the shared active-resource id; if itis off-screen, the page must offer an explicit `Jump to row` affordancerather than auto-scrolling or collapsing the table on hover.-12a. Keep infrastructure summary visibility as a page-display preference, not a- unified-resource filter. `frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx`- may hide or restore the summary section through the shared- `ChartVisibilityToggleButton`, but that control must not mutate resource- identity, table membership, route-backed focus, or summary-hover scope.- Infrastructure may also opt into the shared saved-views primitive- (`savedViewsKey="infrastructure"`) so operators can save and recall named- filter combos through `SavedViewsMenu`; saved views are URL query- snapshots and must not introduce a parallel resource-identity path.+12a. Keep infrastructure summary visibility as display preference, not a+ unified-resource filter. Platform/runtime pages and shared infrastructure+ summary consumers may hide or restore chart sections through shared+ presentation controls, but those controls must not mutate resource+ identity, table membership, source scope, or summary-hover state. The+ retired top-level `/infrastructure` page and its saved-view/route-state+ machinery must not be reintroduced for this purpose.13. Keep infrastructure cluster headers as canonical summary scope. Groupedheaders in `frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx`must publish cluster scope from the same `ResourceGroup` / unified-resourceids that power the table rows, and- `frontend-modern/src/features/infrastructure/useInfrastructurePageState.ts`- plus `frontend-modern/src/components/Infrastructure/useInfrastructureSummaryState.ts`+ `frontend-modern/src/components/Infrastructure/useInfrastructureSummaryState.ts`must consume that scope through the shared page/group/entity interactioncontract rather than inventing infrastructure-local summary filters orroute-backed cluster hover state. Host and service infrastructure table@@ -874,13 +869,13 @@ AI-only summary payloads, or page-local heuristics.`/api/charts/storage-summary` contract instead of rebuilding page-localper-resource storage history fetches, storage-type aliases, or fullstorage-page `/api/storage-charts` fetches.-19. Keep infrastructure page-header framing presentation-only on the page- shell. `frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx`- may render the shared `PageHeader`, but canonical source/status/search- state, summary scope, and row selection must remain on- `frontend-modern/src/features/infrastructure/useInfrastructurePageState.ts`- and the unified-resource selectors it composes. The header must not become- a second state owner, scope banner, or provider-local filter surface.+19. Keep infrastructure framing presentation-only on active product surfaces.+ Platform/runtime pages, shared infrastructure tables, and Settings+ infrastructure panels may render page or section headers, but canonical+ source/status/search state, summary scope, and row selection must remain on+ their owning shared selectors and settings state. The removed top-level+ `/infrastructure` page must not return as a second state owner, scope+ banner, or provider-local filter surface.20. Keep audit-log persistence credential-safe.`internal/unifiedresources/audit_redaction.go` provides`RedactAuditText` and `RedactAuditRecord`, and every@@ -2737,13 +2732,11 @@ status facets. The selector layer may accept arbitrary user-visible filterstrings, but it must not widen the canonical unified-resource source/statuscontracts that feed the infrastructure table and workload links.-The same source-filter boundary now also applies to infrastructure filter UI-options: `frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx`-and `frontend-modern/src/features/infrastructure/useInfrastructurePageState.ts`-may render friendly string keys, but membership checks against available-sources must normalize through the shared-`frontend-modern/src/utils/sourcePlatforms.ts` helper before consulting-`KnownSourcePlatform` sets.+The same source-filter boundary now also applies to infrastructure source UI+options in Settings and platform/runtime pages. Those surfaces may render+friendly string keys, but membership checks against available sources must+normalize through the shared `frontend-modern/src/utils/sourcePlatforms.ts`+helper before consulting `KnownSourcePlatform` sets.That same shared source-platform boundary now also owns TrueNAS-backed hybridresources. When a canonical resource carries both `agent` and `truenas`sources, `frontend-modern/src/utils/sourcePlatforms.ts` must still resolve the@@ -2773,19 +2766,13 @@ implementation or action surfaces that are explicitly scoped to Docker-nativebehavior. Agent telemetry is collection-method detail when a stronger platformor host identity is present, not a peer platform label that should crowd thetable or drive the primary system sort.-The route file `frontend-modern/src/pages/Infrastructure.tsx` is now only the-navigation boundary for that surface; canonical infrastructure filter, search,-deep-link, and expansion state now live behind the dedicated infrastructure-feature owner instead of accumulating in the page shell itself.-That infrastructure feature now also follows an explicit shell/composition/route-split: `frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx`-owns the render shell, `frontend-modern/src/features/infrastructure/useInfrastructurePageState.ts`-owns page controls, persistence, and route composition,-`frontend-modern/src/features/infrastructure/infrastructurePageModel.ts`-owns filter/search/catalog derivation, and-`frontend-modern/src/features/infrastructure/useInfrastructurePageRouteState.ts`-owns URL-sync, deep-link expansion, highlight continuity, and managed-infrastructure-route navigation.+The former top-level infrastructure feature route never shipped as a stable v6+surface and is intentionally removed rather than preserved as a compatibility+redirect. Canonical infrastructure management lives under+`/settings/infrastructure`; day-to-day resource inspection lives on the+platform/runtime pages and shared resource components. Future infrastructure+work must extend those owners rather than recreating+`frontend-modern/src/features/infrastructure/` or a `/infrastructure` route.Shared unified-resource consumers now also normalize org scope through`frontend-modern/src/utils/orgScope.ts` before building cache keys ormulti-tenant resource fetch state, so the canonical resource hooks do not@@ -2910,12 +2897,13 @@ presentation. `frontend-modern/src/components/Infrastructure/`placement, signal, and snapshot context through the canonical resource drawerand debug/source sections rather than introducing a VMware-only detail route,drawer tab, or provider-local investigation shell.-That same infrastructure consumer boundary also owns route-backed source-selection continuity. `frontend-modern/src/features/infrastructure/`-must keep a route-owned canonical source such as `truenas` present in the-source filter option set even when the currently loaded unified-resource-snapshot does not contain that source yet, so cross-surface handoffs from-settings, alerts, or findings do not collapse back to `All` during hydration+That same infrastructure consumer boundary also owns source selection+continuity. Settings infrastructure panels and platform/runtime pages must+keep canonical sources such as `truenas` and `availability` present in their+source option sets when the source is known from configuration or route+context, even when the currently loaded unified-resource snapshot does not+contain matching rows yet, so cross-surface handoffs from settings, alerts, or+findings do not collapse back to generic host-only language during hydrationor empty-filter states.That same frontend-owned compatibility boundary must remain intentionallynarrow. Shared resource adapters may admit explicit aliases such as `host`,diff --git a/frontend-modern/src/App.tsx b/frontend-modern/src/App.tsxindex 1e89eb9798..ee1c9eabcc 100644--- a/frontend-modern/src/App.tsx+++ b/frontend-modern/src/App.tsx@@ -41,7 +41,6 @@ import { useKioskMode } from '@/hooks/useKioskMode';import {AGENTS_PATH,DOCKER_PATH,- INFRASTRUCTURE_PATH,KUBERNETES_PATH,PATROL_PATH,PROXMOX_PATH,@@ -83,9 +82,6 @@ const AlertsPage = lazy(() =>import('./pages/Alerts').then((module) => ({ default: module.Alerts })),);const SettingsPage = lazy(() => import('./components/Settings/Settings'));-const InfrastructurePage = lazy(- () => import('./features/infrastructure/InfrastructurePageSurface'),-);const WorkloadsPage = lazy(() =>import('./components/Workloads/WorkloadsSurface').then((module) => ({default: () => <module.WorkloadsSurface vms={[]} containers={[]} nodes={[]} useWorkloads />,@@ -555,8 +551,6 @@ function App() {<Route path="/preview/setup-complete" component={SetupCompletionPreviewPage} /><Route path="/login" component={RuntimeHomePage} /><Route path="/" component={RuntimeHomePage} />- <Route path={INFRASTRUCTURE_PATH} component={InfrastructurePage} />- <Route path={`${INFRASTRUCTURE_PATH}/*`} component={InfrastructurePage} /><Route path={WORKLOADS_PATH} component={WorkloadsPage} /><Route path={`${WORKLOADS_PATH}/*`} component={WorkloadsPage} /><Route path={STORAGE_PATH} component={StoragePage} />diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.tsindex a7b89a38d7..3ca4660688 100644--- a/frontend-modern/src/__tests__/App.architecture.test.ts+++ b/frontend-modern/src/__tests__/App.architecture.test.ts@@ -38,21 +38,19 @@ describe('App architecture', () => {expect(routePreloadSource).toContain('PATROL_PATH,');// Legacy top-level routes (Infrastructure/Workloads/Storage/Recovery/Ceph)// were retired as primary nav tabs when navigation moved to platform-first.- // Keep them out of shell preloading, but leave lightweight route- // compatibility wired through the current component-owned surfaces so- // deep links and managed-dev browser proofs do not land on Not Found.+ // Infrastructure never shipped as a stable top-level route, so it must not+ // remain wired as a hidden compatibility surface.expect(routePreloadSource).not.toContain('ROOT_INFRASTRUCTURE_PATH');expect(routePreloadSource).not.toContain('ROOT_WORKLOADS_PATH');expect(routePreloadSource).not.toContain('RECOVERY_ROUTE_PATH');expect(routePreloadSource).not.toContain('STORAGE_PATH');- expect(appSource).toContain('const InfrastructurePage = lazy(');- expect(appSource).toContain("import('./features/infrastructure/InfrastructurePageSurface')");+ expect(appSource).not.toContain('const InfrastructurePage = lazy(');+ expect(appSource).not.toContain("import('./features/infrastructure/InfrastructurePageSurface')");+ expect(appSource).not.toContain('component={InfrastructurePage}');+ expect(appSource).not.toContain('INFRASTRUCTURE_PATH');expect(appSource).toContain("import('./components/Workloads/WorkloadsSurface')");expect(appSource).toContain("import('./components/Storage/Storage')");expect(appSource).toContain("import('./components/Recovery/Recovery')");- expect(appSource).toContain(- '<Route path={INFRASTRUCTURE_PATH} component={InfrastructurePage} />',- );expect(appSource).toContain('<Route path={WORKLOADS_PATH} component={WorkloadsPage} />');expect(appSource).toContain('<Route path={STORAGE_PATH} component={StoragePage} />');expect(appSource).toContain('<Route path={RECOVERY_PATH} component={RecoveryPage} />');diff --git a/frontend-modern/src/__tests__/AppLayout.test.tsx b/frontend-modern/src/__tests__/AppLayout.test.tsxindex 997c4037f5..6fa37847d0 100644--- a/frontend-modern/src/__tests__/AppLayout.test.tsx+++ b/frontend-modern/src/__tests__/AppLayout.test.tsx@@ -10,7 +10,7 @@ HTMLElement.prototype.scrollIntoView = vi.fn();describe('AppLayout navigation icons', () => {beforeEach(() => {- window.history.replaceState({}, '', '/infrastructure');+ window.history.replaceState({}, '', '/settings/infrastructure');aiChatStore.close();aiChatStore.setEnabled(true);});@@ -39,7 +39,7 @@ describe('AppLayout navigation icons', () => {render(() => (<Router><Route- path="/infrastructure"+ path="/settings/infrastructure"component={() => (<AppLayoutconnectionStatus={() => ({diff --git a/frontend-modern/src/components/shared/PageControls.guardrails.test.ts b/frontend-modern/src/components/shared/PageControls.guardrails.test.tsindex e0e9b2e790..b7e7cf684b 100644--- a/frontend-modern/src/components/shared/PageControls.guardrails.test.ts+++ b/frontend-modern/src/components/shared/PageControls.guardrails.test.ts@@ -5,7 +5,6 @@ import workloadsFilterSource from '@/components/Workloads/WorkloadsFilter.tsx?raimport recoveryPageSource from '@/components/Recovery/Recovery.tsx?raw';import recoveryHistorySectionSource from '@/components/Recovery/RecoveryHistorySection.tsx?raw';import recoveryProtectedInventorySectionSource from '@/components/Recovery/RecoveryProtectedInventorySection.tsx?raw';-import infrastructurePageSurfaceSource from '@/features/infrastructure/InfrastructurePageSurface.tsx?raw';import subtabsSource from '@/components/shared/Subtabs.tsx?raw';const tsxSources = import.meta.glob('../../**/*.tsx', {@@ -58,9 +57,6 @@ describe('page controls guardrails', () => {// RecoveryHistorySection migrated to FilterBar; defensive guards remain.expect(recoveryHistorySectionSource).not.toContain('<FilterHeader');- // InfrastructurePageSurface migrated to FilterBar; the FilterHeader- // assertion stays as a regression guard.- expect(infrastructurePageSurfaceSource).not.toContain('<FilterHeader');});it('limits raw FilterHeader and ColumnPicker usage to the known allowlist', () => {@@ -140,14 +136,12 @@ describe('page controls guardrails', () => {});it('keeps display controls and utility actions on the shared toolbar rail', () => {- // Workloads / Infrastructure / Storage migrated to FilterBar's- // viewOptionsTrailing slot; the toolbarTrailing PageControls prop is no- // longer used. ChartVisibilityToggleButton and the- // no-aria-label-Charts regression guard still apply.+ // Workloads migrated to FilterBar's viewOptionsTrailing slot; the+ // toolbarTrailing PageControls prop is no longer used. The+ // ChartVisibilityToggleButton and no-aria-label-Charts regression guard+ // still apply.expect(workloadsFilterSource).toContain('ChartVisibilityToggleButton');- expect(infrastructurePageSurfaceSource).toContain('ChartVisibilityToggleButton');expect(workloadsFilterSource).not.toContain('aria-label="Charts"');- expect(infrastructurePageSurfaceSource).not.toContain('aria-label="Charts"');expect(pageControlsSource).toContain('page-controls-filter-controls');expect(pageControlsSource).toContain('page-controls-toolbar-actions ml-auto');expect(pageControlsSource).toContain('pageControlsControlDeckClass');@@ -188,18 +182,15 @@ describe('page controls guardrails', () => {// / LabeledFilterSelect no longer rendered.expect(recoveryHistorySectionSource).not.toContain('LabeledFilterToggleGroup');expect(recoveryHistorySectionSource).not.toContain('LabeledFilterSelect');- // Infrastructure migrated to FilterBar; chip popover replaces the labelled- // select. Regression guard ensures the legacy primitive stays out.- expect(infrastructurePageSurfaceSource).not.toContain('<LabeledFilterSelect');});- it('keeps embedded workspace tabs on the canonical shared subtabs class pattern', () => {+ it('keeps embedded workspace tabs on the canonical shared segmented-control pattern', () => {expect(subtabsSource).not.toContain("variant?: 'default' | 'control'");expect(recoveryPageSource).not.toContain('variant="control"');expect(recoveryPageSource).not.toContain('listClass=');expect(recoveryPageSource).not.toContain('tabClass=');- expect(recoveryPageSource).toContain('const workspaceControls = () => (');- expect(recoveryPageSource).toContain('<Subtabs');+ expect(recoveryPageSource).toContain('FilterSegmentedControl');+ expect(recoveryPageSource).toContain('RECOVERY_WORKSPACE_OPTIONS');expect(recoveryPageSource).not.toContain('Focused drill-in');});});diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex 695f38a829..d77ca0a278 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -74,7 +74,6 @@ import animatedNumberSource from '@/components/shared/AnimatedNumber.tsx?raw';import animatedNumberModelSource from '@/components/shared/animatedNumberModel.ts?raw';import animatedNumberStateSource from '@/components/shared/useAnimatedNumberState.ts?raw';import workloadsFilterSource from '@/components/Workloads/WorkloadsFilter.tsx?raw';-import infrastructurePageSurfaceSource from '@/features/infrastructure/InfrastructurePageSurface.tsx?raw';import infrastructureSourceManagerSource from '@/components/Settings/InfrastructureSourceManager.tsx?raw';import configuredNodeTablesSource from '@/components/Settings/ConfiguredNodeTables.tsx?raw';import infrastructureSummaryTableSource from '@/components/shared/InfrastructureSummaryTable.tsx?raw';@@ -161,7 +160,7 @@ import deployPreflightStepSource from '@/components/Infrastructure/deploy/Prefliimport deployResultsStepSource from '@/components/Infrastructure/deploy/ResultsStep.tsx?raw';import pmgMailGatewaySource from '@/components/PMG/MailGateway.tsx?raw';import pmgInstancePanelSource from '@/components/PMG/PMGInstancePanel.tsx?raw';-import resourceDetailDrawerOverviewSource from '@/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx?raw';+import resourceDetailSummarySource from '@/components/Infrastructure/ResourceDetailSummary.tsx?raw';import aiSettingsDialogsSource from '@/components/Settings/AISettingsDialogs.tsx?raw';import agentProfilesPanelSource from '@/components/Settings/AgentProfilesPanel.tsx?raw';import apiTokenManagerSource from '@/components/Settings/APITokenManager.tsx?raw';@@ -685,7 +684,7 @@ describe('shared primitive guardrails', () => {"import ListIcon from 'lucide-solid/icons/list'",);- for (const source of [workloadsFilterSource, infrastructurePageSurfaceSource]) {+ for (const source of [workloadsFilterSource]) {expect(source).toContain('GroupedTableModeSegmentedControl');expect(source).not.toContain("title: 'Group by node'");expect(source).not.toContain("title: 'Grouped table view'");@@ -886,8 +885,8 @@ describe('shared primitive guardrails', () => {expect(tagBadgesSource).toContain("from '@/components/shared/Tooltip'");expect(guestRowSource).toContain("from '@/components/shared/TagBadges'");expect(guestRowSource).not.toContain("from './TagBadges'");- expect(resourceDetailDrawerOverviewSource).toContain("from '@/components/shared/TagBadges'");- expect(resourceDetailDrawerOverviewSource).not.toContain(+ expect(resourceDetailSummarySource).toContain("from '@/components/shared/TagBadges'");+ expect(resourceDetailSummarySource).not.toContain("from '@/components/Workloads/TagBadges'",);});diff --git a/frontend-modern/src/components/shared/__tests__/MobileNavBar.test.tsx b/frontend-modern/src/components/shared/__tests__/MobileNavBar.test.tsxindex 87884b6d83..015a5fa663 100644--- a/frontend-modern/src/components/shared/__tests__/MobileNavBar.test.tsx+++ b/frontend-modern/src/components/shared/__tests__/MobileNavBar.test.tsx@@ -12,11 +12,9 @@ window.requestAnimationFrame = ((callback: FrameRequestCallback) => {return 1;}) as typeof window.requestAnimationFrame;-const InfrastructureIcon: Component<{ class?: string }> = (props) => (- <span class={props.class}>IN</span>-);const AgentsIcon: Component<{ class?: string }> = (props) => <span class={props.class}>AG</span>;const ProxmoxIcon: Component<{ class?: string }> = (props) => <span class={props.class}>PX</span>;+const WorkloadsIcon: Component<{ class?: string }> = (props) => <span class={props.class}>WO</span>;const StorageIcon: Component<{ class?: string }> = (props) => <span class={props.class}>ST</span>;const AlertsIcon: Component<{ class?: string }> = (props) => <span class={props.class}>AL</span>;const SettingsIcon: Component<{ class?: string }> = (props) => <span class={props.class}>SE</span>;@@ -91,14 +89,14 @@ describe('MobileNavBar', () => {activeTab={() => null}primaryTabs={() => [{- id: 'infrastructure',- label: 'Infrastructure',- route: '/infrastructure',+ id: 'workloads',+ label: 'Workloads',+ route: '/workloads',settingsRoute: '/settings',- tooltip: 'Infrastructure',+ tooltip: 'Workloads',enabled: true,live: true,- icon: InfrastructureIcon,+ icon: WorkloadsIcon,alwaysShow: true,},]}@@ -133,7 +131,7 @@ describe('MobileNavBar', () => {const { container } = render(() => (<MobileNavBar- activeTab={() => 'infrastructure'}+ activeTab={() => 'workloads'}primaryTabs={() => [{id: 'agents',@@ -158,14 +156,14 @@ describe('MobileNavBar', () => {alwaysShow: true,},{- id: 'infrastructure',- label: 'Infrastructure',- route: '/infrastructure',+ id: 'workloads',+ label: 'Workloads',+ route: '/workloads',settingsRoute: '/settings',- tooltip: 'Infrastructure',+ tooltip: 'Workloads',enabled: true,live: true,- icon: InfrastructureIcon,+ icon: WorkloadsIcon,alwaysShow: true,},{@@ -217,7 +215,7 @@ describe('MobileNavBar', () => {const buttons = container.querySelectorAll('button[data-tab-id]');expect(buttons[0]).toHaveAttribute('data-tab-id', 'proxmox');expect(buttons[1]).toHaveAttribute('data-tab-id', 'agents');- expect(buttons[2]).toHaveAttribute('data-tab-id', 'infrastructure');+ expect(buttons[2]).toHaveAttribute('data-tab-id', 'workloads');expect(buttons[3]).toHaveAttribute('data-tab-id', 'storage');expect(buttons[4]).toHaveAttribute('data-tab-id', 'alerts');expect(buttons[5]).toHaveAttribute('data-tab-id', 'settings');diff --git a/frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx b/frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsxdeleted file mode 100644index c20dd31103..0000000000--- a/frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx+++ /dev/null@@ -1,328 +0,0 @@-import { Show } from 'solid-js';-import { useNavigate } from '@solidjs/router';-import { buildInfrastructureOnboardingPath } from '@/components/Settings/infrastructureWorkspaceModel';-import { EmptyState } from '@/components/shared/EmptyState';-import { Card } from '@/components/shared/Card';-import { FilterBar, type FilterDef } from '@/components/shared/FilterBar';-import { ChartVisibilityToggleButton, FilterActionButton } from '@/components/shared/FilterToolbar';-import { GroupedTableModeSegmentedControl } from '@/components/shared/GroupedTableModeSegmentedControl';-import { PageHeader } from '@/components/shared/PageHeader';-import { StickySummarySection } from '@/components/shared/StickySummarySection';-import { UnifiedResourceTable } from '@/components/Infrastructure/UnifiedResourceTable';-import { InfrastructureSummary } from '@/components/Infrastructure/InfrastructureSummary';-import ActivityIcon from 'lucide-solid/icons/activity';-import ServerIcon from 'lucide-solid/icons/server';-import RefreshCwIcon from 'lucide-solid/icons/refresh-cw';-import SettingsIcon from 'lucide-solid/icons/settings';-import { ScrollToTopButton } from '@/components/shared/ScrollToTopButton';-import { STORAGE_KEYS } from '@/utils/localStorage';-import { AgentDeployModal } from '@/components/Infrastructure/AgentDeployModal';-import {- getInfrastructureEmptyState,- getInfrastructureFilterEmptyState,- getInfrastructureLoadFailureState,-} from '@/utils/infrastructureEmptyStatePresentation';-import { useInfrastructurePageState, type GroupingMode } from './useInfrastructurePageState';--export function InfrastructurePageSurface() {- const navigate = useNavigate();- const {- loading,- error,- refetch,- initialLoadComplete,- showNoResources,- selectedSource,- setSelectedSource,- selectedStatus,- setSelectedStatus,- searchQuery,- setSearchQuery,- infrastructureSummaryRange,- setInfrastructureSummaryRange,- summaryCollapsed,- setSummaryCollapsed,- groupingMode,- setGroupingMode,- activeSummaryResourceId,- activeSummaryResourceGroupScope,- focusedSummaryResourceGroupId,- focusedSummaryResourceGroupScope,- expandedResourceId,- setExpandedResourceId,- chartHoverSync,- hoveredResourceId,- hoveredSummaryResourceGroupScope,- setFocusedResourceGroupId,- setHoveredResourceGroupScope,- setHoveredResourceId,- highlightedResourceId,- revealedResourceId,- isMobile,- jumpToActiveResourceRow,- deployCluster,- setDeployCluster,- kioskMode,- clearPinnedSummaryScope,- sourceOptions,- statusOptions,- hasActiveFilters,- clearFilters,- filteredResources,- hasFilteredResources,- setChartHoverSync,- setSummaryClearSurfaceRootRef,- setSummaryTableRootRef,- shouldShowJumpToActiveResourceRow,- } = useInfrastructurePageState();- const infrastructureEmptyState = () => getInfrastructureEmptyState();- const infrastructureFilterEmptyState = () => getInfrastructureFilterEmptyState();- const infrastructureLoadFailureState = () => getInfrastructureLoadFailureState();- const hasAvailabilitySource = () =>- sourceOptions().some((source) => source.key === 'availability');- const availabilitySourceActive = () => selectedSource() === 'availability';- const toggleAvailabilitySource = () => {- setSelectedSource(availabilitySourceActive() ? '' : 'availability');- };-- return (- <div ref={setSummaryClearSurfaceRootRef} data-testid="infrastructure-page" class="space-y-4">- <PageHeader- title="Infrastructure"- description="Inspect connected resources, filter by source and status, and drill into live health and capacity."- />-- <Show- when={!loading() || initialLoadComplete()}- fallback={- <div- data-testid="infrastructure-loading"- class="space-y-3 animate-pulse pointer-events-none select-none"- >- <div class="hidden lg:block h-[124px] w-full bg-surface-alt rounded-md border border-border"></div>- <Card padding="sm" class="h-[52px] bg-surface-alt"></Card>- <Card padding="none" tone="card" class="h-[600px] overflow-hidden">- <div class="h-8 border-b"></div>- <div class="space-y-4 p-4">- <div class="h-4 w-1/4 rounded bg-surface-hover"></div>- <div class="h-4 w-1/2 rounded bg-surface-hover"></div>- <div class="h-4 w-1/3 rounded bg-surface-hover"></div>- </div>- </Card>- </div>- }- >- <Show- when={!error()}- fallback={- <Card class="p-6">- <EmptyState- icon={<ServerIcon class="w-6 h-6 text-slate-400" />}- title={infrastructureLoadFailureState().title}- description={infrastructureLoadFailureState().description}- actions={- <button- type="button"- onClick={() => refetch()}- class="inline-flex items-center gap-2 rounded-md border px-3 py-1.5 text-xs font-medium text-base-content shadow-sm hover:"- >- <RefreshCwIcon class="h-3.5 w-3.5" />- {infrastructureLoadFailureState().actionLabel}- </button>- }- />- </Card>- }- >- <Show- when={!showNoResources()}- fallback={- <Card class="p-6">- <EmptyState- icon={<ServerIcon class="w-6 h-6 text-slate-400" />}- title={infrastructureEmptyState().title}- description={infrastructureEmptyState().description}- actions={- <button- type="button"- onClick={() => navigate(buildInfrastructureOnboardingPath('pick'))}- 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"- >- <SettingsIcon class="h-3.5 w-3.5" />- {infrastructureEmptyState().actionLabel}- </button>- }- />- </Card>- }- >- <div class="space-y-3">- <Show when={!summaryCollapsed()}>- <StickySummarySection>- <InfrastructureSummary- resources={filteredResources()}- timeRange={infrastructureSummaryRange()}- onTimeRangeChange={setInfrastructureSummaryRange}- hoveredGroupScope={hoveredSummaryResourceGroupScope()}- focusedGroupScope={focusedSummaryResourceGroupScope()}- hoveredResourceId={hoveredResourceId()}- focusedResourceId={expandedResourceId()}- chartHoverSync={chartHoverSync()}- onChartHoverSyncChange={setChartHoverSync}- showJumpToActiveRow={shouldShowJumpToActiveResourceRow()}- onJumpToActiveRow={jumpToActiveResourceRow}- />- </StickySummarySection>- </Show>-- <div class="space-y-3" data-testid="infrastructure-interaction-surface">- <Show when={!kioskMode()}>- <div data-summary-clear-ignore>- <FilterBar- isMobile={isMobile}- savedViewsKey="infrastructure"- search={{- value: searchQuery,- setValue: setSearchQuery,- placeholder: 'Search resources, IDs, IPs, or tags...',- historyKey: STORAGE_KEYS.RESOURCES_SEARCH_HISTORY,- emptyMessage: 'Recent infrastructure searches appear here.',- }}- searchTrailing={- <Show when={hasAvailabilitySource()}>- <FilterActionButton- active={availabilitySourceActive()}- aria-label={- availabilitySourceActive()- ? 'Show all infrastructure sources'- : 'Show availability endpoints'- }- aria-pressed={availabilitySourceActive()}- title={- availabilitySourceActive()- ? 'Show all infrastructure sources'- : 'Show availability endpoints'- }- onClick={toggleAvailabilitySource}- >- <ActivityIcon class="h-3 w-3" />- Endpoints- </FilterActionButton>- </Show>- }- filters={- [- {- id: 'platform',- label: 'Source',- group: 'scope',- value: selectedSource,- setValue: setSelectedSource,- defaultValue: '',- options: () => [- { value: '', label: 'All' },- ...sourceOptions().map((source) => ({- value: source.key,- label: source.label,- })),- ],- },- {- id: 'status',- label: 'Status',- group: 'status',- value: selectedStatus,- setValue: setSelectedStatus,- defaultValue: '',- options: () => [- { value: '', label: 'All' },- ...statusOptions().map((status) => ({- value: status.key,- label: status.label,- })),- ],- },- ] as FilterDef[]- }- viewOptionsTrailing={- <>- <GroupedTableModeSegmentedControl- value={groupingMode()}- onChange={(value) => setGroupingMode(value as GroupingMode)}- />- <ChartVisibilityToggleButton- collapsed={summaryCollapsed()}- onToggle={() => setSummaryCollapsed((collapsed) => !collapsed)}- />- </>- }- />- </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>- }- />- </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>- </div>- </Show>- </Show>- </Show>- <Show when={deployCluster()}>- {(cluster) => (- <AgentDeployModal- isOpen={true}- clusterId={cluster().id}- clusterName={cluster().name}- onClose={() => setDeployCluster(null)}- />- )}- </Show>- <ScrollToTopButton />- </div>- );-}--export default InfrastructurePageSurface;diff --git a/frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.guardrails.test.ts b/frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.guardrails.test.tsdeleted file mode 100644index c09d436b58..0000000000--- a/frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.guardrails.test.ts+++ /dev/null@@ -1,165 +0,0 @@-import { describe, expect, it } from 'vitest';-import infrastructurePageSurfaceSource from '@/features/infrastructure/InfrastructurePageSurface.tsx?raw';-import infrastructurePageModelSource from '@/features/infrastructure/infrastructurePageModel.ts?raw';-import infrastructurePageStateSource from '@/features/infrastructure/useInfrastructurePageState.ts?raw';-import infrastructurePageRouteStateSource from '@/features/infrastructure/useInfrastructurePageRouteState.ts?raw';-import unifiedResourceTableSource from '@/components/Infrastructure/UnifiedResourceTable.tsx?raw';-import unifiedResourceTableStateSource from '@/components/Infrastructure/useUnifiedResourceTableState.ts?raw';-import unifiedResourceTableViewportSyncSource from '@/components/Infrastructure/useUnifiedResourceTableViewportSync.ts?raw';--describe('InfrastructurePageSurface guardrails', () => {- it('keeps the feature shell separate from route-sync and page-model ownership', () => {- expect(infrastructurePageSurfaceSource).toContain('useInfrastructurePageState');- expect(infrastructurePageSurfaceSource).toContain('useNavigate');- expect(infrastructurePageSurfaceSource).toContain(- "import { PageHeader } from '@/components/shared/PageHeader';",- );- expect(infrastructurePageSurfaceSource).toContain('<PageHeader');- expect(infrastructurePageSurfaceSource).toContain('title="Infrastructure"');- expect(infrastructurePageSurfaceSource).not.toContain('useLocation(');- expect(infrastructurePageSurfaceSource).not.toContain('buildInfrastructurePath(');-- expect(infrastructurePageStateSource).toContain('useInfrastructurePageRouteState');- expect(infrastructurePageStateSource).toContain('buildInfrastructurePageFilterDerivation');- expect(infrastructurePageStateSource).toContain("initialHydration: 'prefer-ws-then-rest'");- expect(infrastructurePageStateSource).not.toContain('useLocation(');- expect(infrastructurePageStateSource).not.toContain('useNavigate(');- expect(infrastructurePageStateSource).not.toContain('parseInfrastructureLinkSearch(');- expect(infrastructurePageStateSource).not.toContain('buildInfrastructurePath(');- expect(infrastructurePageStateSource).not.toContain('areSearchParamsEquivalent(');- expect(infrastructurePageStateSource).not.toContain('collectAvailableSources(');- expect(infrastructurePageStateSource).not.toContain('collectAvailableStatuses(');- expect(infrastructurePageStateSource).not.toContain('buildStatusOptions(');- expect(infrastructurePageStateSource).not.toContain('tokenizeSearch(');- expect(infrastructurePageStateSource).not.toContain('filterResources(');-- expect(infrastructurePageRouteStateSource).toContain('useLocation');- expect(infrastructurePageRouteStateSource).toContain('useNavigate');- expect(infrastructurePageRouteStateSource).toContain('parseInfrastructureLinkSearch');- expect(infrastructurePageRouteStateSource).toContain('buildInfrastructurePath');- expect(infrastructurePageRouteStateSource).toContain('areSearchParamsEquivalent');-- expect(infrastructurePageModelSource).toContain(- 'export function buildInfrastructurePageFilterDerivation',- );- expect(infrastructurePageModelSource).toContain('collectAvailableSources');- expect(infrastructurePageModelSource).toContain('collectAvailableStatuses');- expect(infrastructurePageModelSource).toContain('buildStatusOptions');- expect(infrastructurePageModelSource).toContain('tokenizeSearch');- expect(infrastructurePageModelSource).toContain('filterResources');- });-- it('keeps summary-to-table coordination on the page-state owner', () => {- expect(infrastructurePageSurfaceSource).toContain(- 'showJumpToActiveRow={shouldShowJumpToActiveResourceRow()}',- );- expect(infrastructurePageSurfaceSource).toContain(- 'onJumpToActiveRow={jumpToActiveResourceRow}',- );- expect(infrastructurePageSurfaceSource).toContain(- 'hoveredGroupScope={hoveredSummaryResourceGroupScope()}',- );- expect(infrastructurePageSurfaceSource).toContain(- 'focusedGroupScope={focusedSummaryResourceGroupScope()}',- );- expect(infrastructurePageSurfaceSource).toContain(- 'activeSummaryGroupScope={activeSummaryResourceGroupScope()}',- );- expect(infrastructurePageSurfaceSource).toContain(- 'hoveredSummaryGroupScope={hoveredSummaryResourceGroupScope()}',- );- expect(infrastructurePageSurfaceSource).toContain(- 'focusedSummaryGroupScope={focusedSummaryResourceGroupScope()}',- );- expect(infrastructurePageSurfaceSource).toContain(- 'onGroupHoverChange={setHoveredResourceGroupScope}',- );- expect(infrastructurePageSurfaceSource).toContain('setSummaryClearSurfaceRootRef');- expect(infrastructurePageSurfaceSource).toContain('setTableRootRef={setSummaryTableRootRef}');- expect(infrastructurePageSurfaceSource).toContain('data-testid="infrastructure-page"');- expect(infrastructurePageSurfaceSource).toContain('ref={setSummaryClearSurfaceRootRef}');- expect(infrastructurePageSurfaceSource).toContain(- 'data-testid="infrastructure-interaction-surface"',- );- expect(infrastructurePageSurfaceSource).toContain('data-summary-clear-ignore');- expect(infrastructurePageSurfaceSource).toContain('GroupedTableModeSegmentedControl');- expect(infrastructurePageSurfaceSource).toContain('ChartVisibilityToggleButton');- expect(infrastructurePageSurfaceSource).not.toContain('aria-label="Charts"');- expect(infrastructurePageSurfaceSource).not.toContain('FilterSegmentedControl');- expect(infrastructurePageSurfaceSource).not.toContain('aria-label="Group by"');- expect(infrastructurePageSurfaceSource).not.toContain('aria-label="Group By"');- expect(infrastructurePageSurfaceSource).not.toContain("title: 'Grouped table view'");- expect(infrastructurePageSurfaceSource).toContain('Grouped');- expect(infrastructurePageSurfaceSource).not.toContain("title: 'Group by cluster'");- expect(infrastructurePageSurfaceSource).not.toContain('SummaryScopeBar');- expect(infrastructurePageSurfaceSource).not.toContain('searchTrailing={pinnedScopeFallback()}');- expect(infrastructurePageSurfaceSource).not.toContain('mobileTrailing={pinnedScopeFallback()}');- expect(infrastructurePageSurfaceSource).not.toContain('useSummaryPageInteractionState');-- expect(infrastructurePageStateSource).toContain('useSummaryPageInteractionState');- expect(infrastructurePageStateSource).toContain('hoveredSummaryResourceGroupScope');- expect(infrastructurePageStateSource).toContain('activeSummaryResourceGroupScope');- expect(infrastructurePageStateSource).toContain('focusedSummaryResourceGroupScope');- expect(infrastructurePageStateSource).toContain('clearPinnedSummaryScope');- expect(infrastructurePageStateSource).toContain('clearAllPageStateOnEscape');- expect(infrastructurePageStateSource).toContain('onEscapeClear: clearAllPageStateOnEscape');- expect(infrastructurePageStateSource).toContain('setHoveredResourceGroupScope');- expect(infrastructurePageStateSource).toContain('jumpToActiveResourceRow');- expect(infrastructurePageStateSource).toContain('setSummaryClearSurfaceRootRef');- expect(infrastructurePageStateSource).toContain('setSummaryTableRootRef');- expect(infrastructurePageStateSource).toContain('shouldShowJumpToActiveResourceRow');- expect(infrastructurePageStateSource).toContain('preserveScrollableAncestorVerticalOffset');- expect(infrastructurePageStateSource).not.toContain('consumeNextFocusedRevealSkip');- expect(infrastructurePageStateSource).not.toContain('setSkipNextFocusedReveal(true)');- expect(infrastructurePageStateSource).not.toContain('querySelector<HTMLElement>(');- expect(infrastructurePageStateSource).not.toContain(- "scrollIntoView({ behavior: 'smooth', block: 'center' })",- );- expect(unifiedResourceTableSource).toContain('data-summary-clear-surface');- expect(unifiedResourceTableSource).toContain('data-testid="infrastructure-table-surface"');-- expect(infrastructurePageRouteStateSource).not.toContain('useSummaryPageInteractionState');- expect(infrastructurePageRouteStateSource).not.toContain('setSummaryTableRootRef');- expect(infrastructurePageRouteStateSource).toContain('createRouteStateNavigateScheduler');- expect(infrastructurePageRouteStateSource).not.toContain('replaceSamePathRouteState');- expect(infrastructurePageRouteStateSource).not.toContain('createRouteStateSearchSignal');- expect(infrastructurePageRouteStateSource).not.toContain(- 'nextParams.delete(INFRASTRUCTURE_QUERY_PARAMS.resource)',- );- expect(infrastructurePageRouteStateSource).not.toContain(- 'nextParams.delete(INFRASTRUCTURE_QUERY_PARAMS.summaryGroup)',- );- expect(infrastructurePageRouteStateSource).not.toContain('resource: nextResource');- expect(infrastructurePageRouteStateSource).not.toContain('summaryGroup: nextSummaryGroup');- });-- it('routes the page filter section through the chip-based FilterBar primitive', () => {- expect(infrastructurePageSurfaceSource).toContain(- "import { FilterBar, type FilterDef } from '@/components/shared/FilterBar';",- );- expect(infrastructurePageSurfaceSource).toContain('<FilterBar');- expect(infrastructurePageSurfaceSource).toContain('isMobile={isMobile}');- expect(infrastructurePageSurfaceSource).toContain("id: 'platform'");- expect(infrastructurePageSurfaceSource).toContain("label: 'Source'");- expect(infrastructurePageSurfaceSource).toContain("id: 'status'");- expect(infrastructurePageSurfaceSource).toContain("group: 'scope'");- expect(infrastructurePageSurfaceSource).toContain("group: 'status'");- expect(infrastructurePageSurfaceSource).toContain('viewOptionsTrailing={');- expect(infrastructurePageSurfaceSource).not.toContain('PageControls');- expect(infrastructurePageSurfaceSource).not.toContain('LabeledFilterSelect');- expect(infrastructurePageSurfaceSource).not.toContain('mobileFilters={');- expect(infrastructurePageSurfaceSource).not.toContain('resetAction={');- expect(infrastructurePageSurfaceSource).not.toContain('showFilters={!isMobile()');- expect(infrastructurePageSurfaceSource).not.toContain('toolbarClass="lg:flex-nowrap"');- });-- it('keeps inline-detail reveal out of infrastructure viewport sync helpers', () => {- expect(unifiedResourceTableStateSource).toContain('useUnifiedResourceTableViewportSync');- expect(unifiedResourceTableStateSource).not.toContain('scrollIntoView');- expect(unifiedResourceTableViewportSyncSource).toContain('syncHostWindowToViewport');- expect(unifiedResourceTableViewportSyncSource).toContain("window.addEventListener('scroll'");- expect(unifiedResourceTableViewportSyncSource).not.toContain('expandedResourceId');- expect(unifiedResourceTableViewportSyncSource).not.toContain('scrollIntoView');- expect(unifiedResourceTableViewportSyncSource).not.toContain('querySelector<HTMLElement>(');- });-});diff --git a/frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.test.tsx b/frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.test.tsxdeleted file mode 100644index 140d2250e1..0000000000--- a/frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.test.tsx+++ /dev/null@@ -1,146 +0,0 @@-import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';-import { afterEach, describe, expect, it, vi } from 'vitest';-import type { Resource } from '@/types/resource';-import { InfrastructurePageSurface } from '../InfrastructurePageSurface';--const mocks = vi.hoisted(() => ({- navigate: vi.fn(),- useInfrastructurePageState: vi.fn(),-}));--vi.mock('@solidjs/router', () => ({- useLocation: () => ({- hash: '',- pathname: '/infrastructure',- search: '',- }),- useNavigate: () => mocks.navigate,-}));--vi.mock('../useInfrastructurePageState', () => ({- useInfrastructurePageState: mocks.useInfrastructurePageState,-}));--vi.mock('@/components/Infrastructure/InfrastructureSummary', () => ({- InfrastructureSummary: () => <div data-testid="infrastructure-summary" />,-}));--vi.mock('@/components/Infrastructure/UnifiedResourceTable', () => ({- UnifiedResourceTable: (props: { resources: Resource[] }) => (- <div data-testid="infrastructure-table" data-resource-count={props.resources.length} />- ),-}));--vi.mock('@/components/Infrastructure/AgentDeployModal', () => ({- AgentDeployModal: () => <div data-testid="agent-deploy-modal" />,-}));--vi.mock('@/components/shared/ScrollToTopButton', () => ({- ScrollToTopButton: () => <button type="button">Scroll to top</button>,-}));--const makeResource = (overrides: Partial<Resource> = {}): Resource => ({- id: 'resource-availability-1',- name: 'mqtt-meter',- displayName: 'MQTT power meter',- platformId: 'mock-availability-mqtt-meter',- platformType: 'availability',- sourceType: 'api',- status: 'online',- type: 'network-endpoint',- lastSeen: 1_700_000_000_000,- platformData: { sources: ['availability'] },- tags: [],- ...overrides,-});--const createPageState = (overrides: Record<string, unknown> = {}) => ({- activeSummaryResourceGroupScope: () => null,- activeSummaryResourceId: () => null,- chartHoverSync: () => null,- clearFilters: vi.fn(),- clearPinnedSummaryScope: vi.fn(),- deployCluster: () => null,- error: () => null,- expandedResourceId: () => null,- filteredResources: () => [makeResource()],- focusedSummaryResourceGroupId: () => null,- focusedSummaryResourceGroupScope: () => null,- groupingMode: () => 'grouped',- hasActiveFilters: () => false,- hasFilteredResources: () => true,- highlightedResourceId: () => null,- hoveredResourceId: () => null,- hoveredSummaryResourceGroupScope: () => null,- infrastructureSummaryRange: () => '1h',- initialLoadComplete: () => true,- isMobile: () => false,- jumpToActiveResourceRow: vi.fn(),- kioskMode: () => false,- loading: () => false,- refetch: vi.fn(),- revealedResourceId: () => null,- searchQuery: () => '',- selectedSource: () => '',- selectedStatus: () => '',- setChartHoverSync: vi.fn(),- setDeployCluster: vi.fn(),- setExpandedResourceId: vi.fn(),- setFocusedResourceGroupId: vi.fn(),- setHoveredResourceGroupScope: vi.fn(),- setHoveredResourceId: vi.fn(),- setInfrastructureSummaryRange: vi.fn(),- setGroupingMode: vi.fn(),- setSearchQuery: vi.fn(),- setSelectedSource: vi.fn(),- setSelectedStatus: vi.fn(),- setSummaryClearSurfaceRootRef: vi.fn(),- setSummaryCollapsed: vi.fn(),- setSummaryTableRootRef: vi.fn(),- shouldShowJumpToActiveResourceRow: () => false,- showNoResources: () => false,- sourceOptions: () => [{ key: 'availability', label: 'Availability' }],- statusOptions: () => [{ key: 'online', label: 'Online' }],- summaryCollapsed: () => false,- ...overrides,-});--afterEach(() => {- cleanup();- vi.clearAllMocks();-});--describe('InfrastructurePageSurface', () => {- it('surfaces availability endpoint rows through a visible source shortcut', () => {- const setSelectedSource = vi.fn();- mocks.useInfrastructurePageState.mockReturnValue(createPageState({ setSelectedSource }));-- render(() => <InfrastructurePageSurface />);-- const button = screen.getByRole('button', { name: 'Show availability endpoints' });- expect(button).toHaveTextContent('Endpoints');-- fireEvent.click(button);-- expect(setSelectedSource).toHaveBeenCalledWith('availability');- });-- it('clears the availability source shortcut when it is active', () => {- const setSelectedSource = vi.fn();- mocks.useInfrastructurePageState.mockReturnValue(- createPageState({- selectedSource: () => 'availability',- setSelectedSource,- }),- );-- render(() => <InfrastructurePageSurface />);-- const button = screen.getByRole('button', { name: 'Show all infrastructure sources' });- expect(button).toHaveAttribute('aria-pressed', 'true');-- fireEvent.click(button);-- expect(setSelectedSource).toHaveBeenCalledWith('');- });-});diff --git a/frontend-modern/src/features/infrastructure/__tests__/infrastructurePageModel.test.ts b/frontend-modern/src/features/infrastructure/__tests__/infrastructurePageModel.test.tsdeleted file mode 100644index b924f3b0a8..0000000000--- a/frontend-modern/src/features/infrastructure/__tests__/infrastructurePageModel.test.ts+++ /dev/null@@ -1,181 +0,0 @@-import { describe, expect, it } from 'vitest';-import type { Resource } from '@/types/resource';-import { buildInfrastructurePageFilterDerivation } from '@/features/infrastructure/infrastructurePageModel';--const makeResource = (overrides: Partial<Resource> = {}): Resource => ({- id: 'resource-1',- type: 'agent',- name: 'host-1',- displayName: 'Host 1',- platformId: 'host-1',- platformType: 'agent',- sourceType: 'hybrid',- status: 'online',- lastSeen: 1_000,- platformData: { sources: ['agent'] },- tags: [],- ...overrides,-});--describe('infrastructurePageModel', () => {- it('builds canonical source and status filter catalogs from unified resources', () => {- const resources = [- makeResource({- id: 'resource-1',- status: 'online',- platformData: { sources: ['agent'] },- }),- makeResource({- id: 'resource-2',- type: 'vm',- platformType: 'proxmox-pve',- status: 'degraded',- platformData: { sources: ['proxmox'] },- }),- makeResource({- id: 'resource-3',- type: 'network-endpoint',- platformType: 'availability',- status: 'offline',- platformData: { sources: ['availability'] },- }),- ];-- const derivation = buildInfrastructurePageFilterDerivation(resources, '', '', '');-- expect(Array.from(derivation.availableSources)).toEqual([- 'agent',- 'proxmox-pve',- 'availability',- ]);- // sourceOptions follow DEFAULT_INFRASTRUCTURE_SOURCE_ORDER from the- // source contract: agent, availability, truenas, proxmox-pve, ...- expect(derivation.sourceOptions).toEqual([- { key: 'agent', label: 'Agent' },- { key: 'availability', label: 'Availability' },- { key: 'proxmox-pve', label: 'PVE' },- ]);- expect(derivation.statusOptions).toEqual([- { key: 'online', label: 'Online' },- { key: 'degraded', label: 'Degraded' },- { key: 'offline', label: 'Offline' },- ]);- expect(derivation.activeFilterCount).toBe(0);- expect(derivation.hasActiveFilters).toBe(false);- });-- it('filters unified resources by source, status, and search through the canonical page model', () => {- const resources = [- makeResource({- id: 'resource-1',- displayName: 'Host Alpha',- tags: ['critical'],- status: 'online',- platformData: { sources: ['agent'] },- }),- makeResource({- id: 'resource-2',- displayName: 'VM Beta',- type: 'vm',- platformType: 'proxmox-pve',- status: 'degraded',- platformData: { sources: ['proxmox'] },- }),- ];-- const derivation = buildInfrastructurePageFilterDerivation(- resources,- 'agent',- 'online',- 'alpha critical',- );-- expect(derivation.activeFilterCount).toBe(2);- expect(derivation.hasActiveFilters).toBe(true);- expect(derivation.filteredResources.map((resource) => resource.id)).toEqual(['resource-1']);- expect(derivation.hasFilteredResources).toBe(true);- });-- it('reports an empty filtered result without losing the active-filter signal', () => {- const derivation = buildInfrastructurePageFilterDerivation([makeResource()], '', 'offline', '');-- expect(derivation.activeFilterCount).toBe(1);- expect(derivation.hasActiveFilters).toBe(true);- expect(derivation.filteredResources).toEqual([]);- expect(derivation.hasFilteredResources).toBe(false);- });-- it('keeps a route-owned source option visible even when no current resources provide it', () => {- const derivation = buildInfrastructurePageFilterDerivation(- [- makeResource({- id: 'resource-2',- type: 'storage',- platformType: 'proxmox-pve',- platformData: { sources: ['proxmox'] },- }),- ],- 'truenas',- '',- '',- );-- expect(Array.from(derivation.availableSources)).toEqual(['proxmox-pve']);- // truenas precedes proxmox-pve in DEFAULT_INFRASTRUCTURE_SOURCE_ORDER.- expect(derivation.sourceOptions).toEqual([- { key: 'truenas', label: 'TrueNAS' },- { key: 'proxmox-pve', label: 'PVE' },- ]);- expect(derivation.activeFilterCount).toBe(1);- expect(derivation.hasActiveFilters).toBe(true);- });-- it('normalizes raw VMware sources into the canonical vSphere infrastructure filter', () => {- const derivation = buildInfrastructurePageFilterDerivation(- [- makeResource({- id: 'resource-vmware-1',- displayName: 'ESXi 01',- platformType: 'vmware-vsphere',- sourceType: 'api',- platformData: { sources: ['vmware'] },- }),- ],- 'vmware-vsphere',- '',- '',- );-- expect(Array.from(derivation.availableSources)).toEqual(['vmware-vsphere']);- expect(derivation.sourceOptions).toEqual([{ key: 'vmware-vsphere', label: 'vSphere' }]);- expect(derivation.filteredResources.map((resource) => resource.id)).toEqual([- 'resource-vmware-1',- ]);- expect(derivation.hasFilteredResources).toBe(true);- });-- it('normalizes availability sources into the infrastructure source filter', () => {- const derivation = buildInfrastructurePageFilterDerivation(- [- makeResource({- id: 'resource-availability-1',- displayName: 'MQTT power meter',- type: 'network-endpoint',- platformType: 'availability',- sourceType: 'api',- platformData: { sources: ['network-endpoint'] },- }),- ],- 'availability',- '',- '',- );-- expect(Array.from(derivation.availableSources)).toEqual(['availability']);- expect(derivation.sourceOptions).toEqual([{ key: 'availability', label: 'Availability' }]);- expect(derivation.filteredResources.map((resource) => resource.id)).toEqual([- 'resource-availability-1',- ]);- expect(derivation.hasFilteredResources).toBe(true);- });-});diff --git a/frontend-modern/src/features/infrastructure/__tests__/useInfrastructurePageRouteState.test.ts b/frontend-modern/src/features/infrastructure/__tests__/useInfrastructurePageRouteState.test.tsdeleted file mode 100644index 973a6fffcb..0000000000--- a/frontend-modern/src/features/infrastructure/__tests__/useInfrastructurePageRouteState.test.ts+++ /dev/null@@ -1,122 +0,0 @@-import { renderHook } from '@solidjs/testing-library';-import { createSignal } from 'solid-js';-import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';--import type { Resource } from '@/types/resource';-import { ROUTE_STATE_REPLACE_OPTIONS } from '@/utils/routeStateNavigation';--import { useInfrastructurePageRouteState } from '../useInfrastructurePageRouteState';--let locationPath = '/infrastructure';-let locationSearch = '';-const navigateSpy = vi.fn();--vi.mock('@solidjs/router', () => ({- useLocation: () => ({- get pathname() {- return locationPath;- },- get search() {- return locationSearch;- },- }),- useNavigate: () => navigateSpy,-}));--const makeResource = (id: string): Resource =>- ({- id,- name: id,- displayName: id,- sourceType: 'agent',- status: 'online',- type: 'agent',- }) as Resource;--describe('useInfrastructurePageRouteState', () => {- beforeEach(() => {- locationPath = '/infrastructure';- locationSearch = '';- navigateSpy.mockReset();- vi.useFakeTimers();- vi.stubGlobal('requestAnimationFrame', (callback: FrameRequestCallback) => {- callback(0);- return 1;- });- vi.stubGlobal('cancelAnimationFrame', vi.fn());- Object.defineProperty(window.history, 'scrollRestoration', {- configurable: true,- value: 'auto',- writable: true,- });- window.scrollTo = vi.fn() as typeof window.scrollTo;- });-- afterEach(() => {- vi.runOnlyPendingTimers();- vi.useRealTimers();- vi.unstubAllGlobals();- });-- const setup = () => {- const [resources] = createSignal<Resource[]>([makeResource('agent-1'), makeResource('agent-2')]);- const [selectedSource, setSelectedSource] = createSignal('');- const [searchQuery, setSearchQuery] = createSignal('');- const [initialLoadComplete] = createSignal(true);-- const rendered = renderHook(() =>- useInfrastructurePageRouteState({- resources,- filteredResources: resources,- initialLoadComplete,- selectedSource,- setSelectedSource,- searchQuery,- setSearchQuery,- }),- );-- return { ...rendered, setSelectedSource, setSearchQuery };- };-- it('hydrates an inbound resource deep link into drawer state', () => {- locationSearch = '?resource=agent-1';-- const { result } = setup();-- expect(result.expandedResourceId()).toBe('agent-1');- expect(navigateSpy).not.toHaveBeenCalled();- });-- it('keeps local drawer expansion off the route navigation path', () => {- const { result } = setup();-- result.setExpandedResourceId('agent-2');- vi.runAllTimers();-- expect(result.expandedResourceId()).toBe('agent-2');- expect(navigateSpy).not.toHaveBeenCalled();- });-- it('keeps local summary group focus off the route navigation path', () => {- const { result } = setup();-- result.setFocusedResourceGroupId('docker-host:agent-2');- vi.runAllTimers();-- expect(result.focusedResourceGroupId()).toBe('docker-host:agent-2');- expect(navigateSpy).not.toHaveBeenCalled();- });-- it('keeps infrastructure filters route-backed', () => {- const { setSelectedSource } = setup();-- setSelectedSource('docker');- vi.runAllTimers();-- expect(navigateSpy).toHaveBeenCalledWith(- '/infrastructure?source=docker',- ROUTE_STATE_REPLACE_OPTIONS,- );- });-});diff --git a/frontend-modern/src/features/infrastructure/infrastructurePageModel.ts b/frontend-modern/src/features/infrastructure/infrastructurePageModel.tsdeleted file mode 100644index 5cc5771175..0000000000--- a/frontend-modern/src/features/infrastructure/infrastructurePageModel.ts+++ /dev/null@@ -1,55 +0,0 @@-import type { Resource } from '@/types/resource';-import type { KnownSourcePlatform } from '@/utils/sourcePlatforms';-import { buildSourcePlatformOptions, type SourcePlatformOption } from '@/utils/sourcePlatformOptions';-import {- buildStatusOptions,- collectAvailableSources,- collectAvailableStatuses,- filterResources,- tokenizeSearch,-} from '@/components/Infrastructure/infrastructureSelectors';--export interface InfrastructurePageFilterDerivation {- activeFilterCount: number;- availableSources: Set<KnownSourcePlatform>;- sourceOptions: SourcePlatformOption[];- statusOptions: Array<{ key: string; label: string }>;- hasActiveFilters: boolean;- filteredResources: Resource[];- hasFilteredResources: boolean;-}--export function buildInfrastructurePageFilterDerivation(- resources: Resource[],- selectedSource: string,- selectedStatus: string,- searchQuery: string,-): InfrastructurePageFilterDerivation {- const activeFilterCount =- (selectedSource !== '' ? 1 : 0) + (selectedStatus !== '' ? 1 : 0);- const availableSources = collectAvailableSources(resources);- const sourceKeys = new Set<string>(availableSources);- if (selectedSource !== '') {- sourceKeys.add(selectedSource);- }- const sourceOptions = buildSourcePlatformOptions(sourceKeys);- const statusOptions = buildStatusOptions(collectAvailableStatuses(resources));- const hasActiveFilters =- selectedSource !== '' || selectedStatus !== '' || searchQuery.trim().length > 0;- const filteredResources = filterResources(- resources,- selectedSource !== '' ? new Set([selectedSource]) : new Set(),- selectedStatus !== '' ? new Set([selectedStatus]) : new Set(),- tokenizeSearch(searchQuery),- );-- return {- activeFilterCount,- availableSources,- sourceOptions,- statusOptions,- hasActiveFilters,- filteredResources,- hasFilteredResources: filteredResources.length > 0,- };-}diff --git a/frontend-modern/src/features/infrastructure/useInfrastructurePageRouteState.ts b/frontend-modern/src/features/infrastructure/useInfrastructurePageRouteState.tsdeleted file mode 100644index 096eb5bc42..0000000000--- a/frontend-modern/src/features/infrastructure/useInfrastructurePageRouteState.ts+++ /dev/null@@ -1,207 +0,0 @@-import {- createEffect,- createSignal,- onCleanup,- type Accessor,- type Setter,- untrack,-} from 'solid-js';-import { useLocation, useNavigate } from '@solidjs/router';-import type { Resource } from '@/types/resource';-import { normalizeSourcePlatformKey } from '@/utils/sourcePlatforms';-import {- buildInfrastructurePath,- INFRASTRUCTURE_PATH,- INFRASTRUCTURE_QUERY_PARAMS,- parseInfrastructureLinkSearch,-} from '@/routing/resourceLinks';-import { createRouteStateNavigateScheduler } from '@/utils/routeStateNavigation';-import { areSearchParamsEquivalent } from '@/utils/searchParams';--interface InfrastructurePageRouteStateOptions {- resources: Accessor<Resource[]>;- filteredResources: Accessor<Resource[]>;- initialLoadComplete: Accessor<boolean>;- selectedSource: Accessor<string>;- setSelectedSource: Setter<string>;- searchQuery: Accessor<string>;- setSearchQuery: Setter<string>;-}--export function useInfrastructurePageRouteState(options: InfrastructurePageRouteStateOptions) {- const {- resources,- filteredResources,- initialLoadComplete,- selectedSource,- setSelectedSource,- searchQuery,- setSearchQuery,- } = options;- const location = useLocation();- const navigate = useNavigate();- const routeStateNavigate = createRouteStateNavigateScheduler(- navigate,- () => `${untrack(() => location.pathname)}${untrack(() => location.search)}`,- );-- const [expandedResourceId, setExpandedResourceId] = createSignal<string | null>(null);- const [focusedResourceGroupId, setFocusedResourceGroupId] = createSignal<string | null>(null);- const [hoveredResourceId, setHoveredResourceId] = createSignal<string | null>(null);- const [highlightedResourceId, setHighlightedResourceId] = createSignal<string | null>(null);- const [revealedResourceId, setRevealedResourceId] = createSignal<string | null>(null);- const [handledResourceId, setHandledResourceId] = createSignal<string | null>(null);- const [handledSummaryGroupId, setHandledSummaryGroupId] = createSignal<string | null>(null);- const [handledSourceParam, setHandledSourceParam] = createSignal<string | null>(null);- const [handledQueryParam, setHandledQueryParam] = createSignal('');-- let highlightTimer: number | undefined;- createEffect(() => {- const { resource: resourceId } = parseInfrastructureLinkSearch(location.search);- if (!resourceId || resourceId === handledResourceId()) return;- const matching = resources().some((resource) => resource.id === resourceId);- if (!matching) return;- setExpandedResourceId(resourceId);- setHighlightedResourceId(resourceId);- setHandledResourceId(resourceId);- if (highlightTimer) {- window.clearTimeout(highlightTimer);- }- highlightTimer = window.setTimeout(() => {- setHighlightedResourceId(null);- }, 2000);- });-- createEffect(() => {- const { resource: resourceId } = parseInfrastructureLinkSearch(location.search);- if (resourceId) return;- if (handledResourceId() === null) return;-- if (expandedResourceId() !== null) {- setExpandedResourceId(null);- }- if (highlightedResourceId() !== null) {- setHighlightedResourceId(null);- }- setHandledResourceId(null);- });-- createEffect(() => {- const { summaryGroup: summaryGroupId } = parseInfrastructureLinkSearch(location.search);- if (!summaryGroupId) {- if (handledSummaryGroupId() === null) {- return;- }- setFocusedResourceGroupId(null);- setHandledSummaryGroupId(null);- return;- }- if (summaryGroupId === handledSummaryGroupId()) return;- setFocusedResourceGroupId(summaryGroupId);- setHandledSummaryGroupId(summaryGroupId);- });-- createEffect(() => {- const { source: sourceParam } = parseInfrastructureLinkSearch(location.search);- if (!sourceParam) {- const previous = (handledSourceParam() ?? '').trim();- if (previous) {- if (selectedSource() !== '') setSelectedSource('');- setHandledSourceParam('');- } else if (handledSourceParam() === null) {- setHandledSourceParam('');- }- return;- }- if (sourceParam === handledSourceParam()) return;- const normalized = normalizeSourcePlatformKey(sourceParam) ?? '';- setSelectedSource(normalized);- setHandledSourceParam(sourceParam);- });-- createEffect(() => {- const { query: nextSearch } = parseInfrastructureLinkSearch(location.search);- const normalized = nextSearch ?? '';- if (normalized !== handledQueryParam()) {- if (normalized !== untrack(searchQuery)) {- setSearchQuery(normalized);- }- setHandledQueryParam(normalized);- }- });-- createEffect(() => {- if (location.pathname !== INFRASTRUCTURE_PATH) return;-- const parsed = parseInfrastructureLinkSearch(location.search);- const urlSource = parsed.source ?? '';- const urlQuery = parsed.query ?? '';- const urlResource = parsed.resource ?? '';- const urlSummaryGroup = parsed.summaryGroup ?? '';- if ((handledSourceParam() ?? '') !== urlSource) return;- if (handledQueryParam() !== urlQuery) return;- if (urlResource && handledResourceId() !== urlResource && !initialLoadComplete()) return;- if (urlSummaryGroup && handledSummaryGroupId() !== urlSummaryGroup && !initialLoadComplete()) return;-- const nextSource = selectedSource();- const nextQuery = searchQuery().trim();-- const managedPath = buildInfrastructurePath({- source: nextSource || null,- query: nextQuery || null,- });- const managedUrl = new URL(managedPath, 'http://pulse.local');- const currentParams = new URLSearchParams(location.search);- const nextParams = new URLSearchParams(location.search);- nextParams.delete(INFRASTRUCTURE_QUERY_PARAMS.source);- nextParams.delete(INFRASTRUCTURE_QUERY_PARAMS.query);- managedUrl.searchParams.forEach((value, key) => {- nextParams.set(key, value);- });-- if (!areSearchParamsEquivalent(currentParams, nextParams)) {- const nextSearch = nextParams.toString();- const nextPath = nextSearch ? `${INFRASTRUCTURE_PATH}?${nextSearch}` : INFRASTRUCTURE_PATH;- routeStateNavigate.schedule(nextPath);- }- });-- createEffect(() => {- const hoveredId = hoveredResourceId();- if (!hoveredId) return;- const exists = filteredResources().some((resource) => resource.id === hoveredId);- if (!exists) {- setHoveredResourceId(null);- }- });-- createEffect(() => {- const revealedId = revealedResourceId();- if (!revealedId) return;- const exists = filteredResources().some((resource) => resource.id === revealedId);- if (!exists) {- setRevealedResourceId(null);- }- });-- onCleanup(() => {- routeStateNavigate.cleanup();- if (highlightTimer) {- window.clearTimeout(highlightTimer);- }- });-- return {- expandedResourceId,- focusedResourceGroupId,- setExpandedResourceId,- setFocusedResourceGroupId,- hoveredResourceId,- setHoveredResourceId,- highlightedResourceId,- revealedResourceId,- setRevealedResourceId,- };-}--export type InfrastructurePageRouteState = ReturnType<typeof useInfrastructurePageRouteState>;diff --git a/frontend-modern/src/features/infrastructure/useInfrastructurePageState.ts b/frontend-modern/src/features/infrastructure/useInfrastructurePageState.tsdeleted file mode 100644index 573f3f3171..0000000000--- a/frontend-modern/src/features/infrastructure/useInfrastructurePageState.ts+++ /dev/null@@ -1,264 +0,0 @@-import { createEffect, createMemo, createSignal } from 'solid-js';-import type { TimeRange } from '@/api/charts';-import { preserveScrollableAncestorVerticalOffset } from '@/components/shared/contextualFocus';-import { useUnifiedResources } from '@/hooks/useUnifiedResources';-import { usePersistentSignal } from '@/hooks/usePersistentSignal';-import { useBreakpoint } from '@/hooks/useBreakpoint';-import { STORAGE_KEYS } from '@/utils/localStorage';-import { useKioskMode } from '@/hooks/useKioskMode';-import { useSummaryPageInteractionState } from '@/components/shared/summaryTableFocus';-import { isSummaryTimeRange } from '@/components/shared/summaryTimeRange';-import { capturePendingAppShellRestoreTop } from '@/utils/appShellScrollRestoration';-import {- buildInfrastructureSummaryGroupScope,- groupResources,- infrastructureHasVisibleSummaryGroupScope,-} from '@/components/Infrastructure/infrastructureSelectors';-import {- isSummarySeriesInGroupScope,- type SummarySeriesGroupScope,-} from '@/components/shared/summaryCardInteraction';-import { useInfrastructurePageRouteState } from './useInfrastructurePageRouteState';-import { buildInfrastructurePageFilterDerivation } from './infrastructurePageModel';--export type GroupingMode = 'grouped' | 'flat';--type DeployCluster = {- id: string;- name: string;-};--export function useInfrastructurePageState() {- const { resources, loading, error, refetch } = useUnifiedResources({- initialHydration: 'prefer-ws-then-rest',- });- const kioskMode = useKioskMode();- const { isMobile } = useBreakpoint();-- const [initialLoadComplete, setInitialLoadComplete] = createSignal(false);- const [selectedSource, setSelectedSource] = createSignal('');- const [selectedStatus, setSelectedStatus] = createSignal('');- const [searchQuery, setSearchQuery] = createSignal('');- const [infrastructureSummaryRange, setInfrastructureSummaryRange] =- usePersistentSignal<TimeRange>(STORAGE_KEYS.INFRASTRUCTURE_SUMMARY_RANGE, '1h', {- deserialize: (raw) => (isSummaryTimeRange(raw) ? raw : '1h'),- });- const [summaryCollapsed, setSummaryCollapsed] = usePersistentSignal<boolean>(- STORAGE_KEYS.INFRASTRUCTURE_SUMMARY_COLLAPSED,- false,- { deserialize: (raw) => raw === 'true' },- );- const [groupingMode, setGroupingMode] = usePersistentSignal<GroupingMode>(- 'infrastructureGroupingMode',- 'grouped',- { deserialize: (raw) => (raw === 'grouped' || raw === 'flat' ? raw : 'grouped') },- );- const [hoveredResourceGroupScope, setHoveredResourceGroupScope] =- createSignal<SummarySeriesGroupScope | null>(null);- const [deployCluster, setDeployCluster] = createSignal<DeployCluster | null>(null);- const [filtersOpen, setFiltersOpen] = createSignal(false);- const [tableRootRef, setTableRootRef] = createSignal<HTMLDivElement | undefined>(undefined);-- const hasResources = createMemo(() => resources().length > 0);- const showNoResources = createMemo(() => initialLoadComplete() && !hasResources() && !error());- const filterDerivation = createMemo(() =>- buildInfrastructurePageFilterDerivation(- resources(),- selectedSource(),- selectedStatus(),- searchQuery(),- ),- );- const activeFilterCount = createMemo(() => filterDerivation().activeFilterCount);- const availableSources = createMemo(() => filterDerivation().availableSources);- const sourceOptions = createMemo(() => filterDerivation().sourceOptions);- const statusOptions = createMemo(() => filterDerivation().statusOptions);- const hasActiveFilters = createMemo(() => filterDerivation().hasActiveFilters);- const filteredResources = createMemo(() => filterDerivation().filteredResources);- const hasFilteredResources = createMemo(() => filterDerivation().hasFilteredResources);- const routeState = useInfrastructurePageRouteState({- resources,- filteredResources,- initialLoadComplete,- selectedSource,- setSelectedSource,- searchQuery,- setSearchQuery,- });- const focusedResourceGroupScope = createMemo<SummarySeriesGroupScope | null>(() => {- if (groupingMode() !== 'grouped') {- return null;- }- const focusedGroupId = routeState.focusedResourceGroupId();- if (!focusedGroupId) {- return null;- }- const groups = groupResources(filteredResources(), groupingMode());- for (const group of groups) {- const scope = buildInfrastructureSummaryGroupScope(group);- if (scope?.id === focusedGroupId) {- return scope;- }- }- return null;- });- const clearPinnedSummaryScope = () => {- capturePendingAppShellRestoreTop();- preserveTableScrollAnchor(() => {- routeState.setExpandedResourceId(null);- routeState.setFocusedResourceGroupId(null);- });- };- const clearAllPageStateOnEscape = () => {- clearPinnedSummaryScope();- clearFilters();- };- const summaryInteraction = useSummaryPageInteractionState({- clearPinnedScope: clearPinnedSummaryScope,- hoveredSeriesId: routeState.hoveredResourceId,- hoveredGroupScope: hoveredResourceGroupScope,- focusedSeriesId: routeState.expandedResourceId,- focusedGroupId: routeState.focusedResourceGroupId,- focusedGroupScope: focusedResourceGroupScope,- onEscapeClear: clearAllPageStateOnEscape,- revealActiveSeries: routeState.setRevealedResourceId,- });- const setSummaryTableRootRef = (element: HTMLDivElement | undefined) => {- setTableRootRef(element);- summaryInteraction.setTableRootRef(element);- };-- const setSummaryClearSurfaceRootRef = (element: HTMLDivElement | undefined) => {- summaryInteraction.setClearSurfaceRootRef(element);- };-- const preserveTableScrollAnchor = (apply: () => void) => {- preserveScrollableAncestorVerticalOffset(tableRootRef(), apply);- };-- const setExpandedResourceId = (resourceId: string | null) => {- capturePendingAppShellRestoreTop();- const groupScope = focusedResourceGroupScope();- if (groupScope && resourceId && !isSummarySeriesInGroupScope(groupScope, resourceId)) {- preserveTableScrollAnchor(() => {- routeState.setFocusedResourceGroupId(null);- });- }- preserveTableScrollAnchor(() => {- routeState.setExpandedResourceId(resourceId);- });- };-- const setFocusedResourceGroupId = (groupId: string | null) => {- capturePendingAppShellRestoreTop();- preserveTableScrollAnchor(() => {- routeState.setFocusedResourceGroupId(groupId);- });- };-- const clearFilters = () => {- setSelectedSource('');- setSelectedStatus('');- setSearchQuery('');- };-- createEffect(() => {- if (!loading() && !initialLoadComplete()) {- setInitialLoadComplete(true);- }- });-- createEffect(() => {- if (groupingMode() === 'grouped') {- return;- }- if (hoveredResourceGroupScope()) {- setHoveredResourceGroupScope(null);- }- if (routeState.focusedResourceGroupId()) {- routeState.setFocusedResourceGroupId(null);- }- });-- createEffect(() => {- const groupScope = hoveredResourceGroupScope();- if (!groupScope) {- return;- }- if (!infrastructureHasVisibleSummaryGroupScope(filteredResources(), groupScope)) {- setHoveredResourceGroupScope(null);- }- });-- createEffect(() => {- const focusedGroupId = routeState.focusedResourceGroupId();- if (!focusedGroupId) {- return;- }- if (!focusedResourceGroupScope()) {- routeState.setFocusedResourceGroupId(null);- }- });-- createEffect(() => {- const expandedResourceId = routeState.expandedResourceId();- const groupScope = focusedResourceGroupScope();- if (!expandedResourceId || !groupScope) {- return;- }- if (!isSummarySeriesInGroupScope(groupScope, expandedResourceId)) {- routeState.setExpandedResourceId(null);- }- });-- return {- loading,- error,- refetch,- initialLoadComplete,- showNoResources,- selectedSource,- setSelectedSource,- selectedStatus,- setSelectedStatus,- searchQuery,- setSearchQuery,- infrastructureSummaryRange,- setInfrastructureSummaryRange,- summaryCollapsed,- setSummaryCollapsed,- groupingMode,- setGroupingMode,- activeSummaryScopeState: summaryInteraction.activeScopeState,- activeSummaryResourceId: summaryInteraction.activeSeriesId,- activeSummaryResourceGroupScope: summaryInteraction.activeGroupScope,- clearPinnedSummaryScope,- focusedSummaryResourceGroupScope: focusedResourceGroupScope,- focusedSummaryResourceGroupId: routeState.focusedResourceGroupId,- hoveredSummaryResourceGroupScope: hoveredResourceGroupScope,- ...routeState,- chartHoverSync: summaryInteraction.chartHoverSync,- isMobile,- jumpToActiveResourceRow: summaryInteraction.jumpToActiveRow,- deployCluster,- setDeployCluster,- filtersOpen,- setFiltersOpen,- activeFilterCount,- kioskMode,- availableSources,- sourceOptions,- statusOptions,- hasActiveFilters,- clearFilters,- filteredResources,- hasFilteredResources,- setExpandedResourceId,- setChartHoverSync: summaryInteraction.setChartHoverSync,- setHoveredResourceGroupScope,- setSummaryClearSurfaceRootRef,- setSummaryTableRootRef,- shouldShowJumpToActiveResourceRow: summaryInteraction.shouldShowJumpToActiveRow,- setFocusedResourceGroupId,- };-}diff --git a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts b/frontend-modern/src/routing/__tests__/resourceLinks.test.tsindex 461e040cfa..14b7a78a65 100644--- a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts+++ b/frontend-modern/src/routing/__tests__/resourceLinks.test.ts@@ -16,16 +16,13 @@ import {buildDockerPath,buildKubernetesPath,buildRecoveryPath,- buildInfrastructurePath,buildProxmoxPath,buildStoragePath,buildTrueNASPath,buildVmwarePath,buildWorkloadsPath,parseRecoveryLinkSearch,- INFRASTRUCTURE_QUERY_PARAMS,parseStorageLinkSearch,- parseInfrastructureLinkSearch,parseWorkloadsLinkSearch,STORAGE_QUERY_PARAMS,WORKLOADS_QUERY_PARAMS,@@ -122,40 +119,6 @@ describe('resource link routing contract', () => {).toBe('/workloads?type=pod&platform=kubernetes&context=cluster-a');});- it('builds and parses infrastructure query params', () => {- const href = buildInfrastructurePath({- source: 'docker',- query: 'docker-host-1',- resource: 'docker-host-1',- });- expect(href).toBe('/infrastructure?source=docker&q=docker-host-1&resource=docker-host-1');-- const parsed = parseInfrastructureLinkSearch(href.slice('/infrastructure'.length));- expect(parsed).toEqual({- source: 'docker',- query: 'docker-host-1',- resource: 'docker-host-1',- summaryGroup: '',- });-- expect(INFRASTRUCTURE_QUERY_PARAMS.source).toBe('source');- expect(INFRASTRUCTURE_QUERY_PARAMS.query).toBe('q');- expect(INFRASTRUCTURE_QUERY_PARAMS.resource).toBe('resource');- expect(INFRASTRUCTURE_QUERY_PARAMS.summaryGroup).toBe('summaryGroup');- });-- it('canonicalizes infrastructure source aliases when building and parsing links', () => {- expect(buildInfrastructurePath({ source: 'proxmox', query: 'pve1' })).toBe(- '/infrastructure?source=proxmox-pve&q=pve1',- );- expect(parseInfrastructureLinkSearch('?source=pbs&q=archive')).toEqual({- source: 'proxmox-pbs',- query: 'archive',- resource: '',- summaryGroup: '',- });- });-it('builds and parses storage query params', () => {const href = buildStoragePath({tab: 'disks',diff --git a/frontend-modern/src/routing/resourceLinks.ts b/frontend-modern/src/routing/resourceLinks.tsindex 4874a257ed..2a1abe0923 100644--- a/frontend-modern/src/routing/resourceLinks.ts+++ b/frontend-modern/src/routing/resourceLinks.ts@@ -36,15 +36,6 @@ export const AI_PATROL_PATH = PATROL_PATH;// Canonical "Recovery" surface (was historically called Backups).export const RECOVERY_PATH = '/recovery';-export const INFRASTRUCTURE_QUERY_PARAMS = {- source: 'source',- query: 'q',- resource: 'resource',- summaryGroup: 'summaryGroup',-} as const;--export const INFRASTRUCTURE_PATH = '/infrastructure';-export const STORAGE_QUERY_PARAMS = {tab: 'tab',group: 'group',@@ -110,13 +101,6 @@ type WorkloadsLinkOptions = {summaryGroup?: string | null;};-type InfrastructureLinkOptions = {- source?: string | null;- query?: string | null;- resource?: string | null;- summaryGroup?: string | null;-};-type StorageLinkOptions = {tab?: string | null;group?: string | null;@@ -219,30 +203,6 @@ export const buildVmwarePath = (tab: string = VMWARE_DEFAULT_TAB): string => {return normalized ? `${VMWARE_PATH}/${normalized}` : VMWARE_PATH;};-export const parseInfrastructureLinkSearch = (search: string) => {- const params = new URLSearchParams(search);- return {- source: normalizeSourcePlatformQueryValue(params.get(INFRASTRUCTURE_QUERY_PARAMS.source)),- query: normalizeQueryValue(params.get(INFRASTRUCTURE_QUERY_PARAMS.query)),- resource: normalizeQueryValue(params.get(INFRASTRUCTURE_QUERY_PARAMS.resource)),- summaryGroup: normalizeQueryValue(params.get(INFRASTRUCTURE_QUERY_PARAMS.summaryGroup)),- };-};--export const buildInfrastructurePath = (options: InfrastructureLinkOptions = {}): string => {- const params = new URLSearchParams();- const source = normalizeSourcePlatformQueryValue(options.source);- const query = normalizeQueryValue(options.query);- const resource = normalizeQueryValue(options.resource);- const summaryGroup = normalizeQueryValue(options.summaryGroup);- if (source) params.set(INFRASTRUCTURE_QUERY_PARAMS.source, source);- if (query) params.set(INFRASTRUCTURE_QUERY_PARAMS.query, query);- if (resource) params.set(INFRASTRUCTURE_QUERY_PARAMS.resource, resource);- if (summaryGroup) params.set(INFRASTRUCTURE_QUERY_PARAMS.summaryGroup, summaryGroup);- const serialized = params.toString();- return serialized ? `${INFRASTRUCTURE_PATH}?${serialized}` : INFRASTRUCTURE_PATH;-};-export const parseStorageLinkSearch = (search: string) => {const params = new URLSearchParams(search);return {diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.tsindex b3ea933562..74a2269d94 100644--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts@@ -142,7 +142,6 @@ import environmentLockPresentationSource from '@/utils/environmentLockPresentatiimport dockerRuntimeSettingsCardSource from '@/components/Settings/DockerRuntimeSettingsCard.tsx?raw';import operationsPageRouteSource from '@/pages/Operations.tsx?raw';import discoveryTargetSource from '@/utils/discoveryTarget.ts?raw';-import infrastructureEmptyStatePresentationSource from '@/utils/infrastructureEmptyStatePresentation.ts?raw';import recoveryComponentSource from '@/components/Recovery/Recovery.tsx?raw';import recoveryActivitySectionSource from '@/components/Recovery/RecoveryActivitySection.tsx?raw';import recoveryHistorySectionSource from '@/components/Recovery/RecoveryHistorySection.tsx?raw';@@ -308,6 +307,7 @@ import securityAuthPresentationSource from '@/utils/securityAuthPresentation.ts?import resourceDetailDrawerShellSource from '@/components/Infrastructure/ResourceDetailDrawer.tsx?raw';import resourceDetailDrawerOverviewSource from '@/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx?raw';import resourceDetailDrawerDebugSource from '@/components/Infrastructure/ResourceDetailDrawerDebugTab.tsx?raw';+import resourceDetailSummarySource from '@/components/Infrastructure/ResourceDetailSummary.tsx?raw';import infrastructureSummarySource from '@/components/Infrastructure/InfrastructureSummary.tsx?raw';import infrastructureSummaryStateSource from '@/components/Infrastructure/useInfrastructureSummaryState.ts?raw';import infrastructureSummaryModelSource from '@/components/Infrastructure/infrastructureSummaryModel.ts?raw';@@ -574,10 +574,6 @@ import remediationPresentationSource from '@/utils/remediationPresentation.ts?raimport aiChatPresentationSource from '@/utils/aiChatPresentation.ts?raw';import infrastructureDetailsDrawerSource from '@/components/shared/InfrastructureDetailsDrawer.tsx?raw';import infrastructureDetailsDrawerModelSource from '@/components/shared/infrastructureDetailsDrawerModel.ts?raw';-import infrastructurePageSurfaceSource from '@/features/infrastructure/InfrastructurePageSurface.tsx?raw';-import infrastructurePageModelSource from '@/features/infrastructure/infrastructurePageModel.ts?raw';-import infrastructurePageStateSource from '@/features/infrastructure/useInfrastructurePageState.ts?raw';-import infrastructurePageRouteStateSource from '@/features/infrastructure/useInfrastructurePageRouteState.ts?raw';import infrastructureDetailsDrawerStateSource from '@/components/shared/useInfrastructureDetailsDrawerState.ts?raw';const aiSettingsSource = [@@ -601,12 +597,6 @@ const resourceDetailDrawerSource = [resourceDetailDrawerStateSource,].join('\n');-const infrastructurePageSource = [- infrastructurePageSurfaceSource,- infrastructurePageRouteStateSource,- infrastructurePageStateSource,-].join('\n');-describe('frontend resource type boundaries', () => {it('keeps the shared compatibility adapter narrow and explicit', () => {expect(resourceTypeCompatSource).toContain('export const canonicalizeFrontendResourceType');@@ -959,9 +949,9 @@ describe('frontend resource type boundaries', () => {expect(guestRowCellsSource).toContain('useTooltip');expect(guestRowSource).not.toContain('buildGuestId');expect(tagBadgesSource).toContain("from '@/components/shared/Tooltip'");- expect(resourceDetailDrawerOverviewSource).toContain("from '@/components/shared/TagBadges'");+ expect(resourceDetailSummarySource).toContain("from '@/components/shared/TagBadges'");expect(resourceDetailDrawerOverviewSource).toContain('getAllFilterOptionLabel');- expect(resourceDetailDrawerOverviewSource).not.toContain(+ expect(resourceDetailSummarySource).not.toContain("from '@/components/Workloads/TagBadges'",);expect(resourceDetailDrawerShellSource).toContain("from './ResourceDetailDrawerOverviewTab'");@@ -4586,63 +4576,6 @@ describe('frontend resource type boundaries', () => {);});- it('keeps infrastructure page empty-state copy in a shared presentation utility', () => {- expect(infrastructurePageSurfaceSource).toContain('useInfrastructurePageState');- expect(infrastructurePageSurfaceSource).toContain('useNavigate');- expect(infrastructurePageSurfaceSource).not.toContain('useLocation(');- expect(infrastructurePageSurfaceSource).not.toContain('buildInfrastructurePath(');- expect(infrastructurePageStateSource).toContain('useInfrastructurePageRouteState');- expect(infrastructurePageStateSource).toContain('buildInfrastructurePageFilterDerivation');- expect(infrastructurePageStateSource).not.toContain('useLocation(');- expect(infrastructurePageStateSource).not.toContain('useNavigate(');- expect(infrastructurePageStateSource).not.toContain('parseInfrastructureLinkSearch(');- expect(infrastructurePageStateSource).not.toContain('buildInfrastructurePath(');- expect(infrastructurePageStateSource).not.toContain('areSearchParamsEquivalent(');- expect(infrastructurePageStateSource).not.toContain('collectAvailableSources(');- expect(infrastructurePageStateSource).not.toContain('collectAvailableStatuses(');- expect(infrastructurePageStateSource).not.toContain('buildStatusOptions(');- expect(infrastructurePageStateSource).not.toContain('tokenizeSearch(');- expect(infrastructurePageStateSource).not.toContain('filterResources(');- expect(infrastructurePageRouteStateSource).toContain('useLocation');- expect(infrastructurePageRouteStateSource).toContain('useNavigate');- expect(infrastructurePageRouteStateSource).toContain('parseInfrastructureLinkSearch');- expect(infrastructurePageRouteStateSource).toContain('buildInfrastructurePath');- expect(infrastructurePageRouteStateSource).toContain('areSearchParamsEquivalent');- expect(infrastructurePageModelSource).toContain(- 'export function buildInfrastructurePageFilterDerivation',- );- expect(infrastructurePageModelSource).toContain('collectAvailableSources');- expect(infrastructurePageModelSource).toContain('collectAvailableStatuses');- expect(infrastructurePageModelSource).toContain('buildStatusOptions');- expect(infrastructurePageModelSource).toContain('tokenizeSearch');- expect(infrastructurePageModelSource).toContain('filterResources');- expect(infrastructurePageSource).toContain('getInfrastructureEmptyState');- expect(infrastructurePageSource).toContain('getInfrastructureFilterEmptyState');- expect(infrastructurePageSource).toContain('getInfrastructureLoadFailureState');- expect(infrastructurePageSource).not.toContain('No infrastructure resources yet');- expect(infrastructurePageSource).not.toContain('No resources match filters');- expect(infrastructurePageSource).not.toContain(- 'Add Proxmox VE nodes or install the Pulse agent on your infrastructure to start monitoring.',- );- expect(infrastructurePageSource).not.toContain(- 'Try adjusting the search, source, or status filters.',- );- expect(infrastructurePageSource).not.toContain('Unable to load infrastructure');- expect(infrastructurePageSource).not.toContain(- 'We couldn’t fetch unified resources. Check connectivity or retry.',- );- expect(infrastructurePageSource).not.toContain('Retry');- expect(infrastructureEmptyStatePresentationSource).toContain(- 'export function getInfrastructureEmptyState',- );- expect(infrastructureEmptyStatePresentationSource).toContain(- 'export function getInfrastructureFilterEmptyState',- );- expect(infrastructureEmptyStatePresentationSource).toContain(- 'export function getInfrastructureLoadFailureState',- );- });-it('keeps alert incident timeline state copy in a shared presentation utility', () => {expect(alertOverviewTabSource).toContain('useAlertIncidentTimelineState');expect(alertOverviewTabSource).toContain('useAlertOverviewState');diff --git a/frontend-modern/src/utils/__tests__/infrastructureEmptyStatePresentation.test.ts b/frontend-modern/src/utils/__tests__/infrastructureEmptyStatePresentation.test.tsdeleted file mode 100644index aacafcddfa..0000000000--- a/frontend-modern/src/utils/__tests__/infrastructureEmptyStatePresentation.test.ts+++ /dev/null@@ -1,33 +0,0 @@-import { describe, expect, it } from 'vitest';-import {- getInfrastructureEmptyState,- getInfrastructureFilterEmptyState,- getInfrastructureLoadFailureState,-} from '@/utils/infrastructureEmptyStatePresentation';--describe('infrastructureEmptyStatePresentation', () => {- it('returns the infrastructure onboarding empty state', () => {- expect(getInfrastructureEmptyState()).toEqual({- title: 'No infrastructure sources yet',- description:- 'Start in Settings → Infrastructure by choosing a source strategy. Connect a platform API for inventory and health, install Pulse Agent for host telemetry, or use both when you want full coverage.',- actionLabel: 'Add infrastructure source',- });- });-- it('returns the filtered infrastructure empty state', () => {- expect(getInfrastructureFilterEmptyState()).toEqual({- title: 'No resources match filters',- description: 'Try adjusting the search, source, or status filters.',- actionLabel: 'Clear filters',- });- });-- it('returns the infrastructure load failure state', () => {- expect(getInfrastructureLoadFailureState()).toEqual({- title: 'Unable to load infrastructure',- description: 'We couldn’t fetch unified resources. Check connectivity or retry.',- actionLabel: 'Retry',- });- });-});diff --git a/frontend-modern/src/utils/__tests__/routeStateNavigation.test.ts b/frontend-modern/src/utils/__tests__/routeStateNavigation.test.tsindex 0659cd9fbe..49b08c2357 100644--- a/frontend-modern/src/utils/__tests__/routeStateNavigation.test.ts+++ b/frontend-modern/src/utils/__tests__/routeStateNavigation.test.ts@@ -51,14 +51,14 @@ describe('routeStateNavigation', () => {it('preserves scroll when replacing query state on the same pathname', () => {const navigate = vi.fn();- let currentPath = '/infrastructure?source=proxmox-pve';+ let currentPath = '/workloads?type=app-container';const scheduler = createRouteStateNavigateScheduler(navigate, () => currentPath);- scheduler.schedule('/infrastructure?source=proxmox-pve&resource=agent-123');+ scheduler.schedule('/workloads?type=app-container&resource=agent-123');vi.runAllTimers();expect(navigate).toHaveBeenCalledWith(- '/infrastructure?source=proxmox-pve&resource=agent-123',+ '/workloads?type=app-container&resource=agent-123',ROUTE_STATE_REPLACE_OPTIONS,);expect(scrollToSpy).toHaveBeenCalledWith(24, 320);@@ -67,14 +67,14 @@ describe('routeStateNavigation', () => {it('cancels deferred same-path scroll restoration when cleaned up', () => {const navigate = vi.fn();- let currentPath = '/infrastructure?source=proxmox-pve';+ let currentPath = '/workloads?type=app-container';const scheduler = createRouteStateNavigateScheduler(navigate, () => currentPath);- scheduler.schedule('/infrastructure?source=proxmox-pve&resource=agent-123');+ scheduler.schedule('/workloads?type=app-container&resource=agent-123');vi.advanceTimersByTime(0);expect(navigate).toHaveBeenCalledWith(- '/infrastructure?source=proxmox-pve&resource=agent-123',+ '/workloads?type=app-container&resource=agent-123',ROUTE_STATE_REPLACE_OPTIONS,);expect(scrollToSpy).toHaveBeenCalledTimes(1);@@ -87,18 +87,18 @@ describe('routeStateNavigation', () => {it('captures the app scroll shell before same-path route state navigation', () => {const navigate = vi.fn();- let currentPath = '/infrastructure?source=proxmox-pve';+ let currentPath = '/workloads?type=app-container';const scheduler = createRouteStateNavigateScheduler(navigate, () => currentPath);const shell = document.createElement('div');shell.className = 'app-scroll-shell';shell.scrollTop = 55;document.body.appendChild(shell);- scheduler.schedule('/infrastructure?source=proxmox-pve&resource=agent-123');+ scheduler.schedule('/workloads?type=app-container&resource=agent-123');vi.runAllTimers();expect(navigate).toHaveBeenCalledWith(- '/infrastructure?source=proxmox-pve&resource=agent-123',+ '/workloads?type=app-container&resource=agent-123',ROUTE_STATE_REPLACE_OPTIONS,);expect(readPendingAppShellRestoreTop()).toBe(55);@@ -118,10 +118,10 @@ describe('routeStateNavigation', () => {it('stops replaying preserved scroll after a later deliberate scroll change', () => {const navigate = vi.fn();- let currentPath = '/infrastructure?source=proxmox-pve';+ let currentPath = '/workloads?type=app-container';const scheduler = createRouteStateNavigateScheduler(navigate, () => currentPath);- scheduler.schedule('/infrastructure?source=proxmox-pve&resource=agent-123');+ scheduler.schedule('/workloads?type=app-container&resource=agent-123');vi.advanceTimersByTime(0);expect(scrollToSpy).toHaveBeenCalledTimes(1);diff --git a/frontend-modern/src/utils/infrastructureEmptyStatePresentation.ts b/frontend-modern/src/utils/infrastructureEmptyStatePresentation.tsdeleted file mode 100644index dcfd42949d..0000000000--- a/frontend-modern/src/utils/infrastructureEmptyStatePresentation.ts+++ /dev/null@@ -1,25 +0,0 @@-import { getInfrastructureSourceStrategyDescription } from '@/utils/infrastructureSettingsPresentation';--export function getInfrastructureEmptyState() {- return {- title: 'No infrastructure sources yet',- description: getInfrastructureSourceStrategyDescription(),- actionLabel: 'Add infrastructure source',- } as const;-}--export function getInfrastructureFilterEmptyState() {- return {- title: 'No resources match filters',- description: 'Try adjusting the search, source, or status filters.',- actionLabel: 'Clear filters',- } as const;-}--export function getInfrastructureLoadFailureState() {- return {- title: 'Unable to load infrastructure',- description: 'We couldn’t fetch unified resources. Check connectivity or retry.',- actionLabel: 'Retry',- } as const;-}