From a2c0f731406ae3a60d956d40514c8237c1552bcb Mon Sep 17 00:00:00 2001 From: ciregenz Date: Tue, 7 Jul 2026 01:15:03 -0700 Subject: [PATCH] [eric] import: app .swarm no longer navigates to the deleted /apps route (white-screen brick) --- frontend/src/app/components/share/ImportEntryPoint.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/share/ImportEntryPoint.tsx b/frontend/src/app/components/share/ImportEntryPoint.tsx index 8db0cb7e..a9a8ead0 100644 --- a/frontend/src/app/components/share/ImportEntryPoint.tsx +++ b/frontend/src/app/components/share/ImportEntryPoint.tsx @@ -19,8 +19,8 @@ export const IMPORT_OPEN_EVENT = 'openswarm:import-open'; const ACCEPT = '.swarm,.md,.zip'; const DIGEST_MS = 820; // keep in step with ImportDigest's wave so the blast reads fully +// Only routes that actually exist belong here. An imported app is an Output that shows up in the Apps sidebar; it has no standalone page (the /apps route was removed), so it must not navigate, or the whole app tree unmounts to a white screen. const DEST: Record string | null> = { - app: (id) => `/apps/${id}`, dashboard: (id) => `/dashboard/${id}`, }; @@ -54,7 +54,8 @@ const ImportEntryPoint: React.FC = () => { const finish = useCallback( (rootType: string, rootId: string, name: string) => { - setToast({ msg: `Added ${name}`, sev: 'success' }); + const msg = rootType === 'app' ? `Added ${name} to your Apps` : `Added ${name}`; + setToast({ msg, sev: 'success' }); const to = DEST[rootType]?.(rootId); if (to) navigate(to); },