Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
count block children in determining whether to enable debugging via b… (#3067)
Jonathan Dobsonb31e6147acd3
diff --git a/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx b/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsxindex 360723151..75ea27be9 100644--- a/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx@@ -89,6 +89,7 @@ import {descendants,generateNodeLabel,getAdditionalParametersForEmailBlock,+ getOrderedChildrenBlocks,getOutputParameterKey,getWorkflowBlocks,getWorkflowErrors,@@ -397,10 +398,21 @@ function FlowRenderer({}, [nodesInitialized]);useEffect(() => {- const blocks = getWorkflowBlocks(nodes, edges);- const debuggable = blocks.filter((block) =>+ const topLevelBlocks = getWorkflowBlocks(nodes, edges);+ const debuggable = topLevelBlocks.filter((block) =>debuggableWorkflowBlockTypes.has(block.block_type),);++ for (const node of nodes) {+ const childBlocks = getOrderedChildrenBlocks(nodes, edges, node.id);++ for (const child of childBlocks) {+ if (debuggableWorkflowBlockTypes.has(child.block_type)) {+ debuggable.push(child);+ }+ }+ }+setDebuggableBlockCount(debuggable.length);}, [nodes, edges]);diff --git a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.tsindex ea989cef2..ca1d1644a 100644--- a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts+++ b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts@@ -2242,6 +2242,7 @@ export {getLabelForWorkflowParameterType,maxNestingLevel,getWorkflowSettings,+ getOrderedChildrenBlocks,getOutputParameterKey,getPreviousNodeIds,getUniqueLabelForExistingNode,