diff --git a/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx b/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx index 4bfebb27..a9c8e118 100644 --- a/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx +++ b/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx @@ -504,6 +504,60 @@ function RunWorkflowForm({ onSubmit={form.handleSubmit(onSubmit, handleInvalid)} className="space-y-8" > +
+
+

+ Parameters{workflow?.title ? ` - ${workflow.title}` : ""} +

+

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

+
+
+ { + const values = form.getValues(); + const body = getRunWorkflowRequestBody( + values, + workflowParameters, + ); + const transformedBody = transformToWorkflowRunRequest( + body, + workflowPermanentId, + ); + + // Build headers - x-max-steps-override is optional and can be added manually if needed + const headers: Record = { + "Content-Type": "application/json", + "x-api-key": apiCredential ?? "", + }; + + return { + method: "POST", + url: `${runsApiBaseUrl}/run/workflows`, + body: transformedBody, + headers, + } satisfies ApiCommandOptions; + }} + /> + +
+
+ {hasLoginBlockValidationError && ( @@ -1051,49 +1105,6 @@ function RunWorkflowForm({ - -
- { - const values = form.getValues(); - const body = getRunWorkflowRequestBody( - values, - workflowParameters, - ); - const transformedBody = transformToWorkflowRunRequest( - body, - workflowPermanentId, - ); - - // Build headers - x-max-steps-override is optional and can be added manually if needed - const headers: Record = { - "Content-Type": "application/json", - "x-api-key": apiCredential ?? "", - }; - - return { - method: "POST", - url: `${runsApiBaseUrl}/run/workflows`, - body: transformedBody, - headers, - } satisfies ApiCommandOptions; - }} - /> - -
); diff --git a/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx b/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx index 61dd25cf..72660a33 100644 --- a/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx +++ b/skyvern-frontend/src/routes/workflows/WorkflowRunParameters.tsx @@ -44,22 +44,16 @@ function WorkflowRunParameters() { const initialValues = getInitialValues(location, workflowParameters ?? []); - const header = ( -
-

- Parameters{workflow?.title ? ` - ${workflow.title}` : ""} -

-

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

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

Parameters

+

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

+
); @@ -70,26 +64,21 @@ function WorkflowRunParameters() { } return ( -
- {header} - -
+ ); }