Real-time clock toggle: per-event use_realtime_clock flag

- Migration 20260834000000: events.use_realtime_clock (boolean, default false)
- Admin: Real-time clock toggle in the Events create/edit modal
- Convivo: useEvent picks new Date() vs simulated DEFAULT_NOW from the flag;
  Home shows a 'Demo clock' badge only in simulated mode
- Docs: app-structure, admin-app, schema, next-steps

Co-authored-by: Stephan Charles <[email protected]>
Co-authored-by: Amelia Hernandez <[email protected]>
Co-authored-by: Markus Franz <[email protected]>
Co-authored-by: Sabrina Hota <[email protected]>
Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
committed 2026-08-25 09:22:28 +02:00
1 parent bd67debeef
commit f9a8513620
11 files changed
+113 -23

No files matched your search

@@ -0,0 +1,19 @@
-- =============================================================================
-- Convivo — Per-event real-time clock toggle
--
-- Adds `events.use_realtime_clock` (boolean, default false). When false (the
-- default), the Convivo app uses its simulated mid-event clock so the demo
-- always looks "live" regardless of the real date. When true, the app uses the
-- real system clock (`new Date()`), so slot status reflects the actual time.
--
-- The admin toggles this per event in the Events view; the Convivo app reads it
-- from the active event and picks the clock accordingly.
-- =============================================================================
alter table public.events
add column if not exists use_realtime_clock boolean not null default false;
comment on column public.events.use_realtime_clock is
'When true, the Convivo app drives slot status (Live/Next/Done) from the real '
'system clock; when false (default) it uses the simulated mid-event clock so '
'the demo always looks live.';