Skip to content

Automate browser based workflows with AI

Shorten copy curl button texts (#944)

Kerem Yilmazb43f77a31364
diff --git a/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx b/skyvern-frontend/src/routes/tasks/create/CreateNewTaskForm.tsx
index c0da46072..b6441b23b 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
+ <CopyIcon className="mr-2 h-4 w-4" />
+ cURL
</Button>
<Button type="submit" disabled={mutation.isPending}>
{mutation.isPending && (
diff --git a/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx b/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx
index e82737346..03a996246 100644
--- a/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx
+++ b/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx
@@ -19,7 +19,7 @@ import { SubmitEvent } from "@/types";
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";
@@ -775,7 +775,8 @@ function SavedTaskForm({ initialValues }: Props) {
});
}}
>
- Copy cURL
+ <CopyIcon className="mr-2 h-4 w-4" />
+ cURL
</Button>
<Button
type="submit"
diff --git a/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx b/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx
index b09000215..a5e4f26d4 100644
--- a/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx
+++ b/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx
@@ -154,7 +154,7 @@ function TaskDetails() {
}}
>
<CopyIcon className="mr-2 h-4 w-4" />
- Copy cURL
+ cURL
</Button>
{taskIsRunningOrQueued && (
<Dialog>
diff --git a/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx b/skyvern-frontend/src/routes/workflows/RunWorkflowForm.tsx
index 0c7f7da41..3255ae130 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) {
}}
>
<CopyIcon className="mr-2 h-4 w-4" />
- Copy as cURL
+ cURL
</Button>
<Button type="submit" disabled={runWorkflowMutation.isPending}>
{runWorkflowMutation.isPending && (
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
index 6bb3b2296..6d6983b33 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
@@ -286,7 +286,7 @@ function WorkflowRun() {
}}
>
<CopyIcon className="mr-2 h-4 w-4" />
- Copy cURL
+ cURL
</Button>
<Button asChild variant="secondary">
<Link to={`/workflows/${workflowPermanentId}/edit`}>