Merge pull request 'docs(openspec): archive add-event-tickets' (#90) from archive-add-event-tickets into main
CI / build-and-publish (push) Failing after 0s
CI / build-and-publish (push) Failing after 0s
This commit was merged in pull request #90.
This commit is contained in:
commit
08b152fb66
11 files changed
+211
-6
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -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
|
||||
@@ -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, <first name>. 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, <first name>. 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
|
||||
@@ -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/<code>`. 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/<code>` 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 <time>". It SHALL never show the buyer's details, the attendee's mobile or email, or other tickets.
|
||||
|
||||
#### Scenario: Valid ticket
|
||||
|
||||
- **GIVEN** the ticket of `Tan Mei Ling` for `KL Hotel Tech Day` is valid
|
||||
- **WHEN** she opens its link
|
||||
- **THEN** the page shows the event, `General`, `Tan` and the QR image
|
||||
|
||||
### Requirement: Invalid Ticket Links
|
||||
|
||||
A ticket whose order is not Paid, or which is cancelled, SHALL show "This ticket is not valid" with no QR. An unknown code SHALL show "This ticket link is not valid." and nothing else.
|
||||
|
||||
#### Scenario: Cancelled ticket
|
||||
|
||||
- **GIVEN** a Paid order's ticket was cancelled by staff
|
||||
- **WHEN** someone opens that ticket's link
|
||||
- **THEN** the page says the ticket is not valid and shows no QR
|
||||
|
||||
#### Scenario: Unknown link
|
||||
|
||||
- **WHEN** a visitor opens `/t/` with an unknown code
|
||||
- **THEN** the page says the ticket link is not valid
|
||||
|
||||
### Requirement: Tickets On The Order Page
|
||||
|
||||
Once an order is Paid, its order page SHALL list each active ticket with its type, attendee name (or "Not named yet"), state and ticket link. It SHALL NOT show any attendee's mobile or email.
|
||||
|
||||
#### Scenario: Paid order page
|
||||
|
||||
- **GIVEN** order `T-7K3M9Q` is Paid with 2 tickets, one named `Tan Mei Ling`
|
||||
- **WHEN** the buyer opens its link
|
||||
- **THEN** the page lists both tickets with their links, `Tan Mei Ling` and "Not named yet", without Tan's email
|
||||
|
||||
### Requirement: Naming Attendees
|
||||
|
||||
On a Paid order's page, the buyer SHALL be able to name or rename the attendee of each ticket on its own: a name of up to 100 characters and a mobile or an email, normalised as in QR registration. The save SHALL need the tick "I have permission to share these details so their ticket can be sent"; without it the save SHALL be refused with "Tick the box to confirm you may share these details."
|
||||
|
||||
#### Scenario: Permission not ticked
|
||||
|
||||
- **WHEN** the buyer saves an attendee without the permission tick
|
||||
- **THEN** the save is refused and nothing changes
|
||||
|
||||
### Requirement: Naming Effects
|
||||
|
||||
Saving an attendee SHALL replace the ticket's code, so the old link becomes unknown. It SHALL record the naming time, clear any earlier attendee consent and lead link on that ticket, and email the new attendee their ticket when an email was given.
|
||||
|
||||
#### Scenario: Name an attendee
|
||||
|
||||
- **GIVEN** `Aisyah`'s order `T-7K3M9Q` is Paid with 2 unnamed tickets
|
||||
- **WHEN** she names `Tan Mei Ling`, `tan@example.com`, on the first ticket and ticks the permission
|
||||
- **THEN** that ticket shows `Tan Mei Ling` with a new link
|
||||
- **AND** Tan receives the ticket email
|
||||
- **AND** the old link of that ticket says the ticket link is not valid
|
||||
|
||||
### Requirement: Naming Refusals
|
||||
|
||||
Naming SHALL be refused for a ticket that is checked in ("This ticket is already checked in."), cancelled, or on an order that is not Paid.
|
||||
|
||||
#### Scenario: Checked-in ticket
|
||||
|
||||
- **GIVEN** a ticket is checked in
|
||||
- **WHEN** the buyer tries to rename its attendee
|
||||
- **THEN** the save is refused with "This ticket is already checked in."
|
||||
|
||||
### Requirement: Attendee Is Not A Lead Without Consent
|
||||
|
||||
A named attendee SHALL NOT be an event lead, and SHALL NOT appear in event leads, lead lists, exports or the dashboard, until they consent themselves. Their details SHALL be used only to deliver and check the ticket. An attendee who never consents SHALL still be able to attend.
|
||||
|
||||
#### Scenario: Attendee never opts in
|
||||
|
||||
- **GIVEN** `Lim Wei` was named on a Paid ticket and never ticked the consent
|
||||
- **WHEN** staff open the event leads listing
|
||||
- **THEN** Lim does not appear
|
||||
|
||||
### Requirement: Attendee Consent
|
||||
|
||||
A valid ticket's page SHALL offer an optional "Keep me updated about <company> events" with the company's privacy notice in English and Bahasa Malaysia. Ticking it SHALL record the consent time and notice version on the ticket. It SHALL capture the attendee as an event lead with source `TICKET` and no salesperson, matched and normalised as in QR registration, and link the ticket to that event lead.
|
||||
|
||||
#### Scenario: Attendee opts in
|
||||
|
||||
- **GIVEN** `Tan Mei Ling` was named on a valid ticket
|
||||
- **WHEN** she ticks "Keep me updated about INS events" on her ticket page
|
||||
- **THEN** she is an event lead of `KL Hotel Tech Day` with source Ticket
|
||||
|
||||
### Requirement: Ticket Email
|
||||
|
||||
A named attendee with an email SHALL get a Ticket email in English and Bahasa Malaysia. It SHALL hold the event name, dates and location, the ticket type, the attendee name, the QR image, and the ticket link, which also offers the consent. The QR image SHALL be a PNG of the ticket link served at `/api/public/tickets/<code>/qr.png`. Each email SHALL be recorded in Emails, and a failed send SHALL NOT undo the naming.
|
||||
|
||||
#### Scenario: Ticket email
|
||||
|
||||
- **WHEN** the buyer names `Tan Mei Ling`, `tan@example.com`
|
||||
- **THEN** Tan receives an email with the QR image and her ticket link
|
||||
|
||||
### Requirement: Staff Ticket View
|
||||
|
||||
On the ticket page, a signed-in user with `BO_EVENTS` in the event's company (any company for super admins) SHALL see the staff view: the ticket's state as a large banner and, for a valid ticket that is not checked in, **Check in**. An unnamed ticket SHALL first ask for the attendee's name and a mobile or email. The staff view SHALL offer the same optional consent as the ticket page. Everyone else SHALL see only the public view.
|
||||
|
||||
#### Scenario: Another company's staff
|
||||
|
||||
- **WHEN** CV staff open a ticket of an INS event
|
||||
- **THEN** they see only the public view
|
||||
|
||||
### Requirement: Door Check-In
|
||||
|
||||
Check-in from the staff view SHALL record the time and the staff user on the ticket, and SHALL be written to the admin audit log. When the attendee has consented, now or earlier, their event lead SHALL be marked attended. An unnamed ticket SHALL take the name and contact entered by staff, normalised as in QR registration.
|
||||
|
||||
#### Scenario: Staff check in a named ticket
|
||||
|
||||
- **GIVEN** `Tan Mei Ling`'s ticket is valid and it is the event day
|
||||
- **WHEN** event staff scan her QR and tap Check in
|
||||
- **THEN** the ticket is checked in with their name and the time
|
||||
|
||||
#### Scenario: Unnamed ticket at the door
|
||||
|
||||
- **GIVEN** a valid ticket was never named
|
||||
- **WHEN** staff enter `Lim Wei` and his mobile and tap Check in
|
||||
- **THEN** the ticket is checked in with Lim as its attendee
|
||||
- **AND** no lead is created unless he ticked the consent
|
||||
|
||||
### Requirement: Door Check-In Refusals
|
||||
|
||||
Check-in SHALL change nothing and the staff view SHALL show:
|
||||
|
||||
- "Already checked in at <time>" for a checked-in ticket;
|
||||
- a red "Not valid: <reason>" banner for an invalid ticket, the reason being "awaiting payment", "order cancelled", "order expired" or "ticket cancelled";
|
||||
- "Check-in is only open on the event days." outside the event days.
|
||||
|
||||
#### Scenario: Second scan
|
||||
|
||||
- **WHEN** staff scan a checked-in ticket again
|
||||
- **THEN** the page shows "Already checked in at" the first time and nothing changes
|
||||
|
||||
#### Scenario: Unpaid ticket at the door
|
||||
|
||||
- **GIVEN** an order is Awaiting payment
|
||||
- **WHEN** staff open one of its ticket links
|
||||
- **THEN** the page shows "Not valid: awaiting payment" and no Check in button
|
||||
|
||||
### Requirement: Resend Ticket
|
||||
|
||||
Users with `BO_EVENT_TICKETS` SHALL be able to resend one valid ticket from the order detail. It SHALL go to its attendee's email when named with an email, otherwise to the buyer. The action SHALL be written to the admin audit log.
|
||||
|
||||
#### Scenario: Resend a ticket
|
||||
|
||||
- **GIVEN** a valid ticket is named `Tan Mei Ling`, `tan@example.com`
|
||||
- **WHEN** staff resend that ticket
|
||||
- **THEN** Tan receives the ticket email again
|
||||
|
||||
### Requirement: Ticket Abuse Limits
|
||||
|
||||
The public ticket page and its QR image SHALL be limited to 120 loads per client IP per 10 minutes. Naming attendees and attendee consent SHALL be limited to 60 submissions per client IP per event per 10 minutes. Above a limit the answer SHALL be "Too many requests from this device. Try again later." The QR image SHALL be served only for a valid code.
|
||||
|
||||
#### Scenario: Too many ticket loads
|
||||
|
||||
- **WHEN** one IP loads ticket pages 121 times within 10 minutes
|
||||
- **THEN** the 121st is refused with "Too many requests from this device. Try again later."
|
||||
Reference in new issue
Block a user