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", title: "Navigation Block",
description: "Navigate on the page", 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", nodeType: "taskv2",
icon: ( icon: (
@@ -87,17 +76,6 @@ const nodeLibraryItems: Array<{
title: "Extraction Block", title: "Extraction Block",
description: "Extract data from a webpage", 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", nodeType: "validation",
icon: ( icon: (
@@ -109,6 +87,17 @@ const nodeLibraryItems: Array<{
title: "Validation Block", title: "Validation Block",
description: "Validate completion criteria", 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", nodeType: "url",
icon: ( icon: (
@@ -120,17 +109,6 @@ const nodeLibraryItems: Array<{
title: "Go to URL Block", title: "Go to URL Block",
description: "Navigate to a specific URL", 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", nodeType: "textPrompt",
icon: ( icon: (
@@ -142,39 +120,6 @@ const nodeLibraryItems: Array<{
title: "Text Prompt Block", title: "Text Prompt Block",
description: "Process text with LLM", 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", nodeType: "sendEmail",
icon: ( icon: (
@@ -186,6 +131,28 @@ const nodeLibraryItems: Array<{
title: "Send Email Block", title: "Send Email Block",
description: "Send email notifications", 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", nodeType: "fileParser",
icon: ( icon: (
@@ -197,6 +164,17 @@ const nodeLibraryItems: Array<{
title: "File Parser Block", title: "File Parser Block",
description: "Parse data from files", 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", nodeType: "upload",
icon: ( icon: (
@@ -208,6 +186,17 @@ const nodeLibraryItems: Array<{
title: "Upload to S3 Block", title: "Upload to S3 Block",
description: "Upload files to AWS S3", 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", nodeType: "fileUpload",
icon: ( icon: (
@@ -220,26 +209,37 @@ const nodeLibraryItems: Array<{
description: "Upload files to storage", description: "Upload files to storage",
}, },
{ {
nodeType: "download", nodeType: "fileDownload",
icon: ( icon: (
<WorkflowBlockIcon <WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.DownloadToS3} workflowBlockType={WorkflowBlockTypes.FileDownload}
className="size-6" className="size-6"
/> />
), ),
title: "Download to S3 Block", title: "File Download Block",
description: "Download files to AWS S3", description: "Download files from a website",
}, },
{ {
nodeType: "pdfParser", nodeType: "wait",
icon: ( icon: (
<WorkflowBlockIcon <WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.PDFParser} workflowBlockType={WorkflowBlockTypes.Wait}
className="size-6" className="size-6"
/> />
), ),
title: "PDF Parser Block", title: "Wait Block",
description: "Extract data from PDF files", 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",
}, },
]; ];