task-b complate
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { NavGroup } from "@/types";
|
||||
import { NavGroup } from '@/types';
|
||||
|
||||
/**
|
||||
* Navigation configuration with RBAC support
|
||||
@@ -35,118 +35,157 @@ import { NavGroup } from "@/types";
|
||||
*/
|
||||
export const navGroups: NavGroup[] = [
|
||||
{
|
||||
label: "Overview",
|
||||
label: 'Overview',
|
||||
items: [
|
||||
{
|
||||
title: "Dashboard",
|
||||
url: "/dashboard",
|
||||
icon: "dashboard",
|
||||
title: 'Dashboard',
|
||||
url: '/dashboard',
|
||||
icon: 'dashboard',
|
||||
isActive: false,
|
||||
shortcut: ["d", "d"],
|
||||
items: [],
|
||||
shortcut: ['d', 'd'],
|
||||
items: []
|
||||
},
|
||||
{
|
||||
title: "Workspaces",
|
||||
url: "/dashboard/workspaces",
|
||||
icon: "workspace",
|
||||
title: 'Workspaces',
|
||||
url: '/dashboard/workspaces',
|
||||
icon: 'workspace',
|
||||
isActive: false,
|
||||
items: [],
|
||||
access: { systemRole: "super_admin" },
|
||||
access: { systemRole: 'super_admin' }
|
||||
},
|
||||
{
|
||||
title: "Teams",
|
||||
url: "/dashboard/workspaces/team",
|
||||
icon: "teams",
|
||||
title: 'Teams',
|
||||
url: '/dashboard/workspaces/team',
|
||||
icon: 'teams',
|
||||
isActive: false,
|
||||
items: [],
|
||||
access: { requireOrg: true, role: "admin" },
|
||||
access: { requireOrg: true, role: 'admin' }
|
||||
},
|
||||
{
|
||||
title: "Users",
|
||||
url: "/dashboard/users",
|
||||
icon: "teams",
|
||||
shortcut: ["u", "u"],
|
||||
title: 'Users',
|
||||
url: '/dashboard/users',
|
||||
icon: 'teams',
|
||||
shortcut: ['u', 'u'],
|
||||
isActive: false,
|
||||
items: [],
|
||||
access: { requireOrg: true, permission: "users:manage" },
|
||||
access: { requireOrg: true, permission: 'users:manage' }
|
||||
},
|
||||
{
|
||||
title: "Kanban",
|
||||
url: "/dashboard/kanban",
|
||||
icon: "kanban",
|
||||
shortcut: ["k", "k"],
|
||||
title: 'Kanban',
|
||||
url: '/dashboard/kanban',
|
||||
icon: 'kanban',
|
||||
shortcut: ['k', 'k'],
|
||||
isActive: false,
|
||||
items: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "CRM",
|
||||
items: [
|
||||
{
|
||||
title: "CRM Dashboard",
|
||||
url: "/dashboard/crm",
|
||||
icon: "dashboard",
|
||||
isActive: false,
|
||||
items: [],
|
||||
access: { requireOrg: true },
|
||||
},
|
||||
{
|
||||
title: "Enquiries",
|
||||
url: "/dashboard/crm/enquiries",
|
||||
icon: "forms",
|
||||
isActive: false,
|
||||
items: [],
|
||||
access: { requireOrg: true },
|
||||
},
|
||||
{
|
||||
title: "Customers",
|
||||
url: "/dashboard/crm/customers",
|
||||
icon: "teams",
|
||||
isActive: false,
|
||||
items: [],
|
||||
access: { requireOrg: true },
|
||||
},
|
||||
{
|
||||
title: "Quotations",
|
||||
url: "/dashboard/crm/quotations",
|
||||
icon: "fileTypePdf",
|
||||
isActive: false,
|
||||
items: [],
|
||||
access: { requireOrg: true },
|
||||
},
|
||||
{
|
||||
title: "Approvals",
|
||||
url: "/dashboard/crm/approvals",
|
||||
icon: "checks",
|
||||
isActive: false,
|
||||
items: [],
|
||||
access: { requireOrg: true },
|
||||
},
|
||||
{
|
||||
title: "CRM Settings",
|
||||
url: "#",
|
||||
icon: "settings",
|
||||
isActive: true,
|
||||
access: { requireOrg: true },
|
||||
items: [
|
||||
{
|
||||
title: "Master Options",
|
||||
url: "/dashboard/crm/settings/master-options",
|
||||
icon: "settings",
|
||||
},
|
||||
{
|
||||
title: "Document Sequences",
|
||||
url: "/dashboard/crm/settings/document-sequences",
|
||||
icon: "post",
|
||||
},
|
||||
{
|
||||
title: "Templates",
|
||||
url: "/dashboard/crm/settings/templates",
|
||||
icon: "page",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
items: []
|
||||
}
|
||||
// {
|
||||
// title: "Chat",
|
||||
// url: "/dashboard/chat",
|
||||
// icon: "chat",
|
||||
// shortcut: ["c", "c"],
|
||||
// isActive: false,
|
||||
// items: [],
|
||||
// },
|
||||
]
|
||||
}
|
||||
// {
|
||||
// label: "Elements",
|
||||
// items: [
|
||||
// {
|
||||
// title: "Forms",
|
||||
// url: "#",
|
||||
// icon: "forms",
|
||||
// isActive: true,
|
||||
// items: [
|
||||
// {
|
||||
// title: "Basic Form",
|
||||
// url: "/dashboard/forms/basic",
|
||||
// icon: "forms",
|
||||
// shortcut: ["f", "f"],
|
||||
// },
|
||||
// {
|
||||
// title: "Multi-Step Form",
|
||||
// url: "/dashboard/forms/multi-step",
|
||||
// icon: "forms",
|
||||
// },
|
||||
// {
|
||||
// title: "Sheet & Dialog",
|
||||
// url: "/dashboard/forms/sheet-form",
|
||||
// icon: "forms",
|
||||
// },
|
||||
// {
|
||||
// title: "Advanced Patterns",
|
||||
// url: "/dashboard/forms/advanced",
|
||||
// icon: "forms",
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// title: "React Query",
|
||||
// url: "/dashboard/react-query",
|
||||
// icon: "code",
|
||||
// isActive: false,
|
||||
// items: [],
|
||||
// },
|
||||
// {
|
||||
// title: "Icons",
|
||||
// url: "/dashboard/elements/icons",
|
||||
// icon: "palette",
|
||||
// isActive: false,
|
||||
// items: [],
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// label: "",
|
||||
// items: [
|
||||
// {
|
||||
// title: "Pro",
|
||||
// url: "#",
|
||||
// icon: "pro",
|
||||
// isActive: true,
|
||||
// items: [
|
||||
// {
|
||||
// title: "Exclusive",
|
||||
// url: "/dashboard/exclusive",
|
||||
// icon: "exclusive",
|
||||
// shortcut: ["e", "e"],
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// {
|
||||
// title: "Account",
|
||||
// url: "#",
|
||||
// icon: "account",
|
||||
// isActive: true,
|
||||
// items: [
|
||||
// {
|
||||
// title: "Profile",
|
||||
// url: "/dashboard/profile",
|
||||
// icon: "profile",
|
||||
// shortcut: ["m", "m"],
|
||||
// },
|
||||
// {
|
||||
// title: "Notifications",
|
||||
// url: "/dashboard/notifications",
|
||||
// icon: "notification",
|
||||
// shortcut: ["n", "n"],
|
||||
// },
|
||||
// {
|
||||
// title: "Billing",
|
||||
// url: "/dashboard/billing",
|
||||
// icon: "billing",
|
||||
// shortcut: ["b", "b"],
|
||||
// access: { requireOrg: true, role: "admin" },
|
||||
// },
|
||||
// {
|
||||
// title: "Login",
|
||||
// shortcut: ["l", "l"],
|
||||
// url: "/",
|
||||
// icon: "login",
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user