From 9d8897fa2fe6bd8a215d213373d70b8495b99e6c Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Fri, 2 May 2025 12:56:58 -0700 Subject: [PATCH] add totp url to various editor nodes; update tooltip (#2279) --- .../routes/workflows/editor/helpContent.ts | 2 +- .../editor/nodes/ActionNode/ActionNode.tsx | 19 +++++++++++++++++++ .../FileDownloadNode/FileDownloadNode.tsx | 19 +++++++++++++++++++ .../nodes/NavigationNode/NavigationNode.tsx | 19 +++++++++++++++++++ .../editor/nodes/Taskv2Node/Taskv2Node.tsx | 19 +++++++++++++++++++ 5 files changed, 77 insertions(+), 1 deletion(-) diff --git a/skyvern-frontend/src/routes/workflows/editor/helpContent.ts b/skyvern-frontend/src/routes/workflows/editor/helpContent.ts index 2417d263..7d43ce50 100644 --- a/skyvern-frontend/src/routes/workflows/editor/helpContent.ts +++ b/skyvern-frontend/src/routes/workflows/editor/helpContent.ts @@ -18,7 +18,7 @@ export const baseHelpTooltipContent = { errorCodeMapping: "Knowing about why a block terminated can be important, specify error messages here.", totpVerificationUrl: - "If you have an internal system for storing TOTP codes, link the endpoint here.", + "If you do not have a TOTP Identifier at hand, but do have an internal system for storing TOTP codes, link the endpoint here.", totpIdentifier: "If you are running multiple workflows at once, you will need to give the block an identifier to know that this TOTP goes with this block.", continueOnFailure: diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/ActionNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/ActionNode.tsx index ec6e0182..113b4afd 100644 --- a/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/ActionNode.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/nodes/ActionNode/ActionNode.tsx @@ -329,6 +329,25 @@ function ActionNode({ id, data }: NodeProps) { className="nopan text-xs" /> +
+
+ + +
+ { + handleChange("totpVerificationUrl", value); + }} + value={inputs.totpVerificationUrl ?? ""} + placeholder={placeholders["task"]["totpVerificationUrl"]} + className="nopan text-xs" + /> +
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/FileDownloadNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/FileDownloadNode.tsx index b1dbed60..af98c235 100644 --- a/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/FileDownloadNode.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/nodes/FileDownloadNode/FileDownloadNode.tsx @@ -311,6 +311,25 @@ function FileDownloadNode({ id, data }: NodeProps) { className="nopan text-xs" /> +
+
+ + +
+ { + handleChange("totpVerificationUrl", value); + }} + value={inputs.totpVerificationUrl ?? ""} + placeholder={placeholders["task"]["totpVerificationUrl"]} + className="nopan text-xs" + /> +
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationNode.tsx index 145f379e..c025ed6f 100644 --- a/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationNode.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/nodes/NavigationNode/NavigationNode.tsx @@ -352,6 +352,25 @@ function NavigationNode({ id, data }: NodeProps) { className="nopan text-xs" /> +
+
+ + +
+ { + handleChange("totpVerificationUrl", value); + }} + value={inputs.totpVerificationUrl ?? ""} + placeholder={placeholders["task"]["totpVerificationUrl"]} + className="nopan text-xs" + /> +
diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/Taskv2Node/Taskv2Node.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/Taskv2Node/Taskv2Node.tsx index 1dc91e35..dd4b6c73 100644 --- a/skyvern-frontend/src/routes/workflows/editor/nodes/Taskv2Node/Taskv2Node.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/nodes/Taskv2Node/Taskv2Node.tsx @@ -165,6 +165,25 @@ function Taskv2Node({ id, data, type }: NodeProps) { className="nopan text-xs" /> +
+
+ + +
+ { + handleChange("totpVerificationUrl", value); + }} + value={inputs.totpVerificationUrl ?? ""} + placeholder={placeholders["task"]["totpVerificationUrl"]} + className="nopan text-xs" + /> +