Skip to content

Commit a77e558

Browse files
authored
fix(blueprint): handled blueprint queued state (#100)
1 parent f8759c2 commit a77e558

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

src/components/StatusBadge.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ export const getStatusDisplay = (status: string): StatusDisplay => {
105105
};
106106

107107
// === BUILD STATES (for blueprints) ===
108+
case "queued":
109+
return {
110+
icon: figures.ellipsis,
111+
color: colors.warning,
112+
text: "QUEUED ",
113+
label: "Queued",
114+
};
108115
case "ready":
109116
return {
110117
icon: figures.tick,

src/screens/BlueprintDetailScreen.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,13 @@ export function BlueprintDetailScreen({
564564
onOperation={handleOperation}
565565
onBack={goBack}
566566
buildDetailLines={buildDetailLines}
567-
pollResource={blueprint.status === "building" ? pollBlueprint : undefined}
567+
pollResource={
568+
blueprint.status === "queued" ||
569+
blueprint.status === "provisioning" ||
570+
blueprint.status === "building"
571+
? pollBlueprint
572+
: undefined
573+
}
568574
/>
569575
);
570576
}

0 commit comments

Comments
 (0)