Pulse/internal/resources
rcourtman 7e8611e0ae cleanup: consolidate unified resources adapters into useResourcesAsLegacy hook
This cleanup addresses transition debt from the unified resources migration:

Frontend cleanup:
- Move all Resource→Legacy type conversions to useResourcesAsLegacy() hook
- Add asNodes() and asDockerHosts() adapter functions to the hook
- Simplify DockerRoute, HostsRoute, DashboardView to use the centralized hook
- Remove ~300 lines of duplicated adapter code from App.tsx
- Remove debug console.log statements from Dashboard.tsx
- Fix CPU value conversion (divide by 100) for Dashboard compatibility

Backend fixes (from previous session):
- Fix parentID format in converters (VM, Container, Storage) to match Node.ID
- Format changed from 'instance/node/nodename' to 'instance-nodename'
- Update tests to match new parentID format

This consolidates all legacy type conversion logic in one place,
making future cleanup easier when components are migrated to use
unified resources directly.
2025-12-08 09:16:26 +00:00
..
converters.go cleanup: consolidate unified resources adapters into useResourcesAsLegacy hook 2025-12-08 09:16:26 +00:00
converters_test.go cleanup: consolidate unified resources adapters into useResourcesAsLegacy hook 2025-12-08 09:16:26 +00:00
platform_data.go feat: Complete Unified Resource Architecture (Phases 1-3) 2025-12-07 13:49:00 +00:00
populate_test.go test: add PopulateFromSnapshot test to verify resource conversion 2025-12-07 23:38:15 +00:00
resource.go feat: Complete Unified Resource Architecture (Phases 1-3) 2025-12-07 13:49:00 +00:00
store.go ensure resource store is populated before WebSocket broadcasts 2025-12-07 23:15:02 +00:00
store_test.go feat: Complete Unified Resource Architecture (Phases 1-3) 2025-12-07 13:49:00 +00:00