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

+6 -1
View File
@@ -44,7 +44,7 @@ function ConcurrentList({ sessions }: { sessions: Session[] }) {
export function Home({ go }: { go: (tab: string) => void }) {
const { contact, registration } = useAuth();
const { event, slots, sessionById, slotById, now, loading } = useEvent();
const { event, slots, sessionById, slotById, now, clockMode, loading } = useEvent();
const [prefs, setPrefs] = useState<Preference[]>([]);
const [checkins, setCheckins] = useState<string[]>([]);
const [mySpeakerSessions, setMySpeakerSessions] = useState<string[]>([]);
@@ -141,6 +141,11 @@ export function Home({ go }: { go: (tab: string) => void }) {
<div>
<div className="h1">{greeting(now)}, {firstName} 👋</div>
<div className="muted small">{event.name}</div>
{clockMode === 'simulated' && (
<div className="muted small" style={{ marginTop: 2 }}>
🎬 Demo clock
</div>
)}
</div>
<div className="row" style={{ gap: 8 }}>
{pendingMaterial.length > 0 && (