From 5a1ddb1a4824bbf31006c85b883c8298db0f0056 Mon Sep 17 00:00:00 2001 From: daniel-lxs Date: Tue, 28 Jul 2026 14:37:12 -0500 Subject: [PATCH] [Fix] Hide admin-only Slack/Linear connect cards from members The home page onboarding cards "Chat with Roomote on Slack" and "Assign tasks to agents from Linear" were visible to all users, but their actions call slack.connectApp / linear.connectApp, which are admin-gated and return Unauthorized for members. A member clicking "Do it" hit a silent dead end. Gate both cards on isAdmin, consistent with the deployment-scoped MCP cards in the same component. Co-Authored-By: Claude Fable 5 --- apps/web/src/app/(authenticated)/home/OnboardingCard.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/web/src/app/(authenticated)/home/OnboardingCard.tsx b/apps/web/src/app/(authenticated)/home/OnboardingCard.tsx index 2d65b6e7c..c5623e33a 100644 --- a/apps/web/src/app/(authenticated)/home/OnboardingCard.tsx +++ b/apps/web/src/app/(authenticated)/home/OnboardingCard.tsx @@ -264,7 +264,8 @@ export function OnboardingCard() { })(); }, disabled: connectSlack.isPending, - visible: !slackPending && !slackInstallation, + // slack.connectApp is admin-gated server-side. + visible: isAdmin && !slackPending && !slackInstallation, }, { id: 'linear', @@ -290,7 +291,8 @@ export function OnboardingCard() { })(); }, disabled: connectLinear.isPending, - visible: !linearPending && !linearInstallation, + // linear.connectApp is admin-gated server-side. + visible: isAdmin && !linearPending && !linearInstallation, }, { id: 'github-account',