Split AI Validation and Human Interaction blocks in frontend (#4658)

Co-authored-by: Suchintan Singh <suchintan@skyvern.com>
This commit is contained in:
Suchintan
2026-02-07 01:20:13 -05:00
committed by GitHub
parent 25fa083319
commit ce372cfdb8
4 changed files with 14 additions and 40 deletions

View File

@@ -84,17 +84,6 @@ function HumanInteractionNode({
nodeId={id} nodeId={id}
totpIdentifier={null} totpIdentifier={null}
totpUrl={null} totpUrl={null}
transmutations={{
blockTitle: "Validation",
self: "human",
others: [
{
label: "agent",
reason: "Convert to automated agent validation",
nodeName: "validation",
},
],
}}
type={type} type={type}
/> />
<div <div

View File

@@ -96,17 +96,6 @@ function ValidationNode({ id, data, type }: NodeProps<ValidationNode>) {
nodeId={id} nodeId={id}
totpIdentifier={null} totpIdentifier={null}
totpUrl={null} totpUrl={null}
transmutations={{
blockTitle: "Validation",
self: "agent",
others: [
{
label: "human",
reason: "Convert to human validation",
nodeName: "human_interaction",
},
],
}}
type={type} type={type}
/> />
<div className="space-y-2"> <div className="space-y-2">

View File

@@ -59,7 +59,7 @@ export const workflowBlockTitle: {
text_prompt: "Text Prompt", text_prompt: "Text Prompt",
upload_to_s3: "Upload To S3", upload_to_s3: "Upload To S3",
file_upload: "Cloud Storage", file_upload: "Cloud Storage",
validation: "Validation", validation: "AI Validation",
human_interaction: "Human Interaction", human_interaction: "Human Interaction",
wait: "Wait", wait: "Wait",
pdf_parser: "PDF Parser", pdf_parser: "PDF Parser",

View File

@@ -84,24 +84,20 @@ const nodeLibraryItems: Array<{
className="size-6" className="size-6"
/> />
), ),
title: "AI or Human Validation", title: "AI Validation Block",
description: "Have an AI or Human validate the state of the screen", description: "Have an AI validate the state of the screen",
},
{
nodeType: "human_interaction",
icon: (
<WorkflowBlockIcon
workflowBlockType={WorkflowBlockTypes.HumanInteraction}
className="size-6"
/>
),
title: "Human Interaction Block",
description: "Pause workflow for human review and approval",
}, },
/**
* The Human Interaction block can be had via a transmutation of the
* Validation block.
*/
// {
// nodeType: "human_interaction",
// icon: (
// <WorkflowBlockIcon
// workflowBlockType={WorkflowBlockTypes.HumanInteraction}
// className="size-6"
// />
// ),
// title: "Human Interaction Block",
// description: "Validate via human interaction",
// },
// { // {
// nodeType: "task", // nodeType: "task",
// icon: ( // icon: (