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.

Preserve reviewed maintenance with truthful alert handover reports

pulse-triage[bot]9dbdbe45e2b9
diff --cc frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
index a8674e15ed,0007cbf67c..42ee7c6a57
--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
@@@ -2190,17 -2135,17 +2190,25 @@@ describe('frontend resource type bounda
expect(resourceDetailDrawerSource).toContain('RESOURCE_CHANGE_KIND_ORDER');
expect(resourceDetailDrawerSource).toContain('RESOURCE_CHANGE_SOURCE_TYPE_ORDER');
expect(resourceDetailDrawerSource).toContain('RESOURCE_CHANGE_SOURCE_ADAPTER_ORDER');
- expect(resourceDetailDrawerSource).toContain('getResourceChangeKindPresentation');
+ expect(
+ usesSharedChangePresentation(
+ resourceDetailDrawerOverviewSource,
+ resourceChangePresentationSource,
+ ),
+ ).toBe(true);
expect(resourceDetailDrawerSource).toContain('getResourceChangeSourceTypePresentation');
expect(resourceDetailDrawerSource).toContain('getResourceChangeSourceAdapterPresentation');
+ expect(
+ usesSharedChangePresentation(resourceChangeSummarySource, resourceChangePresentationSource),
+ ).toBe(true);
+ // Per-change rows read getResourceChangePresentation, which wraps the
+ // kind presentation so an alert close that was not a recovery reads as
+ // a move.
+ expect(resourceDetailDrawerSource).toContain('getResourceChangePresentation(change)');
+ expect(resourceChangeSummarySource).toContain('getResourceChangePresentation(change)');
+ expect(resourceChangeSummarySource).not.toContain(
+ 'getResourceChangeKindPresentation(change.kind)',
+ );
expect(resourceChangeSummarySource).toContain('getResourceChangeSourceTypePresentation');
expect(resourceChangeSummarySource).toContain('getResourceChangeSourceAdapterPresentation');
expect(resourceDetailDrawerSource).not.toContain('healthToneClass(');