From accf8dac4611e82cfff32d7c394660ac74a31f24 Mon Sep 17 00:00:00 2001 From: shrimbly Date: Wed, 11 Mar 2026 08:50:43 +1300 Subject: [PATCH] feat: add Run button to ConditionalSwitchControls Adds a Run button matching the pattern used by other node control panels, allowing users to execute the conditional switch node directly from its settings panel. Co-Authored-By: Claude Opus 4.6 --- src/components/nodes/ControlPanel.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/components/nodes/ControlPanel.tsx b/src/components/nodes/ControlPanel.tsx index 95e8be98..888b155d 100644 --- a/src/components/nodes/ControlPanel.tsx +++ b/src/components/nodes/ControlPanel.tsx @@ -1062,6 +1062,8 @@ function EaseCurveControls({ node }: { node: Node }) { function ConditionalSwitchControls({ node }: { node: Node }) { const nodeData = node.data as ConditionalSwitchNodeData; const updateNodeData = useWorkflowStore((state) => state.updateNodeData); + const regenerateNode = useWorkflowStore((state) => state.regenerateNode); + const isRunning = useWorkflowStore((state) => state.isRunning); const [editingId, setEditingId] = useState(null); const handleRuleValueChange = useCallback( @@ -1177,6 +1179,17 @@ function ConditionalSwitchControls({ node }: { node: Node }) { > + Add Rule + +
+ +
); }