From a1617e6ab7e76b36f99cb81c58d2a668ea206440 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Fri, 13 Dec 2024 16:11:49 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20local=20'skyvern-fronte?= =?UTF-8?q?nd/src/'=20with=20remote=20'skyvern-frontend/src/'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > [!IMPORTANT] > Add completion and termination criteria to `NavigationNode` and `LoginNode`, updating types and utility functions. > > - **Behavior**: > - Add `completeCriterion` and `terminateCriterion` to `NavigationNode` and `LoginNode` in `NavigationNode.tsx` and `LoginNode.tsx`. > - Update `convertToNode()` and `getWorkflowBlock()` in `workflowEditorUtils.ts` to handle new criteria. > - **Types**: > - Add `completeCriterion` and `terminateCriterion` to `NavigationNodeData` and `LoginNodeData` in `types.ts`. > - Update `NavigationBlock`, `LoginBlock`, `NavigationBlockYAML`, and `LoginBlockYAML` in `workflowTypes.ts` and `workflowYamlTypes.ts` to include new criteria. > > This description was created by [Ellipsis](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral) for a267b3843943cb666f0a14748ec2d03c0e0b4077. It will automatically update as commits are pushed. --- .../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 43119f6ee..25d13c333 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" + /> +
+