Add project-assignment admin pages and UI updates

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.
This commit is contained in:
Ichsan Kurniawan
2026-05-06 18:34:38 +07:00
parent bbc2c7e3e2
commit 3eabe762bf
14 changed files with 1157 additions and 14 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { Badge, STATUS_BADGE_MAP } from "@/components/ui/badge"
export default function BadgeStatus({ status, className }: { status: string, className?: string }) { // e.g. status = "UAT"
return (
<Badge variant={STATUS_BADGE_MAP[status?.toLowerCase()] || "default"} className={className}>
<Badge variant={STATUS_BADGE_MAP[status ? status?.toLowerCase() : ''] || "default"} className={className}>
{status}
</Badge>
)