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.

Keep configuration-transfer guidance within copy-style checks

pulse-triage[bot]f4d891300847
diff --git a/frontend-modern/browser-verification/25d9e4ac521ee477.json b/frontend-modern/browser-verification/25d9e4ac521ee477.json
new file mode 100644
index 0000000000..03a8da5417
--- /dev/null
+++ b/frontend-modern/browser-verification/25d9e4ac521ee477.json
@@ -0,0 +1,47 @@
+{
+ "version": 1,
+ "base_sha": "22a0aa113fd906c8ce16837fcaaaf7b0367d18e7",
+ "verified_at": "2026-10-25T08:05:47Z",
+ "result": "passed",
+ "changed_paths": [
+ "frontend-modern/src/components/Settings/BackupTransferDialogs.tsx",
+ "frontend-modern/src/components/Settings/useBackupTransferFlow.ts"
+ ],
+ "content_sha256": {
+ "frontend-modern/src/components/Settings/BackupTransferDialogs.tsx": "dfda369004e4975f35814855116b9cca80e3107adc68fd768683be95353f268f",
+ "frontend-modern/src/components/Settings/useBackupTransferFlow.ts": "4c0981674d79d0568118d9bb69353427cb91bf2636ab96373d77021e9bc0a209"
+ },
+ "routes": [
+ "/settings/system/recovery (offline evidence fixture mounting the production useBackupTransferFlow, BackupTransferDialogs, apiClient, ToastContainer and CSS, not the full application shell)"
+ ],
+ "states": [
+ "API-token prompt presents complete manual-submission guidance, a masked token field and usable actions at desktop and narrow viewports.",
+ "Successful original-workspace response after selecting another organisation reports the completed destination and that no reload was performed."
+ ],
+ "interactions": [
+ "Keyboard-open at desktop and touch-open at narrow width. Choose a synthetic encrypted archive, enter a passphrase and submit through the real hook/API client to the safe loopback fixture.",
+ "Save a synthetic API token and verify no request, then explicitly submit once to the captured workspace.",
+ "Hold the import response, switch the selected workspace through the real apiClient setter, release the response and inspect the actual consuming notification. Verify the new workspace remains selected after the reload interval.",
+ "30 checks passed; all four screenshots opened with native view_image for pixel review."
+ ],
+ "viewports": [
+ {
+ "width": 1440,
+ "height": 1000,
+ "browser": "Chromium",
+ "browser_version": "141.0.7390.37"
+ },
+ {
+ "width": 320,
+ "height": 940,
+ "browser": "Chromium",
+ "browser_version": "141.0.7390.37",
+ "touch": true
+ }
+ ],
+ "evidence": "Current lane RECEIPTS.md, browser-work/browser-result.json and PIXEL-REVIEW.md. Playwright 1.56.1",
+ "limitations": [
+ "Synthetic responses establish the changed messages and consuming frontend interactions, not backend persistence, authentication, full-app navigation, server idempotency, native recovery or release delivery.",
+ "Earlier configuration-transfer proof remains bound to its original source and own-parent receipt."
+ ]
+}
diff --git a/frontend-modern/src/components/Settings/BackupTransferDialogs.tsx b/frontend-modern/src/components/Settings/BackupTransferDialogs.tsx
index 5fc646d7b3..69493b2a34 100644
--- a/frontend-modern/src/components/Settings/BackupTransferDialogs.tsx
+++ b/frontend-modern/src/components/Settings/BackupTransferDialogs.tsx
@@ -220,8 +220,8 @@ export const BackupTransferDialogs: Component<BackupTransferDialogsProps> = (pro
<div class="space-y-4">
<p class="text-sm text-muted">
This Pulse instance requires an API token for export/import operations. Please enter
- a token authorised for this workspace. Saving it does not repeat the transfer;
- review the workspace and submit again yourself.
+ a token authorised for this workspace. Saving it does not repeat the transfer.
+ Review the workspace and submit again yourself.
</p>
<div class={formField}>
diff --git a/frontend-modern/src/components/Settings/__tests__/BackupTransferDialogs.test.tsx b/frontend-modern/src/components/Settings/__tests__/BackupTransferDialogs.test.tsx
index 88ed938796..5db7a1163b 100644
--- a/frontend-modern/src/components/Settings/__tests__/BackupTransferDialogs.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/BackupTransferDialogs.test.tsx
@@ -2,7 +2,12 @@ import { cleanup, render, screen } from '@solidjs/testing-library';
import { afterEach, describe, expect, it, vi } from 'vitest';
import { BackupTransferDialogs } from '../BackupTransferDialogs';
-function renderTransfer(kind: 'export' | 'import', pending = false, error = '') {
+function renderTransfer(
+ kind: 'export' | 'import',
+ pending = false,
+ error = '',
+ showApiTokenModal = false,
+) {
return render(() => (
<BackupTransferDialogs
securityStatus={() => null}
@@ -16,7 +21,7 @@ function renderTransfer(kind: 'export' | 'import', pending = false, error = '')
setImportFile={vi.fn()}
showExportDialog={() => kind === 'export'}
showImportDialog={() => kind === 'import'}
- showApiTokenModal={() => false}
+ showApiTokenModal={() => showApiTokenModal}
transferOrgID={() => 'tenant-fixture'}
isTransferring={() => pending}
transferError={() => error}
@@ -90,4 +95,11 @@ describe('BackupTransferDialogs', () => {
'Check the destination before trying again',
);
});
+
+ it('explains that saving a token requires a deliberate transfer submission', () => {
+ renderTransfer('import', false, '', true);
+ const text = screen.getByRole('dialog', { name: 'API token required' }).textContent;
+ expect(text).toContain('Saving it does not repeat the transfer.');
+ expect(text).toContain('Review the workspace and submit again yourself.');
+ });
});
diff --git a/frontend-modern/src/components/Settings/__tests__/useBackupTransferFlow.test.ts b/frontend-modern/src/components/Settings/__tests__/useBackupTransferFlow.test.ts
index 1ffa4607af..40a2f6b1f1 100644
--- a/frontend-modern/src/components/Settings/__tests__/useBackupTransferFlow.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/useBackupTransferFlow.test.ts
@@ -226,7 +226,9 @@ describe('configuration transfers keep their confirmed workspace and one dispatc
result.resolve(response());
await pending;
expect(notificationStore.success).not.toHaveBeenCalled();
- expect(flow.transferError()).toContain('Import completed for workspace tenant-a');
+ expect(flow.transferError()).toBe(
+ 'Import completed for workspace tenant-a. The selected workspace changed. No reload was performed.',
+ );
expect(reloadTimers()).toHaveLength(0);
expect(flow.importPassphrase()).toBe('');
expect(flow.importFile()).toBeNull();
diff --git a/frontend-modern/src/components/Settings/useBackupTransferFlow.ts b/frontend-modern/src/components/Settings/useBackupTransferFlow.ts
index 1ac4622666..6c088e44a8 100644
--- a/frontend-modern/src/components/Settings/useBackupTransferFlow.ts
+++ b/frontend-modern/src/components/Settings/useBackupTransferFlow.ts
@@ -205,7 +205,7 @@ export function useBackupTransferFlow({ securityStatus }: UseBackupTransferFlowP
if (!active) return;
if (currentOrgID() !== orgID) {
fail(
- `Import completed for workspace ${orgID}. The selected workspace changed; no reload was performed.`,
+ `Import completed for workspace ${orgID}. The selected workspace changed. No reload was performed.`,
);
showImport(false);
setImportPassphrase('');