Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Govern resource runtime adapter helpers

rcourtmanb46cf9576a72
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index f8b3c77b4b..b17efb1a77 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -3561,12 +3561,15 @@
"frontend-modern/src/pages/Infrastructure.tsx",
"frontend-modern/src/routing/resourceLinks.ts",
"frontend-modern/src/types/resource.ts",
+ "frontend-modern/src/utils/agentResources.ts",
"frontend-modern/src/utils/canonicalResourceTypes.ts",
"frontend-modern/src/utils/resourceBadgePresentation.ts",
"frontend-modern/src/utils/resourceChangePresentation.ts",
"frontend-modern/src/utils/resourceCorrelationPresentation.ts",
"frontend-modern/src/utils/resourceIdentity.ts",
+ "frontend-modern/src/utils/resourcePlatformData.ts",
"frontend-modern/src/utils/resourcePolicyPresentation.ts",
+ "frontend-modern/src/utils/resourceStateAdapters.ts",
"frontend-modern/src/utils/resourceTypeCompat.ts",
"frontend-modern/src/utils/resourceTypePresentation.ts",
"internal/api/resources.go"
@@ -3714,6 +3717,23 @@
"frontend-modern/src/utils/__tests__/resourceChangePresentation.test.ts"
]
},
+ {
+ "id": "resource-runtime-adapter-helpers",
+ "label": "resource runtime adapter helper proof",
+ "match_prefixes": [],
+ "match_files": [
+ "frontend-modern/src/utils/agentResources.ts",
+ "frontend-modern/src/utils/resourcePlatformData.ts",
+ "frontend-modern/src/utils/resourceStateAdapters.ts"
+ ],
+ "allow_same_subsystem_tests": false,
+ "test_prefixes": [],
+ "exact_files": [
+ "frontend-modern/src/utils/__tests__/agentResources.test.ts",
+ "frontend-modern/src/utils/__tests__/resourcePlatformData.test.ts",
+ "frontend-modern/src/utils/__tests__/resourceStateAdapters.test.ts"
+ ]
+ },
{
"id": "resource-type-badge-presentation-helpers",
"label": "resource type and badge presentation helper proof",
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 256719ab7c..8bfd6cf48e 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -77,15 +77,18 @@ cross-source deduplication.
55. `frontend-modern/src/components/Infrastructure/InfrastructureSummary.tsx`
56. `frontend-modern/src/components/Infrastructure/useInfrastructureSummaryState.ts`
57. `frontend-modern/src/components/Infrastructure/infrastructureSummaryModel.ts`
-58. `frontend-modern/src/utils/canonicalResourceTypes.ts`
-59. `frontend-modern/src/utils/resourceBadgePresentation.ts`
-60. `frontend-modern/src/utils/resourceChangePresentation.ts`
-61. `frontend-modern/src/utils/resourceCorrelationPresentation.ts`
-62. `frontend-modern/src/utils/resourcePolicyPresentation.ts`
-63. `frontend-modern/src/utils/resourceTypeCompat.ts`
-64. `frontend-modern/src/utils/resourceTypePresentation.ts`
-65. `frontend-modern/src/utils/resourceIdentity.ts`
-66. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerIdentityModel.ts`
+58. `frontend-modern/src/utils/agentResources.ts`
+59. `frontend-modern/src/utils/canonicalResourceTypes.ts`
+60. `frontend-modern/src/utils/resourceBadgePresentation.ts`
+61. `frontend-modern/src/utils/resourceChangePresentation.ts`
+62. `frontend-modern/src/utils/resourceCorrelationPresentation.ts`
+63. `frontend-modern/src/utils/resourcePlatformData.ts`
+64. `frontend-modern/src/utils/resourcePolicyPresentation.ts`
+65. `frontend-modern/src/utils/resourceStateAdapters.ts`
+66. `frontend-modern/src/utils/resourceTypeCompat.ts`
+67. `frontend-modern/src/utils/resourceTypePresentation.ts`
+68. `frontend-modern/src/utils/resourceIdentity.ts`
+69. `frontend-modern/src/components/Infrastructure/resourceDetailDrawerIdentityModel.ts`
## Shared Boundaries
@@ -836,6 +839,17 @@ resource tables, drawers, and infrastructure summary cards. Future resource
type or badge wording changes should extend these unified-resource owners
instead of rebuilding type-label or badge mapping logic inside infrastructure,
settings, alerts, recovery, or dashboard-local helpers.
+The shared resource-runtime adapter boundary is also owned here now.
+`frontend-modern/src/utils/agentResources.ts` owns canonical actionable
+resource identities, agent-facet detection, cluster-name fallbacks, and
+resource-derived chart-key candidates. `frontend-modern/src/utils/resourcePlatformData.ts`
+owns the typed extraction of platform-data fragments from unified resources,
+and `frontend-modern/src/utils/resourceStateAdapters.ts` owns canonical
+projection from unified resources into node/PBS/PMG runtime view models.
+Future resource-to-runtime mapping changes should extend these unified-resource
+owners instead of rebuilding ad hoc platform-data parsing or action-target
+fallback logic inside alerts, settings, recovery, AI, or infrastructure-local
+state owners.
`ResourceFacetSummary` now consumes the shared
`frontend-modern/src/utils/resourceChangePresentation.ts` label helper for
canonical change kinds, source types, and adapter provenance, so the chip