Files
ngqileandClaude Opus 5.5 2c6a4dc8ce docs: archive whatsapp-inbox, zh-cn-messages, messages-colite-filter and landing-pages
The owner deferred the WhatsApp e2e (add-whatsapp-inbox task 6.3) until the
business account can be linked; the task stays open with a note. Specs are
synced and the new capabilities have their Purpose written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
2026-12-02 16:58:47 +08:00

6.9 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_EVENTS opens KL 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 Expo starts 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. 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.

Scenario: Registered guest checks in

  • GIVEN Tan Mei Ling registered by invitation for KL Expo
  • WHEN she enters 012-555 0101 on the check-in page on the event day
  • THEN the page welcomes Tan and her event lead is attended
  • AND the guest list shows her as Attended

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.

Scenario: Invited but not registered

  • GIVEN Lim Wei is 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

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 Ling is 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 Expo starts 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 Wei is Invited to KL Expo
  • WHEN staff capture Lim Wei with 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: the number of guests, against the invitation cap when set;
  • registered: guests linked to an event lead;
  • attended: attended event leads;
  • walk-ins: event leads not linked to a guest;
  • total: registered guests plus walk-ins, against capacity when set.

The numbers SHALL agree with the guest list and the event leads listing. A total above capacity SHALL be shown, not hidden.

Scenario: Numbers

  • GIVEN KL Expo has 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

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