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.

Fix frontend publication checks

pulse-triage[bot]1cde4237baca
diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.ts
index 55c5f15127..363f2f3b96 100644
--- a/frontend-modern/src/__tests__/App.architecture.test.ts
+++ b/frontend-modern/src/__tests__/App.architecture.test.ts
@@ -869,7 +869,8 @@ describe('App architecture', () => {
it('keeps alert hydration separate from tenant resource admission', () => {
const start = appRuntimeStateSource.indexOf('const runtimeStateResolved');
const predicate = appRuntimeStateSource.slice(
- start, appRuntimeStateSource.indexOf('const state =', start),
+ start,
+ appRuntimeStateSource.indexOf('const state =', start),
);
expect(start).toBeGreaterThan(-1);
expect(predicate).toContain('resourceSnapshotReceived()');
diff --git a/frontend-modern/src/__tests__/useAppRuntimeState.test.ts b/frontend-modern/src/__tests__/useAppRuntimeState.test.ts
index 7b65aee58e..3dfeab3241 100644
--- a/frontend-modern/src/__tests__/useAppRuntimeState.test.ts
+++ b/frontend-modern/src/__tests__/useAppRuntimeState.test.ts
@@ -697,7 +697,9 @@ describe('useAppRuntimeState', () => {
});
it('does not mistake alert-only reconnect recovery for an empty resource snapshot', async () => {
- websocketState = makeWebSocketState({ activeAlerts: [{ id: 'recovered-alert' } as State['activeAlerts'][number]] });
+ websocketState = makeWebSocketState({
+ activeAlerts: [{ id: 'recovered-alert' } as State['activeAlerts'][number]],
+ });
websocketConnected = false;
websocketReconnecting = true;
websocketInitialDataReceived = false;
diff --git a/frontend-modern/src/features/alerts/__tests__/AlertHistoryMobileList.test.tsx b/frontend-modern/src/features/alerts/__tests__/AlertHistoryMobileList.test.tsx
index 5e00659504..70141394d9 100644
--- a/frontend-modern/src/features/alerts/__tests__/AlertHistoryMobileList.test.tsx
+++ b/frontend-modern/src/features/alerts/__tests__/AlertHistoryMobileList.test.tsx
@@ -183,9 +183,11 @@ describe('AlertHistoryMobileList changing history', () => {
const resourceButton = screen.getByRole('button', { name: 'Resource' });
resourceButton.focus();
await fireEvent.click(resourceButton);
- expect(screen.getByRole('dialog', {
- name: 'Resource incidents for pve-production-01',
- })).toBeInTheDocument();
+ expect(
+ screen.getByRole('dialog', {
+ name: 'Resource incidents for pve-production-01',
+ }),
+ ).toBeInTheDocument();
// A refresh or filter change can remove the originating history card.
setGroupedAlerts([]);
diff --git a/frontend-modern/src/features/truenas/__tests__/TrueNASAlertsTable.test.tsx b/frontend-modern/src/features/truenas/__tests__/TrueNASAlertsTable.test.tsx
index ce6e492cc2..4d5d0b7d79 100644
--- a/frontend-modern/src/features/truenas/__tests__/TrueNASAlertsTable.test.tsx
+++ b/frontend-modern/src/features/truenas/__tests__/TrueNASAlertsTable.test.tsx
@@ -80,7 +80,7 @@ describe('TrueNASAlertsTable', () => {
expect(detail.getByText('disk-sdc')).toBeInTheDocument();
expect(detail.getByText('SMART')).toBeInTheDocument();
- setResources([makeDisk({ status: 'healthy', incidents: [] })]);
+ setResources([makeDisk({ status: 'online', incidents: [] })]);
expect(await screen.findByText('No active provider incidents')).toBeInTheDocument();
expect(screen.queryByTestId('truenas-alert-detail')).not.toBeInTheDocument();
expect(screen.queryByText('Device /dev/sdc has failed.')).not.toBeInTheDocument();
@@ -116,7 +116,7 @@ describe('TrueNASAlertsTable', () => {
within(screen.getByTestId('truenas-alert-detail')).getByText('disk-sdc'),
).toBeInTheDocument();
- setResources([makeDisk({ status: 'healthy', incidents: [] }), otherDisk]);
+ setResources([makeDisk({ status: 'online', incidents: [] }), otherDisk]);
expect(await screen.findByText('Device /dev/sdd has SMART test failures.')).toBeInTheDocument();
expect(screen.queryByTestId('truenas-alert-detail')).not.toBeInTheDocument();
expect(screen.queryByText('Device /dev/sdc has SMART test failures.')).not.toBeInTheDocument();