nit(web): Change how no jobs is represented in connections & repos tables

This commit is contained in:
bkellam 2025-10-28 22:25:02 -07:00
parent 0d738a27b6
commit b40b204408
2 changed files with 2 additions and 4 deletions

View file

@ -64,14 +64,13 @@ const statusBadgeVariants = cva("", {
IN_PROGRESS: "bg-primary text-primary-foreground hover:bg-primary/90", IN_PROGRESS: "bg-primary text-primary-foreground hover:bg-primary/90",
COMPLETED: "bg-green-600 text-white hover:bg-green-700", COMPLETED: "bg-green-600 text-white hover:bg-green-700",
FAILED: "bg-destructive text-destructive-foreground hover:bg-destructive/90", FAILED: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
NO_JOBS: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
}, },
}, },
}) })
const getStatusBadge = (status: Repo["latestJobStatus"]) => { const getStatusBadge = (status: Repo["latestJobStatus"]) => {
if (!status) { if (!status) {
return <Badge className={statusBadgeVariants({ status: "NO_JOBS" })}>No Jobs</Badge> return "-";
} }
const labels = { const labels = {

View file

@ -47,14 +47,13 @@ const statusBadgeVariants = cva("", {
IN_PROGRESS: "bg-primary text-primary-foreground hover:bg-primary/90", IN_PROGRESS: "bg-primary text-primary-foreground hover:bg-primary/90",
COMPLETED: "bg-green-600 text-white hover:bg-green-700", COMPLETED: "bg-green-600 text-white hover:bg-green-700",
FAILED: "bg-destructive text-destructive-foreground hover:bg-destructive/90", FAILED: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
NO_JOBS: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
}, },
}, },
}) })
const getStatusBadge = (status: Connection["latestJobStatus"]) => { const getStatusBadge = (status: Connection["latestJobStatus"]) => {
if (!status) { if (!status) {
return <Badge className={statusBadgeVariants({ status: "NO_JOBS" })}>No Jobs</Badge> return "-";
} }
const labels = { const labels = {