Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

fix(web): tighten the Roles & Access copy (#16082)

lina-alomari6071cc99849f
diff --git a/packages/web/public/locales/en/translation.json b/packages/web/public/locales/en/translation.json
index d2f2471fde5..183c3792118 100644
--- a/packages/web/public/locales/en/translation.json
+++ b/packages/web/public/locales/en/translation.json
@@ -743,8 +743,9 @@
"Single Sign On": "Single Sign On",
"Project Roles": "Project Roles",
"Roles & Access": "Roles & Access",
+ "Create roles and control what members can do in each project": "Create roles and control what members can do in each project",
+ "Platform roles cannot be added or changed": "Platform roles cannot be added or changed",
"Could not delete the role. Try again.": "Could not delete the role. Try again.",
- "Built in — platform roles can't be added or changed.": "Built in — platform roles can't be added or changed.",
"permissionsCount": "{granted} of {total} permissions",
"Nobody has this role yet": "Nobody has this role yet",
"People get it when they are added to a project with this role.": "People get it when they are added to a project with this role.",
@@ -783,8 +784,6 @@
"Build, publish, and manage flows": "Build, publish, and manage flows",
"View only": "View only",
"Access to the team projects they're invited to": "Access to the team projects they're invited to",
- "What new members get, and what each role can do.": "What new members get, and what each role can do.",
- "Two kinds. A platform role is one per person and decides console access and which projects they see. A project role is chosen per project and decides what they can do inside it.": "Two kinds. A platform role is one per person and decides console access and which projects they see. A project role is chosen per project and decides what they can do inside it.",
"Platform roles": "Platform roles",
"New role": "New role",
"Built in": "Built in",
diff --git a/packages/web/src/app/routes/platform-routes.tsx b/packages/web/src/app/routes/platform-routes.tsx
index dc60785d895..e7820e35c32 100644
--- a/packages/web/src/app/routes/platform-routes.tsx
+++ b/packages/web/src/app/routes/platform-routes.tsx
@@ -128,7 +128,7 @@ export const platformRoutes = [
path: '/platform/users',
element: (
<PlatformLayout>
- <PageTitle title="Users">
+ <PageTitle title="Members">
<SuspenseWrapper>
<UsersPage />
</SuspenseWrapper>
diff --git a/packages/web/src/app/routes/platform/security/project-role/index.tsx b/packages/web/src/app/routes/platform/security/project-role/index.tsx
index b03d6b863da..56e356da3fd 100644
--- a/packages/web/src/app/routes/platform/security/project-role/index.tsx
+++ b/packages/web/src/app/routes/platform/security/project-role/index.tsx
@@ -19,7 +19,9 @@ const ProjectRolePage = () => {
return (
<CenteredPage
title={t('Roles & Access')}
- description={t('What new members get, and what each role can do.')}
+ description={t(
+ 'Create roles and control what members can do in each project',
+ )}
widthClassName="max-w-4xl"
className="min-h-full bg-muted/50 dark:bg-background"
>
diff --git a/packages/web/src/app/routes/platform/security/project-role/platform-roles-list.tsx b/packages/web/src/app/routes/platform/security/project-role/platform-roles-list.tsx
index b870d24b200..9ffc687a664 100644
--- a/packages/web/src/app/routes/platform/security/project-role/platform-roles-list.tsx
+++ b/packages/web/src/app/routes/platform/security/project-role/platform-roles-list.tsx
@@ -9,6 +9,11 @@ import {
ItemGroup,
ItemTitle,
} from '@/components/ui/item';
+import {
+ Tooltip,
+ TooltipContent,
+ TooltipTrigger,
+} from '@/components/ui/tooltip';
import { roleCopy } from '@/features/members/lib/role-copy';
import { platformHooks } from '@/hooks/platform-hooks';
@@ -35,12 +40,20 @@ export function PlatformRolesList() {
<ItemContent className="min-w-0">
<ItemTitle className="min-w-0 max-w-full flex-wrap">
{platformRole.label}
- <Badge
- variant="accent"
- className="text-xss uppercase tracking-wider"
- >
- {t('Built in')}
- </Badge>
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <Badge
+ tabIndex={0}
+ variant="accent"
+ className="text-xss uppercase tracking-wider focus-visible:ring-[1px] focus-visible:ring-ring/50 focus-visible:outline-none"
+ >
+ {t('Built in')}
+ </Badge>
+ </TooltipTrigger>
+ <TooltipContent>
+ {t('Platform roles cannot be added or changed')}
+ </TooltipContent>
+ </Tooltip>
{platformRole.isDefaultForNewMembers && (
<Badge
variant="inverted"
@@ -61,7 +74,7 @@ export function PlatformRolesList() {
to="/platform/users"
className="text-primary underline underline-offset-4"
>
- {t('Users')} →
+ {t('Members')} →
</Link>
</p>
</div>
diff --git a/packages/web/src/app/routes/platform/security/project-role/roles-card.tsx b/packages/web/src/app/routes/platform/security/project-role/roles-card.tsx
index 03e79741d5f..d64ccd3778d 100644
--- a/packages/web/src/app/routes/platform/security/project-role/roles-card.tsx
+++ b/packages/web/src/app/routes/platform/security/project-role/roles-card.tsx
@@ -53,14 +53,7 @@ export function RolesCard({
return (
<section className="flex flex-col gap-4">
- <div className="flex flex-col gap-1">
- <h2 className="text-base font-medium">{t('Roles')}</h2>
- <p className="max-w-2xl text-sm text-muted-foreground">
- {t(
- 'Two kinds. A platform role is one per person and decides console access and which projects they see. A project role is chosen per project and decides what they can do inside it.',
- )}
- </p>
- </div>
+ <h2 className="text-base font-medium">{t('Roles')}</h2>
<Tabs
value={activeTab}
onValueChange={(value) => setActiveTab(toRolesTab(value))}
@@ -82,13 +75,7 @@ export function RolesCard({
</span>
</TabsTrigger>
</TabsList>
- {activeTab === 'project' ? (
- newRoleButton
- ) : (
- <p className="text-xs text-muted-foreground">
- {t("Built in \u2014 platform roles can't be added or changed.")}
- </p>
- )}
+ {activeTab === 'project' && newRoleButton}
</div>
<TabsContent value="project">
<ProjectRolesList