diff --git a/openspec/changes/add-event-tickets/.openspec.yaml b/openspec/changes/archive/2026-12-04-add-event-tickets/.openspec.yaml similarity index 100% rename from openspec/changes/add-event-tickets/.openspec.yaml rename to openspec/changes/archive/2026-12-04-add-event-tickets/.openspec.yaml diff --git a/openspec/changes/add-event-tickets/design.md b/openspec/changes/archive/2026-12-04-add-event-tickets/design.md similarity index 100% rename from openspec/changes/add-event-tickets/design.md rename to openspec/changes/archive/2026-12-04-add-event-tickets/design.md diff --git a/openspec/changes/add-event-tickets/proposal.md b/openspec/changes/archive/2026-12-04-add-event-tickets/proposal.md similarity index 100% rename from openspec/changes/add-event-tickets/proposal.md rename to openspec/changes/archive/2026-12-04-add-event-tickets/proposal.md diff --git a/openspec/changes/add-event-tickets/specs/event-attendance/spec.md b/openspec/changes/archive/2026-12-04-add-event-tickets/specs/event-attendance/spec.md similarity index 100% rename from openspec/changes/add-event-tickets/specs/event-attendance/spec.md rename to openspec/changes/archive/2026-12-04-add-event-tickets/specs/event-attendance/spec.md diff --git a/openspec/changes/add-event-tickets/specs/event-ticketing/spec.md b/openspec/changes/archive/2026-12-04-add-event-tickets/specs/event-ticketing/spec.md similarity index 100% rename from openspec/changes/add-event-tickets/specs/event-ticketing/spec.md rename to openspec/changes/archive/2026-12-04-add-event-tickets/specs/event-ticketing/spec.md diff --git a/openspec/changes/add-event-tickets/sql/01-ticket-attendees.sql b/openspec/changes/archive/2026-12-04-add-event-tickets/sql/01-ticket-attendees.sql similarity index 100% rename from openspec/changes/add-event-tickets/sql/01-ticket-attendees.sql rename to openspec/changes/archive/2026-12-04-add-event-tickets/sql/01-ticket-attendees.sql diff --git a/openspec/changes/add-event-tickets/sql/02-ticket-labels.sql b/openspec/changes/archive/2026-12-04-add-event-tickets/sql/02-ticket-labels.sql similarity index 100% rename from openspec/changes/add-event-tickets/sql/02-ticket-labels.sql rename to openspec/changes/archive/2026-12-04-add-event-tickets/sql/02-ticket-labels.sql diff --git a/openspec/changes/add-event-tickets/sql/99-rollback.sql b/openspec/changes/archive/2026-12-04-add-event-tickets/sql/99-rollback.sql similarity index 100% rename from openspec/changes/add-event-tickets/sql/99-rollback.sql rename to openspec/changes/archive/2026-12-04-add-event-tickets/sql/99-rollback.sql diff --git a/openspec/changes/add-event-tickets/tasks.md b/openspec/changes/archive/2026-12-04-add-event-tickets/tasks.md similarity index 99% rename from openspec/changes/add-event-tickets/tasks.md rename to openspec/changes/archive/2026-12-04-add-event-tickets/tasks.md index 3b7098c..bd22650 100644 --- a/openspec/changes/add-event-tickets/tasks.md +++ b/openspec/changes/archive/2026-12-04-add-event-tickets/tasks.md @@ -152,5 +152,5 @@ Design: `design.md` (technical contracts) and `docs/superpowers/specs/2026-12-04 - Take screenshots. - Depends on: 4.2 - Done 2026-12-04. Not reachable: an unpaid ticket at the door, because an Awaiting order's tickets have no code yet. The staff banner for that state is covered by the page tests. Fixed during the check: the event leads list crashed on source Ticket, and order detail did not show which ticket is whose. -- [ ] 5.2 Write the release note in `docs/deployment.md`. Open the PR to main and merge it, then archive the change in its own PR and republish the blueprint. +- [x] 5.2 Write the release note in `docs/deployment.md`. Open the PR to main and merge it, then archive the change in its own PR and republish the blueprint. - Depends on: 5.1 diff --git a/openspec/specs/event-attendance/spec.md b/openspec/specs/event-attendance/spec.md index d9613be..730a223 100644 --- a/openspec/specs/event-attendance/spec.md +++ b/openspec/specs/event-attendance/spec.md @@ -33,7 +33,7 @@ The check-in code SHALL work only on the event days (Malaysia, from the start da ### Requirement: Self check-in of a known person -On the event days, the check-in page SHALL ask for one mobile or email, normalised as in staff capture. When the value matches a registered guest or an event lead of this event, that event lead SHALL be marked attended and the page SHALL show "Welcome, . You're checked in." Checking in again SHALL show the same welcome and change nothing. The page SHALL never show a guest's or lead's details other than the first name in the welcome. +On the event days, the check-in page SHALL ask for one mobile or email, normalised as in staff capture. On an event that does not sell tickets, when the value matches a registered guest or an event lead of this event, that event lead SHALL be marked attended. After a check-in the page SHALL show "Welcome, . You're checked in." Checking in again SHALL show the same welcome and change nothing. The page SHALL show no personal details other than the first name. #### Scenario: Registered guest checks in @@ -44,7 +44,7 @@ On the event days, the check-in page SHALL ask for one mobile or email, normalis ### Requirement: Self check-in of a walk-in -When the value matches an invited guest who has not registered, or no one, the check-in page SHALL show the walk-in form, blank, with the privacy consent. An accepted submission SHALL capture the person with the QR registration rules and no salesperson, link a matching guest, mark the event lead attended, and show the checked-in page. +On an event that does not sell tickets, when the value matches an invited guest who has not registered, or no one, the check-in page SHALL show the walk-in form, blank, with the privacy consent. An accepted submission SHALL capture the person with the QR registration rules and no salesperson, link a matching guest, mark the event lead attended, and show the checked-in page. #### Scenario: Invited but not registered @@ -140,3 +140,34 @@ The check-in endpoints SHALL allow at most 300 lookups and submissions per IP pe - **WHEN** 200 guests check in from the venue Wi-Fi within 10 minutes - **THEN** none of them is refused as too many + +### Requirement: Self check-in on a ticketed event + +On an event that sells tickets, the check-in page SHALL match the mobile or email only to the attendee of a valid ticket that is not checked in, or to a registered guest. An unnamed ticket SHALL count as its buyer's, and the oldest ticket SHALL be used when several match. A matched ticket SHALL be checked in, and the attendee's event lead marked attended when they have consented. A matched registered guest SHALL be handled as on other events. + +#### Scenario: Ticket holder checks in + +- **GIVEN** `KL Hotel Tech Day` sells tickets and `Lim Wei` holds a valid ticket named with his mobile +- **WHEN** he enters that mobile on the check-in page on the event day +- **THEN** the page welcomes `Lim` and his ticket is checked in + +### Requirement: No walk-ins on a ticketed event + +On an event that sells tickets, when the value matches no valid unchecked ticket and no registered guest, the check-in page SHALL show "Please show your ticket at the entrance." It SHALL NOT offer or accept a walk-in submission. + +#### Scenario: No walk-ins on a paid event + +- **GIVEN** `KL Hotel Tech Day` sells tickets +- **WHEN** a visitor whose mobile matches no valid ticket and no registered guest enters it +- **THEN** the page says "Please show your ticket at the entrance." and shows no form +- **AND** a walk-in submission sent directly is refused + +### Requirement: Ticket attendance numbers + +When the event sells tickets, the event page SHALL also show tickets awaiting payment, tickets paid and tickets checked in, counting active tickets only. The numbers SHALL agree with the event's orders. + +#### Scenario: Ticket counts + +- **GIVEN** `KL Hotel Tech Day` has 2 tickets awaiting payment and 5 paid tickets, 3 of them checked in +- **WHEN** an admin opens the event page +- **THEN** the page shows tickets awaiting payment 2, paid 5, checked in 3 diff --git a/openspec/specs/event-ticketing/spec.md b/openspec/specs/event-ticketing/spec.md index 2e3a369..c6b2668 100644 --- a/openspec/specs/event-ticketing/spec.md +++ b/openspec/specs/event-ticketing/spec.md @@ -195,7 +195,7 @@ It SHALL show the buyer's name but no other personal details. An unknown token S ### Requirement: Order Emails -The buyer SHALL get an email when their order is created (lines, total, payment instructions, hold expiry and order link), becomes Paid (a confirmation with lines, total and order link), Expires, or is Cancelled by staff. Each email SHALL be recorded in Emails. A failed send SHALL NOT undo the order change, and staff SHALL be able to resend the latest email of an order. +The buyer SHALL get an email when their order is created (lines, total, payment instructions, hold expiry and order link), becomes Paid (lines, total, each ticket's QR image and link, and a "Name your attendees" link to the order page), Expires, or is Cancelled by staff. Each email SHALL be recorded in Emails. A failed send SHALL NOT undo the order change, and staff SHALL be able to resend the latest email of an order. #### Scenario: Order received email @@ -204,8 +204,8 @@ The buyer SHALL get an email when their order is created (lines, total, payment #### Scenario: Paid email -- **WHEN** staff mark her order Paid -- **THEN** she receives a confirmation email +- **WHEN** staff mark her order of 2 tickets Paid +- **THEN** she receives a confirmation email with 2 QR images, their ticket links and a link to name her attendees ### Requirement: Staff Order Screens @@ -252,3 +252,177 @@ Ticket requests SHALL follow the QR registration limits: at most 60 requests per - **WHEN** a request fills the hidden honeypot field - **THEN** the thank-you page shows and no order is saved + +### Requirement: Ticket Codes + +When an order becomes Paid, the system SHALL give each of its active tickets an unguessable code of 22 URL-safe characters, unique across all tickets. This SHALL apply when staff mark an order paid (also an Expired one) and when a free order is Paid at once. The ticket's link SHALL be `/t/`. A ticket SHALL be valid only while its order is Paid and the ticket is active. + +#### Scenario: Codes on payment + +- **GIVEN** order `T-7K3M9Q` holds 2 `General` tickets and is Awaiting payment +- **WHEN** staff mark it paid +- **THEN** each ticket has its own code and link + +#### Scenario: Free order + +- **WHEN** a visitor requests 1 free `Community pass` +- **THEN** the order is Paid and its ticket has a code at once + +### Requirement: Ticket Page + +The ticket link `/t/` SHALL be public. It SHALL show the event name, dates and location, the ticket type, the attendee's first name (or "Not named yet") and the ticket's state. It SHALL show the QR image of its own link only while the ticket is valid and not checked in; a checked-in ticket SHALL show "Checked in at