Add assignment progress and activity logging

Add modals for updating real progress and recording activity logs, and enhance the milestone timeline with date-based positioning and activity details. Update dashboard metrics to show active internal memos.
This commit is contained in:
Ichsan Kurniawan
2026-10-16 15:37:20 +07:00
parent f2e9136e47
commit 3fbecab072
12 changed files with 1255 additions and 467 deletions
+12 -1
View File
@@ -53,6 +53,12 @@ const badgeVariants = cva(
techGoLive: "border-transparent text-white bg-cyan-400 dark:bg-cyan-600 hover:opacity-85", // Green
techBAST: "border-transparent text-white bg-violet-400 dark:bg-violet-600 hover:opacity-85", // Yellow / Amber (BAST)
techWarranty: "border-transparent text-white bg-fuchsia-400 dark:bg-fuchsia-600 hover:opacity-85", // Sky Blue
// --- ACTIVITY LOG TYPE VARIANTS ---
logUpdate: "border-transparent bg-sky-500 text-white dark:bg-sky-600 hover:opacity-85",
logAction: "border-transparent bg-emerald-500 text-white dark:bg-emerald-600 hover:opacity-85",
logIssue: "border-transparent bg-red-500 text-white dark:bg-red-600 hover:opacity-85",
logSystem: "border-transparent text-white bg-his hover:opacity-85",
},
},
defaultVariants: {
@@ -83,7 +89,7 @@ export const STATUS_BADGE_MAP: Record<string, VariantProps<typeof badgeVariants>
"cancelled": "adminCancelled",
"canceled": "adminCancelled",
"cancel": "adminCancelled",
"issue": "adminCancelled",
"issue": "logIssue",
// 5. Completed -> Emerald Green
"completed": "adminCompleted",
@@ -91,6 +97,11 @@ export const STATUS_BADGE_MAP: Record<string, VariantProps<typeof badgeVariants>
"done": "adminCompleted",
"success": "adminCompleted",
// 6. Activity Log Types
"update": "logUpdate",
"action": "logAction",
"system": "logSystem",
// Technical progression stages based on color reference:
// 1. Development -> Orange
"development": "techDevelopment",