Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitabc946c

Browse files
fix: don't show prebuild workspaces as tasks (#19572)
Fixes#19570**Before:**<img width="2776" height="1274" alt="image"src="https://github.com/user-attachments/assets/bd260dbf-0868-4e4a-9997-b2fd3c99f33c"/>**After:**<img width="1624" height="970" alt="Screenshot 2025-08-27 at 09 11 31"src="https://github.com/user-attachments/assets/c85489d8-031c-4cbe-8298-6fee04e30b1f"/>**Things to notice:**- There is a task without a prompt at the end, it should not happenanymore- There is no test for this because we mock the API function and the fixwas inside of it. It is a temp solution, the API should be ready to beused by the FE soon
1 parent0ab345c commitabc946c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

‎site/src/api/api.ts‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2702,14 +2702,18 @@ class ExperimentalApiMethods {
27022702
queryExpressions.push(`owner:${filter.username}`);
27032703
}
27042704

2705-
constworkspaces=awaitAPI.getWorkspaces({
2705+
constres=awaitAPI.getWorkspaces({
27062706
q:queryExpressions.join(" "),
27072707
});
2708+
// Exclude prebuild workspaces as they are not user-facing.
2709+
constworkspaces=res.workspaces.filter(
2710+
(workspace)=>!workspace.is_prebuild,
2711+
);
27082712
constprompts=awaitAPI.experimental.getAITasksPrompts(
2709-
workspaces.workspaces.map((workspace)=>workspace.latest_build.id),
2713+
workspaces.map((workspace)=>workspace.latest_build.id),
27102714
);
27112715

2712-
returnworkspaces.workspaces.map((workspace)=>({
2716+
returnworkspaces.map((workspace)=>({
27132717
workspace,
27142718
prompt:prompts.prompts[workspace.latest_build.id],
27152719
}));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp