Put login block at the top of node library, change task v2 icon, put … (#1888)

Co-authored-by: Muhammed Salih Altun <muhammedsalihaltun@gmail.com>
This commit is contained in:
Shuchang Zheng 2025-03-05 10:52:40 -05:00 committed by GitHub
parent 3c5e45bf3f
commit adfce8f85c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 25 deletions

View file

@ -48,14 +48,14 @@ function WorkflowBlockIcon({ workflowBlockType, className }: Props) {
case "login": { case "login": {
return <LockOpen1Icon className={className} />; return <LockOpen1Icon className={className} />;
} }
case "navigation": { case "navigation":
case "task_v2": {
return <RobotIcon className={className} />; return <RobotIcon className={className} />;
} }
case "send_email": { case "send_email": {
return <EnvelopeClosedIcon className={className} />; return <EnvelopeClosedIcon className={className} />;
} }
case "task": case "task": {
case "task_v2": {
return <ListBulletIcon className={className} />; return <ListBulletIcon className={className} />;
} }
case "text_prompt": { case "text_prompt": {

View file

@ -12,6 +12,17 @@ const nodeLibraryItems: Array<{
title: string; title: string;
description: string; description: string;
}> = [ }> = [
{
nodeType: "login",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.Login}
className="size-6"
/>
),
title: "Login Block",
description: "Login to a website",
},
{ {
nodeType: "navigation", nodeType: "navigation",
icon: ( icon: (
@ -23,6 +34,17 @@ const nodeLibraryItems: Array<{
title: "Navigation Block", title: "Navigation Block",
description: "Navigate on the page", description: "Navigate on the page",
}, },
{
nodeType: "taskv2",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.Taskv2}
className="size-6"
/>
),
title: "Task v2 Block",
description: "Runs a Skyvern v2 Task",
},
{ {
nodeType: "action", nodeType: "action",
icon: ( icon: (
@ -67,17 +89,7 @@ const nodeLibraryItems: Array<{
title: "Task Block", title: "Task Block",
description: "Takes actions or extracts information", description: "Takes actions or extracts information",
}, },
{
nodeType: "taskv2",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.Taskv2}
className="size-6"
/>
),
title: "Task v2 Block",
description: "Runs a Skyvern v2 Task",
},
{ {
nodeType: "url", nodeType: "url",
icon: ( icon: (
@ -188,17 +200,6 @@ const nodeLibraryItems: Array<{
title: "File Download Block", title: "File Download Block",
description: "Download a file", description: "Download a file",
}, },
{
nodeType: "login",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.Login}
className="size-6"
/>
),
title: "Login Block",
description: "Login to a website",
},
{ {
nodeType: "wait", nodeType: "wait",
icon: ( icon: (