From f801afc991040873142f024cdf0ecc61be9056a6 Mon Sep 17 00:00:00 2001 From: Sreeram Sreedhar Date: Fri, 31 Jul 2026 16:32:20 +0530 Subject: [PATCH] fix(web): move tool permissions into the connector Manage menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "Tools" as an inline link next to the connection chips read as decoration and did not say what it did. It is now a "Tool permissions" item in the same Manage menu as connect and disconnect, which is where you already look to change something about a connection. The menu was admin-only (isAdmin && !personalOnly), so putting the entry there unchanged would have hidden it from non-admins and from custom MCP servers — backwards, since tool permissions apply to your own connection. The menu now renders whenever you have something to manage, with the workspace connect and disconnect entry still gated on admin. Non-admins previously got a bare "Disconnect" pill; that action moved into the menu rather than disappearing. Co-Authored-By: Claude --- .../settings/company-brain-connections.tsx | 47 ++++++++----------- 1 file changed, 20 insertions(+), 27 deletions(-) diff --git a/apps/web/components/settings/company-brain-connections.tsx b/apps/web/components/settings/company-brain-connections.tsx index e989b587..b3071ac0 100644 --- a/apps/web/components/settings/company-brain-connections.tsx +++ b/apps/web/components/settings/company-brain-connections.tsx @@ -124,6 +124,8 @@ function AppCard({ const anyConnected = userConnected || orgConnected const showOrgChip = !personalOnly && (orgConnected || isAdmin) const adminMenu = isAdmin && !personalOnly + // Tool permissions apply to your own connection, so the menu is not admin-only. + const showMenu = adminMenu || userConnected return (
@@ -165,19 +167,8 @@ function AppCard({ ) : null} )} - {toolsHref && anyConnected ? ( - - Tools - - ) : null}
- {adminMenu ? ( + {showMenu ? (