Added My Schedule tab in attendance screen

Allow 1 Day, Whole Week and Date Range swapping
This commit is contained in:
2026-03-22 11:52:25 +08:00
parent ba155885c0
commit 049ab2c794
17 changed files with 2515 additions and 305 deletions
@@ -0,0 +1,10 @@
-- Enable realtime updates for duty_schedules so that schedule ownership
-- changes (e.g. after a swap is accepted) propagate to all clients
-- immediately without waiting for the next poll cycle.
ALTER TABLE public.duty_schedules REPLICA IDENTITY FULL;
DO $$ BEGIN
ALTER PUBLICATION supabase_realtime ADD TABLE public.duty_schedules;
EXCEPTION WHEN duplicate_object THEN
NULL;
END $$;