re-reorder blocks in lib panel (#2961)

This commit is contained in:
Jonathan Dobson
2025-07-15 22:32:28 -04:00
committed by GitHub
parent 4c9221dc36
commit d1fd7dbb29

View File

@@ -43,17 +43,6 @@ const nodeLibraryItems: Array<{
title: "Navigation Block",
description: "Navigate on the page",
},
{
nodeType: "task",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.Task}
className="size-6"
/>
),
title: "Task Block",
description: "Complete multi-step browser automation tasks",
},
{
nodeType: "taskv2",
icon: (
@@ -87,17 +76,6 @@ const nodeLibraryItems: Array<{
title: "Extraction Block",
description: "Extract data from a webpage",
},
{
nodeType: "wait",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.Wait}
className="size-6"
/>
),
title: "Wait Block",
description: "Wait for a specified amount of time",
},
{
nodeType: "validation",
icon: (
@@ -109,6 +87,17 @@ const nodeLibraryItems: Array<{
title: "Validation Block",
description: "Validate completion criteria",
},
{
nodeType: "task",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.Task}
className="size-6"
/>
),
title: "Task Block",
description: "Complete multi-step browser automation tasks",
},
{
nodeType: "url",
icon: (
@@ -120,17 +109,6 @@ const nodeLibraryItems: Array<{
title: "Go to URL Block",
description: "Navigate to a specific URL",
},
{
nodeType: "http_request",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.HttpRequest}
className="size-6"
/>
),
title: "HTTP Request Block",
description: "Make HTTP API calls",
},
{
nodeType: "textPrompt",
icon: (
@@ -142,39 +120,6 @@ const nodeLibraryItems: Array<{
title: "Text Prompt Block",
description: "Process text with LLM",
},
{
nodeType: "codeBlock",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.Code}
className="size-6"
/>
),
title: "Code Block",
description: "Execute custom Python code",
},
{
nodeType: "fileDownload",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.FileDownload}
className="size-6"
/>
),
title: "File Download Block",
description: "Download files from a website",
},
{
nodeType: "loop",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.ForLoop}
className="size-6"
/>
),
title: "Loop Block",
description: "Repeat blocks for each item",
},
{
nodeType: "sendEmail",
icon: (
@@ -186,6 +131,28 @@ const nodeLibraryItems: Array<{
title: "Send Email Block",
description: "Send email notifications",
},
{
nodeType: "loop",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.ForLoop}
className="size-6"
/>
),
title: "Loop Block",
description: "Repeat blocks for each item",
},
{
nodeType: "codeBlock",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.Code}
className="size-6"
/>
),
title: "Code Block",
description: "Execute custom Python code",
},
{
nodeType: "fileParser",
icon: (
@@ -197,6 +164,17 @@ const nodeLibraryItems: Array<{
title: "File Parser Block",
description: "Parse data from files",
},
{
nodeType: "pdfParser",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.PDFParser}
className="size-6"
/>
),
title: "PDF Parser Block",
description: "Extract data from PDF files",
},
{
nodeType: "upload",
icon: (
@@ -208,6 +186,17 @@ const nodeLibraryItems: Array<{
title: "Upload to S3 Block",
description: "Upload files to AWS S3",
},
{
nodeType: "download",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.DownloadToS3}
className="size-6"
/>
),
title: "Download from S3 Block",
description: "Download files from AWS S3",
},
{
nodeType: "fileUpload",
icon: (
@@ -220,26 +209,37 @@ const nodeLibraryItems: Array<{
description: "Upload files to storage",
},
{
nodeType: "download",
nodeType: "fileDownload",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.DownloadToS3}
workflowBlockType={WorkflowBlockTypes.FileDownload}
className="size-6"
/>
),
title: "Download to S3 Block",
description: "Download files to AWS S3",
title: "File Download Block",
description: "Download files from a website",
},
{
nodeType: "pdfParser",
nodeType: "wait",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.PDFParser}
workflowBlockType={WorkflowBlockTypes.Wait}
className="size-6"
/>
),
title: "PDF Parser Block",
description: "Extract data from PDF files",
title: "Wait Block",
description: "Wait for a specified amount of time",
},
{
nodeType: "http_request",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.HttpRequest}
className="size-6"
/>
),
title: "HTTP Request Block",
description: "Make HTTP API calls",
},
];