From f16a1b3779758aadd0935291201f5db13fbef010 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Fri, 11 Oct 2024 13:19:14 -0700 Subject: [PATCH] Task node help text update (#963) --- .../editor/nodes/TaskNode/TaskNode.tsx | 155 ++++++++++-------- .../TaskNode/TaskNodeParametersPanel.tsx | 5 +- .../workflows/editor/nodes/TaskNode/types.ts | 21 +++ 3 files changed, 112 insertions(+), 69 deletions(-) diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNode.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNode.tsx index 7c913f92..b533f8d3 100644 --- a/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNode.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNode.tsx @@ -89,7 +89,7 @@ function TaskNode({ id, data }: NodeProps) { const basicContent = ( <> -
+
) { placeholder={fieldPlaceholders["url"]} />
-
- +
+
+ + +
{ if (!editable) { @@ -118,7 +121,7 @@ function TaskNode({ id, data }: NodeProps) { className="nopan text-xs" />
-
+
) { <> - -
-
Content
-
- -
-
-
+ Content
-
+
{ @@ -158,8 +154,11 @@ function TaskNode({ id, data }: NodeProps) { className="nopan text-xs" />
-
- +
+
+ + +
{ if (!editable) { @@ -172,7 +171,7 @@ function TaskNode({ id, data }: NodeProps) { className="nopan text-xs" />
-
+
) { - -
-
Extraction
-
- -
-
-
+ Extraction
-
- +
+
+ + +
{ if (!editable) { @@ -212,8 +209,13 @@ function TaskNode({ id, data }: NodeProps) { />
-
- +
+
+ + +
{ @@ -249,20 +251,16 @@ function TaskNode({ id, data }: NodeProps) { - -
-
Limits
-
- -
-
-
+ Limits
- +
+ + +
) { />
- +
+ + +
) { />
- +
+ + +
) {
- +
+ + +
) { />
-
- +
+
+ + +
) { - -
-
Two-Factor Authentication
-
- -
-
-
+ Two-Factor Authentication
-
- +
+
+ + +
{ if (!editable) { @@ -403,8 +417,13 @@ function TaskNode({ id, data }: NodeProps) { className="nopan text-xs" />
-
- +
+
+ + +
{ if (!editable) { diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNodeParametersPanel.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNodeParametersPanel.tsx index 5afa2182..096eb8e6 100644 --- a/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNodeParametersPanel.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNodeParametersPanel.tsx @@ -1,5 +1,7 @@ import { MultiSelect } from "@/components/ui/multi-select"; import { useWorkflowParametersState } from "../../useWorkflowParametersState"; +import { HelpTooltip } from "@/components/HelpTooltip"; +import { helpTooltipContent } from "./types"; type Props = { availableOutputParameters: Array; @@ -25,9 +27,10 @@ function TaskNodeParametersPanel({ }); return ( -
+

Parameters

+