feat: sync GridSmart agendas and use event-relative demo time
Support script and URL sources, automatic Sessionize polling, staff-linked service sessions, chronological agenda blocks, and inline Placeholders. Fix demo mode to use the active event date and document deployed behavior with regression coverage.
This commit is contained in:
1 parent
40f24cf5f7
commit
c0fbf495dc
27 files changed
+1215
-60
No files matched your search
@@ -1,11 +1,8 @@
|
||||
import type { Slot } from './types';
|
||||
|
||||
/** The event day (from the seed). All slot times are on this date. */
|
||||
export const EVENT_DATE = '2026-02-20';
|
||||
|
||||
/** Simulated "now" used for the demo (10:20 on event day → Slot 2 is live,
|
||||
* Slot 3 is next). Matches the mockup's "Good morning" greeting. */
|
||||
export const DEFAULT_NOW = new Date(`${EVENT_DATE}T10:20:00`);
|
||||
export function demoNow(eventDate: string): Date {
|
||||
return new Date(`${eventDate}T10:20:00`);
|
||||
}
|
||||
|
||||
export type SlotStatus = 'done' | 'now' | 'next';
|
||||
|
||||
|
||||
Reference in new issue
Block a user