mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 20:16:30 +00:00
3eabe762bf
Add new admin Project Assignment area with Client, End User, and Project Management pages and components (tables, Export buttons, lazy-loaded pages). Introduce FormProject for creating/editing projects and export utilities to download Excel for each module. Update task types: IEndUser now includes code and a status object. Clean up FormClient by removing unused imports and inline end-user modal usage. Make BadgeStatus robust to missing status values. Add "Project Assignment" entry to the sidebar and import FolderGit2.
188 lines
4.8 KiB
TypeScript
188 lines
4.8 KiB
TypeScript
import { LayoutDashboard, Settings, MonitorSmartphone, Database, ShieldAlert, FileText, Circle, ScanFace, MenuSquare, CalendarX2, FolderGit2 } from 'lucide-react'
|
|
|
|
const SIDEBAR_MENU = [
|
|
{
|
|
title: "Dashboard",
|
|
Icon: <LayoutDashboard size={18} />,
|
|
path: ''
|
|
},
|
|
{
|
|
title: "Administration",
|
|
Icon: <ShieldAlert size={18} />,
|
|
submenuId: 1,
|
|
submenuItems: [
|
|
{
|
|
title: "Company",
|
|
path: '/administration/company'
|
|
},
|
|
{
|
|
title: "Area",
|
|
path: '/administration/area'
|
|
},
|
|
{
|
|
title: "Division",
|
|
path: '/administration/division'
|
|
},
|
|
{
|
|
title: "User",
|
|
path: '/administration/user'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
title: "Device",
|
|
Icon: <MonitorSmartphone size={18} />,
|
|
submenuId: 2,
|
|
submenuItems: [
|
|
{
|
|
title: "Device",
|
|
path: '/device/device'
|
|
},
|
|
{
|
|
title: "Device Type",
|
|
path: '/device/device-type'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
title: "Global Parameter",
|
|
Icon: <Settings size={18} />,
|
|
path: '/global-parameter'
|
|
},
|
|
{
|
|
title: "Menu",
|
|
Icon: <MenuSquare size={18} />,
|
|
path: '/menu'
|
|
},
|
|
{
|
|
title: "Day Off",
|
|
Icon: <CalendarX2 size={18} />,
|
|
path: '/day-off'
|
|
},
|
|
{
|
|
title: "Report",
|
|
Icon: <Database size={18} />,
|
|
submenuId: 3,
|
|
submenuItems: [
|
|
{
|
|
title: "Attendance History",
|
|
path: '/report/history'
|
|
},
|
|
{
|
|
title: "Attendance Distribution",
|
|
path: '/report/distribution'
|
|
},
|
|
{
|
|
title: "Leave, Permit & Sick",
|
|
path: '/report/leave-permit-sick'
|
|
},
|
|
{
|
|
title: "Summary Report",
|
|
path: '/report/monthly-presence'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: "Audit Trail",
|
|
Icon: <FileText size={18} />,
|
|
path: '/audit-trail'
|
|
},
|
|
{
|
|
title: "Manual Attendance & Approval",
|
|
submenuId: 4,
|
|
Icon: <ScanFace size={18} />,
|
|
submenuItems: [
|
|
{
|
|
title: "Manual Attendance",
|
|
path: '/manual/manual-presence'
|
|
},
|
|
{
|
|
title: "Approval Non WFO",
|
|
path: '/manual/approval'
|
|
},
|
|
{
|
|
title: "Approval Auto Checkout",
|
|
path: '/manual/approval-autocheckout'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: "Project Assignment",
|
|
Icon: <FolderGit2 size={18} />,
|
|
submenuId: 5,
|
|
submenuItems: [
|
|
{
|
|
title: "Client",
|
|
path: '/project-assignment/client'
|
|
},
|
|
{
|
|
title: "End User",
|
|
path: '/project-assignment/end-user'
|
|
},
|
|
{
|
|
title: "Project Management",
|
|
path: '/project-assignment/project-management'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
title: "Information",
|
|
Icon: <ShieldAlert size={18} />,
|
|
submenuId: 6,
|
|
submenuItems: [
|
|
{
|
|
title: "Master Status",
|
|
path: '/information/master-status'
|
|
},
|
|
{
|
|
title: "Working Status",
|
|
path: '/information/working-status'
|
|
},
|
|
{
|
|
title: "User Role",
|
|
path: '/information/user-role'
|
|
},
|
|
{
|
|
title: "Employee Position",
|
|
path: '/information/position'
|
|
},
|
|
{
|
|
title: "Employee Type",
|
|
path: '/information/employee-type'
|
|
},
|
|
]
|
|
},
|
|
// {
|
|
// title: "Test",
|
|
// Icon: <Circle size={18} />,
|
|
// submenuId: 3,
|
|
// submenuItems: [
|
|
// {
|
|
// title: "Submenu 1",
|
|
// path: '/submenu-1'
|
|
// },
|
|
// {
|
|
// title: "Submenu 2",
|
|
// path: '/submenu-2'
|
|
// },
|
|
// {
|
|
// title: "Submenu 3",
|
|
// submenu: true,
|
|
// submenuId: 101,
|
|
// submenuItems: [
|
|
// {
|
|
// title: "Test",
|
|
// path: '/submenu'
|
|
// },
|
|
// {
|
|
// title: "Sub Submenu 2",
|
|
// path: '/sub-submenu-2'
|
|
// }
|
|
// ]
|
|
// }
|
|
// ]
|
|
// },
|
|
|
|
]
|
|
|
|
export default SIDEBAR_MENU |