mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 17:06:29 +00:00
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:
+12
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user