From 04372863235f48b5545f44bb3553be42178a05f3 Mon Sep 17 00:00:00 2001 From: Suchintan Date: Wed, 18 Feb 2026 22:48:43 -0500 Subject: [PATCH] SKY-7367: Nest conditional branch blocks in timeline (#4799) Co-authored-by: Suchintan Singh --- .../workflowRun/WorkflowRunTimelineBlockItem.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx index a41f08c3..8bc3529c 100644 --- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx +++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineBlockItem.tsx @@ -240,7 +240,7 @@ function WorkflowRunTimelineBlockItem({ const hasNestedChildren = subItems.length > 0; const isLoopBlock = block.block_type === "for_loop"; const isConditionalBlock = block.block_type === "conditional"; - const [childrenOpen, setChildrenOpen] = useState(!isConditionalBlock); + const [childrenOpen, setChildrenOpen] = useState(true); const loopIterationGroups = useMemo( () => getLoopIterationGroups(subItems), @@ -250,7 +250,12 @@ function WorkflowRunTimelineBlockItem({ const loopValues = Array.isArray(block.loop_values) ? block.loop_values : []; return ( -
0 })}> +
0, + "border-l border-slate-700": depth === 1, + })} + >
- -> rendered to{" "} + → rendered to{" "} {evaluation.rendered_expression} @@ -412,7 +417,7 @@ function WorkflowRunTimelineBlockItem({ )} {evaluation.is_matched && evaluation.next_block_label && (
- -> Executing next block:{" "} + → Executing next block:{" "} {evaluation.next_block_label} @@ -441,7 +446,7 @@ function WorkflowRunTimelineBlockItem({ )} {block.executed_branch_next_block && (
- -> Executing next block:{" "} + → Executing next block:{" "} {block.executed_branch_next_block}