Skip to content

Commit b40b204

Browse files
nit(web): Change how no jobs is represented in connections & repos tables
1 parent 0d738a2 commit b40b204

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/web/src/app/[domain]/repos/components/reposTable.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,13 @@ const statusBadgeVariants = cva("", {
6464
IN_PROGRESS: "bg-primary text-primary-foreground hover:bg-primary/90",
6565
COMPLETED: "bg-green-600 text-white hover:bg-green-700",
6666
FAILED: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
67-
NO_JOBS: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
6867
},
6968
},
7069
})
7170

7271
const getStatusBadge = (status: Repo["latestJobStatus"]) => {
7372
if (!status) {
74-
return <Badge className={statusBadgeVariants({ status: "NO_JOBS" })}>No Jobs</Badge>
73+
return "-";
7574
}
7675

7776
const labels = {

packages/web/src/app/[domain]/settings/connections/components/connectionsTable.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,13 @@ const statusBadgeVariants = cva("", {
4747
IN_PROGRESS: "bg-primary text-primary-foreground hover:bg-primary/90",
4848
COMPLETED: "bg-green-600 text-white hover:bg-green-700",
4949
FAILED: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
50-
NO_JOBS: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
5150
},
5251
},
5352
})
5453

5554
const getStatusBadge = (status: Connection["latestJobStatus"]) => {
5655
if (!status) {
57-
return <Badge className={statusBadgeVariants({ status: "NO_JOBS" })}>No Jobs</Badge>
56+
return "-";
5857
}
5958

6059
const labels = {

0 commit comments

Comments
 (0)