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
@@ -0,0 +1,21 @@
|
||||
function createSessionizePoller({ listEvents, syncEvent, isBusy, onError }) {
|
||||
let polling = false;
|
||||
return async function pollSessionize() {
|
||||
if (polling || isBusy()) return;
|
||||
polling = true;
|
||||
try {
|
||||
const events = await listEvents();
|
||||
for (const event of events) {
|
||||
if (isBusy()) break;
|
||||
try { await syncEvent(event.id); }
|
||||
catch (error) { onError(error, event.id); }
|
||||
}
|
||||
} catch (error) {
|
||||
onError(error);
|
||||
} finally {
|
||||
polling = false;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = { createSessionizePoller };
|
||||
Reference in new issue
Block a user