Phase 2: Admin availability UI with calendar grid, edit modal, and e2e tests

This commit is contained in:
counterweight 2025-12-20 23:54:34 +01:00
parent 64d2e99d73
commit f6cf093cb1
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
5 changed files with 1130 additions and 1 deletions

View file

@ -7,7 +7,7 @@ import constants from "../../../shared/constants.json";
const { ADMIN, REGULAR } = constants.roles;
type PageId = "counter" | "sum" | "profile" | "invites" | "audit" | "admin-invites";
type PageId = "counter" | "sum" | "profile" | "invites" | "audit" | "admin-invites" | "admin-availability";
interface HeaderProps {
currentPage: PageId;
@ -31,6 +31,7 @@ const REGULAR_NAV_ITEMS: NavItem[] = [
const ADMIN_NAV_ITEMS: NavItem[] = [
{ id: "audit", label: "Audit", href: "/audit", adminOnly: true },
{ id: "admin-invites", label: "Invites", href: "/admin/invites", adminOnly: true },
{ id: "admin-availability", label: "Availability", href: "/admin/availability", adminOnly: true },
];
export function Header({ currentPage }: HeaderProps) {