task-b.1
complere
This commit is contained in:
phaichayon
2026-06-15 11:19:31 +07:00
parent 89b39cad38
commit b8cd39eaa4
55 changed files with 4295 additions and 1848 deletions

View File

@@ -1,4 +1,4 @@
import { NavGroup } from '@/types';
import { NavGroup } from "@/types";
/**
* Navigation configuration with RBAC support
@@ -35,157 +35,49 @@ 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: []
}
// {
// 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",
// },
// ],
// },
// ],
// },
items: [],
},
],
},
];