Pulse/frontend-modern
rcourtman 55f10ce36c phase 2: frontend types and useResources hook
- Created resource.ts with TypeScript types for unified Resource model
  - ResourceType, PlatformType, SourceType, ResourceStatus enums
  - Resource interface matching backend ResourceFrontend
  - Helper functions: isInfrastructure, isWorkload, getDisplayName, etc.
  - ResourceFilter interface for complex filtering

- Updated api.ts State interface to include optional resources array

- Created useResources hook for accessing unified resources
  - Reactive access via getGlobalWebSocketStore
  - Pre-computed memos for infra, workloads, statusCounts
  - Filtering methods: byType, byPlatform, filtered
  - Query helpers: get, children, topByCpu, topByMemory

- Created useResourcesAsLegacy helper for migration
  - Converts resources to legacy VM/Container formats
  - Enables gradual component migration

This provides the foundation for migrating frontend pages to use
the unified resource model.
2025-12-07 23:07:45 +00:00
..
public Fix host agent registration verification issues (#746) 2025-11-24 14:28:09 +00:00
src phase 2: frontend types and useResources hook 2025-12-07 23:07:45 +00:00
.eslintignore Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
.eslintrc.cjs Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
.gitignore Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
.prettierignore Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
.prettierrc Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
index.html AI Problem Solver implementation and various fixes 2025-12-06 23:46:08 +00:00
package-lock.json wip: AI chat integration with multi-provider support 2025-12-04 20:16:53 +00:00
package.json wip: AI chat integration with multi-provider support 2025-12-04 20:16:53 +00:00
PLAN-column-visibility.md wip: AI provider improvements and chat store enhancements 2025-12-05 12:14:00 +00:00
pnpm-lock.yaml fix: local dev setup, encryption key generation, and pnpm lockfile 2025-11-19 14:48:09 +00:00
postcss.config.js Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
tailwind.config.js wip: AI chat integration with multi-provider support 2025-12-04 20:16:53 +00:00
tsconfig.json Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
tsconfig.node.json Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
vite.config.ts AI Problem Solver implementation and various fixes 2025-12-06 23:46:08 +00:00