feat: add team roles management feature with UI components and localization support

This commit is contained in:
Anish Sarkar 2026-02-21 14:26:56 +05:30
parent 634f6f24bf
commit 9f08f7c9c2
8 changed files with 1767 additions and 1966 deletions

View file

@ -12,6 +12,7 @@ import {
Menu,
MessageSquare,
Settings,
Shield,
X,
} from "lucide-react";
import { AnimatePresence, motion } from "motion/react";
@ -24,6 +25,7 @@ import { ImageModelManager } from "@/components/settings/image-model-manager";
import { LLMRoleManager } from "@/components/settings/llm-role-manager";
import { ModelConfigManager } from "@/components/settings/model-config-manager";
import { PromptConfigManager } from "@/components/settings/prompt-config-manager";
import { RolesManager } from "@/components/settings/roles-manager";
import { Button } from "@/components/ui/button";
import { trackSettingsViewed } from "@/lib/posthog/events";
import { cn } from "@/lib/utils";
@ -72,6 +74,12 @@ const settingsNavItems: SettingsNavItem[] = [
descriptionKey: "nav_public_links_desc",
icon: Globe,
},
{
id: "team-roles",
labelKey: "nav_team_roles",
descriptionKey: "nav_team_roles_desc",
icon: Shield,
},
];
function SettingsSidebar({
@ -298,6 +306,9 @@ function SettingsContent({
{activeSection === "public-links" && (
<PublicChatSnapshotsManager searchSpaceId={searchSpaceId} />
)}
{activeSection === "team-roles" && (
<RolesManager searchSpaceId={searchSpaceId} />
)}
</motion.div>
</AnimatePresence>
</div>

File diff suppressed because it is too large Load diff