From caf25a4317da1fb5fb5610d4844e08130d6ea2ef Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Wed, 25 Dec 2024 01:21:05 -0800 Subject: [PATCH] Change order of information in timeline info section (#1438) --- .../WorkflowRunTimelineItemInfoSection.tsx | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineItemInfoSection.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineItemInfoSection.tsx index 29eafdb8..16056a25 100644 --- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineItemInfoSection.tsx +++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimelineItemInfoSection.tsx @@ -53,6 +53,14 @@ function WorkflowRunTimelineItemInfoSection({ activeItem }: Props) { ); } if (isWorkflowRunBlock(item)) { + const showExtractedInformationTab = item.status === Status.Completed; + const showFailureReasonTab = + item.status && statusIsAFailureType({ status: item.status }); + const defaultTab = showExtractedInformationTab + ? "extracted_information" + : showFailureReasonTab + ? "failure_reason" + : "navigation_goal"; if ( item.block_type === WorkflowBlockTypes.Task || item.block_type === WorkflowBlockTypes.Navigation || @@ -64,9 +72,8 @@ function WorkflowRunTimelineItemInfoSection({ activeItem }: Props) { ) { return (
- + - Navigation Goal {item.status === Status.Completed && ( Extracted Information @@ -75,14 +82,9 @@ function WorkflowRunTimelineItemInfoSection({ activeItem }: Props) { {item.status && statusIsAFailureType({ status: item.status }) && ( Failure Reason )} + Navigation Goal Parameters - - - {item.status === Status.Completed && ( )} + + +