Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
Merge main and retain legacy restore completion warning
[._.]/ Adam Eivy310322bdfe1c
diff --cc client/src/components/BackupWidget.jsxindex a9d30d5062,a3e787554d..e62cc49bb9--- a/client/src/components/BackupWidget.jsx+++ b/client/src/components/BackupWidget.jsx@@@ -120,13 -128,10 +128,12 @@@ function RestorePanel({ snapshot, onClo});onRestoreStateChange(null);if (result) {- // A legacy snapshot has no manifest to verify against — say so plainly- // rather than letting "complete" read as "integrity-checked".- toast.success(`Restore complete — ${result.changedFiles?.length ?? 0} file(s) restored`);++ // Execution re-verifies the snapshot; report its status after the preview closes.+ const suffix = result.verification?.status === 'unverified' ? ' (unverified legacy snapshot)' : '';+ toast.success(`Restore complete — ${result.changedFiles?.length ?? 0} file(s) restored${suffix}`);onClose();}- }, [acceptedPreview, onClose, onRestoreStateChange, previewMatchesCurrentRequest, restoring, snapshot.id]);+ }, [acceptedPreview, onClose, onRestoreStateChange, previewMatchesCurrentRequest, restoring, snapshot]);const preview = previewMatchesCurrentRequest ? acceptedPreview.result : null;diff --cc client/src/components/BackupWidget.test.jsxindex 97c3a01c9f,285042f37f..a888f4990c--- a/client/src/components/BackupWidget.test.jsx+++ b/client/src/components/BackupWidget.test.jsx@@@ -163,6 -209,23 +209,47 @@@ describe('BackupWidget snapshots', () =expect(mockToast.success).toHaveBeenCalledWith('Restore complete — 1 file(s) restored');});- it('warns before confirming a legacy snapshot without an integrity manifest', async () => {- mockRestoreBackup.mockResolvedValueOnce({++ it('keeps the legacy snapshot warning through restore completion', async () => {++ mockRestoreBackup.mockResolvedValue({+ dryRun: true,+ changedFiles: ['settings.json'],+ verification: { status: 'unverified', reason: 'manifest_absent', checkedFiles: 0 },+ });+ renderWidget();++ await openRestorePanel();+ fireEvent.click(screen.getByRole('button', { name: 'Preview changes' }));++ expect(await screen.findByRole('alert')).toHaveTextContent(+ 'Legacy snapshot: no integrity manifest is available. PortOS cannot verify these backup bytes before restore.',+ );+ expect(screen.getByRole('button', { name: 'Restore 1 file(s)' })).toBeEnabled();++ fireEvent.click(screen.getByRole('button', { name: 'Restore 1 file(s)' }));++ await waitFor(() => expect(mockToast.success).toHaveBeenCalledWith(++ 'Restore complete — 1 file(s) restored (unverified legacy snapshot)',++ ));++ });++++ it('reports execution verification even when the preview was verified', async () => {++ mockRestoreBackup++ .mockResolvedValueOnce({++ changedFiles: ['settings.json'],++ verification: { status: 'verified', checkedFiles: 1 },++ })++ .mockResolvedValueOnce({++ changedFiles: ['settings.json'],++ verification: { status: 'unverified', reason: 'manifest_absent', checkedFiles: 0 },++ });++ renderWidget();++ await openRestorePanel();++ fireEvent.click(screen.getByRole('button', { name: 'Preview changes' }));++ await screen.findByRole('status');++ fireEvent.click(screen.getByRole('button', { name: 'Restore 1 file(s)' }));++ await waitFor(() => expect(mockToast.success).toHaveBeenCalledWith(++ 'Restore complete — 1 file(s) restored (unverified legacy snapshot)',++ ));+ });+it('invalidates a selective preview when the filter is cleared', async () => {mockRestoreBackup.mockResolvedValueOnce({ changedFiles: ['brain/example.json'] })