From e61f6632c38dd21aa166dc75d8f6cfcfd6947dcf Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Fri, 13 Dec 2024 08:13:53 -0800 Subject: [PATCH] add completion criteria to navigation block as well (#1385) --- .../editor/nodes/LoginNode/LoginNode.tsx | 16 ++++++++++++++++ .../workflows/editor/nodes/LoginNode/types.ts | 4 ++++ .../nodes/NavigationNode/NavigationNode.tsx | 16 ++++++++++++++++ .../editor/nodes/NavigationNode/types.ts | 4 ++++ .../workflows/editor/workflowEditorUtils.ts | 12 ++++++++++++ .../src/routes/workflows/types/workflowTypes.ts | 4 ++++ .../routes/workflows/types/workflowYamlTypes.ts | 4 ++++ 7 files changed, 60 insertions(+) diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginNode.tsx index 43119f6e..25d13c33 100644 --- a/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginNode.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/nodes/LoginNode/LoginNode.tsx @@ -41,6 +41,8 @@ function LoginNode({ id, data }: NodeProps) { cacheActions: data.cacheActions, totpVerificationUrl: data.totpVerificationUrl, totpIdentifier: data.totpIdentifier, + completeCriterion: data.completeCriterion, + terminateCriterion: data.terminateCriterion, }); const deleteNodeCallback = useDeleteNodeCallback(); @@ -155,6 +157,20 @@ function LoginNode({ id, data }: NodeProps) {
+
+ + { + handleChange("completeCriterion", value); + }} + value={inputs.completeCriterion} + className="nopan text-xs" + /> +
+