Skip to content

Commit 31a6644

Browse files
committed
Show pending deployment status as queued in the dashboard
1 parent 7041dc3 commit 31a6644

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

apps/webapp/app/components/runs/v3/DeploymentStatus.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {
22
CheckCircleIcon,
33
ExclamationTriangleIcon,
44
NoSymbolIcon,
5+
RectangleStackIcon,
56
XCircleIcon,
67
} from "@heroicons/react/20/solid";
78
import type { WorkerDeploymentStatus } from "@trigger.dev/database";
@@ -49,6 +50,9 @@ export function DeploymentStatusIcon({
4950
}) {
5051
switch (status) {
5152
case "PENDING":
53+
return (
54+
<RectangleStackIcon className={cn(deploymentStatusClassNameColor(status), className)} />
55+
);
5256
case "BUILDING":
5357
case "DEPLOYING":
5458
return <Spinner className={cn(deploymentStatusClassNameColor(status), className)} />;
@@ -73,6 +77,7 @@ export function DeploymentStatusIcon({
7377
export function deploymentStatusClassNameColor(status: WorkerDeploymentStatus): string {
7478
switch (status) {
7579
case "PENDING":
80+
return "text-charcoal-500";
7681
case "BUILDING":
7782
case "DEPLOYING":
7883
return "text-pending";
@@ -92,7 +97,7 @@ export function deploymentStatusClassNameColor(status: WorkerDeploymentStatus):
9297
export function deploymentStatusTitle(status: WorkerDeploymentStatus, isBuilt: boolean): string {
9398
switch (status) {
9499
case "PENDING":
95-
return "Pending…";
100+
return "Queued…";
96101
case "BUILDING":
97102
return "Building…";
98103
case "DEPLOYING":
@@ -121,6 +126,7 @@ export function deploymentStatusTitle(status: WorkerDeploymentStatus, isBuilt: b
121126

122127
// PENDING and CANCELED are not used so are ommited from the UI
123128
export const deploymentStatuses: WorkerDeploymentStatus[] = [
129+
"PENDING",
124130
"BUILDING",
125131
"DEPLOYING",
126132
"DEPLOYED",

0 commit comments

Comments
 (0)