Skip to content

Automate browser based workflows with AI

Fix inconsistent task notifications (#1103)

Shuchang Zhengf9b7df8efce4
diff --git a/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx b/skyvern-frontend/src/routes/tasks/create/SavedTaskForm.tsx
index 6fc2b262d..aebb7f6f0 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 4e3df2377..3581f0498 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 d2eef24a5..67129b610 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",
});