From dbb0d506af30915352a567c7e4df742b65c03a89 Mon Sep 17 00:00:00 2001 From: Pablo Lara Date: Tue, 8 Oct 2024 09:58:44 +0200 Subject: [PATCH 1/2] chore: menu item tweaks --- components/ui/sidebar/SidebarItems.tsx | 105 ++++++++++--------------- components/ui/sidebar/SidebarWrap.tsx | 8 +- 2 files changed, 45 insertions(+), 68 deletions(-) diff --git a/components/ui/sidebar/SidebarItems.tsx b/components/ui/sidebar/SidebarItems.tsx index 43f01dfa66..497d29544a 100644 --- a/components/ui/sidebar/SidebarItems.tsx +++ b/components/ui/sidebar/SidebarItems.tsx @@ -92,7 +92,7 @@ export const items: SidebarItem[] = [ export const sectionItems: SidebarItem[] = [ { key: "dashboards", - title: "Dashboards", + title: "Dashboard", items: [ { key: "overview", @@ -113,48 +113,6 @@ export const sectionItems: SidebarItem[] = [ // /> // ), // }, - // { - // key: "tasks", - // href: "#", - // icon: "solar:checklist-minimalistic-outline", - // title: "Tasks", - // endContent: ( - // - // ), - // }, - { - key: "compliance", - href: "/compliance", - icon: "fluent-mdl2:compliance-audit", - title: "Compliance", - endContent: ( - - New - - ), - }, - { - key: "services", - href: "/services", - icon: "material-symbols:linked-services-outline", - title: "Services", - }, - { - key: "categories", - href: "/categories", - icon: "material-symbols:folder-open-outline", - title: "Categories", - }, - { - key: "workloads", - href: "/workloads", - icon: "lucide:tags", - title: "Workloads", - }, ], }, { @@ -184,22 +142,47 @@ export const sectionItems: SidebarItem[] = [ }, ], }, + { + key: "tasks", + href: "#", + icon: "solar:checklist-minimalistic-outline", + title: "Tasks", + }, ], }, { - key: "accounts", - title: "Accounts", + key: "analytics", + title: "Analytics", + items: [ + { + key: "compliance", + href: "/compliance", + icon: "fluent-mdl2:compliance-audit", + title: "Compliance", + endContent: ( + + New + + ), + }, + { + key: "services", + href: "/services", + icon: "material-symbols:linked-services-outline", + title: "Services", + }, + ], + }, + + { + key: "settings", + title: "Settings", items: [ { key: "providers", href: "/providers", icon: "fluent:cloud-sync-24-regular", title: "Providers", - endContent: ( - - 3 - - ), }, { key: "integrations", @@ -207,12 +190,6 @@ export const sectionItems: SidebarItem[] = [ icon: "tabler:puzzle", title: "Integrations", }, - { - key: "settings", - href: "/settings", - icon: "solar:settings-outline", - title: "Settings", - }, ], }, ]; @@ -220,8 +197,8 @@ export const sectionItems: SidebarItem[] = [ export const sectionItemsWithTeams: SidebarItem[] = [ ...sectionItems, { - key: "team", - title: "Team", + key: "memberships", + title: "Membership", items: [ { key: "users", @@ -229,12 +206,12 @@ export const sectionItemsWithTeams: SidebarItem[] = [ title: "Users", icon: "ci:users", }, - { - key: "roles", - href: "#", - title: "Roles", - startContent: , - }, + // { + // key: "memberships", + // href: "#", + // title: "Memberships", + // startContent: , + // }, ], }, ]; diff --git a/components/ui/sidebar/SidebarWrap.tsx b/components/ui/sidebar/SidebarWrap.tsx index 72451eb3fe..08204b3392 100644 --- a/components/ui/sidebar/SidebarWrap.tsx +++ b/components/ui/sidebar/SidebarWrap.tsx @@ -95,7 +95,7 @@ export const SidebarWrap = () => { "items-center": isCompact, })} > - { "Feedback & Support" )} - + */} { - { "Product Updates" )} - + */}