From 2166ab129b3b91def551ddcc54409c3cf9328268 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Wed, 29 Jan 2025 21:06:08 +0800 Subject: [PATCH] Remove TOTP URL from UI (#1674) --- .../routes/tasks/create/CreateNewTaskForm.tsx | 27 ------------------ .../tasks/create/CreateNewTaskFormPage.tsx | 3 -- .../src/routes/tasks/create/SavedTaskForm.tsx | 28 ------------------- .../routes/tasks/create/retry/RetryTask.tsx | 1 - .../src/routes/tasks/create/taskFormTypes.ts | 1 - .../editor/nodes/ActionNode/ActionNode.tsx | 19 ------------- .../FileDownloadNode/FileDownloadNode.tsx | 21 -------------- .../editor/nodes/LoginNode/LoginNode.tsx | 19 ------------- .../nodes/NavigationNode/NavigationNode.tsx | 23 --------------- .../editor/nodes/TaskNode/TaskNode.tsx | 19 ------------- 10 files changed, 161 deletions(-) diff --git a/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx b/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx index be0e832d..aaf809c4 100644 --- a/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx +++ b/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx @@ -78,7 +78,6 @@ function createTaskRequestObject( proxy_location: formValues.proxyLocation ?? ProxyLocation.Residential, navigation_payload: transform(formValues.navigationPayload), extracted_information_schema: extractedInformationSchema, - totp_verification_url: transform(formValues.totpVerificationUrl), totp_identifier: transform(formValues.totpIdentifier), error_code_mapping: errorCodeMapping, }; @@ -556,32 +555,6 @@ function CreateNewTaskForm({ initialValues }: Props) { )} /> - ( - -
- -
-

2FA Verification URL

-

-
-
-
- - - - -
-
-
- )} - /> diff --git a/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx b/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx index 63fdedaa..05fc8220 100644 --- a/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx +++ b/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx @@ -54,7 +54,6 @@ function createTaskRequestObject(formValues: SavedTaskFormValues) { extracted_information_schema: safeParseMaybeJSONString( formValues.extractedInformationSchema, ), - totp_verification_url: transform(formValues.totpVerificationUrl), totp_identifier: transform(formValues.totpIdentifier), error_code_mapping: safeParseMaybeJSONString(formValues.errorCodeMapping), }; @@ -98,7 +97,6 @@ function createTaskTemplateRequestObject(values: SavedTaskFormValues) { values.extractedInformationSchema, ), max_steps_per_run: values.maxStepsOverride, - totp_verification_url: values.totpVerificationUrl, totp_identifier: values.totpIdentifier, error_code_mapping: safeParseMaybeJSONString(values.errorCodeMapping), }, @@ -705,32 +703,6 @@ function SavedTaskForm({ initialValues }: Props) { )} /> - ( - -
- -
-

2FA Verification URL

-

-
-
-
- - - - -
-
-
- )} - /> ) { /> -
-
- - -
- { - handleChange("totpVerificationUrl", value); - }} - value={inputs.totpVerificationUrl ?? ""} - placeholder={placeholders["action"]["totpVerificationUrl"]} - className="nopan text-xs" - /> -
-
-
- - -
- { - handleChange("totpVerificationUrl", value); - }} - value={inputs.totpVerificationUrl ?? ""} - placeholder={ - placeholders["download"]["totpVerificationUrl"] - } - className="nopan text-xs" - /> -
-
-
- - -
- { - handleChange("totpVerificationUrl", value); - }} - value={inputs.totpVerificationUrl ?? ""} - placeholder={placeholders["login"]["totpVerificationUrl"]} - className="nopan text-xs" - /> -
-
-
- - -
- { - handleChange("totpVerificationUrl", value); - }} - value={inputs.totpVerificationUrl ?? ""} - placeholder={ - placeholders["navigation"]["totpVerificationUrl"] - } - className="nopan text-xs" - /> -
-
-
- - -
- { - handleChange("totpVerificationUrl", value); - }} - value={inputs.totpVerificationUrl ?? ""} - placeholder={placeholders["task"]["totpVerificationUrl"]} - className="nopan text-xs" - /> -