show timed_out tasks in history (#395)

This commit is contained in:
Salih Altun
2024-05-30 21:49:15 +03:00
committed by GitHub
parent e2259e94cf
commit fdd127a202
3 changed files with 7 additions and 1 deletions

View File

@@ -9,7 +9,11 @@ function StatusBadge({ status }: Props) {
let variant: "default" | "success" | "destructive" | "warning" = "default";
if (status === "completed") {
variant = "success";
} else if (status === "failed" || status === "terminated") {
} else if (
status === "failed" ||
status === "terminated" ||
status === "timed_out"
) {
variant = "destructive";
} else if (status === "running") {
variant = "warning";