From 643e1840c3ea3d4d5ef70f4f1be94ef46eb6f287 Mon Sep 17 00:00:00 2001 From: Brett Kolodny Date: Wed, 14 May 2025 16:22:55 +0000 Subject: [PATCH 1/2] feat: omit non-healthy apps from workspaces table --- site/src/pages/WorkspacesPage/WorkspacesTable.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/src/pages/WorkspacesPage/WorkspacesTable.tsx b/site/src/pages/WorkspacesPage/WorkspacesTable.tsx index 389189bb7629c..9f5ab14f00c47 100644 --- a/site/src/pages/WorkspacesPage/WorkspacesTable.tsx +++ b/site/src/pages/WorkspacesPage/WorkspacesTable.tsx @@ -626,7 +626,9 @@ const WorkspaceApps: FC = ({ workspace }) => { builtinApps.delete("ssh_helper"); const remainingSlots = WORKSPACE_APPS_SLOTS - builtinApps.size; - const userApps = agent.apps.slice(0, remainingSlots); + const userApps = agent.apps + .filter((app) => app.health === "healthy") + .slice(0, remainingSlots); const buttons: ReactNode[] = []; From 23d643c3e98ff0658fc9febb8809cd8c16335672 Mon Sep 17 00:00:00 2001 From: Brett Kolodny Date: Wed, 14 May 2025 16:29:46 +0000 Subject: [PATCH 2/2] fix: also hide hidden apps --- site/src/pages/WorkspacesPage/WorkspacesTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/pages/WorkspacesPage/WorkspacesTable.tsx b/site/src/pages/WorkspacesPage/WorkspacesTable.tsx index 9f5ab14f00c47..047d7a6126b26 100644 --- a/site/src/pages/WorkspacesPage/WorkspacesTable.tsx +++ b/site/src/pages/WorkspacesPage/WorkspacesTable.tsx @@ -627,7 +627,7 @@ const WorkspaceApps: FC = ({ workspace }) => { const remainingSlots = WORKSPACE_APPS_SLOTS - builtinApps.size; const userApps = agent.apps - .filter((app) => app.health === "healthy") + .filter((app) => app.health === "healthy" && !app.hidden) .slice(0, remainingSlots); const buttons: ReactNode[] = [];