Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
Put login block at the top of node library, change task v2 icon, put … (#1888)
Shuchang Zhengadfce8f85c3b
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowBlockIcon.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowBlockIcon.tsxindex a0f1d621a..8e3883de8 100644--- a/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowBlockIcon.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/nodes/WorkflowBlockIcon.tsx@@ -48,14 +48,14 @@ function WorkflowBlockIcon({ workflowBlockType, className }: Props) {case "login": {return <LockOpen1Icon className={className} />;}- case "navigation": {+ case "navigation":+ case "task_v2": {return <RobotIcon className={className} />;}case "send_email": {return <EnvelopeClosedIcon className={className} />;}- case "task":- case "task_v2": {+ case "task": {return <ListBulletIcon className={className} />;}case "text_prompt": {diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsxindex 645c13988..0e242341c 100644--- a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsx@@ -12,6 +12,17 @@ const nodeLibraryItems: Array<{title: string;description: string;}> = [+ {+ nodeType: "login",+ icon: (+ <WorkflowBlockIcon+ workflowBlockType={WorkflowBlockTypes.Login}+ className="size-6"+ />+ ),+ title: "Login Block",+ description: "Login to a website",+ },{nodeType: "navigation",icon: (@@ -23,6 +34,17 @@ const nodeLibraryItems: Array<{title: "Navigation Block",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",icon: (@@ -67,17 +89,7 @@ const nodeLibraryItems: Array<{title: "Task Block",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",icon: (@@ -188,17 +200,6 @@ const nodeLibraryItems: Array<{title: "File Download Block",description: "Download a file",},- {- nodeType: "login",- icon: (- <WorkflowBlockIcon- workflowBlockType={WorkflowBlockTypes.Login}- className="size-6"- />- ),- title: "Login Block",- description: "Login to a website",- },{nodeType: "wait",icon: (