diff --git a/products/desktop/packages/ui/src/features/mcp-gateway/components/parts/GatewayAddServer.test.tsx b/products/desktop/packages/ui/src/features/mcp-gateway/components/parts/GatewayAddServer.test.tsx index 5222dd0315cf..09be2d4ee1ee 100644 --- a/products/desktop/packages/ui/src/features/mcp-gateway/components/parts/GatewayAddServer.test.tsx +++ b/products/desktop/packages/ui/src/features/mcp-gateway/components/parts/GatewayAddServer.test.tsx @@ -41,7 +41,9 @@ describe("GatewayAddServer", () => { , ); - expect(screen.getByText("Available to team members")).toBeInTheDocument(); + expect( + screen.getByText("Enabled for your organization"), + ).toBeInTheDocument(); expect(screen.getByText("Share with agents")).toBeInTheDocument(); expect(screen.getByText(account.name)).toBeInTheDocument(); expect(screen.queryByText("One shared credential")).not.toBeInTheDocument(); diff --git a/products/desktop/packages/ui/src/features/mcp-gateway/components/parts/GatewayAddServer.tsx b/products/desktop/packages/ui/src/features/mcp-gateway/components/parts/GatewayAddServer.tsx index f5bc6ef62aa5..37465d285eb2 100644 --- a/products/desktop/packages/ui/src/features/mcp-gateway/components/parts/GatewayAddServer.tsx +++ b/products/desktop/packages/ui/src/features/mcp-gateway/components/parts/GatewayAddServer.tsx @@ -241,11 +241,11 @@ export function GatewayAddServer({ {isAdmin && ( set("teamEnabled", checked)} @@ -365,12 +365,12 @@ function Field({ function ToggleRow({ title, - sub, + description, checked, onChange, }: { title: string; - sub: string; + description?: string; checked: boolean; onChange: (checked: boolean) => void; }) { @@ -385,9 +385,11 @@ function ToggleRow({ {title} - - {sub} - + {description && ( + + {description} + + )} diff --git a/products/desktop/packages/ui/src/features/mcp-gateway/components/parts/GatewayServerDetail.tsx b/products/desktop/packages/ui/src/features/mcp-gateway/components/parts/GatewayServerDetail.tsx index be518d9e03ec..cbbb930c6f43 100644 --- a/products/desktop/packages/ui/src/features/mcp-gateway/components/parts/GatewayServerDetail.tsx +++ b/products/desktop/packages/ui/src/features/mcp-gateway/components/parts/GatewayServerDetail.tsx @@ -854,12 +854,12 @@ function AccessSection({ >
- Available to team members + Enabled for your organization {server.is_team_enabled - ? `Members can connect their own ${server.name} account.` - : `Turned off — members can't see or call ${server.name}.`} + ? `Anyone in your organization can find and use ${server.name}. Each person connects with their own account.` + : `${server.name} is turned off for everyone in your organization.`}
-
Available to team members
+
Enabled for your organization
- Members can find this server and connect their own account. + Anyone in your organization can find and use this server. Each person connects with + their own account.
-
Available to team members
+
Enabled for your organization
{server.is_team_enabled - ? `Members can connect their own ${server.name} account.` - : `Members cannot see or call ${server.name} while it is off.`} + ? `Anyone in your organization can find and use ${server.name}. Each person connects with their own account.` + : `${server.name} is turned off for everyone in your organization.`}
toggleServerEnabled(server.id, checked)} />