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.

Retry saved node settings with the infrastructure list

pulse-triage[bot]c2b882a3208f
diff --git a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
index 9b488a2562..915e87f15e 100644
--- a/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
+++ b/frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx
@@ -16,6 +16,7 @@ import { hasFeature, runtimeCapabilitiesLoaded } from '@/stores/license';
import { copyToClipboard } from '@/utils/clipboard';
import { notificationStore } from '@/stores/notifications';
import { updateStore } from '@/stores/updates';
+import { eventBus } from '@/stores/events';
import { Dialog } from '@/components/shared/Dialog';
import { Button } from '@/components/shared/Button';
import { AgentProfilesPanel } from './AgentProfilesPanel';
@@ -989,7 +990,12 @@ const InfrastructureWorkspaceContent: Component<InfrastructureWorkspaceProps> =
rows={rows}
inventoryLoading={!ledger.resolvedOnce() || ledger.loading()}
inventoryError={ledger.error()}
- onRetryInventory={() => ledger.reload()}
+ onRetryInventory={() => {
+ ledger.reload();
+ // The editor reads saved node settings separately from the ledger.
+ // Recover that read too after a cold outage, without a page reload.
+ if (!readOnly()) eventBus.emit('refresh_nodes');
+ }}
discoveredNodes={visibleDiscoveredNodes}
discoveryEnabled={props.discoveryEnabled()}
discoveryScanStatus={props.discoveryScanStatus}
diff --git a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
index c809d43257..240812b1ed 100644
--- a/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/InfrastructureWorkspace.test.tsx
@@ -2,6 +2,7 @@ import { cleanup, fireEvent, render, screen, waitFor, within } from '@solidjs/te
import { createSignal } from 'solid-js';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import type { Connection } from '@/api/connections';
+import { eventBus } from '@/stores/events';
import {
agentAttachmentProblem,
infrastructureRowMonitoringPath,
@@ -876,6 +877,22 @@ describe('InfrastructureWorkspace', () => {
expect(ledgerReadState.reload).toHaveBeenCalledTimes(1);
});
+ it('retries saved node configuration alongside the connection list for an administrator', () => {
+ connectionState.connections = [];
+ connectionState.rows = [];
+ ledgerReadState.error = { status: 503 };
+ const refreshNodes = vi.fn();
+ const unsubscribe = eventBus.on('refresh_nodes', refreshNodes);
+ try {
+ renderWorkspace();
+ fireEvent.click(screen.getByRole('button', { name: 'Retry' }));
+ expect(ledgerReadState.reload).toHaveBeenCalledTimes(1);
+ expect(refreshNodes).toHaveBeenCalledTimes(1);
+ } finally {
+ unsubscribe();
+ }
+ });
+
it('keeps onboarding copy visible in the empty infrastructure state', async () => {
connectionState.connections = [];
connectionState.rows = [];