Add multi-day events (frontend), attendance register and certificates

Event wizard: one date or multiple sessions with a repeat-pattern builder,
and a new Attendance step (late joining and pricing, check-in window,
session reminders, certificates with preview). Public pages show the
schedule and late prices; the scanner picks today's session; new
attendance register page, My Certificates, and a public verify page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 14:53:39 +02:00
co-authored by Claude Opus 5.5
parent c79b74bc67
commit 39558577f7
37 changed files with 1670 additions and 77 deletions
+3 -1
View File
@@ -19,6 +19,8 @@ type Event = {
startDate: string;
endDate: string;
registrationDeadline?: string | null;
// Multi-day events: listed by their next session, not their first.
nextSession?: { startsAt: string } | null;
goLiveAt?: string;
price: number;
picture?: string;
@@ -55,7 +57,7 @@ export default async function HomePage() {
const t = new Date(e.endDate || e.startDate).getTime();
return !isNaN(t) && t > now;
});
const sorted = [...upcoming].sort((a, b) => new Date(a.startDate).getTime() - new Date(b.startDate).getTime());
const sorted = [...upcoming].sort((a, b) => new Date(a.nextSession?.startsAt || a.startDate).getTime() - new Date(b.nextSession?.startsAt || b.startDate).getTime());
return (
<div className="min-h-screen flex flex-col">