Files
Pulse/frontend-modern/browser-tests/configuration-migration.tsx
pulse-triage[bot] 73d2c64e0f Make configuration migration warnings match the actual backup
Separate configuration transfer from complete stopped-state recovery, correct omitted platform and agent-state claims, and preserve safe credential/retargeting guidance. Validate the real encrypted archive and production dialogs with scoped tests and desktop/phone browser interactions. No new backup capability or runtime contract change.

Contract-Neutral: The archive, persistence, authentication and agent contracts are unchanged; help and visible warnings now describe existing scope, with regression proof for that account.
Change-source: pulse-maintainer
2026-10-03 15:52:53 +01:00

33 lines
1.2 KiB
TypeScript

// Actual transfer dialogs and flow, plus the production Docs renderer/router.
// The browser driver supplies only synthetic API responses; no server or
// operational credentials are involved in this copy/interaction proof.
import { render } from 'solid-js/web';
import { Router, Route } from '@solidjs/router';
import { BackupTransferDialogs } from '../src/components/Settings/BackupTransferDialogs';
import { useBackupTransferFlow } from '../src/components/Settings/useBackupTransferFlow';
import Docs from '../src/pages/Docs';
import '../src/index.css';
function Transfer() {
const securityStatus = () => null;
const flow = useBackupTransferFlow({ securityStatus });
return (
<main class="p-6">
<h1>Configuration transfer</h1>
<button onClick={() => flow.setShowExportDialog(true)}>Create Backup</button>
<button onClick={() => flow.setShowImportDialog(true)}>Restore Configuration</button>
<BackupTransferDialogs {...flow} securityStatus={securityStatus} />
</main>
);
}
render(
() => (
<Router>
<Route path="/docs/*docPath" component={Docs} />
<Route path="*" component={Transfer} />
</Router>
),
document.getElementById('root')!,
);