From b43f77a31364b39420f7f4e38859317343f0b8aa Mon Sep 17 00:00:00 2001 From: Kerem Yilmaz Date: Wed, 9 Oct 2024 08:53:40 -0700 Subject: [PATCH] Shorten copy curl button texts (#944) --- .../src/routes/tasks/create/CreateNewTaskForm.tsx | 5 +++-- skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx | 5 +++-- skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx | 2 +- skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx | 2 +- skyvern-frontend/src/routes/workflows/WorkflowRun.tsx | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx b/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx index c0da4607..b6441b23 100644 --- a/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx +++ b/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx @@ -19,7 +19,7 @@ import { CodeEditor } from "@/routes/workflows/components/CodeEditor"; import { copyText } from "@/util/copyText"; import { apiBaseUrl } from "@/util/env"; import { zodResolver } from "@hookform/resolvers/zod"; -import { ReloadIcon } from "@radix-ui/react-icons"; +import { CopyIcon, ReloadIcon } from "@radix-ui/react-icons"; import { ToastAction } from "@radix-ui/react-toast"; import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; import { AxiosError } from "axios"; @@ -601,7 +601,8 @@ function CreateNewTaskForm({ initialValues }: Props) { }); }} > - Copy cURL + + cURL {taskIsRunningOrQueued && ( diff --git a/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx b/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx index 0c7f7da4..3255ae13 100644 --- a/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx +++ b/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx @@ -227,7 +227,7 @@ function RunWorkflowForm({ workflowParameters, initialValues }: Props) { }} > - Copy as cURL + cURL