feat: some ui updates

This commit is contained in:
ivannoskov
2026-01-07 15:46:30 +03:00
parent 3b6b97447b
commit 073be940b5
9 changed files with 840 additions and 722 deletions

View File

@@ -99,6 +99,7 @@ interface NavItem {
items?: {
title: string;
url: string;
icon?: LucideIcon;
}[];
}
@@ -325,6 +326,7 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
hasPermission,
isAdmin,
createWorkspace,
isDemoMode,
} = useWorkspace();
const { state: sidebarState } = useSidebar();
const isSidebarCollapsed = sidebarState === "collapsed";
@@ -422,10 +424,12 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
{
title: "По проектам",
url: buildRoute.analytics(workspaceId),
icon: Tv,
},
{
title: "По креативам",
url: buildRoute.analyticsCreatives(workspaceId),
icon: Folder,
},
],
});
@@ -777,7 +781,7 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
workspaces,
currentWorkspaceId: currentWorkspace?.id,
onSelect: (workspace) => handleWorkspaceSelect(workspace.id),
onCreate: () => setShowCreateDialog(true),
onCreate: isDemoMode ? undefined : () => setShowCreateDialog(true),
}}
/>
)}