diff --git a/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx b/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx index 1e7a3c2b0c..7f3696ca34 100644 --- a/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx +++ b/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx @@ -87,6 +87,7 @@ function CreateNewTaskForm({ initialValues }: Props) { const [section, setSection] = useState<"base" | "extraction" | "advanced">( "base", ); + const [showAdvancedBaseContent, setShowAdvancedBaseContent] = useState(false); const form = useForm({ resolver: zodResolver(createNewTaskFormSchema), @@ -233,6 +234,67 @@ function CreateNewTaskForm({ initialValues }: Props) { )} /> + {showAdvancedBaseContent ? ( +
+ ( + +
+ +
+

Navigation Payload

+

+ Specify important parameters, routes, or + states +

+
+ +
+
+ + + + +
+
+
+ )} + /> +
+ ) : ( +
+ +
+ )} )} @@ -331,36 +393,6 @@ function CreateNewTaskForm({ initialValues }: Props) { {section === "advanced" && (
- ( - -
- -
-

Navigation Payload

-

- Specify important parameters, routes, or states -

-
-
-
- - - - -
-
-
- )} - /> ( "base", ); + const [showAdvancedBaseContent, setShowAdvancedBaseContent] = useState(false); const form = useForm({ resolver: zodResolver(savedTaskFormSchema), @@ -398,6 +399,67 @@ function SavedTaskForm({ initialValues }: Props) { )} /> + {showAdvancedBaseContent ? ( +
+ ( + +
+ +
+

Navigation Payload

+

+ Specify important parameters, routes, or + states +

+
+ +
+
+ + + + +
+
+
+ )} + /> +
+ ) : ( +
+ +
+ )}
)} @@ -497,41 +559,6 @@ function SavedTaskForm({ initialValues }: Props) { {section === "advanced" && (
- ( - -
- -
-

Navigation Payload

-

- Specify important parameters, routes, or states -

-
-
-
- - - - -
-
-
- )} - />