feat(admin): show group schedule status
CI / validate (push) Successful in 6m9s
Release / release (push) Successful in 7m51s

This commit is contained in:
dmg
2026-08-02 14:26:24 -04:00
parent c131465ff5
commit 6fa33c9f7b
6 changed files with 26 additions and 6 deletions
+5
View File
@@ -1,6 +1,11 @@
export const MINUTES_PER_WEEK = 7 * 24 * 60;
const MAX_WINDOWS = 50;
export function groupScheduleStatus(windowCount: number) {
if (windowCount <= 0) return "Unrestricted";
return `${windowCount} ${windowCount === 1 ? "window" : "windows"}`;
}
export interface WeeklyAccessWindow {
startMinuteOfWeek: number;
endMinuteOfWeek: number;