Closed ykeremy closed 2 weeks ago
Add task cancelling to task page
Add status cancelled to task
Added task cancellation functionality to the task page, including a new 'canceled' status, a confirmation dialog, and updates to task history.
Key points:
Canceled
Status
skyvern-frontend/src/api/types.ts
StatusBadge
skyvern-frontend/src/components/StatusBadge.tsx
canceled
TaskDetails
skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx
Button
Dialog
useMutation
react-query
TaskHistory
skyvern-frontend/src/routes/tasks/list/TaskHistory.tsx
Generated with :heart: by ellipsis.dev
Add status cancelled to task
Summary:
Added task cancellation functionality to the task page, including a new 'canceled' status, a confirmation dialog, and updates to task history.
Key points:
Canceled
status toStatus
inskyvern-frontend/src/api/types.ts
.StatusBadge
component inskyvern-frontend/src/components/StatusBadge.tsx
to handlecanceled
status.TaskDetails
component inskyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx
.Button
to trigger task cancellation.Dialog
for cancellation confirmation.useMutation
fromreact-query
to handle the cancellation API call.TaskHistory
component inskyvern-frontend/src/routes/tasks/list/TaskHistory.tsx
to includecanceled
status in task history.Generated with :heart: by ellipsis.dev