mirror of
https://github.com/coder/coder.git
synced 2025-07-21 01:28:49 +00:00
feat: hide hidden and non-healthy apps in the workspaces table (#17830)
Closes [coder/internal#633](https://github.com/coder/internal/issues/633)
This commit is contained in:
@ -626,7 +626,9 @@ const WorkspaceApps: FC<WorkspaceAppsProps> = ({ workspace }) => {
|
|||||||
builtinApps.delete("ssh_helper");
|
builtinApps.delete("ssh_helper");
|
||||||
|
|
||||||
const remainingSlots = WORKSPACE_APPS_SLOTS - builtinApps.size;
|
const remainingSlots = WORKSPACE_APPS_SLOTS - builtinApps.size;
|
||||||
const userApps = agent.apps.slice(0, remainingSlots);
|
const userApps = agent.apps
|
||||||
|
.filter((app) => app.health === "healthy" && !app.hidden)
|
||||||
|
.slice(0, remainingSlots);
|
||||||
|
|
||||||
const buttons: ReactNode[] = [];
|
const buttons: ReactNode[] = [];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user