From f9b7df8efce413818985ae8997733c0ae07957ad Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Fri, 1 Nov 2024 05:42:43 -0700 Subject: [PATCH] Fix inconsistent task notifications (#1103) --- skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx | 5 ++++- skyvern-frontend/src/routes/tasks/create/SavedTasks.tsx | 1 + skyvern-frontend/src/routes/tasks/list/TaskActions.tsx | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx b/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx index 6fc2b262..aebb7f6f 100644 --- a/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx +++ b/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx @@ -221,6 +221,7 @@ function SavedTaskForm({ initialValues }: Props) { }, onSuccess: (response) => { toast({ + variant: "success", title: "Task Created", description: `${response.data.task_id} created successfully.`, action: ( @@ -262,6 +263,7 @@ function SavedTaskForm({ initialValues }: Props) { }, onSuccess: () => { toast({ + variant: "success", title: "Changes saved", description: "Changes saved successfully", }); @@ -766,7 +768,8 @@ function SavedTaskForm({ initialValues }: Props) { }); copyText(curl).then(() => { toast({ - title: "Copied cURL", + variant: "success", + title: "Copied successfully", description: "cURL copied to clipboard", }); }); diff --git a/skyvern-frontend/src/routes/tasks/create/SavedTasks.tsx b/skyvern-frontend/src/routes/tasks/create/SavedTasks.tsx index 4e3df237..3581f049 100644 --- a/skyvern-frontend/src/routes/tasks/create/SavedTasks.tsx +++ b/skyvern-frontend/src/routes/tasks/create/SavedTasks.tsx @@ -92,6 +92,7 @@ function SavedTasks() { }, onSuccess: (response) => { toast({ + variant: "success", title: "New template created", description: "Your template was created successfully", }); diff --git a/skyvern-frontend/src/routes/tasks/list/TaskActions.tsx b/skyvern-frontend/src/routes/tasks/list/TaskActions.tsx index d2eef24a..67129b61 100644 --- a/skyvern-frontend/src/routes/tasks/list/TaskActions.tsx +++ b/skyvern-frontend/src/routes/tasks/list/TaskActions.tsx @@ -122,6 +122,7 @@ function TaskActions({ task }: Props) { }, onSuccess: () => { toast({ + variant: "success", title: "Template saved", description: "Template saved successfully", });