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
Canonicalize remaining table shells
rcourtman65fe50ad5b3a
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex daa8cfde94..1eddc1fd26 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -62,17 +62,21 @@ management, and fleet control surfaces.40. `frontend-modern/src/components/Settings/NodeModalStatusFooter.tsx`41. `frontend-modern/src/components/Settings/useNodeModalState.ts`42. `frontend-modern/src/components/SetupWizard/SetupCompletionPanel.tsx`-43. `frontend-modern/src/components/Infrastructure/deploy/ResultsStep.tsx`-44. `frontend-modern/src/utils/agentProfilesPresentation.ts`-45. `frontend-modern/src/utils/agentInstallCommand.ts`-46. `frontend-modern/src/utils/infrastructureOnboardingPresentation.ts`-47. `frontend-modern/src/api/nodes.ts`-48. `frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx`-49. `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx`-50. `frontend-modern/src/components/Settings/infrastructureSettingsModel.ts`-51. `frontend-modern/src/components/Settings/useInfrastructureConfiguredNodesState.ts`-52. `frontend-modern/src/components/Settings/useInfrastructureDiscoveryRuntimeState.ts`-53. `frontend-modern/src/utils/infrastructureSettingsPresentation.ts`+43. `frontend-modern/src/components/Infrastructure/deploy/CandidatesStep.tsx`+44. `frontend-modern/src/components/Infrastructure/deploy/ConfirmStep.tsx`+45. `frontend-modern/src/components/Infrastructure/deploy/DeployingStep.tsx`+46. `frontend-modern/src/components/Infrastructure/deploy/PreflightStep.tsx`+47. `frontend-modern/src/components/Infrastructure/deploy/ResultsStep.tsx`+48. `frontend-modern/src/utils/agentProfilesPresentation.ts`+49. `frontend-modern/src/utils/agentInstallCommand.ts`+50. `frontend-modern/src/utils/infrastructureOnboardingPresentation.ts`+51. `frontend-modern/src/api/nodes.ts`+52. `frontend-modern/src/components/Settings/InfrastructureInstallerSection.tsx`+53. `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx`+54. `frontend-modern/src/components/Settings/infrastructureSettingsModel.ts`+55. `frontend-modern/src/components/Settings/useInfrastructureConfiguredNodesState.ts`+56. `frontend-modern/src/components/Settings/useInfrastructureDiscoveryRuntimeState.ts`+57. `frontend-modern/src/utils/infrastructureSettingsPresentation.ts`54. `frontend-modern/src/utils/agentCapabilityPresentation.ts`55. `frontend-modern/src/utils/agentProfileSuggestionPresentation.ts`56. `frontend-modern/src/utils/configuredNodeCapabilityPresentation.ts`@@ -2262,11 +2266,15 @@ installer contract. That fallback surface must consume the shared validated`NodesAPI.getAgentInstallCommand` response, so malformed backend payloads failclosed and the raw backend install token stays inside the shared clientboundary rather than leaking into deploy UI state.+Deploy wizard target tables are lifecycle-owned presentation surfaces:+`CandidatesStep`, `ConfirmStep`, `PreflightStep`, `DeployingStep`, and+`ResultsStep` must use the shared frontend `Table` primitive for scroll and+table semantics instead of raw table markup or step-local scroll frames.Deploy selection and retry capacity feedback may consume the monitored-systemcapacity boundary owned by API/cloud-paid, but lifecycle UI must label thatstate as workspace capacity and must not reintroduce legacy license-slot orplan-upgrade language in deploy confirmation, preflight, or retry surfaces.-That same `ResultsStep` boundary must also stay on the direct+That same deploy wizard boundary must also stay on the direct`deploy-fallback-install-surface` proof path, rather than relying only on theshared install helper or downstream deploy tests to catch lifecycle drift inthe infrastructure fallback surface.diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex a5c86788f4..21be57c4e6 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -167,6 +167,13 @@ usage and spend backing Pulse Assistant and Patrol rather than generic `AI`history, and `frontend-modern/src/utils/aiCostPresentation.ts` must own thetitle, empty/loading states, budget note, and reset/export history messaging sosettings shells and runtime widgets do not fork their own usage wording.+That same runtime-facing table ownership applies to the cost dashboard shell:+`frontend-modern/src/components/AI/AICostDashboard.tsx` owns provider usage,+budget, and history semantics, but its tabular presentation must compose the+shared `frontend-modern/src/components/shared/Table.tsx` primitive instead of+carrying AI-local scroll wrappers or raw table shell markup. Any future AI+usage table styling change must extend the shared primitive or its governed+wrapper affordances first, then consume that contract from the dashboard.`internal/ai/` is the live backend AI engine. It owns chat execution, Patrolorchestration, findings generation, investigation support, provider selection,diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex bf887f7ec3..62913054b0 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -190,7 +190,12 @@ work extends shared components instead of creating new local variants.shared table shell still owns overflow behavior. Resource-detail drawertables that consume `Table`, including Docker Swarm services, Kubernetesnamespaces/deployments, and PMG detail tables, inherit the same scroll-shell- owner instead of carrying drawer-local `overflow-x-auto` wrappers.+ owner instead of carrying drawer-local `overflow-x-auto` wrappers. Other+ product table surfaces, including deploy wizard target tables, AI cost+ tables, Ceph tables, PMG resource panels, and `PulseDataGrid`, must follow+ the same rule: feature owners may pass `wrapperClass` for bounded height,+ border, radius, or scrollbar hiding, but they must not add raw table markup+ or local scroll wrappers around the shared table primitive.Product-table subgroup/header rows must likewise consume the shared`frontend-modern/src/components/shared/groupedTableRowPresentation.ts`helper and `.grouped-table-row` CSS token contract instead of localdiff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.jsonindex 1054110406..1d12773bbf 100644--- a/docs/release-control/v6/internal/subsystems/registry.json+++ b/docs/release-control/v6/internal/subsystems/registry.json@@ -671,6 +671,10 @@"cmd/pulse-agent/main.go","frontend-modern/src/api/agentProfiles.ts","frontend-modern/src/api/nodes.ts",+ "frontend-modern/src/components/Infrastructure/deploy/CandidatesStep.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/ConfirmStep.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/DeployingStep.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/PreflightStep.tsx","frontend-modern/src/components/Infrastructure/deploy/ResultsStep.tsx","frontend-modern/src/components/Settings/AgentProfilesPanel.tsx","frontend-modern/src/components/Settings/ConfiguredNodeTables.tsx",@@ -957,15 +961,26 @@},{"id": "deploy-fallback-install-surface",- "label": "deploy fallback install command proof",+ "label": "deploy wizard surface proof","match_prefixes": [],"match_files": [+ "frontend-modern/src/components/Infrastructure/deploy/CandidatesStep.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/ConfirmStep.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/DeployingStep.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/PreflightStep.tsx","frontend-modern/src/components/Infrastructure/deploy/ResultsStep.tsx"],"allow_same_subsystem_tests": false,"test_prefixes": [],"exact_files": [- "frontend-modern/src/components/Infrastructure/__tests__/DeployStepComponents.test.tsx"+ "frontend-modern/src/components/Infrastructure/__tests__/DeployStepComponents.test.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/__tests__/CandidatesStep.test.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/__tests__/ConfirmStep.test.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/__tests__/DeployingStep.test.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/__tests__/PreflightStep.test.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/__tests__/ResultsStep.test.tsx",+ "frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts",+ "frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts"]},{@@ -4727,6 +4742,7 @@"frontend-modern/src/hooks/useRecoveryPointsFacets.ts","frontend-modern/src/hooks/useRecoveryPointsSeries.ts","frontend-modern/src/hooks/useRecoveryRollups.ts",+ "frontend-modern/src/pages/Ceph.tsx","frontend-modern/src/pages/Recovery.tsx","frontend-modern/src/pages/Storage.tsx","frontend-modern/src/types/recovery.ts",@@ -4823,11 +4839,13 @@"frontend-modern/src/features/storageBackups/"],"match_files": [+ "frontend-modern/src/pages/Ceph.tsx","frontend-modern/src/pages/Storage.tsx"],"allow_same_subsystem_tests": false,"test_prefixes": [],"exact_files": [+ "frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts","frontend-modern/src/components/Storage/__tests__/DiskList.test.tsx","frontend-modern/src/components/Storage/__tests__/Storage.test.tsx","frontend-modern/src/components/Storage/__tests__/StorageControls.test.tsx",@@ -4894,7 +4912,9 @@"frontend-modern/src/components/Infrastructure/useUnifiedResourceTableViewportSync.ts","frontend-modern/src/components/Kubernetes/K8sDeploymentsDrawer.tsx","frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx",+ "frontend-modern/src/components/PMG/MailGateway.tsx","frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx",+ "frontend-modern/src/components/PMG/PMGInstancePanel.tsx","frontend-modern/src/components/PMG/ServiceHealthBadge.tsx","frontend-modern/src/features/infrastructure/infrastructurePageModel.ts","frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx",@@ -5017,7 +5037,9 @@"frontend-modern/src/components/Infrastructure/useUnifiedResourceTableViewportSync.ts","frontend-modern/src/components/Kubernetes/K8sDeploymentsDrawer.tsx","frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx",+ "frontend-modern/src/components/PMG/MailGateway.tsx","frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx",+ "frontend-modern/src/components/PMG/PMGInstancePanel.tsx","frontend-modern/src/features/infrastructure/infrastructurePageModel.ts","frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx","frontend-modern/src/features/infrastructure/useInfrastructurePageRouteState.ts",@@ -5045,6 +5067,7 @@"frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx","frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.workloads-link.test.tsx","frontend-modern/src/components/Infrastructure/__tests__/unifiedResourceTableStateModel.test.ts",+ "frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts","frontend-modern/src/features/infrastructure/__tests__/infrastructurePageModel.test.ts","frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.guardrails.test.ts","frontend-modern/src/hooks/__tests__/useUnifiedResources.test.ts",diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 374f2d2b7c..42bcca7838 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -38,24 +38,25 @@ querying, and the operator-facing storage health presentation layer.11. `frontend-modern/src/components/Recovery/RecoveryPointDetails.tsx`12. `frontend-modern/src/components/Recovery/useRecoveryHistorySectionState.ts`13. `frontend-modern/src/pages/Storage.tsx`-14. `frontend-modern/src/components/Storage/Storage.tsx`-15. `frontend-modern/src/features/storageBackups/storageModelCore.ts`-16. `frontend-modern/src/utils/storageSources.ts`-17. `frontend-modern/src/hooks/useRecoveryPoints.ts`-18. `frontend-modern/src/hooks/useRecoveryRollups.ts`-19. `frontend-modern/src/hooks/useRecoveryPointsFacets.ts`-20. `frontend-modern/src/hooks/useRecoveryPointsSeries.ts`-21. `frontend-modern/src/pages/Recovery.tsx`-22. `frontend-modern/src/routing/resourceLinks.ts`-23. `frontend-modern/src/types/recovery.ts`-28. `frontend-modern/src/utils/recoverySummaryPresentation.ts`-29. `frontend-modern/src/utils/recoveryTablePresentation.ts`-30. `frontend-modern/src/utils/recoveryItemTypePresentation.ts`-31. `frontend-modern/src/utils/textPresentation.ts`-32. `frontend-modern/src/components/Storage/StorageSummary.tsx`-33. `frontend-modern/src/utils/storageSummaryCache.ts`-34. `frontend-modern/src/components/Storage/useStorageSummaryCharts.ts`-35. `frontend-modern/src/features/storageBackups/storageCapacityDeltaPresentation.ts`+14. `frontend-modern/src/pages/Ceph.tsx`+15. `frontend-modern/src/components/Storage/Storage.tsx`+16. `frontend-modern/src/features/storageBackups/storageModelCore.ts`+17. `frontend-modern/src/utils/storageSources.ts`+18. `frontend-modern/src/hooks/useRecoveryPoints.ts`+19. `frontend-modern/src/hooks/useRecoveryRollups.ts`+20. `frontend-modern/src/hooks/useRecoveryPointsFacets.ts`+21. `frontend-modern/src/hooks/useRecoveryPointsSeries.ts`+22. `frontend-modern/src/pages/Recovery.tsx`+23. `frontend-modern/src/routing/resourceLinks.ts`+24. `frontend-modern/src/types/recovery.ts`+25. `frontend-modern/src/utils/recoverySummaryPresentation.ts`+26. `frontend-modern/src/utils/recoveryTablePresentation.ts`+27. `frontend-modern/src/utils/recoveryItemTypePresentation.ts`+28. `frontend-modern/src/utils/textPresentation.ts`+29. `frontend-modern/src/components/Storage/StorageSummary.tsx`+30. `frontend-modern/src/utils/storageSummaryCache.ts`+31. `frontend-modern/src/components/Storage/useStorageSummaryCharts.ts`+32. `frontend-modern/src/features/storageBackups/storageCapacityDeltaPresentation.ts`## Shared Boundaries@@ -84,12 +85,17 @@ querying, and the operator-facing storage health presentation layer.compatibility path, but event views and event drill-ins must dropprotected-inventory-only state so hidden filters cannot make valid historylook empty.-3. Add or change storage page UX through `frontend-modern/src/pages/Storage.tsx`, `frontend-modern/src/components/Storage/`, `frontend-modern/src/features/storageBackups/`, and the shared storage-source contract in `frontend-modern/src/utils/storageSources.ts`+3. Add or change storage page UX through `frontend-modern/src/pages/Storage.tsx`, `frontend-modern/src/pages/Ceph.tsx`, `frontend-modern/src/components/Storage/`, `frontend-modern/src/features/storageBackups/`, and the shared storage-source contract in `frontend-modern/src/utils/storageSources.ts`The retired dashboard route must not reintroduce storage or recoverywidgets as compatibility panels. Storage capacity, storage health,protected-item, and recovery-outcome readiness claims belong on the Storageand Recovery surfaces or their shared summary components, not in a restoreddashboard panel cluster or Assistant brief.+ Ceph table shells on the storage route share the same frontend-primitives+ table contract: `frontend-modern/src/pages/Ceph.tsx` may own Ceph-specific+ columns and rows, but horizontal overflow and scrollbar hiding must route+ through the shared `Table` wrapper rather than page-local scroll divs or+ inline overflow styles.4. Route transport changes for storage and recovery endpoints through `internal/api/` and the owning `api-contracts` proof routesThat same adjacent API/security boundary owns CSRF replacement-tokenconcurrency for browser mutations. Storage and recovery forms may benefitdiff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 43fb2a31d9..e19c9edaba 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -56,60 +56,62 @@ cross-source deduplication.32. `frontend-modern/src/components/Kubernetes/K8sDeploymentsDrawer.tsx`33. `frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx`34. `frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx`-35. `frontend-modern/src/components/Infrastructure/ResourceActionHistory.tsx`-36. `frontend-modern/src/components/Infrastructure/ResourceFacetSummary.tsx`-37. `frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx`-38. `frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx`-39. `frontend-modern/src/components/Infrastructure/ResourcePolicySummary.tsx`-40. `frontend-modern/src/components/Infrastructure/resourceBadges.ts`-41. `frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx`-42. `frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx`-43. `frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx`-44. `frontend-modern/src/components/Infrastructure/UnifiedResourceServiceInfrastructureCard.tsx`-45. `frontend-modern/src/components/Infrastructure/unifiedResourceTableModel.ts`-46. `frontend-modern/src/components/Infrastructure/unifiedResourceTableStateModel.ts`-47. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.ts`-48. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerServiceModel.ts`-49. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerVmwareModel.ts`-50. `frontend-modern/src/components/Infrastructure/resourceDetailDiscoveryModel.ts`-51. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerOperationalModel.ts`-52. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerHistoryState.ts`-53. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDockerActionsState.ts`-54. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerState.ts`-55. `frontend-modern/src/components/Infrastructure/useUnifiedResourceTableState.ts`-56. `frontend-modern/src/components/Infrastructure/useUnifiedResourceTableViewportSync.ts`-57. `frontend-modern/src/components/Discovery/DiscoveryTab.tsx`-58. `frontend-modern/src/components/Discovery/useDiscoveryTabState.ts`-59. `frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx`-60. `frontend-modern/src/features/infrastructure/useInfrastructurePageRouteState.ts`-61. `frontend-modern/src/features/infrastructure/useInfrastructurePageState.ts`-62. `frontend-modern/src/features/infrastructure/infrastructurePageModel.ts`-63. `frontend-modern/src/components/Infrastructure/InfrastructureSummary.tsx`-64. `frontend-modern/src/components/Infrastructure/useInfrastructureSummaryState.ts`-65. `frontend-modern/src/components/Infrastructure/infrastructureSummaryModel.ts`-66. `frontend-modern/src/utils/agentResources.ts`-67. `frontend-modern/src/utils/canonicalResourceTypes.ts`-68. `frontend-modern/src/utils/resourceBadgePresentation.ts`-69. `frontend-modern/src/utils/resourceChangePresentation.ts`-70. `frontend-modern/src/utils/actionAuditPresentation.ts`-71. `frontend-modern/src/utils/resourceCorrelationPresentation.ts`-72. `frontend-modern/src/utils/resourcePlatformData.ts`-73. `frontend-modern/src/utils/resourcePolicyPresentation.ts`-74. `frontend-modern/src/utils/resourceStateAdapters.ts`-75. `frontend-modern/src/utils/resourceTypeCompat.ts`-76. `frontend-modern/src/utils/resourceTypePresentation.ts`-77. `frontend-modern/src/utils/serviceHealthPresentation.ts`-78. `frontend-modern/src/utils/sourceTypePresentation.ts`-79. `frontend-modern/src/utils/workloadTypePresentation.ts`-80. `frontend-modern/src/components/PMG/ServiceHealthBadge.tsx`-81. `frontend-modern/src/utils/resourceIdentity.ts`-82. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerIdentityModel.ts`-83. `frontend-modern/src/hooks/useUnifiedResources.ts`-84. `frontend-modern/src/types/resource.ts`-85. `frontend-modern/src/utils/sourcePlatforms.ts`-86. `frontend-modern/src/utils/platformSupportManifest.generated.ts`-87. `internal/unifiedresources/kubernetes_metric_ids.go`-88. `internal/unifiedresources/policy_posture.go`+35. `frontend-modern/src/components/PMG/MailGateway.tsx`+36. `frontend-modern/src/components/PMG/PMGInstancePanel.tsx`+37. `frontend-modern/src/components/Infrastructure/ResourceActionHistory.tsx`+38. `frontend-modern/src/components/Infrastructure/ResourceFacetSummary.tsx`+39. `frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx`+40. `frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx`+41. `frontend-modern/src/components/Infrastructure/ResourcePolicySummary.tsx`+42. `frontend-modern/src/components/Infrastructure/resourceBadges.ts`+43. `frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx`+44. `frontend-modern/src/components/Infrastructure/UnifiedResourcePBSTableSection.tsx`+45. `frontend-modern/src/components/Infrastructure/UnifiedResourcePMGTableSection.tsx`+46. `frontend-modern/src/components/Infrastructure/UnifiedResourceServiceInfrastructureCard.tsx`+47. `frontend-modern/src/components/Infrastructure/unifiedResourceTableModel.ts`+48. `frontend-modern/src/components/Infrastructure/unifiedResourceTableStateModel.ts`+49. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.ts`+50. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerServiceModel.ts`+51. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerVmwareModel.ts`+52. `frontend-modern/src/components/Infrastructure/resourceDetailDiscoveryModel.ts`+53. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerOperationalModel.ts`+54. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerHistoryState.ts`+55. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDockerActionsState.ts`+56. `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerState.ts`+57. `frontend-modern/src/components/Infrastructure/useUnifiedResourceTableState.ts`+58. `frontend-modern/src/components/Infrastructure/useUnifiedResourceTableViewportSync.ts`+59. `frontend-modern/src/components/Discovery/DiscoveryTab.tsx`+60. `frontend-modern/src/components/Discovery/useDiscoveryTabState.ts`+61. `frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx`+62. `frontend-modern/src/features/infrastructure/useInfrastructurePageRouteState.ts`+63. `frontend-modern/src/features/infrastructure/useInfrastructurePageState.ts`+64. `frontend-modern/src/features/infrastructure/infrastructurePageModel.ts`+65. `frontend-modern/src/components/Infrastructure/InfrastructureSummary.tsx`+66. `frontend-modern/src/components/Infrastructure/useInfrastructureSummaryState.ts`+67. `frontend-modern/src/components/Infrastructure/infrastructureSummaryModel.ts`+68. `frontend-modern/src/utils/agentResources.ts`+69. `frontend-modern/src/utils/canonicalResourceTypes.ts`+70. `frontend-modern/src/utils/resourceBadgePresentation.ts`+71. `frontend-modern/src/utils/resourceChangePresentation.ts`+72. `frontend-modern/src/utils/actionAuditPresentation.ts`+73. `frontend-modern/src/utils/resourceCorrelationPresentation.ts`+74. `frontend-modern/src/utils/resourcePlatformData.ts`+75. `frontend-modern/src/utils/resourcePolicyPresentation.ts`+76. `frontend-modern/src/utils/resourceStateAdapters.ts`+77. `frontend-modern/src/utils/resourceTypeCompat.ts`+78. `frontend-modern/src/utils/resourceTypePresentation.ts`+79. `frontend-modern/src/utils/serviceHealthPresentation.ts`+80. `frontend-modern/src/utils/sourceTypePresentation.ts`+81. `frontend-modern/src/utils/workloadTypePresentation.ts`+82. `frontend-modern/src/components/PMG/ServiceHealthBadge.tsx`+83. `frontend-modern/src/utils/resourceIdentity.ts`+84. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerIdentityModel.ts`+85. `frontend-modern/src/hooks/useUnifiedResources.ts`+86. `frontend-modern/src/types/resource.ts`+87. `frontend-modern/src/utils/sourcePlatforms.ts`+88. `frontend-modern/src/utils/platformSupportManifest.generated.ts`+89. `internal/unifiedresources/kubernetes_metric_ids.go`+90. `internal/unifiedresources/policy_posture.go`## Shared Boundaries@@ -167,10 +169,11 @@ cross-source deduplication.directly instead of reintroducing page-local `overflow-x-auto` wrappersinside the canonical card shell.Docker Swarm service, Kubernetes namespace/deployment, and PMG detail- resource-drawer tables follow that same shell boundary: their- platform-specific rows and actions are unified-resource-owned, while- horizontal overflow is owned by the shared `Table` wrapper rather than- drawer-local scroll divs.+ tables follow that same shell boundary: their platform-specific rows and+ actions are unified-resource-owned, while horizontal overflow is owned by+ the shared `Table` wrapper rather than drawer-local scroll divs. This+ includes both current resource drawers and legacy PMG resource panels that+ still consume unified-resource PMG state.Resource detail mappers now reuse the shared`frontend-modern/src/utils/textPresentation.ts` title-case helper for sensor@@ -230,7 +233,7 @@ AI-only summary payloads, or page-local heuristics.generic disk-count aggregate, so resource drawers and incidents do not hidethe actual protection boundary behind a broader count phrase.6. Add canonical governed name-resolution or policy-aware resource lookup behavior through `internal/unifiedresources/resolve.go` and `internal/unifiedresources/resolve_context.go`-7. Add or change resource drawer timeline/facet/action-history presentation through `frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx`, `frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx`, `frontend-modern/src/components/Infrastructure/ResourceDetailDrawerDebugTab.tsx`, `frontend-modern/src/components/Docker/SwarmServicesDrawer.tsx`, `frontend-modern/src/components/Kubernetes/K8sDeploymentsDrawer.tsx`, `frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx`, `frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx`, `frontend-modern/src/components/Infrastructure/ResourceActionHistory.tsx`, `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerState.ts`, `frontend-modern/src/components/Infrastructure/ResourceFacetSummary.tsx`, `frontend-modern/src/components/Infrastructure/resourceDetailMappers.ts`, and the governed `internal/api/resources.go` facet/timeline plus `internal/api/activity_audit_handlers.go` action-audit contracts together+7. Add or change resource drawer timeline/facet/action-history presentation through `frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx`, `frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx`, `frontend-modern/src/components/Infrastructure/ResourceDetailDrawerDebugTab.tsx`, `frontend-modern/src/components/Docker/SwarmServicesDrawer.tsx`, `frontend-modern/src/components/Kubernetes/K8sDeploymentsDrawer.tsx`, `frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx`, `frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx`, `frontend-modern/src/components/PMG/MailGateway.tsx`, `frontend-modern/src/components/PMG/PMGInstancePanel.tsx`, `frontend-modern/src/components/Infrastructure/ResourceActionHistory.tsx`, `frontend-modern/src/components/Infrastructure/useResourceDetailDrawerState.ts`, `frontend-modern/src/components/Infrastructure/ResourceFacetSummary.tsx`, `frontend-modern/src/components/Infrastructure/resourceDetailMappers.ts`, and the governed `internal/api/resources.go` facet/timeline plus `internal/api/activity_audit_handlers.go` action-audit contracts together8. Add or change discovery-support runtime under the resource drawer through `frontend-modern/src/components/Discovery/DiscoveryTab.tsx` for shell/presentation ownership and `frontend-modern/src/components/Discovery/useDiscoveryTabState.ts` for fetch, websocket-progress, and notes-mutation ownership9. Keep dashboard and infrastructure freshness on the canonical unified-resourceownership path. `frontend-modern/src/stores/websocket.ts`,diff --git a/frontend-modern/src/components/AI/AICostDashboard.tsx b/frontend-modern/src/components/AI/AICostDashboard.tsxindex 71cf9db58d..4e2077ba6a 100644--- a/frontend-modern/src/components/AI/AICostDashboard.tsx+++ b/frontend-modern/src/components/AI/AICostDashboard.tsx@@ -216,8 +216,7 @@ export const AICostDashboard: Component = () => {});const resetHistory = async () => {- if (!confirm(getAICostResetHistoryConfirmationMessage()))- return;+ if (!confirm(getAICostResetHistoryConfirmationMessage())) return;try {const result = await AIAPI.resetCostHistory();notificationStore.success(getAICostResetHistorySuccessMessage(result.backup_file));@@ -456,7 +455,9 @@ export const AICostDashboard: Component = () => {<div class="mt-2"><Showwhen={anyPricingKnown() && dailyUSDValues().length >= 2}- fallback={<div class="text-xs text-muted">{AI_COST_DAILY_USD_EMPTY_STATE}</div>}+ fallback={+ <div class="text-xs text-muted">{AI_COST_DAILY_USD_EMPTY_STATE}</div>+ }><TinySparkline values={dailyUSDValues()} stroke="#10b981" /></Show>@@ -540,90 +541,86 @@ export const AICostDashboard: Component = () => {</div><Show when={(data().targets?.length ?? 0) > 0}>- <div class="overflow-x-auto">- <Table class="min-w-full text-sm">- <TableHeader class="text-xs text-muted uppercase tracking-wide">- <TableRow class="border-b border-border">- <TableHead class="text-left py-2 pr-4">Top targets</TableHead>- <TableHead class="text-right py-2 px-2">Est. USD</TableHead>- <TableHead class="text-right py-2 px-2">Calls</TableHead>- <TableHead class="text-right py-2 px-2">Tokens</TableHead>- </TableRow>- </TableHeader>- <TableBody>- <For each={data().targets}>- {(t) => (- <TableRow class="border-b border-border-subtle">- <TableCell class="py-2 pr-4 text-base-content font-mono text-xs">- {t.target_type}:{t.target_id}- </TableCell>- <TableCell class="py-2 px-2 text-right text-base-content">- <Show- when={t.pricing_known}- fallback={<span class="text-muted">—</span>}- >- {formatUSD(t.estimated_usd ?? 0)}- </Show>- </TableCell>- <TableCell class="py-2 px-2 text-right text-base-content">- {formatNumber(t.calls)}- </TableCell>- <TableCell class="py-2 px-2 text-right text-base-content">- {formatNumber(t.total_tokens)}- </TableCell>- </TableRow>- )}- </For>- </TableBody>- </Table>- </div>- </Show>-- <div class="overflow-x-auto"><Table class="min-w-full text-sm"><TableHeader class="text-xs text-muted uppercase tracking-wide"><TableRow class="border-b border-border">- <TableHead class="text-left py-2 pr-4">Provider</TableHead>- <TableHead class="text-left py-2 pr-4">Model</TableHead>+ <TableHead class="text-left py-2 pr-4">Top targets</TableHead><TableHead class="text-right py-2 px-2">Est. USD</TableHead>- <TableHead class="text-right py-2 px-2">Input</TableHead>- <TableHead class="text-right py-2 px-2">Output</TableHead>- <TableHead class="text-right py-2 px-2">Total</TableHead>+ <TableHead class="text-right py-2 px-2">Calls</TableHead>+ <TableHead class="text-right py-2 px-2">Tokens</TableHead></TableRow></TableHeader><TableBody>- <For each={data().provider_models}>- {(pm) => (+ <For each={data().targets}>+ {(t) => (<TableRow class="border-b border-border-subtle">- <TableCell class="py-2 pr-4 font-medium text-base-content">- {getAIProviderDisplayName(pm.provider) || pm.provider}- </TableCell><TableCell class="py-2 pr-4 text-base-content font-mono text-xs">- {pm.model}+ {t.target_type}:{t.target_id}</TableCell><TableCell class="py-2 px-2 text-right text-base-content"><Show- when={pm.pricing_known}+ when={t.pricing_known}fallback={<span class="text-muted">—</span>}>- {formatUSD(pm.estimated_usd ?? 0)}+ {formatUSD(t.estimated_usd ?? 0)}</Show></TableCell><TableCell class="py-2 px-2 text-right text-base-content">- {formatNumber(pm.input_tokens)}+ {formatNumber(t.calls)}</TableCell><TableCell class="py-2 px-2 text-right text-base-content">- {formatNumber(pm.output_tokens)}- </TableCell>- <TableCell class="py-2 px-2 text-right text-base-content">- {formatNumber(pm.total_tokens)}+ {formatNumber(t.total_tokens)}</TableCell></TableRow>)}</For></TableBody></Table>- </div>+ </Show>++ <Table class="min-w-full text-sm">+ <TableHeader class="text-xs text-muted uppercase tracking-wide">+ <TableRow class="border-b border-border">+ <TableHead class="text-left py-2 pr-4">Provider</TableHead>+ <TableHead class="text-left py-2 pr-4">Model</TableHead>+ <TableHead class="text-right py-2 px-2">Est. USD</TableHead>+ <TableHead class="text-right py-2 px-2">Input</TableHead>+ <TableHead class="text-right py-2 px-2">Output</TableHead>+ <TableHead class="text-right py-2 px-2">Total</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ <For each={data().provider_models}>+ {(pm) => (+ <TableRow class="border-b border-border-subtle">+ <TableCell class="py-2 pr-4 font-medium text-base-content">+ {getAIProviderDisplayName(pm.provider) || pm.provider}+ </TableCell>+ <TableCell class="py-2 pr-4 text-base-content font-mono text-xs">+ {pm.model}+ </TableCell>+ <TableCell class="py-2 px-2 text-right text-base-content">+ <Show+ when={pm.pricing_known}+ fallback={<span class="text-muted">—</span>}+ >+ {formatUSD(pm.estimated_usd ?? 0)}+ </Show>+ </TableCell>+ <TableCell class="py-2 px-2 text-right text-base-content">+ {formatNumber(pm.input_tokens)}+ </TableCell>+ <TableCell class="py-2 px-2 text-right text-base-content">+ {formatNumber(pm.output_tokens)}+ </TableCell>+ <TableCell class="py-2 px-2 text-right text-base-content">+ {formatNumber(pm.total_tokens)}+ </TableCell>+ </TableRow>+ )}+ </For>+ </TableBody>+ </Table></>)}</Show>diff --git a/frontend-modern/src/components/Infrastructure/deploy/CandidatesStep.tsx b/frontend-modern/src/components/Infrastructure/deploy/CandidatesStep.tsxindex d05eb70046..d2b6d3f674 100644--- a/frontend-modern/src/components/Infrastructure/deploy/CandidatesStep.tsx+++ b/frontend-modern/src/components/Infrastructure/deploy/CandidatesStep.tsx@@ -1,5 +1,13 @@import { Component, For, Show, createMemo } from 'solid-js';import type { DeployWizardState } from '@/hooks/useDeployWizard';+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from '@/components/shared/Table';import {getDeployCandidatesLoadingState,getDeployNoCandidatesState,@@ -105,80 +113,82 @@ export const CandidatesStep: Component<CandidatesStepProps> = (props) => {</div></div>- <div class="rounded-md border border-border overflow-hidden">- <table class="w-full text-sm">- <thead>- <tr class="bg-surface-alt text-left">- <th class="w-8 px-3 py-2" />- <th class="px-3 py-2 font-medium text-muted text-xs">Node</th>- <th class="px-3 py-2 font-medium text-muted text-xs">IP</th>- <th class="px-3 py-2 font-medium text-muted text-xs">Status</th>- </tr>- </thead>- <tbody>- <For each={w.candidates()}>- {(node) => {- const isDisabled = () => node.hasAgent || !node.deployable;- const isChecked = () => w.selectedNodeIds().has(node.nodeId);+ <Table wrapperClass="rounded-md border border-border" class="text-sm">+ <TableHeader>+ <TableRow class="bg-surface-alt text-left">+ <TableHead class="w-8 px-3 py-2" />+ <TableHead class="px-3 py-2 font-medium text-muted text-xs">Node</TableHead>+ <TableHead class="px-3 py-2 font-medium text-muted text-xs">IP</TableHead>+ <TableHead class="px-3 py-2 font-medium text-muted text-xs">Status</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ <For each={w.candidates()}>+ {(node) => {+ const isDisabled = () => node.hasAgent || !node.deployable;+ const isChecked = () => w.selectedNodeIds().has(node.nodeId);- return (- <tr- class={`border-t border-border transition-colors ${- isDisabled() ? 'opacity-50' : 'hover:bg-surface-hover cursor-pointer'- }`}- tabIndex={isDisabled() ? undefined : 0}- onClick={() => {- if (!isDisabled()) w.toggleNodeSelection(node.nodeId);- }}- onKeyDown={(e) => {- if (!isDisabled() && (e.key === 'Enter' || e.key === ' ')) {- e.preventDefault();- w.toggleNodeSelection(node.nodeId);+ return (+ <TableRow+ class={`transition-colors ${+ isDisabled() ? 'opacity-50' : 'hover:bg-surface-hover cursor-pointer'+ }`}+ tabIndex={isDisabled() ? undefined : 0}+ onClick={() => {+ if (!isDisabled()) w.toggleNodeSelection(node.nodeId);+ }}+ onKeyDown={(e) => {+ if (!isDisabled() && (e.key === 'Enter' || e.key === ' ')) {+ e.preventDefault();+ w.toggleNodeSelection(node.nodeId);+ }+ }}+ >+ <TableCell class="px-3 py-2">+ <input+ type="checkbox"+ checked={isChecked()}+ disabled={isDisabled()}+ onChange={() => w.toggleNodeSelection(node.nodeId)}+ onClick={(e) => e.stopPropagation()}+ class="rounded border-border"+ />+ </TableCell>+ <TableCell class="px-3 py-2 font-medium text-base-content">+ {node.name}+ </TableCell>+ <TableCell class="px-3 py-2 text-muted font-mono text-xs">+ {node.ip || '--'}+ </TableCell>+ <TableCell class="px-3 py-2">+ <Show+ when={node.hasAgent}+ fallback={+ <Show+ when={node.deployable}+ fallback={+ <span class="inline-flex items-center gap-1 text-xs text-amber-600 dark:text-amber-400">+ <AlertCircleIcon class="w-3 h-3" />+ {node.reason || 'Not deployable'}+ </span>+ }+ >+ <span class="text-xs text-muted">Available</span>+ </Show>}- }}- >- <td class="px-3 py-2">- <input- type="checkbox"- checked={isChecked()}- disabled={isDisabled()}- onChange={() => w.toggleNodeSelection(node.nodeId)}- onClick={(e) => e.stopPropagation()}- class="rounded border-border"- />- </td>- <td class="px-3 py-2 font-medium text-base-content">{node.name}</td>- <td class="px-3 py-2 text-muted font-mono text-xs">{node.ip || '--'}</td>- <td class="px-3 py-2">- <Show- when={node.hasAgent}- fallback={- <Show- when={node.deployable}- fallback={- <span class="inline-flex items-center gap-1 text-xs text-amber-600 dark:text-amber-400">- <AlertCircleIcon class="w-3 h-3" />- {node.reason || 'Not deployable'}- </span>- }- >- <span class="text-xs text-muted">Available</span>- </Show>- }- >- <span class="inline-flex items-center gap-1 text-xs text-emerald-600 dark:text-emerald-400">- <CheckIcon class="w-3 h-3" />- Already monitored- </span>- </Show>- </td>- </tr>- );- }}- </For>- </tbody>- </table>- </div>+ >+ <span class="inline-flex items-center gap-1 text-xs text-emerald-600 dark:text-emerald-400">+ <CheckIcon class="w-3 h-3" />+ Already monitored+ </span>+ </Show>+ </TableCell>+ </TableRow>+ );+ }}+ </For>+ </TableBody>+ </Table></div></Show>diff --git a/frontend-modern/src/components/Infrastructure/deploy/ConfirmStep.tsx b/frontend-modern/src/components/Infrastructure/deploy/ConfirmStep.tsxindex 3ff35812d0..ed87e7ff7a 100644--- a/frontend-modern/src/components/Infrastructure/deploy/ConfirmStep.tsx+++ b/frontend-modern/src/components/Infrastructure/deploy/ConfirmStep.tsx@@ -1,5 +1,13 @@import { Component, For, Show, createMemo } from 'solid-js';import type { DeployWizardState } from '@/hooks/useDeployWizard';+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from '@/components/shared/Table';import AlertCircleIcon from 'lucide-solid/icons/alert-circle';import CheckCircleIcon from 'lucide-solid/icons/check-circle-2';@@ -47,48 +55,52 @@ export const ConfirmStep: Component<ConfirmStepProps> = (props) => {<CheckCircleIcon class="w-3.5 h-3.5 text-emerald-500" />Ready to deploy ({w.readyNodes().length})</h4>- <div class="rounded-md border border-border overflow-hidden">- <table class="w-full text-sm">- <thead>- <tr class="bg-surface-alt text-left">- <th class="w-8 px-3 py-2" />- <th class="px-3 py-2 font-medium text-muted text-xs">Node</th>- <th class="px-3 py-2 font-medium text-muted text-xs">IP</th>- <th class="px-3 py-2 font-medium text-muted text-xs">Arch</th>- </tr>- </thead>- <tbody>- <For each={w.readyNodes()}>- {(target) => (- <tr- class="border-t border-border hover:bg-surface-hover cursor-pointer"- tabIndex={0}- onClick={() => w.toggleConfirmNode(target.nodeId)}- onKeyDown={(e) => {- if (e.key === 'Enter' || e.key === ' ') {- e.preventDefault();- w.toggleConfirmNode(target.nodeId);- }- }}- >- <td class="px-3 py-2">- <input- type="checkbox"- checked={w.confirmSelectedNodeIds().has(target.nodeId)}- onChange={() => w.toggleConfirmNode(target.nodeId)}- onClick={(e) => e.stopPropagation()}- class="rounded border-border"- />- </td>- <td class="px-3 py-2 font-medium text-base-content">{target.nodeName}</td>- <td class="px-3 py-2 text-muted font-mono text-xs">{target.nodeIP}</td>- <td class="px-3 py-2 text-muted text-xs">{target.arch || 'amd64'}</td>- </tr>- )}- </For>- </tbody>- </table>- </div>+ <Table wrapperClass="rounded-md border border-border" class="text-sm">+ <TableHeader>+ <TableRow class="bg-surface-alt text-left">+ <TableHead class="w-8 px-3 py-2" />+ <TableHead class="px-3 py-2 font-medium text-muted text-xs">Node</TableHead>+ <TableHead class="px-3 py-2 font-medium text-muted text-xs">IP</TableHead>+ <TableHead class="px-3 py-2 font-medium text-muted text-xs">Arch</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ <For each={w.readyNodes()}>+ {(target) => (+ <TableRow+ class="hover:bg-surface-hover cursor-pointer"+ tabIndex={0}+ onClick={() => w.toggleConfirmNode(target.nodeId)}+ onKeyDown={(e) => {+ if (e.key === 'Enter' || e.key === ' ') {+ e.preventDefault();+ w.toggleConfirmNode(target.nodeId);+ }+ }}+ >+ <TableCell class="px-3 py-2">+ <input+ type="checkbox"+ checked={w.confirmSelectedNodeIds().has(target.nodeId)}+ onChange={() => w.toggleConfirmNode(target.nodeId)}+ onClick={(e) => e.stopPropagation()}+ class="rounded border-border"+ />+ </TableCell>+ <TableCell class="px-3 py-2 font-medium text-base-content">+ {target.nodeName}+ </TableCell>+ <TableCell class="px-3 py-2 text-muted font-mono text-xs">+ {target.nodeIP}+ </TableCell>+ <TableCell class="px-3 py-2 text-muted text-xs">+ {target.arch || 'amd64'}+ </TableCell>+ </TableRow>+ )}+ </For>+ </TableBody>+ </Table></div></Show>@@ -98,30 +110,32 @@ export const ConfirmStep: Component<ConfirmStepProps> = (props) => {<h4 class="text-xs font-semibold text-muted">Cannot deploy ({w.failedPreflightNodes().length})</h4>- <div class="rounded-md border border-border overflow-hidden">- <table class="w-full text-sm">- <thead>- <tr class="bg-surface-alt text-left">- <th class="px-3 py-2 font-medium text-muted text-xs">Node</th>- <th class="px-3 py-2 font-medium text-muted text-xs">IP</th>- <th class="px-3 py-2 font-medium text-muted text-xs">Reason</th>- </tr>- </thead>- <tbody>- <For each={w.failedPreflightNodes()}>- {(target) => (- <tr class="border-t border-border opacity-60">- <td class="px-3 py-2 font-medium text-base-content">{target.nodeName}</td>- <td class="px-3 py-2 text-muted font-mono text-xs">{target.nodeIP}</td>- <td class="px-3 py-2 text-xs text-red-600 dark:text-red-400">- {target.errorMessage || 'Preflight failed'}- </td>- </tr>- )}- </For>- </tbody>- </table>- </div>+ <Table wrapperClass="rounded-md border border-border" class="text-sm">+ <TableHeader>+ <TableRow class="bg-surface-alt text-left">+ <TableHead class="px-3 py-2 font-medium text-muted text-xs">Node</TableHead>+ <TableHead class="px-3 py-2 font-medium text-muted text-xs">IP</TableHead>+ <TableHead class="px-3 py-2 font-medium text-muted text-xs">Reason</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ <For each={w.failedPreflightNodes()}>+ {(target) => (+ <TableRow class="opacity-60">+ <TableCell class="px-3 py-2 font-medium text-base-content">+ {target.nodeName}+ </TableCell>+ <TableCell class="px-3 py-2 text-muted font-mono text-xs">+ {target.nodeIP}+ </TableCell>+ <TableCell class="px-3 py-2 text-xs text-red-600 dark:text-red-400">+ {target.errorMessage || 'Preflight failed'}+ </TableCell>+ </TableRow>+ )}+ </For>+ </TableBody>+ </Table></div></Show></div>diff --git a/frontend-modern/src/components/Infrastructure/deploy/DeployingStep.tsx b/frontend-modern/src/components/Infrastructure/deploy/DeployingStep.tsxindex 715d5a47dc..14d57e14a9 100644--- a/frontend-modern/src/components/Infrastructure/deploy/DeployingStep.tsx+++ b/frontend-modern/src/components/Infrastructure/deploy/DeployingStep.tsx@@ -1,5 +1,13 @@import { Component, For, Show, createMemo } from 'solid-js';import type { DeployWizardState } from '@/hooks/useDeployWizard';+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from '@/components/shared/Table';import { DeployStatusBadge } from './DeployStatusBadge';import { ErrorDetail } from './ErrorDetail';import LoaderIcon from 'lucide-solid/icons/loader-2';@@ -63,34 +71,36 @@ export const DeployingStep: Component<DeployingStepProps> = (props) => {</div>{/* Per-node rows */}- <div class="rounded-md border border-border overflow-hidden">- <table class="w-full text-sm">- <thead>- <tr class="bg-surface-alt text-left">- <th class="px-3 py-2 font-medium text-muted text-xs">Node</th>- <th class="px-3 py-2 font-medium text-muted text-xs">IP</th>- <th class="px-3 py-2 font-medium text-muted text-xs">Status</th>- <th class="px-3 py-2 font-medium text-muted text-xs">Details</th>- </tr>- </thead>- <tbody>- <For each={w.jobTargets()}>- {(target) => (- <tr class="border-t border-border">- <td class="px-3 py-2 font-medium text-base-content">{target.nodeName}</td>- <td class="px-3 py-2 text-muted font-mono text-xs">{target.nodeIP}</td>- <td class="px-3 py-2">- <DeployStatusBadge status={target.status} />- </td>- <td class="px-3 py-2">- <ErrorDetail message={target.errorMessage} />- </td>- </tr>- )}- </For>- </tbody>- </table>- </div>+ <Table wrapperClass="rounded-md border border-border" class="text-sm">+ <TableHeader>+ <TableRow class="bg-surface-alt text-left">+ <TableHead class="px-3 py-2 font-medium text-muted text-xs">Node</TableHead>+ <TableHead class="px-3 py-2 font-medium text-muted text-xs">IP</TableHead>+ <TableHead class="px-3 py-2 font-medium text-muted text-xs">Status</TableHead>+ <TableHead class="px-3 py-2 font-medium text-muted text-xs">Details</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ <For each={w.jobTargets()}>+ {(target) => (+ <TableRow>+ <TableCell class="px-3 py-2 font-medium text-base-content">+ {target.nodeName}+ </TableCell>+ <TableCell class="px-3 py-2 text-muted font-mono text-xs">+ {target.nodeIP}+ </TableCell>+ <TableCell class="px-3 py-2">+ <DeployStatusBadge status={target.status} />+ </TableCell>+ <TableCell class="px-3 py-2">+ <ErrorDetail message={target.errorMessage} />+ </TableCell>+ </TableRow>+ )}+ </For>+ </TableBody>+ </Table></div>);};diff --git a/frontend-modern/src/components/Infrastructure/deploy/PreflightStep.tsx b/frontend-modern/src/components/Infrastructure/deploy/PreflightStep.tsxindex 91a9f84b31..bbebf79872 100644--- a/frontend-modern/src/components/Infrastructure/deploy/PreflightStep.tsx+++ b/frontend-modern/src/components/Infrastructure/deploy/PreflightStep.tsx@@ -1,5 +1,13 @@import { Component, For, Show, createMemo } from 'solid-js';import type { DeployWizardState } from '@/hooks/useDeployWizard';+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from '@/components/shared/Table';import { DeployStatusBadge } from './DeployStatusBadge';import { ErrorDetail } from './ErrorDetail';import CheckCircleIcon from 'lucide-solid/icons/check-circle-2';@@ -50,34 +58,36 @@ export const PreflightStep: Component<PreflightStepProps> = (props) => {</div>{/* Per-node rows */}- <div class="rounded-md border border-border overflow-hidden">- <table class="w-full text-sm">- <thead>- <tr class="bg-surface-alt text-left">- <th class="px-3 py-2 font-medium text-muted text-xs">Node</th>- <th class="px-3 py-2 font-medium text-muted text-xs">IP</th>- <th class="px-3 py-2 font-medium text-muted text-xs">Status</th>- <th class="px-3 py-2 font-medium text-muted text-xs">Details</th>- </tr>- </thead>- <tbody>- <For each={w.preflightTargets()}>- {(target) => (- <tr class="border-t border-border">- <td class="px-3 py-2 font-medium text-base-content">{target.nodeName}</td>- <td class="px-3 py-2 text-muted font-mono text-xs">{target.nodeIP}</td>- <td class="px-3 py-2">- <DeployStatusBadge status={target.status} />- </td>- <td class="px-3 py-2">- <ErrorDetail message={target.errorMessage} />- </td>- </tr>- )}- </For>- </tbody>- </table>- </div>+ <Table wrapperClass="rounded-md border border-border" class="text-sm">+ <TableHeader>+ <TableRow class="bg-surface-alt text-left">+ <TableHead class="px-3 py-2 font-medium text-muted text-xs">Node</TableHead>+ <TableHead class="px-3 py-2 font-medium text-muted text-xs">IP</TableHead>+ <TableHead class="px-3 py-2 font-medium text-muted text-xs">Status</TableHead>+ <TableHead class="px-3 py-2 font-medium text-muted text-xs">Details</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ <For each={w.preflightTargets()}>+ {(target) => (+ <TableRow>+ <TableCell class="px-3 py-2 font-medium text-base-content">+ {target.nodeName}+ </TableCell>+ <TableCell class="px-3 py-2 text-muted font-mono text-xs">+ {target.nodeIP}+ </TableCell>+ <TableCell class="px-3 py-2">+ <DeployStatusBadge status={target.status} />+ </TableCell>+ <TableCell class="px-3 py-2">+ <ErrorDetail message={target.errorMessage} />+ </TableCell>+ </TableRow>+ )}+ </For>+ </TableBody>+ </Table></div>);};diff --git a/frontend-modern/src/components/Infrastructure/deploy/ResultsStep.tsx b/frontend-modern/src/components/Infrastructure/deploy/ResultsStep.tsxindex 63a74ca8c7..ec4a3966b7 100644--- a/frontend-modern/src/components/Infrastructure/deploy/ResultsStep.tsx+++ b/frontend-modern/src/components/Infrastructure/deploy/ResultsStep.tsx@@ -1,5 +1,6 @@import { Component, For, Show, createSignal, onCleanup } from 'solid-js';import type { DeployWizardState } from '@/hooks/useDeployWizard';+import { Table, TableBody, TableCell, TableRow } from '@/components/shared/Table';import { NodesAPI } from '@/api/nodes';import { copyToClipboard } from '@/utils/clipboard';import { getDeployInstallCommandLoadingState } from '@/utils/deployFlowPresentation';@@ -73,23 +74,28 @@ export const ResultsStep: Component<ResultsStepProps> = (props) => {<CheckCircleIcon class="w-3.5 h-3.5" />Deployed ({w.succeededTargets().length})</h4>- <div class="rounded-md border border-emerald-200 dark:border-emerald-800 overflow-hidden">- <table class="w-full text-sm">- <tbody>- <For each={w.succeededTargets()}>- {(target) => (- <tr class="border-t border-emerald-100 dark:border-emerald-900 first:border-t-0">- <td class="px-3 py-2 font-medium text-base-content">{target.nodeName}</td>- <td class="px-3 py-2 text-muted font-mono text-xs">{target.nodeIP}</td>- <td class="px-3 py-2">- <DeployStatusBadge status={target.status} />- </td>- </tr>- )}- </For>- </tbody>- </table>- </div>+ <Table+ wrapperClass="rounded-md border border-emerald-200 dark:border-emerald-800"+ class="text-sm"+ >+ <TableBody class="divide-y divide-emerald-100 dark:divide-emerald-900">+ <For each={w.succeededTargets()}>+ {(target) => (+ <TableRow>+ <TableCell class="px-3 py-2 font-medium text-base-content">+ {target.nodeName}+ </TableCell>+ <TableCell class="px-3 py-2 text-muted font-mono text-xs">+ {target.nodeIP}+ </TableCell>+ <TableCell class="px-3 py-2">+ <DeployStatusBadge status={target.status} />+ </TableCell>+ </TableRow>+ )}+ </For>+ </TableBody>+ </Table></div></Show>@@ -100,26 +106,31 @@ export const ResultsStep: Component<ResultsStepProps> = (props) => {<XCircleIcon class="w-3.5 h-3.5" />Failed ({w.failedTargets().length})</h4>- <div class="rounded-md border border-red-200 dark:border-red-800 overflow-hidden">- <table class="w-full text-sm">- <tbody>- <For each={w.failedTargets()}>- {(target) => (- <tr class="border-t border-red-100 dark:border-red-900 first:border-t-0">- <td class="px-3 py-2 font-medium text-base-content">{target.nodeName}</td>- <td class="px-3 py-2 text-muted font-mono text-xs">{target.nodeIP}</td>- <td class="px-3 py-2">- <DeployStatusBadge status={target.status} />- </td>- <td class="px-3 py-2">- <ErrorDetail message={target.errorMessage} />- </td>- </tr>- )}- </For>- </tbody>- </table>- </div>+ <Table+ wrapperClass="rounded-md border border-red-200 dark:border-red-800"+ class="text-sm"+ >+ <TableBody class="divide-y divide-red-100 dark:divide-red-900">+ <For each={w.failedTargets()}>+ {(target) => (+ <TableRow>+ <TableCell class="px-3 py-2 font-medium text-base-content">+ {target.nodeName}+ </TableCell>+ <TableCell class="px-3 py-2 text-muted font-mono text-xs">+ {target.nodeIP}+ </TableCell>+ <TableCell class="px-3 py-2">+ <DeployStatusBadge status={target.status} />+ </TableCell>+ <TableCell class="px-3 py-2">+ <ErrorDetail message={target.errorMessage} />+ </TableCell>+ </TableRow>+ )}+ </For>+ </TableBody>+ </Table>{/* Manual install accordion for failed nodes */}<button@@ -182,23 +193,25 @@ export const ResultsStep: Component<ResultsStepProps> = (props) => {<AlertCircleIcon class="w-3.5 h-3.5" />Skipped ({w.skippedTargets().length})</h4>- <div class="rounded-md border border-border overflow-hidden">- <table class="w-full text-sm">- <tbody>- <For each={w.skippedTargets()}>- {(target) => (- <tr class="border-t border-border first:border-t-0 opacity-60">- <td class="px-3 py-2 font-medium text-base-content">{target.nodeName}</td>- <td class="px-3 py-2 text-muted font-mono text-xs">{target.nodeIP}</td>- <td class="px-3 py-2">- <DeployStatusBadge status={target.status} />- </td>- </tr>- )}- </For>- </tbody>- </table>- </div>+ <Table wrapperClass="rounded-md border border-border" class="text-sm">+ <TableBody>+ <For each={w.skippedTargets()}>+ {(target) => (+ <TableRow class="opacity-60">+ <TableCell class="px-3 py-2 font-medium text-base-content">+ {target.nodeName}+ </TableCell>+ <TableCell class="px-3 py-2 text-muted font-mono text-xs">+ {target.nodeIP}+ </TableCell>+ <TableCell class="px-3 py-2">+ <DeployStatusBadge status={target.status} />+ </TableCell>+ </TableRow>+ )}+ </For>+ </TableBody>+ </Table></div></Show>@@ -206,23 +219,25 @@ export const ResultsStep: Component<ResultsStepProps> = (props) => {<Show when={w.canceledTargets().length > 0}><div class="space-y-2"><h4 class="text-xs font-semibold text-muted">Canceled ({w.canceledTargets().length})</h4>- <div class="rounded-md border border-border overflow-hidden">- <table class="w-full text-sm">- <tbody>- <For each={w.canceledTargets()}>- {(target) => (- <tr class="border-t border-border first:border-t-0 opacity-60">- <td class="px-3 py-2 font-medium text-base-content">{target.nodeName}</td>- <td class="px-3 py-2 text-muted font-mono text-xs">{target.nodeIP}</td>- <td class="px-3 py-2">- <DeployStatusBadge status={target.status} />- </td>- </tr>- )}- </For>- </tbody>- </table>- </div>+ <Table wrapperClass="rounded-md border border-border" class="text-sm">+ <TableBody>+ <For each={w.canceledTargets()}>+ {(target) => (+ <TableRow class="opacity-60">+ <TableCell class="px-3 py-2 font-medium text-base-content">+ {target.nodeName}+ </TableCell>+ <TableCell class="px-3 py-2 text-muted font-mono text-xs">+ {target.nodeIP}+ </TableCell>+ <TableCell class="px-3 py-2">+ <DeployStatusBadge status={target.status} />+ </TableCell>+ </TableRow>+ )}+ </For>+ </TableBody>+ </Table></div></Show></div>diff --git a/frontend-modern/src/components/PMG/MailGateway.tsx b/frontend-modern/src/components/PMG/MailGateway.tsxindex e62761c890..1d02172145 100644--- a/frontend-modern/src/components/PMG/MailGateway.tsx+++ b/frontend-modern/src/components/PMG/MailGateway.tsx@@ -14,10 +14,7 @@ import {import { EmptyState } from '@/components/shared/EmptyState';import { SearchInput } from '@/components/shared/SearchInput';import { formatRelativeTime, formatBytes } from '@/utils/format';-import {- getPMGOldestAgeTextClass,- getPMGQueueTextClass,-} from '@/utils/pmgQueuePresentation';+import { getPMGOldestAgeTextClass, getPMGQueueTextClass } from '@/utils/pmgQueuePresentation';import {getPMGDisconnectedState,getPMGSearchEmptyState,@@ -806,57 +803,54 @@ const MailGateway: Component = () => {<div class="text-xs font-medium text-muted uppercase tracking-wide mb-2">Cluster Nodes ({pmg.nodes?.length})</div>- <div class="overflow-x-auto -mx-4 px-4">- <Table class="w-full min-w-[600px] text-xs">- <TableHeader>- <TableRow class="text-left text-[10px] uppercase tracking-wide text-muted border-b border-border">- <TableHead class="pb-1.5 font-medium">Node</TableHead>- <TableHead class="pb-1.5 font-medium">Status</TableHead>- <TableHead class="pb-1.5 font-medium">Uptime</TableHead>- <TableHead class="pb-1.5 font-medium">Load</TableHead>- <TableHead class="pb-1.5 font-medium">Queue</TableHead>- </TableRow>- </TableHeader>- <TableBody class="divide-y divide-border-subtle">- <For each={pmg.nodes}>- {(node) => {- const isOnline =- (node.status || '').toLowerCase() === 'online';-- return (- <TableRow class="hover:bg-surface-hover">- <TableCell class="py-1.5 font-medium text-base-content">- {node.name}- </TableCell>- <TableCell class="py-1.5">+ <Table class="w-full min-w-[600px] text-xs">+ <TableHeader>+ <TableRow class="text-left text-[10px] uppercase tracking-wide text-muted border-b border-border">+ <TableHead class="pb-1.5 font-medium">Node</TableHead>+ <TableHead class="pb-1.5 font-medium">Status</TableHead>+ <TableHead class="pb-1.5 font-medium">Uptime</TableHead>+ <TableHead class="pb-1.5 font-medium">Load</TableHead>+ <TableHead class="pb-1.5 font-medium">Queue</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody class="divide-y divide-border-subtle">+ <For each={pmg.nodes}>+ {(node) => {+ const isOnline = (node.status || '').toLowerCase() === 'online';++ return (+ <TableRow class="hover:bg-surface-hover">+ <TableCell class="py-1.5 font-medium text-base-content">+ {node.name}+ </TableCell>+ <TableCell class="py-1.5">+ <span+ class={`inline-flex items-center gap-1 ${isOnline ? 'text-green-600 dark:text-green-400' : 'text-red-600 dark:text-red-400'}`}+ ><span- class={`inline-flex items-center gap-1 ${isOnline ? 'text-green-600 dark:text-green-400' : 'text-red-600 dark:text-red-400'}`}- >- <span- class={`w-1.5 h-1.5 rounded-full ${isOnline ? 'bg-green-500' : 'bg-red-500'}`}- />- {node.status || 'unknown'}- </span>- </TableCell>- <TableCell class="py-1.5 text-muted">- <Show when={node.uptime} fallback="—">- {Math.floor((node.uptime ?? 0) / 86400)}d{' '}- {Math.floor(((node.uptime ?? 0) % 86400) / 3600)}h- </Show>- </TableCell>- <TableCell class="py-1.5 text-muted">- {node.loadAvg || '—'}- </TableCell>- <TableCell class="py-1.5">- <QueueIndicator queue={node.queueStatus} />- </TableCell>- </TableRow>- );- }}- </For>- </TableBody>- </Table>- </div>+ class={`w-1.5 h-1.5 rounded-full ${isOnline ? 'bg-green-500' : 'bg-red-500'}`}+ />+ {node.status || 'unknown'}+ </span>+ </TableCell>+ <TableCell class="py-1.5 text-muted">+ <Show when={node.uptime} fallback="—">+ {Math.floor((node.uptime ?? 0) / 86400)}d{' '}+ {Math.floor(((node.uptime ?? 0) % 86400) / 3600)}h+ </Show>+ </TableCell>+ <TableCell class="py-1.5 text-muted">+ {node.loadAvg || '—'}+ </TableCell>+ <TableCell class="py-1.5">+ <QueueIndicator queue={node.queueStatus} />+ </TableCell>+ </TableRow>+ );+ }}+ </For>+ </TableBody>+ </Table></div></Show>diff --git a/frontend-modern/src/components/PMG/PMGInstancePanel.tsx b/frontend-modern/src/components/PMG/PMGInstancePanel.tsxindex 77a35794c2..d89c44852d 100644--- a/frontend-modern/src/components/PMG/PMGInstancePanel.tsx+++ b/frontend-modern/src/components/PMG/PMGInstancePanel.tsx@@ -12,10 +12,7 @@ import {TableCell,} from '@/components/shared/Table';import { formatRelativeTime, formatBytes } from '@/utils/format';-import {- getPMGOldestAgeTextClass,- getPMGQueueTextClass,-} from '@/utils/pmgQueuePresentation';+import { getPMGOldestAgeTextClass, getPMGQueueTextClass } from '@/utils/pmgQueuePresentation';import { getPMGThreatPresentation } from '@/utils/pmgThreatPresentation';import type { PMGInstance } from '@/types/api';import { ServiceHealthBadge } from './ServiceHealthBadge';@@ -104,9 +101,7 @@ const QueueIndicator: Component<{onMouseLeave={() => tip.onMouseLeave()}><Show when={hasQueue()} fallback={<span class="text-xs text-slate-400">No queue</span>}>- <span- class={`text-xs font-medium ${getPMGQueueTextClass(queueTotal())}`}- >+ <span class={`text-xs font-medium ${getPMGQueueTextClass(queueTotal())}`}>{formatNum(queueTotal())} msgs</span></Show>@@ -441,54 +436,52 @@ export const PMGInstancePanel: Component<{ pmg: PMGInstance }> = (props) => {<div class="text-xs font-medium text-muted uppercase tracking-wide mb-2">Cluster Nodes ({props.pmg.nodes?.length})</div>- <div class="overflow-x-auto -mx-4 px-4">- <Table class="w-full min-w-[600px] text-xs">- <TableHeader>- <TableRow class="text-left text-[10px] uppercase tracking-wide text-muted border-b border-border">- <TableHead class="pb-1.5 font-medium">Node</TableHead>- <TableHead class="pb-1.5 font-medium">Status</TableHead>- <TableHead class="pb-1.5 font-medium">Uptime</TableHead>- <TableHead class="pb-1.5 font-medium">Load</TableHead>- <TableHead class="pb-1.5 font-medium">Queue</TableHead>- </TableRow>- </TableHeader>- <TableBody class="divide-y divide-border-subtle">- <For each={props.pmg.nodes}>- {(node) => {- const isOnline = (node.status || '').toLowerCase() === 'online';-- return (- <TableRow class="hover:bg-surface-hover">- <TableCell class="py-1.5 font-medium text-base-content">- {node.name}- </TableCell>- <TableCell class="py-1.5">+ <Table class="w-full min-w-[600px] text-xs">+ <TableHeader>+ <TableRow class="text-left text-[10px] uppercase tracking-wide text-muted border-b border-border">+ <TableHead class="pb-1.5 font-medium">Node</TableHead>+ <TableHead class="pb-1.5 font-medium">Status</TableHead>+ <TableHead class="pb-1.5 font-medium">Uptime</TableHead>+ <TableHead class="pb-1.5 font-medium">Load</TableHead>+ <TableHead class="pb-1.5 font-medium">Queue</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody class="divide-y divide-border-subtle">+ <For each={props.pmg.nodes}>+ {(node) => {+ const isOnline = (node.status || '').toLowerCase() === 'online';++ return (+ <TableRow class="hover:bg-surface-hover">+ <TableCell class="py-1.5 font-medium text-base-content">+ {node.name}+ </TableCell>+ <TableCell class="py-1.5">+ <span+ class={`inline-flex items-center gap-1 ${isOnline ? 'text-green-600 dark:text-green-400' : 'text-red-600 dark:text-red-400'}`}+ ><span- class={`inline-flex items-center gap-1 ${isOnline ? 'text-green-600 dark:text-green-400' : 'text-red-600 dark:text-red-400'}`}- >- <span- class={`w-1.5 h-1.5 rounded-full ${isOnline ? 'bg-green-500' : 'bg-red-500'}`}- />- {node.status || 'unknown'}- </span>- </TableCell>- <TableCell class="py-1.5 text-muted">- <Show when={node.uptime} fallback="—">- {Math.floor((node.uptime ?? 0) / 86400)}d{' '}- {Math.floor(((node.uptime ?? 0) % 86400) / 3600)}h- </Show>- </TableCell>- <TableCell class="py-1.5 text-muted">{node.loadAvg || '—'}</TableCell>- <TableCell class="py-1.5">- <QueueIndicator queue={node.queueStatus} />- </TableCell>- </TableRow>- );- }}- </For>- </TableBody>- </Table>- </div>+ class={`w-1.5 h-1.5 rounded-full ${isOnline ? 'bg-green-500' : 'bg-red-500'}`}+ />+ {node.status || 'unknown'}+ </span>+ </TableCell>+ <TableCell class="py-1.5 text-muted">+ <Show when={node.uptime} fallback="—">+ {Math.floor((node.uptime ?? 0) / 86400)}d{' '}+ {Math.floor(((node.uptime ?? 0) % 86400) / 3600)}h+ </Show>+ </TableCell>+ <TableCell class="py-1.5 text-muted">{node.loadAvg || '—'}</TableCell>+ <TableCell class="py-1.5">+ <QueueIndicator queue={node.queueStatus} />+ </TableCell>+ </TableRow>+ );+ }}+ </For>+ </TableBody>+ </Table></div></Show>@@ -532,52 +525,53 @@ export const PMGInstancePanel: Component<{ pmg: PMGInstance }> = (props) => {</div></div>- <div class="overflow-auto max-h-[240px] rounded-md border border-border">- <Table class="w-full min-w-[780px] text-xs">- <TableHeader class="bg-surface-alt">- <TableRow class="text-left text-[10px] uppercase tracking-wide text-muted border-b border-border">- <TableHead class="px-3 py-2 font-medium">Domain</TableHead>- <TableHead class="px-3 py-2 font-medium">Mail</TableHead>- <TableHead class="px-3 py-2 font-medium">Spam</TableHead>- <TableHead class="px-3 py-2 font-medium">Virus</TableHead>- <TableHead class="px-3 py-2 font-medium">Spam Rate</TableHead>- <TableHead class="px-3 py-2 font-medium">Bytes</TableHead>- <TableHead class="px-3 py-2 font-medium">Comment</TableHead>- </TableRow>- </TableHeader>- <TableBody class="divide-y divide-border-subtle">- <For each={relayDomainsWithStats()}>- {(row) => (- <TableRow class="hover:bg-surface-hover">- <TableCell class="px-3 py-2 font-medium text-base-content">- {row.domain}- </TableCell>- <TableCell class="px-3 py-2 text-base-content">- {row.hasStats ? fmtMaybe(row.mail) : '—'}- </TableCell>- <TableCell class="px-3 py-2 text-orange-700 dark:text-orange-300">- {row.hasStats ? fmtMaybe(row.spam) : '—'}- </TableCell>- <TableCell class="px-3 py-2 text-red-700 dark:text-red-300">- {row.hasStats ? fmtMaybe(row.virus) : '—'}- </TableCell>- <TableCell class="px-3 py-2 text-base-content">- {row.hasStats ? formatPct(row.spamRate) : '—'}- </TableCell>- <TableCell class="px-3 py-2 text-muted">- {row.hasStats && row.bytes > 0- ? formatBytes(row.bytes)- : row.hasStats- ? '—'- : '—'}- </TableCell>- <TableCell class="px-3 py-2 text-muted">{row.comment || '—'}</TableCell>- </TableRow>- )}- </For>- </TableBody>- </Table>- </div>+ <Table+ wrapperClass="max-h-[240px] overflow-y-auto rounded-md border border-border"+ class="w-full min-w-[780px] text-xs"+ >+ <TableHeader class="bg-surface-alt">+ <TableRow class="text-left text-[10px] uppercase tracking-wide text-muted border-b border-border">+ <TableHead class="px-3 py-2 font-medium">Domain</TableHead>+ <TableHead class="px-3 py-2 font-medium">Mail</TableHead>+ <TableHead class="px-3 py-2 font-medium">Spam</TableHead>+ <TableHead class="px-3 py-2 font-medium">Virus</TableHead>+ <TableHead class="px-3 py-2 font-medium">Spam Rate</TableHead>+ <TableHead class="px-3 py-2 font-medium">Bytes</TableHead>+ <TableHead class="px-3 py-2 font-medium">Comment</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody class="divide-y divide-border-subtle">+ <For each={relayDomainsWithStats()}>+ {(row) => (+ <TableRow class="hover:bg-surface-hover">+ <TableCell class="px-3 py-2 font-medium text-base-content">+ {row.domain}+ </TableCell>+ <TableCell class="px-3 py-2 text-base-content">+ {row.hasStats ? fmtMaybe(row.mail) : '—'}+ </TableCell>+ <TableCell class="px-3 py-2 text-orange-700 dark:text-orange-300">+ {row.hasStats ? fmtMaybe(row.spam) : '—'}+ </TableCell>+ <TableCell class="px-3 py-2 text-red-700 dark:text-red-300">+ {row.hasStats ? fmtMaybe(row.virus) : '—'}+ </TableCell>+ <TableCell class="px-3 py-2 text-base-content">+ {row.hasStats ? formatPct(row.spamRate) : '—'}+ </TableCell>+ <TableCell class="px-3 py-2 text-muted">+ {row.hasStats && row.bytes > 0+ ? formatBytes(row.bytes)+ : row.hasStats+ ? '—'+ : '—'}+ </TableCell>+ <TableCell class="px-3 py-2 text-muted">{row.comment || '—'}</TableCell>+ </TableRow>+ )}+ </For>+ </TableBody>+ </Table></div></Show>@@ -601,70 +595,10 @@ export const PMGInstancePanel: Component<{ pmg: PMGInstance }> = (props) => {</div></summary>- <div class="overflow-auto max-h-[260px] rounded-md border border-border">- <Table class="w-full min-w-[720px] text-xs">- <TableHeader class="bg-surface-alt">- <TableRow class="text-left text-[10px] uppercase tracking-wide text-muted border-b border-border">- <TableHead class="px-3 py-2 font-medium">Domain</TableHead>- <TableHead class="px-3 py-2 font-medium">Mail</TableHead>- <TableHead class="px-3 py-2 font-medium">Spam</TableHead>- <TableHead class="px-3 py-2 font-medium">Virus</TableHead>- <TableHead class="px-3 py-2 font-medium">Spam Rate</TableHead>- <TableHead class="px-3 py-2 font-medium">Bytes</TableHead>- </TableRow>- </TableHeader>- <TableBody class="divide-y divide-border-subtle">- <For each={otherDomainStatsRows()}>- {(row) => (- <TableRow class="hover:bg-surface-hover">- <TableCell class="px-3 py-2 font-medium text-base-content">- {row.domain}- </TableCell>- <TableCell class="px-3 py-2 text-base-content">- {fmtMaybe(row.mail)}- </TableCell>- <TableCell class="px-3 py-2 text-orange-700 dark:text-orange-300">- {fmtMaybe(row.spam)}- </TableCell>- <TableCell class="px-3 py-2 text-red-700 dark:text-red-300">- {fmtMaybe(row.virus)}- </TableCell>- <TableCell class="px-3 py-2 text-base-content">- {formatPct(row.spamRate)}- </TableCell>- <TableCell class="px-3 py-2 text-muted">- {row.bytes > 0 ? formatBytes(row.bytes) : '—'}- </TableCell>- </TableRow>- )}- </For>- </TableBody>- </Table>- </div>- </details>- </div>- </Show>-- <Show- when={- (props.pmg.domainStats?.length ?? 0) > 0 && (props.pmg.relayDomains?.length ?? 0) === 0- }- >- <div class="mt-3 pt-3 border-t border-border">- <div class="flex items-center justify-between gap-3 mb-2">- <div class="text-xs font-medium text-muted uppercase tracking-wide">- Domains (24h)- </div>- <div class="flex items-center gap-3 text-xs text-muted">- <Show when={domainStatsAsOfRelative()}>- <span>As of {domainStatsAsOfRelative()}</span>- </Show>- <span>{formatNum(domainStatsRows().length)}</span>- </div>- </div>-- <div class="overflow-auto max-h-[260px] rounded-md border border-border">- <Table class="w-full min-w-[720px] text-xs">+ <Table+ wrapperClass="max-h-[260px] overflow-y-auto rounded-md border border-border"+ class="w-full min-w-[720px] text-xs"+ ><TableHeader class="bg-surface-alt"><TableRow class="text-left text-[10px] uppercase tracking-wide text-muted border-b border-border"><TableHead class="px-3 py-2 font-medium">Domain</TableHead>@@ -676,7 +610,7 @@ export const PMGInstancePanel: Component<{ pmg: PMGInstance }> = (props) => {</TableRow></TableHeader><TableBody class="divide-y divide-border-subtle">- <For each={domainStatsRows()}>+ <For each={otherDomainStatsRows()}>{(row) => (<TableRow class="hover:bg-surface-hover"><TableCell class="px-3 py-2 font-medium text-base-content">@@ -702,7 +636,69 @@ export const PMGInstancePanel: Component<{ pmg: PMGInstance }> = (props) => {</For></TableBody></Table>+ </details>+ </div>+ </Show>++ <Show+ when={+ (props.pmg.domainStats?.length ?? 0) > 0 && (props.pmg.relayDomains?.length ?? 0) === 0+ }+ >+ <div class="mt-3 pt-3 border-t border-border">+ <div class="flex items-center justify-between gap-3 mb-2">+ <div class="text-xs font-medium text-muted uppercase tracking-wide">+ Domains (24h)+ </div>+ <div class="flex items-center gap-3 text-xs text-muted">+ <Show when={domainStatsAsOfRelative()}>+ <span>As of {domainStatsAsOfRelative()}</span>+ </Show>+ <span>{formatNum(domainStatsRows().length)}</span>+ </div></div>++ <Table+ wrapperClass="max-h-[260px] overflow-y-auto rounded-md border border-border"+ class="w-full min-w-[720px] text-xs"+ >+ <TableHeader class="bg-surface-alt">+ <TableRow class="text-left text-[10px] uppercase tracking-wide text-muted border-b border-border">+ <TableHead class="px-3 py-2 font-medium">Domain</TableHead>+ <TableHead class="px-3 py-2 font-medium">Mail</TableHead>+ <TableHead class="px-3 py-2 font-medium">Spam</TableHead>+ <TableHead class="px-3 py-2 font-medium">Virus</TableHead>+ <TableHead class="px-3 py-2 font-medium">Spam Rate</TableHead>+ <TableHead class="px-3 py-2 font-medium">Bytes</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody class="divide-y divide-border-subtle">+ <For each={domainStatsRows()}>+ {(row) => (+ <TableRow class="hover:bg-surface-hover">+ <TableCell class="px-3 py-2 font-medium text-base-content">+ {row.domain}+ </TableCell>+ <TableCell class="px-3 py-2 text-base-content">+ {fmtMaybe(row.mail)}+ </TableCell>+ <TableCell class="px-3 py-2 text-orange-700 dark:text-orange-300">+ {fmtMaybe(row.spam)}+ </TableCell>+ <TableCell class="px-3 py-2 text-red-700 dark:text-red-300">+ {fmtMaybe(row.virus)}+ </TableCell>+ <TableCell class="px-3 py-2 text-base-content">+ {formatPct(row.spamRate)}+ </TableCell>+ <TableCell class="px-3 py-2 text-muted">+ {row.bytes > 0 ? formatBytes(row.bytes) : '—'}+ </TableCell>+ </TableRow>+ )}+ </For>+ </TableBody>+ </Table></div></Show></div>diff --git a/frontend-modern/src/components/shared/PulseDataGrid.tsx b/frontend-modern/src/components/shared/PulseDataGrid.tsxindex ffba7a8cb6..edc8203ec7 100644--- a/frontend-modern/src/components/shared/PulseDataGrid.tsx+++ b/frontend-modern/src/components/shared/PulseDataGrid.tsx@@ -42,38 +42,41 @@ export function PulseDataGrid<T>(props: PulseDataGridProps<T>) {return (<div class={`overflow-hidden rounded-md border border-border bg-surface ${local.class || ''}`}>- <div class="overflow-x-auto touch-scroll scrollbar-hide">- <Table class="w-full border-collapse" width={grid.effectiveWidthAttr()}>- <TableHeader class="bg-surface-alt border-b border-border">- <TableRow>- <For each={local.columns}>- {(col) => (- <TableHead- class={`+ <Table+ wrapperClass="scrollbar-hide"+ class="w-full border-collapse"+ width={grid.effectiveWidthAttr()}+ >+ <TableHeader class="bg-surface-alt border-b border-border">+ <TableRow>+ <For each={local.columns}>+ {(col) => (+ <TableHead+ class={`px-3 sm:px-4 py-2.5text-[11px] sm:text-xs font-semibold uppercase tracking-wider whitespace-nowrap text-muted${getPulseDataGridAlignClass(col.align)}${col.hiddenOnMobile ? 'hidden sm:table-cell' : ''}`}- width={getPulseDataGridWidthAttr(col.width)}- >- {col.label}- </TableHead>- )}- </For>- </TableRow>- </TableHeader>- <TableBody class="divide-y divide-border transition-colors">- <Show when={!local.isLoading && local.data.length > 0}>- <For each={grid.stableRows}>- {(stableRow) => {- const row = () => stableRow.value;- const expanded = createMemo(() => local.isRowExpanded?.(row()));+ width={getPulseDataGridWidthAttr(col.width)}+ >+ {col.label}+ </TableHead>+ )}+ </For>+ </TableRow>+ </TableHeader>+ <TableBody class="divide-y divide-border transition-colors">+ <Show when={!local.isLoading && local.data.length > 0}>+ <For each={grid.stableRows}>+ {(stableRow) => {+ const row = () => stableRow.value;+ const expanded = createMemo(() => local.isRowExpanded?.(row()));- return (- <>- <TableRow- class={`+ return (+ <>+ <TableRow+ class={`group transition-colors duration-150 animate-enter${local.onRowClick@@ -81,81 +84,80 @@ export function PulseDataGrid<T>(props: PulseDataGridProps<T>) {: 'hover:bg-surface-hover'}`}- onClick={(event) => {- if (isPulseDataGridInteractiveTarget(event.target)) {- return;- }- local.onRowClick?.(row());- }}- >- <For each={local.columns}>- {(col) => (- <TableCell- class={`+ onClick={(event) => {+ if (isPulseDataGridInteractiveTarget(event.target)) {+ return;+ }+ local.onRowClick?.(row());+ }}+ >+ <For each={local.columns}>+ {(col) => (+ <TableCell+ class={`px-3 sm:px-4 py-2 sm:py-3.5text-sm text-base-content align-middle${getPulseDataGridAlignClass(col.align)}${col.hiddenOnMobile ? 'hidden sm:table-cell' : ''}`}+ >+ <Show+ when={col.render}+ fallback={<span>{(row() as any)[col.key]}</span>}>- <Show- when={col.render}- fallback={<span>{(row() as any)[col.key]}</span>}- >- {col.render!(row())}- </Show>- </TableCell>- )}- </For>- </TableRow>- <Show when={expanded() && local.expandedRender}>- <TableRow- class={- local.onRowClick- ? 'bg-surface-alt hover:bg-blue-50 dark:hover:bg-blue-900'- : 'bg-surface-alt hover:bg-surface-hover'- }- >- <TableCell colspan={local.columns.length} class="px-0 py-0 border-t-0">- {local.expandedRender!(row())}+ {col.render!(row())}+ </Show></TableCell>- </TableRow>- </Show>- </>- );- }}- </For>- </Show>+ )}+ </For>+ </TableRow>+ <Show when={expanded() && local.expandedRender}>+ <TableRow+ class={+ local.onRowClick+ ? 'bg-surface-alt hover:bg-blue-50 dark:hover:bg-blue-900'+ : 'bg-surface-alt hover:bg-surface-hover'+ }+ >+ <TableCell colspan={local.columns.length} class="px-0 py-0 border-t-0">+ {local.expandedRender!(row())}+ </TableCell>+ </TableRow>+ </Show>+ </>+ );+ }}+ </For>+ </Show>- <Show when={local.isLoading}>- <TableRow>- <TableCell- colspan={local.columns.length}- class="px-4 py-8 text-center text-sm text-slate-500"- >- <div class="flex items-center justify-center gap-2">- <div class="w-4 h-4 rounded-full border-2 border-slate-300 border-t-blue-600 animate-spin"></div>- Loading...- </div>- </TableCell>- </TableRow>- </Show>+ <Show when={local.isLoading}>+ <TableRow>+ <TableCell+ colspan={local.columns.length}+ class="px-4 py-8 text-center text-sm text-slate-500"+ >+ <div class="flex items-center justify-center gap-2">+ <div class="w-4 h-4 rounded-full border-2 border-slate-300 border-t-blue-600 animate-spin"></div>+ Loading...+ </div>+ </TableCell>+ </TableRow>+ </Show>- <Show when={!local.isLoading && local.data.length === 0}>- <TableRow>- <TableCell- colspan={local.columns.length}- class="px-4 py-8 text-center text-sm text-slate-500 italic bg-surface-alt"- >- <Show when={local.emptyState} fallback="No items available.">- {local.emptyState}- </Show>- </TableCell>- </TableRow>- </Show>- </TableBody>- </Table>- </div>+ <Show when={!local.isLoading && local.data.length === 0}>+ <TableRow>+ <TableCell+ colspan={local.columns.length}+ class="px-4 py-8 text-center text-sm text-slate-500 italic bg-surface-alt"+ >+ <Show when={local.emptyState} fallback="No items available.">+ {local.emptyState}+ </Show>+ </TableCell>+ </TableRow>+ </Show>+ </TableBody>+ </Table></div>);}diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex 191225a368..940725d8f6 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -152,6 +152,15 @@ import recoveryTablePresentationSource from '@/utils/recoveryTablePresentation.timport alertHistoryTableSectionSource from '@/features/alerts/AlertHistoryTableSection.tsx?raw';import alertHistoryTableGroupRowSource from '@/features/alerts/AlertHistoryTableGroupRow.tsx?raw';import alertResourceTableDesktopSource from '@/components/Alerts/AlertResourceTableDesktop.tsx?raw';+import aiCostDashboardSource from '@/components/AI/AICostDashboard.tsx?raw';+import deployCandidatesStepSource from '@/components/Infrastructure/deploy/CandidatesStep.tsx?raw';+import deployConfirmStepSource from '@/components/Infrastructure/deploy/ConfirmStep.tsx?raw';+import deployDeployingStepSource from '@/components/Infrastructure/deploy/DeployingStep.tsx?raw';+import deployPreflightStepSource from '@/components/Infrastructure/deploy/PreflightStep.tsx?raw';+import deployResultsStepSource from '@/components/Infrastructure/deploy/ResultsStep.tsx?raw';+import cephPageSource from '@/pages/Ceph.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 aiSettingsDialogsSource from '@/components/Settings/AISettingsDialogs.tsx?raw';import generalSettingsPanelSource from '@/components/Settings/GeneralSettingsPanel.tsx?raw';@@ -532,7 +541,17 @@ describe('shared primitive guardrails', () => {diskListSource,infrastructureSourceManagerSource,configuredNodeTablesSource,+ aiCostDashboardSource,+ cephPageSource,+ deployCandidatesStepSource,+ deployConfirmStepSource,+ deployDeployingStepSource,+ deployPreflightStepSource,+ deployResultsStepSource,pmgInstanceDrawerSource,+ pmgInstancePanelSource,+ pmgMailGatewaySource,+ pulseDataGridSource,swarmServicesDrawerSource,k8sDeploymentsDrawerSource,k8sNamespacesDrawerSource,@@ -573,6 +592,26 @@ describe('shared primitive guardrails', () => {expect(recoveryProtectedInventorySectionSource).toContain('wrapperClass="bg-surface"');expect(configuredNodeTablesSource).toContain('wrapperClass="max-h-[600px] overflow-y-auto"');expect(storageContentCardSource).toContain('<StoragePoolsTable');+ expect(pulseDataGridSource).toContain('wrapperClass="scrollbar-hide"');+ expect(pulseDataGridSource).not.toContain(+ '<div class="overflow-x-auto touch-scroll scrollbar-hide">',+ );++ for (const source of [+ deployCandidatesStepSource,+ deployConfirmStepSource,+ deployDeployingStepSource,+ deployPreflightStepSource,+ deployResultsStepSource,+ ]) {+ expect(source).toContain("from '@/components/shared/Table'");+ expect(source).not.toContain('<table');+ expect(source).not.toContain('<thead');+ expect(source).not.toContain('<tbody');+ expect(source).not.toContain('<tr ');+ expect(source).not.toContain('<td ');+ expect(source).not.toContain('<th ');+ }});it('keeps grouped/list table-mode controls on one shared presentation contract', () => {diff --git a/frontend-modern/src/components/shared/__tests__/PulseDataGrid.test.tsx b/frontend-modern/src/components/shared/__tests__/PulseDataGrid.test.tsxindex 7af2800045..352b97faea 100644--- a/frontend-modern/src/components/shared/__tests__/PulseDataGrid.test.tsx+++ b/frontend-modern/src/components/shared/__tests__/PulseDataGrid.test.tsx@@ -23,7 +23,12 @@ describe('PulseDataGrid', () => {expect(pulseDataGridSource).toContain('getPulseDataGridAlignClass');expect(pulseDataGridSource).toContain('getPulseDataGridWidthAttr');expect(pulseDataGridSource).toContain('isPulseDataGridInteractiveTarget');+ expect(pulseDataGridSource).toContain("from '@/components/shared/Table'");+ expect(pulseDataGridSource).toContain('<Table');+ expect(pulseDataGridSource).toContain('wrapperClass="scrollbar-hide"');expect(pulseDataGridSource).toContain('scrollbar-hide');+ expect(pulseDataGridSource).not.toContain('<div class="overflow-x-auto');+ expect(pulseDataGridSource).not.toContain('overflow-x-auto touch-scroll scrollbar-hide');expect(pulseDataGridSource).not.toContain('style={{');expect(pulseDataGridSource).not.toContain('style={');expect(pulseDataGridSource).not.toContain('useBreakpoint');diff --git a/frontend-modern/src/pages/Ceph.tsx b/frontend-modern/src/pages/Ceph.tsxindex 73cf5e1554..534777c860 100644--- a/frontend-modern/src/pages/Ceph.tsx+++ b/frontend-modern/src/pages/Ceph.tsx@@ -516,89 +516,87 @@ const Ceph: Component = () => {<div class="px-4 py-3 border-b border-border bg-surface-alt"><h3 class="text-sm font-semibold text-base-content">Cluster Overview</h3></div>- <div class="overflow-x-auto" style="scrollbar-width: none; -ms-overflow-style: none;">- <style>{`.overflow-x-auto::-webkit-scrollbar { display: none; }`}</style>- <Table- class="w-full border-collapse whitespace-nowrap"- style={{ 'min-width': '700px' }}- >- <TableHeader>- <TableRow class="bg-surface-alt text-muted border-b border-border">- <TableHead class={`${thClass} pl-4`}>Cluster</TableHead>- <TableHead class={thClass}>Health</TableHead>- <TableHead class={thClass}>Monitors</TableHead>- <TableHead class={thClass}>Managers</TableHead>- <TableHead class={thClass}>OSDs</TableHead>- <TableHead class={thClass}>PGs</TableHead>- <TableHead class={`${thClass} min-w-[160px]`}>Capacity</TableHead>- </TableRow>- </TableHeader>- <TableBody class="divide-y divide-border-subtle">- <For each={clusters()}>- {(cluster) => (- <TableRow class="hover:bg-surface-hover transition-colors">- <TableCell class="px-4 py-2.5">- <div class="font-medium text-sm text-base-content">- {cluster.name || 'Ceph Cluster'}+ <Table+ wrapperClass="scrollbar-hide"+ class="w-full border-collapse whitespace-nowrap"+ style={{ 'min-width': '700px' }}+ >+ <TableHeader>+ <TableRow class="bg-surface-alt text-muted border-b border-border">+ <TableHead class={`${thClass} pl-4`}>Cluster</TableHead>+ <TableHead class={thClass}>Health</TableHead>+ <TableHead class={thClass}>Monitors</TableHead>+ <TableHead class={thClass}>Managers</TableHead>+ <TableHead class={thClass}>OSDs</TableHead>+ <TableHead class={thClass}>PGs</TableHead>+ <TableHead class={`${thClass} min-w-[160px]`}>Capacity</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody class="divide-y divide-border-subtle">+ <For each={clusters()}>+ {(cluster) => (+ <TableRow class="hover:bg-surface-hover transition-colors">+ <TableCell class="px-4 py-2.5">+ <div class="font-medium text-sm text-base-content">+ {cluster.name || 'Ceph Cluster'}+ </div>+ <Show when={cluster.fsid}>+ <div class="text-[10px] text-muted font-mono truncate max-w-[180px]">+ {cluster.fsid}</div>- <Show when={cluster.fsid}>- <div class="text-[10px] text-muted font-mono truncate max-w-[180px]">- {cluster.fsid}- </div>- </Show>- </TableCell>- <TableCell class="px-2 py-2.5">- <HealthBadge- health={cluster.health || ''}- message={cluster.healthMessage}+ </Show>+ </TableCell>+ <TableCell class="px-2 py-2.5">+ <HealthBadge+ health={cluster.health || ''}+ message={cluster.healthMessage}+ />+ </TableCell>+ <TableCell class="px-2 py-2.5">+ <span class="inline-flex items-center gap-1 text-xs text-blue-600 dark:text-blue-400">+ <CephServiceIcon type="mon" class="w-3.5 h-3.5" />+ <span class="font-semibold">{cluster.numMons || 0}</span>+ </span>+ </TableCell>+ <TableCell class="px-2 py-2.5">+ <span class="inline-flex items-center gap-1 text-xs text-indigo-600 dark:text-indigo-400">+ <CephServiceIcon type="mgr" class="w-3.5 h-3.5" />+ <span class="font-semibold">{cluster.numMgrs || 0}</span>+ </span>+ </TableCell>+ <TableCell class="px-2 py-2.5">+ <span class="inline-flex items-center gap-1 text-xs">+ <CephServiceIcon+ type="osd"+ class="w-3.5 h-3.5 text-green-600 dark:text-green-400"/>- </TableCell>- <TableCell class="px-2 py-2.5">- <span class="inline-flex items-center gap-1 text-xs text-blue-600 dark:text-blue-400">- <CephServiceIcon type="mon" class="w-3.5 h-3.5" />- <span class="font-semibold">{cluster.numMons || 0}</span>+ <span+ class={`font-semibold ${(cluster.numOsdsUp || 0) < (cluster.numOsds || 0) ? 'text-yellow-600 dark:text-yellow-400' : 'text-green-600 dark:text-green-400'}`}+ >+ {cluster.numOsdsUp || 0}</span>- </TableCell>- <TableCell class="px-2 py-2.5">- <span class="inline-flex items-center gap-1 text-xs text-indigo-600 dark:text-indigo-400">- <CephServiceIcon type="mgr" class="w-3.5 h-3.5" />- <span class="font-semibold">{cluster.numMgrs || 0}</span>- </span>- </TableCell>- <TableCell class="px-2 py-2.5">- <span class="inline-flex items-center gap-1 text-xs">- <CephServiceIcon- type="osd"- class="w-3.5 h-3.5 text-green-600 dark:text-green-400"- />- <span- class={`font-semibold ${(cluster.numOsdsUp || 0) < (cluster.numOsds || 0) ? 'text-yellow-600 dark:text-yellow-400' : 'text-green-600 dark:text-green-400'}`}- >- {cluster.numOsdsUp || 0}- </span>- <span class="text-muted">/{cluster.numOsds || 0}</span>- </span>- </TableCell>- <TableCell class="px-2 py-2.5">- <span class="text-xs text-base-content font-medium">- {(cluster.numPGs || 0).toLocaleString()}- </span>- </TableCell>- <TableCell class="px-2 py-2.5">- <div class="w-full max-w-[160px]">- <UsageBar percent={cluster.usagePercent || 0} size="sm" />- <div class="flex justify-between text-[10px] text-muted mt-0.5">- <span>{formatBytes(cluster.usedBytes || 0)}</span>- <span>{(cluster.usagePercent || 0).toFixed(1)}%</span>- </div>+ <span class="text-muted">/{cluster.numOsds || 0}</span>+ </span>+ </TableCell>+ <TableCell class="px-2 py-2.5">+ <span class="text-xs text-base-content font-medium">+ {(cluster.numPGs || 0).toLocaleString()}+ </span>+ </TableCell>+ <TableCell class="px-2 py-2.5">+ <div class="w-full max-w-[160px]">+ <UsageBar percent={cluster.usagePercent || 0} size="sm" />+ <div class="flex justify-between text-[10px] text-muted mt-0.5">+ <span>{formatBytes(cluster.usedBytes || 0)}</span>+ <span>{(cluster.usagePercent || 0).toFixed(1)}%</span></div>- </TableCell>- </TableRow>- )}- </For>- </TableBody>- </Table>- </div>+ </div>+ </TableCell>+ </TableRow>+ )}+ </For>+ </TableBody>+ </Table></Card></Show>@@ -630,60 +628,55 @@ const Ceph: Component = () => {</div>}>- <div- class="overflow-x-auto"- style="scrollbar-width: none; -ms-overflow-style: none;"+ <Table+ wrapperClass="scrollbar-hide"+ class="w-full border-collapse whitespace-nowrap"+ style={{ 'min-width': '650px' }}>- <style>{`.overflow-x-auto::-webkit-scrollbar { display: none; }`}</style>- <Table- class="w-full border-collapse whitespace-nowrap"- style={{ 'min-width': '650px' }}- >- <TableHeader>- <TableRow class="bg-surface-alt text-muted border-b border-border">- <TableHead class={`${thClass} pl-4`}>Pool</TableHead>- <TableHead class={thClass}>Cluster</TableHead>- <TableHead class={thClass}>Used</TableHead>- <TableHead class={thClass}>Available</TableHead>- <TableHead class={thClass}>Objects</TableHead>- <TableHead class={`${thClass} min-w-[120px]`}>Usage</TableHead>- </TableRow>- </TableHeader>- <TableBody class="divide-y divide-border-subtle">- <For each={filteredPools()}>- {(pool) => (- <TableRow class="hover:bg-surface-hover transition-colors">- <TableCell class="px-4 py-2.5 font-medium text-sm text-base-content">- {pool.name}- </TableCell>- <TableCell class="px-2 py-2.5 text-xs text-muted">- {pool.clusterName}- </TableCell>- <TableCell class="px-2 py-2.5 text-xs text-base-content font-mono">- {formatBytes(pool.storedBytes || 0)}- </TableCell>- <TableCell class="px-2 py-2.5 text-xs text-base-content font-mono">- {formatBytes(pool.availableBytes || 0)}- </TableCell>- <TableCell class="px-2 py-2.5 text-xs text-base-content font-mono">- {(pool.objects || 0).toLocaleString()}- </TableCell>- <TableCell class="px-2 py-2.5">- <div class="flex items-center gap-2">- <div class="w-16">- <UsageBar percent={pool.percentUsed || 0} size="sm" />- </div>- <span class="text-xs text-muted font-mono w-12 text-right">- {(pool.percentUsed || 0).toFixed(1)}%- </span>+ <TableHeader>+ <TableRow class="bg-surface-alt text-muted border-b border-border">+ <TableHead class={`${thClass} pl-4`}>Pool</TableHead>+ <TableHead class={thClass}>Cluster</TableHead>+ <TableHead class={thClass}>Used</TableHead>+ <TableHead class={thClass}>Available</TableHead>+ <TableHead class={thClass}>Objects</TableHead>+ <TableHead class={`${thClass} min-w-[120px]`}>Usage</TableHead>+ </TableRow>+ </TableHeader>+ <TableBody class="divide-y divide-border-subtle">+ <For each={filteredPools()}>+ {(pool) => (+ <TableRow class="hover:bg-surface-hover transition-colors">+ <TableCell class="px-4 py-2.5 font-medium text-sm text-base-content">+ {pool.name}+ </TableCell>+ <TableCell class="px-2 py-2.5 text-xs text-muted">+ {pool.clusterName}+ </TableCell>+ <TableCell class="px-2 py-2.5 text-xs text-base-content font-mono">+ {formatBytes(pool.storedBytes || 0)}+ </TableCell>+ <TableCell class="px-2 py-2.5 text-xs text-base-content font-mono">+ {formatBytes(pool.availableBytes || 0)}+ </TableCell>+ <TableCell class="px-2 py-2.5 text-xs text-base-content font-mono">+ {(pool.objects || 0).toLocaleString()}+ </TableCell>+ <TableCell class="px-2 py-2.5">+ <div class="flex items-center gap-2">+ <div class="w-16">+ <UsageBar percent={pool.percentUsed || 0} size="sm" /></div>- </TableCell>- </TableRow>- )}- </For>- </TableBody>- </Table>- </div>+ <span class="text-xs text-muted font-mono w-12 text-right">+ {(pool.percentUsed || 0).toFixed(1)}%+ </span>+ </div>+ </TableCell>+ </TableRow>+ )}+ </For>+ </TableBody>+ </Table></Show></Card></Show>diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.tsindex 15c699e3f5..b69f65fdd5 100644--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts@@ -397,6 +397,9 @@ import zfsHealthMapPresentationSource from '@/features/storageBackups/zfsHealthMimport storageAdaptersSource from '@/features/storageBackups/storageAdapters.ts?raw';import deployStatusBadgeSource from '@/components/Infrastructure/deploy/DeployStatusBadge.tsx?raw';import deployCandidatesStepSource from '@/components/Infrastructure/deploy/CandidatesStep.tsx?raw';+import deployConfirmStepSource from '@/components/Infrastructure/deploy/ConfirmStep.tsx?raw';+import deployDeployingStepSource from '@/components/Infrastructure/deploy/DeployingStep.tsx?raw';+import deployPreflightStepSource from '@/components/Infrastructure/deploy/PreflightStep.tsx?raw';import deployResultsStepSource from '@/components/Infrastructure/deploy/ResultsStep.tsx?raw';import deployFlowPresentationSource from '@/utils/deployFlowPresentation.ts?raw';import deployStatusPresentationSource from '@/utils/deployStatusPresentation.ts?raw';@@ -707,7 +710,9 @@ describe('frontend resource type boundaries', () => {expect(workloadsWorkloadRouteStateSource).not.toContain('normalizeWorkloadViewModeParam');expect(workloadsSurfaceSource).not.toContain('function normalizeViewModeParam');expect(workloadsSurfaceSource).not.toContain('workloadSummaryGuestId');- expect(workloadsSurfaceSource).not.toContain('createMemo(() => getCanonicalWorkloadId(guest()))');+ expect(workloadsSurfaceSource).not.toContain(+ 'createMemo(() => getCanonicalWorkloadId(guest()))',+ );expect(workloadPanelSource).toContain('createMemo(() => getCanonicalWorkloadId(guest()))');expect(workloadsWorkloadTableSource).not.toContain('createMemo(() => getCanonicalWorkloadId(guest()))',@@ -740,9 +745,7 @@ describe('frontend resource type boundaries', () => {expect(workloadsWorkloadRouteStateSource).not.toContain('const [workloadsRouteActive, setWorkloadsRouteActive] = createSignal(false)',);- expect(workloadsWorkloadRouteStateSource).toContain(- "from './workloadRouteStateModel'",- );+ expect(workloadsWorkloadRouteStateSource).toContain("from './workloadRouteStateModel'");expect(workloadsWorkloadRouteStateSource).toContain('resolveWorkloadsWorkloadNodeSelection({');expect(workloadsWorkloadRouteStateSource).toContain('WORKLOADS_WORKLOAD_ROUTE_RESET_STATE');expect(workloadsWorkloadUrlSyncSource).not.toContain('buildWorkloadsPath({');@@ -759,22 +762,16 @@ describe('frontend resource type boundaries', () => {);expect(workloadUrlSyncModelSource).toContain('parseWorkloadsLinkSearch(search)');expect(workloadUrlSyncModelSource).toContain('buildWorkloadsPath({');- expect(workloadUrlSyncModelSource).toContain(- 'resolveWorkloadsManagedWorkloadsNavigateTarget',- );+ expect(workloadUrlSyncModelSource).toContain('resolveWorkloadsManagedWorkloadsNavigateTarget');expect(workloadUrlSyncModelSource).toContain('resolveWorkloadsWorkloadRuntimeParam');- expect(workloadUrlSyncModelSource).toContain(- 'normalizeWorkloadViewModeParam(params.type)',- );+ expect(workloadUrlSyncModelSource).toContain('normalizeWorkloadViewModeParam(params.type)');expect(workloadsControlsStateSource).toContain('useBreakpoint');expect(workloadsControlsStateSource).toContain('useColumnVisibility');expect(workloadsControlsStateSource).toContain('usePersistentSignal');expect(workloadsControlsStateSource).toContain('blurFocusedTypeToSearch');expect(workloadsControlsStateSource).toContain('DEFAULT_WORKLOADS_SORT_KEY');expect(workloadsWorkloadRouteStateSource).toContain('useWorkloadFilterOptions');- expect(workloadsWorkloadFilterOptionsSource).toContain(- "from './workloadFilterConfigModel'",- );+ expect(workloadsWorkloadFilterOptionsSource).toContain("from './workloadFilterConfigModel'");expect(workloadsWorkloadFilterOptionsSource).toContain('buildWorkloadNodeOptions(options.allGuests())',);@@ -797,18 +794,12 @@ describe('frontend resource type boundaries', () => {expect(workloadFilterConfigModelSource).toContain('export const buildWorkloadsNamespaceFilterConfig',);- expect(workloadRouteModelSource).toContain(- 'export const deserializeWorkloadViewMode',- );- expect(workloadRouteModelSource).toContain(- "normalizeWorkloadViewModeParam(raw) ?? 'all'",- );+ expect(workloadRouteModelSource).toContain('export const deserializeWorkloadViewMode');+ expect(workloadRouteModelSource).toContain("normalizeWorkloadViewModeParam(raw) ?? 'all'");expect(workloadRouteModelSource).not.toContain('export const buildWorkloadsContainerRuntimeFilterConfig',);- expect(workloadRouteModelSource).not.toContain(- 'export const buildWorkloadsHostFilterConfig',- );+ expect(workloadRouteModelSource).not.toContain('export const buildWorkloadsHostFilterConfig');expect(workloadRouteModelSource).not.toContain('export const buildWorkloadsNamespaceFilterConfig',);@@ -1103,9 +1094,7 @@ describe('frontend resource type boundaries', () => {expect(recoveryHistorySectionSource).toContain('getRecoveryAllHistoryLabel');expect(recoveryHistoryTableSource).toMatch(/<Table(?:\s|>)/);expect(recoveryHistoryTableSource).not.toContain('<div class="overflow-x-auto">');- expect(recoveryHistoryTableSource).not.toContain(- '<div class="overflow-x-auto bg-surface">',- );+ expect(recoveryHistoryTableSource).not.toContain('<div class="overflow-x-auto bg-surface">');expect(recoveryTablePresentationSource).toContain('getAllFilterOptionLabel');expect(recoveryHistorySectionSource).not.toContain('overflow-hidden border-border-subtle bg-surface',@@ -1113,9 +1102,7 @@ describe('frontend resource type boundaries', () => {expect(recoveryProtectedInventorySectionSource).toContain('TableCard');expect(recoveryProtectedInventorySectionSource).toMatch(/<Table(?:\s|>)/);expect(recoveryProtectedInventorySectionSource).toContain('wrapperClass="bg-surface"');- expect(recoveryProtectedInventorySectionSource).not.toContain(- '<div class="overflow-x-auto">',- );+ expect(recoveryProtectedInventorySectionSource).not.toContain('<div class="overflow-x-auto">');expect(recoveryProtectedInventorySectionSource).not.toContain('<div class="overflow-x-auto bg-surface">',);@@ -2026,9 +2013,7 @@ describe('frontend resource type boundaries', () => {expect(storagePoolsTableSource).toMatch(/<Table(?:\s|>)/);expect(storagePoolsTableSource).not.toContain('STORAGE_POOLS_SCROLL_WRAP_CLASS');expect(storagePoolsTableSource).not.toContain('<div class="overflow-x-auto">');- expect(storagePoolsTableSource).not.toContain(- '<div class="overflow-x-auto bg-surface">',- );+ expect(storagePoolsTableSource).not.toContain('<div class="overflow-x-auto bg-surface">');expect(storageContentCardSource).not.toContain("props.selectedNodeId() === 'all' ? null : props.selectedNodeId()",);@@ -2756,6 +2741,10 @@ describe('frontend resource type boundaries', () => {expect(pulseDataGridSource).toContain('usePulseDataGridState');expect(pulseDataGridSource).toContain('getPulseDataGridAlignClass');expect(pulseDataGridSource).toContain('isPulseDataGridInteractiveTarget');+ expect(pulseDataGridSource).toContain('wrapperClass="scrollbar-hide"');+ expect(pulseDataGridSource).not.toContain(+ '<div class="overflow-x-auto touch-scroll scrollbar-hide">',+ );expect(pulseDataGridSource).not.toContain('useBreakpoint');expect(pulseDataGridSource).not.toContain('createStore');expect(pulseDataGridSource).not.toContain('target.closest(');@@ -3345,6 +3334,16 @@ describe('frontend resource type boundaries', () => {expect(pmgInstanceDrawerSource).toContain('PMG_DETAILS_FAILURE_STATE_TITLE');expect(pmgInstanceDrawerSource).toMatch(/<Table(?:\s|>)/);expect(pmgInstanceDrawerSource).not.toContain('<div class="mt-2 overflow-x-auto">');+ expect(mailGatewaySource).not.toContain('<div class="overflow-x-auto -mx-4 px-4">');+ expect(mailGatewaySource).not.toContain('wrapperClass="-mx-4 px-4"');+ expect(pmgInstancePanelSource).not.toContain('<div class="overflow-x-auto -mx-4 px-4">');+ expect(pmgInstancePanelSource).not.toContain('wrapperClass="-mx-4 px-4"');+ expect(pmgInstancePanelSource).not.toContain(+ '<div class="overflow-auto max-h-[240px] rounded-md border border-border">',+ );+ expect(pmgInstancePanelSource).not.toContain(+ '<div class="overflow-auto max-h-[260px] rounded-md border border-border">',+ );expect(pmgInstanceDrawerSource).not.toContain('Search domains...');expect(pmgInstanceDrawerSource).not.toContain('Unknown host');expect(pmgInstanceDrawerSource).not.toContain('Spam Distribution');@@ -3443,6 +3442,10 @@ describe('frontend resource type boundaries', () => {expect(cephPageSource).toContain('getCephNoClustersStatePresentation');expect(cephPageSource).toContain('getCephPoolsSearchEmptyStatePresentation');expect(cephPageSource).toContain('CephServiceIcon');+ expect(cephPageSource).not.toContain('<div class="overflow-x-auto"');+ expect(cephPageSource).not.toContain(+ '<style>{`.overflow-x-auto::-webkit-scrollbar { display: none; }`}</style>',+ );expect(cephPageSource).not.toContain('const getServiceStatus =');expect(cephPageSource).not.toContain('const ServiceIcon: Component');expect(cephPageSource).not.toContain('Loading Ceph data...');@@ -3464,6 +3467,21 @@ describe('frontend resource type boundaries', () => {expect(deployCandidatesStepSource).not.toContain('No online source agents found.');expect(deployResultsStepSource).toContain('getDeployInstallCommandLoadingState');expect(deployResultsStepSource).not.toContain('Loading install command...');+ for (const source of [+ deployCandidatesStepSource,+ deployConfirmStepSource,+ deployDeployingStepSource,+ deployPreflightStepSource,+ deployResultsStepSource,+ ]) {+ expect(source).toContain("from '@/components/shared/Table'");+ expect(source).not.toContain('<table');+ expect(source).not.toContain('<thead');+ expect(source).not.toContain('<tbody');+ expect(source).not.toContain('<tr ');+ expect(source).not.toContain('<td ');+ expect(source).not.toContain('<th ');+ }expect(deployFlowPresentationSource).toContain('export function getDeployCandidatesLoadingState',);diff --git a/scripts/release_control/canonical_completion_guard_test.py b/scripts/release_control/canonical_completion_guard_test.pyindex 225de605e2..c48de50f3f 100644--- a/scripts/release_control/canonical_completion_guard_test.py+++ b/scripts/release_control/canonical_completion_guard_test.py@@ -766,6 +766,7 @@ class CanonicalCompletionGuardTest(unittest.TestCase):"frontend-modern/src/components/Infrastructure/__tests__/resourceDetailDrawerOperationalModel.test.ts","frontend-modern/src/components/Infrastructure/__tests__/resourceDetailMappers.test.ts","frontend-modern/src/components/Infrastructure/__tests__/unifiedResourceTableStateModel.test.ts",+ "frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts","frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.guardrails.test.ts","frontend-modern/src/features/infrastructure/__tests__/infrastructurePageModel.test.ts","frontend-modern/src/hooks/__tests__/useUnifiedResources.test.ts",@@ -1278,6 +1279,7 @@ class CanonicalCompletionGuardTest(unittest.TestCase):"frontend-modern/src/components/Storage/__tests__/StoragePoolDetail.test.tsx","frontend-modern/src/components/Storage/__tests__/useStoragePageSummary.test.ts","frontend-modern/src/components/Storage/code_standards.test.ts",+ "frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts","frontend-modern/src/features/storageBackups/__tests__/resourceStorageMapping.test.ts","frontend-modern/src/features/storageBackups/__tests__/storageAdapters.test.ts","frontend-modern/src/features/storageBackups/__tests__/storageAlertState.test.ts",@@ -1853,14 +1855,21 @@ class CanonicalCompletionGuardTest(unittest.TestCase):[{"id": "deploy-fallback-install-surface",- "label": "deploy fallback install command proof",+ "label": "deploy wizard surface proof","touched_runtime_files": ["frontend-modern/src/components/Infrastructure/deploy/ResultsStep.tsx"],"allow_same_subsystem_tests": False,"test_prefixes": [],"exact_files": [- "frontend-modern/src/components/Infrastructure/__tests__/DeployStepComponents.test.tsx"+ "frontend-modern/src/components/Infrastructure/__tests__/DeployStepComponents.test.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/__tests__/CandidatesStep.test.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/__tests__/ConfirmStep.test.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/__tests__/DeployingStep.test.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/__tests__/PreflightStep.test.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/__tests__/ResultsStep.test.tsx",+ "frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts",+ "frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts",],}],diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.pyindex ce3ced148b..e6fae2d200 100644--- a/scripts/release_control/subsystem_lookup_test.py+++ b/scripts/release_control/subsystem_lookup_test.py@@ -895,6 +895,7 @@ class SubsystemLookupTest(unittest.TestCase):"frontend-modern/src/components/Storage/__tests__/StoragePoolDetail.test.tsx","frontend-modern/src/components/Storage/__tests__/useStoragePageSummary.test.ts","frontend-modern/src/components/Storage/code_standards.test.ts",+ "frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts","frontend-modern/src/features/storageBackups/__tests__/resourceStorageMapping.test.ts","frontend-modern/src/features/storageBackups/__tests__/storageAdapters.test.ts","frontend-modern/src/features/storageBackups/__tests__/storageAlertState.test.ts",@@ -1589,7 +1590,14 @@ class SubsystemLookupTest(unittest.TestCase):self.assertEqual(match["verification_requirement"]["exact_files"],[- "frontend-modern/src/components/Infrastructure/__tests__/DeployStepComponents.test.tsx"+ "frontend-modern/src/components/Infrastructure/__tests__/DeployStepComponents.test.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/__tests__/CandidatesStep.test.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/__tests__/ConfirmStep.test.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/__tests__/DeployingStep.test.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/__tests__/PreflightStep.test.tsx",+ "frontend-modern/src/components/Infrastructure/deploy/__tests__/ResultsStep.test.tsx",+ "frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts",+ "frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts",],)@@ -4763,6 +4771,7 @@ class SubsystemLookupTest(unittest.TestCase):"frontend-modern/src/components/Infrastructure/__tests__/resourceDetailDrawerOperationalModel.test.ts","frontend-modern/src/components/Infrastructure/__tests__/resourceDetailMappers.test.ts","frontend-modern/src/components/Infrastructure/__tests__/unifiedResourceTableStateModel.test.ts",+ "frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts","frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.guardrails.test.ts","frontend-modern/src/features/infrastructure/__tests__/infrastructurePageModel.test.ts","frontend-modern/src/hooks/__tests__/useUnifiedResources.test.ts",