mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-24 04:33:17 +00:00
bd4f6e36c4
Stacked on #2649, which carries its commitdcd409f9da. Once #2649 merges, this PR's diff is the single commitbf29201b19. PR 2612 deleted the never-mounted UnifiedResourceTable, andabb6f86aebretired the shared workloads-link helper. The unified-resources and performance-and-scalability contracts still described both as live owners. Each clause is checked against current source and now names the live owner, becomes a conditional rule, or goes: - System identity: the Docker hosts System column (`getDockerHostSystemBadge`, which drops runtime-only labels) and the resource drawer header. - Drawer resource labels: `createPlatformResourceLabelResolver`. These are operator-local names, not governed labels, and a table without a resolver shows raw IDs. - Same-route drawer reveal: `useWorkloadSelectionState`. Platform tables keep drawer state local. - Kubernetes cluster helpers: `agentResources.ts`, shared by `useWorkloads` and the drawer. - Workload platform scoping: `buildWorkloadsRouteSearch`. - Row policy chips and the workload-to-infrastructure href builder: now conditional or recorded as retired. No platform table renders policy chips. Code: with `infrastructureSelectors.ts` gone, `getInfrastructureSystemIdentitySortLabel` has no production caller, and `getInfrastructureSystemTitleBadges` has had none since PR 2612. Both are removed, along with the private helpers only the title helper used. Their tests either drop duplicate assertions or now assert the identity badges directly. Verification: badge suites plus `src/utils`, Docker, Infrastructure and platformPage vitest pass; the only failure is `agentInstallCommand`, which fails on macOS regardless. `tsc --noEmit` is clean, the bundle-size check passes with the same chunk set, and `contract_audit.py --check` reports no errors. A browser pass ran on an embedded production build (receipt `6c79cba8f0c6e7b0.json`) covering the Docker hosts System column render and sort plus the Docker and Machines drawers at 1440px and 390px.