Align technical status schedules and UI

This commit updates the technical status flow to support the newer `data` payload format while preserving legacy `date` handling across timelines, overview helpers, and assignment detail views. It also adds per-interval descriptions for date ranges, improves schedule editing/deletion UX, and refreshes status badge colors and default work-order/client fallback values for a more consistent experience.
This commit is contained in:
Ichsan Kurniawan
2026-10-15 13:23:51 +07:00
parent e8818bc234
commit e7c6f1b17b
11 changed files with 160 additions and 111 deletions
+7 -7
View File
@@ -46,13 +46,13 @@ const badgeVariants = cva(
adminCompleted: "border-transparent bg-sky-500 text-white dark:bg-sky-600 hover:opacity-85", // Emerald Green
// --- TECHNICAL PROGRESSION STATUS VARIANTS ---
techDevelopment: "border-transparent bg-his text-white dark:bg-his hover:opacity-85", // HIS Orange
techSIT: "border-transparent bg-blue-500 text-white dark:bg-blue-600 hover:opacity-85", // Blue
techUAT: "border-transparent bg-purple-500 text-white dark:bg-purple-600 hover:opacity-85", // Purple/Violet
techPTR: "border-transparent bg-teal-500 text-white dark:bg-teal-600 hover:opacity-85", // Mint / Aqua (Teal)
techGoLive: "border-transparent bg-green-500 text-white dark:bg-green-700 hover:opacity-85", // Green
techBAST: "border-transparent bg-yellow-500 text-white dark:bg-yellow-600 hover:opacity-85", // Yellow / Amber (BAST)
techWarranty: "border-transparent bg-sky-500 text-white dark:bg-sky-600 hover:opacity-85", // Sky Blue
techDevelopment: "border-transparent text-white bg-rose-400 dark:bg-rose-600 hover:opacity-85", // HIS Orange
techSIT: "border-transparent text-white bg-orange-400 dark:bg-orange-700 hover:opacity-85", // Blue
techUAT: "border-transparent text-white bg-yellow-400 dark:bg-yellow-500 hover:opacity-85", // Purple/Violet
techPTR: "border-transparent text-white bg-emerald-400 dark:bg-emerald-600 hover:opacity-85", // Mint / Aqua (Teal)
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
},
},
defaultVariants: {