feat: add devcontainer in the UI (#16800)

![image](https://github.com/user-attachments/assets/361f9e69-dec8-47c8-b075-7c13ce84c7e8)

Related to https://github.com/coder/coder/issues/16422

---------

Co-authored-by: Cian Johnston <cian@coder.com>
This commit is contained in:
Bruno Quaresma
2025-03-04 14:29:02 -03:00
committed by GitHub
co-authored by Cian Johnston
parent 73057eb7bd
commit 861c4b140b
6 changed files with 186 additions and 15 deletions
+12
View File
@@ -2374,6 +2374,18 @@ class ApiMethods {
);
}
};
getAgentContainers = async (agentId: string, labels?: string[]) => {
const params = new URLSearchParams(
labels?.map((label) => ["label", label]),
);
const res =
await this.axios.get<TypesGen.WorkspaceAgentListContainersResponse>(
`/api/v2/workspaceagents/${agentId}/containers?${params.toString()}`,
);
return res.data;
};
}
// This is a hard coded CSRF token/cookie pair for local development. In prod,