Add task block back into node library (#1319)

This commit is contained in:
Shuchang Zheng
2024-12-04 12:04:00 -08:00
committed by GitHub
parent bee4d7b415
commit e8906e2f98

View File

@@ -6,6 +6,7 @@ import {
DownloadIcon,
EnvelopeClosedIcon,
FileIcon,
ListBulletIcon,
LockOpen1Icon,
PlusIcon,
StopwatchIcon,
@@ -48,6 +49,12 @@ const nodeLibraryItems: Array<{
title: "Validation Block",
description: "Validate the state of the workflow or terminate",
},
{
nodeType: "task",
icon: <ListBulletIcon className="size-6" />,
title: "Task Block",
description: "Takes actions or extracts information",
},
{
nodeType: "textPrompt",
icon: <CursorTextIcon className="size-6" />,
@@ -60,13 +67,6 @@ const nodeLibraryItems: Array<{
title: "Send Email Block",
description: "Sends an email",
},
// legacy
// {
// nodeType: "task",
// icon: <ListBulletIcon className="size-6" />,
// title: "Task Block",
// description: "Takes actions or extracts information",
// },
{
nodeType: "loop",
icon: <UpdateIcon className="size-6" />,