From a68482da77781310872806b0388dba21f07d7d00 Mon Sep 17 00:00:00 2001 From: hjlarry Date: Fri, 10 Apr 2026 11:04:03 +0800 Subject: [PATCH] chore: try to track why nodes missing --- web/app/components/header/index.tsx | 21 +++- .../core/collaboration-manager.ts | 114 +++++++++++++++++- .../hooks/use-collaborative-workflow.ts | 3 +- .../workflow/hooks/use-leader-restore.ts | 2 +- .../workflow/hooks/use-nodes-interactions.ts | 7 +- 5 files changed, 132 insertions(+), 15 deletions(-) diff --git a/web/app/components/header/index.tsx b/web/app/components/header/index.tsx index 560d5f1eaa..2c1f3ca32e 100644 --- a/web/app/components/header/index.tsx +++ b/web/app/components/header/index.tsx @@ -42,10 +42,17 @@ const Header = () => { else setShowAccountSettingModal({ payload: ACCOUNT_SETTING_TAB.BILLING }) }, [isFreePlan, setShowAccountSettingModal, setShowPricingModal]) + const handleDownloadGraphImportLog = useCallback(() => { + void import('@/app/components/workflow/collaboration/core/collaboration-manager') + .then(({ collaborationManager }) => { + collaborationManager.downloadGraphImportLog() + }) + .catch(() => {}) + }, []) const renderLogo = () => (

- + {isBrandingEnabled && systemFeatures.branding.application_title ? systemFeatures.branding.application_title : 'Dify'} {systemFeatures.branding.enabled && systemFeatures.branding.workspace_logo ? ( @@ -91,7 +98,7 @@ const Header = () => { return (
-
+
{renderLogo()}
/
@@ -105,7 +112,15 @@ const Header = () => { {(isCurrentWorkspaceEditor || isCurrentWorkspaceDatasetOperator) && } {!isCurrentWorkspaceDatasetOperator && }
-
+
+