Archived
Pick sessions (frontend), roadmap and handover docs
Event wizard: how people book (whole course / pick sessions), capacity per session and per-option session mode. Session picker on the public registration page, Manual registration and the kiosk; at the door points to Manual registration. Register, tickets and My Events handle picked sessions. Adds docs/ROADMAP-v2.md and docs/HANDOVER.md so work can carry on from another machine, and a pick-sessions e2e test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -73,6 +73,10 @@ export type EventOption = {
|
||||
earlyBirdTiers?: EarlyBirdTier[];
|
||||
createdAt?: string;
|
||||
updatedAt?: string;
|
||||
// "Pick sessions" events: `pick` options are bought per session (price per session).
|
||||
sessionMode?: "all" | "pick";
|
||||
// Pick options with a stock limit: places left per session id.
|
||||
sessionAvailability?: Record<string, number>;
|
||||
};
|
||||
|
||||
export type FormFieldType =
|
||||
@@ -158,6 +162,8 @@ export type Event = {
|
||||
// When public registration closes: the deadline, the first session (or session N with
|
||||
// late joining), or the end date — whichever applies.
|
||||
registrationClosesAt?: string;
|
||||
// "Pick sessions" events: when whole-course tickets stop selling.
|
||||
wholeCourseClosesAt?: string | null;
|
||||
lateJoinEnabled?: boolean;
|
||||
lateJoinUntilSessionId?: string | null;
|
||||
latePricing?: "full" | "prorata" | "fixed";
|
||||
@@ -182,6 +188,11 @@ export type EventSession = {
|
||||
cancelledAt?: string | null;
|
||||
cancelled?: boolean;
|
||||
order?: number;
|
||||
// "Pick sessions" events: optional limit on people, and (single-event responses) how
|
||||
// many are booked and how many places are left (null = no limit).
|
||||
capacity?: number | null;
|
||||
booked?: number;
|
||||
placesLeft?: number | null;
|
||||
};
|
||||
|
||||
export type LateJoinInfo = {
|
||||
@@ -208,6 +219,9 @@ export type CertificateConfig = {
|
||||
export type AttendanceColumn = { id: string; label: string; startsAt: string; endsAt: string; cancelled: boolean };
|
||||
export type AttendanceRow = {
|
||||
ticketId: string;
|
||||
// Picked-session bookings: the sessions booked (null = all) and the ticket for each.
|
||||
bookedSessions?: string[] | null;
|
||||
sessionTickets?: Record<string, string> | null;
|
||||
name: string;
|
||||
bookedBy: string;
|
||||
email: string;
|
||||
@@ -458,6 +472,9 @@ export type RegistrationOption = {
|
||||
appliedTierId?: string | null;
|
||||
eventOption?: EventOption;
|
||||
variant?: OptionVariant | null;
|
||||
// Picked-session lines: the one session this line (and its ticket) is for.
|
||||
sessionId?: string | null;
|
||||
session?: EventSession | null;
|
||||
// One entry per price the line was bought at (e.g. some before an early-bird tier expired).
|
||||
tranches?: { id: string; quantity: number; priceSnapshot: number; appliedTierId?: string | null }[];
|
||||
tickets?: { id: string; quantity?: number }[];
|
||||
|
||||
Reference in New Issue
Block a user