From 4ad60722420e594ac94647d01520610cc88d00bb Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Mon, 28 Oct 2024 05:37:37 -0700 Subject: [PATCH] Rename workflow parameter to input parameter (#1071) --- .../src/routes/workflows/RunWorkflowForm.tsx | 4 +-- .../src/routes/workflows/WorkflowRun.tsx | 5 +++- .../workflows/WorkflowRunParameters.tsx | 26 +++++++++---------- .../panels/WorkflowParameterAddPanel.tsx | 2 +- .../panels/WorkflowParameterEditPanel.tsx | 2 +- .../editor/panels/WorkflowParametersPanel.tsx | 4 +-- 6 files changed, 22 insertions(+), 21 deletions(-) diff --git a/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx b/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx index d6c93238..8aa8e7bc 100644 --- a/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx +++ b/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx @@ -133,7 +133,7 @@ function RunWorkflowForm({ workflowParameters, initialValues }: Props) {
-

Workflow Parameters

+

Input Parameters

{workflowParameters?.map((parameter) => { return ( @@ -198,7 +198,7 @@ function RunWorkflowForm({ workflowParameters, initialValues }: Props) { ); })} {workflowParameters.length === 0 && ( -
No workflow parameters for this workflow.
+
This workflow doesn't have any input parameters
)}
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx index 9e3e3cd4..5781c86e 100644 --- a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx +++ b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx @@ -493,8 +493,11 @@ function WorkflowRun() { {Object.entries(parameters).length > 0 && (
-

Parameters

+

Input Parameter Values

+ {Object.entries(parameters).length === 0 && ( +
This workflow doesn't have any input parameters.
+ )} {Object.entries(parameters).map(([key, value]) => { return (
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx b/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx index f4532645..420493fe 100644 --- a/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx +++ b/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx @@ -63,16 +63,20 @@ function WorkflowRunParameters() { {} as Record, ); + const header = ( +
+

Parameters

+

+ Fill the placeholder values that you have linked throughout your + workflow. +

+
+ ); + if (isFetching) { return (
-
-

Run Parameters

-

- Fill the placeholder values that you have linked throughout your - workflow. -

-
+ {header}
); @@ -84,13 +88,7 @@ function WorkflowRunParameters() { return (
-
-

Run Parameters

-

- Fill the placeholder values that you have linked throughout your - workflow. -

-
+ {header}
-

Workflow Parameters

+

Parameters

Create placeholder values that you can link in nodes. You will be prompted to fill them in before running your workflow. @@ -79,7 +79,7 @@ function WorkflowParametersPanel() { }); }} > - Workflow Parameter + Input Parameter {