Skip to content

Commit 71ab59d

Browse files
Be more helpful when there is no image build for prebuilds (#20048)
* Be more helpful when there is no image build for prebuilds * Increase gap between text and spinner
1 parent 99d1c5d commit 71ab59d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

components/dashboard/src/prebuilds/detail/PrebuildTaskTab.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { TabsContent } from "@podkit/tabs/Tabs";
1414
import { PrebuildTaskErrorTab } from "./PrebuildTaskErrorTab";
1515
import type { PlainMessage } from "@bufbuild/protobuf";
1616
import { useHistory } from "react-router";
17+
import { LoadingState } from "@podkit/loading/LoadingState";
1718

1819
const WorkspaceLogs = React.lazy(() => import("../../components/WorkspaceLogs"));
1920

@@ -74,6 +75,16 @@ export const PrebuildTaskTab = memo(({ taskId, prebuild }: Props) => {
7475
}, []);
7576

7677
if (error) {
78+
if (error.code === ErrorCodes.NOT_FOUND && taskId === "image-build") {
79+
return (
80+
<PrebuildTaskErrorTab taskId={taskId}>
81+
<span className="flex justify-center items-center gap-2">
82+
Pulling container image <LoadingState delay={false} size={16} />
83+
</span>
84+
</PrebuildTaskErrorTab>
85+
);
86+
}
87+
7788
return (
7889
<PrebuildTaskErrorTab taskId={taskId}>
7990
Logs of this prebuild task are inaccessible. Use <code>gp validate --prebuild --headless</code> in a

0 commit comments

Comments
 (0)