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.

Clarify recovery Kubernetes cluster item labels

rcourtmana15f5ad51bef
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index e08937632f..47b3481821 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -4752,6 +4752,7 @@
"frontend-modern/src/utils/recoveryEmptyStatePresentation.ts",
"frontend-modern/src/utils/recoveryFilterChipPresentation.ts",
"frontend-modern/src/utils/recoveryIssuePresentation.ts",
+ "frontend-modern/src/utils/recoveryItemTypePresentation.ts",
"frontend-modern/src/utils/recoveryOutcomePresentation.ts",
"frontend-modern/src/utils/recoveryRecordPresentation.ts",
"frontend-modern/src/utils/recoveryStatusPresentation.ts",
@@ -4829,6 +4830,7 @@
"frontend-modern/src/utils/recoveryEmptyStatePresentation.ts",
"frontend-modern/src/utils/recoveryFilterChipPresentation.ts",
"frontend-modern/src/utils/recoveryIssuePresentation.ts",
+ "frontend-modern/src/utils/recoveryItemTypePresentation.ts",
"frontend-modern/src/utils/recoveryOutcomePresentation.ts",
"frontend-modern/src/utils/recoveryRecordPresentation.ts",
"frontend-modern/src/utils/recoveryStatusPresentation.ts",
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 8cbbd73236..a87c27603b 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -54,11 +54,12 @@ querying, and the operator-facing storage health presentation layer.
27. `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/textPresentation.ts`
-31. `frontend-modern/src/components/Storage/StorageSummary.tsx`
-32. `frontend-modern/src/utils/storageSummaryCache.ts`
-33. `frontend-modern/src/components/Storage/useStorageSummaryCharts.ts`
-34. `frontend-modern/src/features/storageBackups/storageCapacityDeltaPresentation.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`
## Shared Boundaries
@@ -712,6 +713,11 @@ Storage physical-disk requirements copy now consumes the shared
Infrastructure target label. Disk-health guidance may refer to Proxmox node
requirements, but it must not revive removed nested Pulse settings paths such
as `Settings → Infrastructure → Proxmox`.
+Recovery item-type labels now route through
+`frontend-modern/src/utils/recoveryItemTypePresentation.ts`. Recovery surfaces
+must not render a bare `Cluster` item type for Kubernetes protected subjects;
+use the canonical `K8s Cluster` label so protected inventory and event filters
+do not confuse Kubernetes clusters with Proxmox clusters or table grouping.
This subsystem now sits under the dedicated storage and recovery lane so the
operator-facing storage page, recovery timeline, and recovery-point persistence
diff --git a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
index 91bb770e4b..041b004048 100644
--- a/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
+++ b/frontend-modern/src/components/Recovery/__tests__/Recovery.test.tsx
@@ -658,6 +658,36 @@ describe('Recovery', () => {
}
});
+ it('labels Kubernetes cluster recovery subjects without generic cluster wording', async () => {
+ rollupsPayload.push({
+ rollupId: 'res:k8s-production-1',
+ itemResourceId: 'k8s-production-1',
+ display: {
+ itemLabel: 'Healthy Production',
+ itemType: 'cluster',
+ },
+ lastAttemptAt: '2026-02-15T11:00:00.000Z',
+ lastSuccessAt: '2026-02-15T11:00:00.000Z',
+ lastOutcome: 'success',
+ platforms: ['kubernetes'],
+ });
+ pointsByRollupId['res:k8s-production-1'] = [];
+
+ try {
+ render(() => <Recovery />);
+
+ expect(await screen.findByText('Healthy Production')).toBeInTheDocument();
+ const inventoryTable = (await screen.findAllByRole('table'))[0];
+ expect(within(inventoryTable).getAllByText('K8s Cluster').length).toBeGreaterThan(0);
+ expect(within(inventoryTable).queryByText('Cluster', { exact: true })).not.toBeInTheDocument();
+ expect(screen.getByRole('option', { name: 'K8s Cluster' })).toBeInTheDocument();
+ expect(screen.queryByRole('option', { name: 'Cluster' })).not.toBeInTheDocument();
+ } finally {
+ rollupsPayload.pop();
+ delete pointsByRollupId['res:k8s-production-1'];
+ }
+ });
+
it('renders degraded recovery records when item refs and details metadata are omitted', async () => {
rollupsPayload.push({
rollupId: 'res:pvc-1',
diff --git a/frontend-modern/src/utils/__tests__/recoveryItemTypePresentation.test.ts b/frontend-modern/src/utils/__tests__/recoveryItemTypePresentation.test.ts
index e328557e9a..11d45ac143 100644
--- a/frontend-modern/src/utils/__tests__/recoveryItemTypePresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/recoveryItemTypePresentation.test.ts
@@ -14,6 +14,8 @@ describe('recoveryItemTypePresentation', () => {
expect(normalizeRecoveryItemTypeQueryValue('proxmox-vm')).toBe('vm');
expect(normalizeRecoveryItemTypeQueryValue('proxmox-vm-backup')).toBe('vm');
expect(normalizeRecoveryItemTypeQueryValue('k8s-pvc')).toBe('pvc');
+ expect(normalizeRecoveryItemTypeQueryValue('k8s-cluster')).toBe('cluster');
+ expect(normalizeRecoveryItemTypeQueryValue('kubernetes-cluster')).toBe('cluster');
expect(normalizeRecoveryItemTypeQueryValue('truenas-dataset')).toBe('dataset');
expect(normalizeRecoveryItemTypeQueryValue('docker-container')).toBe('app-container');
expect(normalizeRecoveryItemTypeQueryValue(' custom-thing ')).toBe('custom-thing');
@@ -41,6 +43,14 @@ describe('recoveryItemTypePresentation', () => {
key: 'task',
label: 'Task',
});
+ expect(getRecoveryItemTypePresentation('cluster')).toMatchObject({
+ key: 'cluster',
+ label: 'K8s Cluster',
+ });
+ expect(getRecoveryItemTypePresentation('k8s-cluster')).toMatchObject({
+ key: 'cluster',
+ label: 'K8s Cluster',
+ });
});
it('falls back cleanly for unknown item types', () => {
diff --git a/frontend-modern/src/utils/recoveryItemTypePresentation.ts b/frontend-modern/src/utils/recoveryItemTypePresentation.ts
index eb36944433..377db5c1d5 100644
--- a/frontend-modern/src/utils/recoveryItemTypePresentation.ts
+++ b/frontend-modern/src/utils/recoveryItemTypePresentation.ts
@@ -69,6 +69,10 @@ export const normalizeRecoveryItemTypeQueryValue = (
case 'k8s-pvc':
case 'pvc':
return 'pvc';
+ case 'k8s-cluster':
+ case 'kubernetes-cluster':
+ case 'cluster':
+ return 'cluster';
case 'truenas-dataset':
case 'dataset':
return 'dataset';
@@ -140,6 +144,15 @@ export const getRecoveryItemTypePresentation = (
tableBadgeClasses: `${TABLE_BADGE_BASE_CLASSES} ${presentation?.badgeClasses || DEFAULT_BADGE_TONE_CLASSES}`,
};
}
+ case 'cluster': {
+ const presentation = getResourceTypePresentation('k8s-cluster');
+ return {
+ key,
+ label: presentation?.label || 'K8s Cluster',
+ badgeClasses: `${BADGE_BASE_CLASSES} ${presentation?.badgeClasses || DEFAULT_BADGE_TONE_CLASSES}`,
+ tableBadgeClasses: `${TABLE_BADGE_BASE_CLASSES} ${presentation?.badgeClasses || DEFAULT_BADGE_TONE_CLASSES}`,
+ };
+ }
default: {
const presentation = getResourceTypePresentation(key);
if (presentation) {