Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c87796

Browse files
refactor: show the apps as soon as possible (#18625)
Close #18617
1 parent 8ee2668 commit 1c87796

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

site/src/pages/TaskPage/TaskPage.tsx

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type { Workspace, WorkspaceStatus } from "api/typesGenerated";
55
import { Button } from "components/Button/Button";
66
import { Loader } from "components/Loader/Loader";
77
import { Margins } from "components/Margins/Margins";
8-
import { Spinner } from "components/Spinner/Spinner";
98
import { useWorkspaceBuildLogs } from "hooks/useWorkspaceBuildLogs";
109
import { ArrowLeftIcon, RotateCcwIcon } from "lucide-react";
1110
import { AI_PROMPT_PARAMETER_NAME, type Task } from "modules/tasks/tasks";
@@ -148,7 +147,7 @@ const TaskPage = () => {
148147
</div>
149148
</div>
150149
);
151-
} else if (terminatedStatuses.includes(task.workspace.latest_build.status)) {
150+
} else if (task.workspace.latest_build.status !== "running") {
152151
content = (
153152
<Margins>
154153
<div className="w-full min-h-80 flex items-center justify-center">
@@ -170,20 +169,6 @@ const TaskPage = () => {
170169
</div>
171170
</Margins>
172171
);
173-
} else if (!task.workspace.latest_app_status) {
174-
content = (
175-
<div className="w-full min-h-80 flex items-center justify-center">
176-
<div className="flex flex-col items-center">
177-
<Spinner loading className="mb-4" />
178-
<h3 className="m-0 font-medium text-content-primary text-base">
179-
Running your task
180-
</h3>
181-
<span className="text-content-secondary text-sm">
182-
The status should be available soon
183-
</span>
184-
</div>
185-
</div>
186-
);
187172
} else {
188173
content = <TaskApps task={task} />;
189174
}

0 commit comments

Comments
 (0)