From b93ea61f5deb46013c010b407b8a17c4b5be9b96 Mon Sep 17 00:00:00 2001 From: Tomasz Zajac Date: Fri, 25 Sep 2026 12:09:47 +0200 Subject: [PATCH] fix(hub): drop per-concept success toasts on Hub import Importing a blueprint also imports its related concepts, and each import pushed an "Imported """ info toast. With a blueprint's dozen-plus related concepts, the stack of toasts covered the template-parameter form that opens right after. The success toast added nothing: the import modal already marks each concept as imported ("Imported" / "All N concepts imported!"), and Radical Forge's Hub cards switch to "Imported". Removed it from both import paths (HubImportModal and importConcept); failure toasts stay. Co-Authored-By: Claude Opus 5.5 --- src/renderer/src/components/HubImportModal.tsx | 9 +++------ src/renderer/src/hub/importConcept.ts | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/renderer/src/components/HubImportModal.tsx b/src/renderer/src/components/HubImportModal.tsx index ba5b434..555e59d 100644 --- a/src/renderer/src/components/HubImportModal.tsx +++ b/src/renderer/src/components/HubImportModal.tsx @@ -644,12 +644,9 @@ export function HubImportModal({ open, onClose, preselectedIds }: Props): React. store.upsertHubTemplate(importId, record) } - store.pushNotification( - useDropParent - ? `Imported "${concept.name}" into "${dropParent!.label}"` - : `Imported "${concept.name}"`, - 'info', - ) + // No success toast: the modal itself marks each concept as imported, + // and a blueprint with its related concepts would otherwise stack a + // dozen toasts over the template-parameter form that follows. // In preselected (hub import) mode: mark as done and close only when all imported. if (preselectedIds && preselectedIds.length > 0) { setImportedIds((prev) => { diff --git a/src/renderer/src/hub/importConcept.ts b/src/renderer/src/hub/importConcept.ts index 93c6036..fdb3941 100644 --- a/src/renderer/src/hub/importConcept.ts +++ b/src/renderer/src/hub/importConcept.ts @@ -186,7 +186,7 @@ export function importHubConceptIntoDiagram( store.upsertHubTemplate(importId, record) } - store.pushNotification(`Imported "${concept.name}"`, 'info') + // No success toast — callers show the imported state on the card itself. return { nodeIds: Object.keys(newNodes) } }