Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
9.1 KiB
event-attendance Specification
Purpose
Record who actually came to an event, through self check-in at the venue and capture during the event days, and show an event's invited, registered, attended and walk-in numbers against its capacity.
Requirements
Requirement: Check-in code
Every event SHALL have one check-in code, a link of the form /c/<token> with an unguessable token. Users with BO_EVENTS SHALL see it on the event page as a QR image, with copy link and image download, for printing at the entrance.
Scenario: Code on the event page
- WHEN a user with
BO_EVENTSopensKL Expo - THEN the page shows the check-in QR with copy link and download
Requirement: Check-in code availability
The check-in code SHALL work only on the event days (Malaysia, from the start date through the end date), while the event is enabled and its company has a privacy notice. Before the event it SHALL show "Check-in opens on ". After the event it SHALL show "This event has ended." An unknown token or a disabled event SHALL show "This code is no longer active." None of these pages SHALL show any other event details.
Scenario: Before the event
- GIVEN
KL Expostarts tomorrow - WHEN a visitor opens its check-in link
- THEN the page says check-in opens on the start date
Scenario: On the day
- GIVEN today is the first day of
KL Expo - WHEN a visitor opens its check-in link
- THEN the page asks for a mobile or email
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. 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
- GIVEN
Tan Mei Lingregistered by invitation forKL Expo - WHEN she enters
012-555 0101on the check-in page on the event day - THEN the page welcomes
Tanand her event lead is attended - AND the guest list shows her as Attended
Requirement: Self check-in of a walk-in
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
- GIVEN
Lim Weiis Invited but never registered - WHEN he enters his mobile on the check-in page
- THEN a blank walk-in form with the consent is shown, not his details
- AND after he submits, he is Attended on the guest list
Scenario: Unknown walk-in
- WHEN a visitor whose mobile matches no one enters it and submits the walk-in form
- THEN an event lead is captured for them and marked attended
Requirement: Check-in by invite link
On the event days, a registered guest's invite link SHALL show a "Check in" button instead of the registration form. Pressing it SHALL mark the guest's event lead attended and show the checked-in page.
Scenario: Check in from the email
- GIVEN
Tan Mei Lingis registered and today is an event day - WHEN she opens her invite link and presses Check in
- THEN she is Attended
Requirement: Attendance at capture
Each event lead SHALL have an attended time. A staff capture, a walk-in code registration or a check-in-page capture made during the event days SHALL set it. A registration made before the event days SHALL NOT set it. A web page sign-up SHALL NOT set it, whenever it is made. Event leads that exist before this change SHALL count as not attended.
Scenario: Walk-in on the day
- GIVEN today is the first day of
KL Expo - WHEN staff capture a visitor at the booth
- THEN the event lead is attended
Scenario: Early QR registration
- GIVEN
KL Expostarts next week - WHEN a visitor registers through the event's walk-in code
- THEN the event lead is registered but not attended
Scenario: Web enquiry during a standing event
- GIVEN the running event
INS website enquiries - WHEN a visitor submits the form on a landing page that points at it
- THEN the event lead is registered but not attended
Requirement: Attendance in staff screens
Users who can edit event leads SHALL tick or untick Attended. The event leads listing SHALL show an Attended column and filter, and each event lead's source (Staff, QR, Invite, Web page).
Scenario: Staff untick
- WHEN staff untick Attended on an event lead linked to a guest
- THEN the guest list shows that guest as Registered
Scenario: Web page source
- GIVEN an event lead created by a landing-page form
- WHEN staff open the event leads listing
- THEN its source shows "Web page"
Requirement: Guest linking across routes
A guest's status SHALL be derived from the event lead it is linked to: Registered when linked, Attended when that event lead is attended. Whenever a capture for an event creates or finds an event lead, by staff, walk-in code, invite or check-in, an unlinked guest of the same event SHALL be linked to it. The guest is matched by mobile first, else by email. The guest then SHALL count as a guest, not as a walk-in.
Scenario: Guest captured by staff
- GIVEN
Lim Weiis Invited toKL Expo - WHEN staff capture
Lim Weiwith his mobile at the booth on the event day - THEN the guest list shows him as Attended
- AND he is not counted as a walk-in
Requirement: Event attendance numbers
The event page SHALL show invited guests (against the cap), registered guests, attended event leads, walk-ins (event leads linked to no guest and not created by a ticket order), held tickets (only when the event sells tickets), and a total of registered plus walk-ins plus held tickets (against capacity). The numbers SHALL agree with the guest list and event leads listing, and a total above capacity SHALL be shown.
Scenario: Numbers
- GIVEN
KL Expohas capacity 100, cap 50, 40 guests of whom 30 registered and 20 attended, plus 15 walk-ins of whom 15 attended - WHEN an admin opens the event page
- THEN the event page shows invited 40 of 50, registered 30, attended 35, walk-ins 15, total 45 of 100
Scenario: Ticket buyers are not walk-ins
- GIVEN
KL Hotel Tech Dayhas 2 walk-ins, and a buyer whose order holds 3 tickets - WHEN an admin opens the event page
- THEN the page shows walk-ins 2, held tickets 3, total 5
Requirement: Check-in abuse limits
The check-in endpoints SHALL allow at most 300 lookups and submissions per IP per event per 10 minutes, answering "Too many attempts. Try again later." beyond that. The IP SHALL be determined as on the QR page. The check-in page SHALL NOT count against the QR page-load limit.
Scenario: Door rush
- 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 Daysells tickets andLim Weiholds 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
Limand 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 Daysells 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 Dayhas 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