From a185a0a352305504cbde2ce89675896405e623cf Mon Sep 17 00:00:00 2001 From: mlogclub Date: Sun, 28 Jun 2026 09:37:34 +0800 Subject: [PATCH] feat: add auto layout functionality to workflow editor and toolbar --- .../_components/workflow-editor-toolbar.tsx | 9 ++++++++ .../_components/workflow-editor.tsx | 23 +++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/web/app/dashboard/ai-workflows/_components/workflow-editor-toolbar.tsx b/web/app/dashboard/ai-workflows/_components/workflow-editor-toolbar.tsx index e0b8fac..622d9f7 100644 --- a/web/app/dashboard/ai-workflows/_components/workflow-editor-toolbar.tsx +++ b/web/app/dashboard/ai-workflows/_components/workflow-editor-toolbar.tsx @@ -6,6 +6,7 @@ import { RotateCcwIcon, SaveIcon, SendIcon, + SparklesIcon, Undo2Icon, } from "lucide-react" @@ -23,6 +24,8 @@ export function WorkflowEditorToolbar({ undoDisabled = false, onRedo, redoDisabled = false, + onAutoLayout, + autoLayoutDisabled = false, onRestoreDefault, restoreDefaultDisabled = false, onValidate, @@ -40,6 +43,8 @@ export function WorkflowEditorToolbar({ undoDisabled?: boolean onRedo?: () => void redoDisabled?: boolean + onAutoLayout?: () => void + autoLayoutDisabled?: boolean onRestoreDefault?: () => void restoreDefaultDisabled?: boolean onValidate?: () => void @@ -74,6 +79,10 @@ export function WorkflowEditorToolbar({ +