From cdf8f57eb5d0f438a18c13529f6bbcec37d588dc Mon Sep 17 00:00:00 2001 From: ajdj100 Date: Sat, 17 Jan 2026 10:25:06 -0500 Subject: [PATCH] Added support for extended visuals --- ui/src/components/loa/loaList.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/src/components/loa/loaList.vue b/ui/src/components/loa/loaList.vue index 1785564..c33a1d4 100644 --- a/ui/src/components/loa/loaList.vue +++ b/ui/src/components/loa/loaList.vue @@ -75,15 +75,17 @@ function formatDate(date: Date): string { }); } -function loaStatus(loa: LOARequest): "Upcoming" | "Active" | "Overdue" | "Closed" { +function loaStatus(loa: LOARequest): "Upcoming" | "Active" | "Extended" | "Overdue" | "Closed" { if (loa.closed) return "Closed"; const now = new Date(); const start = new Date(loa.start_date); const end = new Date(loa.end_date); + const extension = new Date(loa.extended_till); if (now < start) return "Upcoming"; - if (now >= start && now <= end) return "Active"; + if (now >= start && (now <= end)) return "Active"; + if (now >= start && (now <= extension)) return "Extended"; if (now > loa.extended_till || end) return "Overdue"; return "Overdue"; // fallback @@ -191,6 +193,7 @@ function setPage(pagenum: number) { Upcoming Active + Extended Overdue Ended