docs: archive add-event-invitations
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
1 parent
d91c9a94d0
commit
0451bc90dd
13 files changed
+367
No files matched your search
@@ -0,0 +1,132 @@
|
||||
# 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 <start date>". 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, <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.
|
||||
|
||||
#### 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
|
||||
|
||||
### 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 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. 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
|
||||
|
||||
### 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).
|
||||
|
||||
#### Scenario: Staff untick
|
||||
|
||||
- **WHEN** staff untick Attended on an event lead linked to a guest
|
||||
- **THEN** the guest list shows that guest as Registered
|
||||
|
||||
### 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
|
||||
@@ -0,0 +1,192 @@
|
||||
# event-invitations Specification
|
||||
|
||||
## Purpose
|
||||
|
||||
Admins invite named guests to an event before it happens, each with a personal invite link, and see who registered, against an optional invitation cap and event capacity.
|
||||
|
||||
## Requirements
|
||||
|
||||
### Requirement: Event capacity and invitation cap
|
||||
|
||||
An event SHALL have an optional max capacity and an optional invitation cap. Each SHALL be empty or a whole number of at least 1. Only users with `BO_EVENT_GUESTS` SHALL set them. Every user who can open the event SHALL see them.
|
||||
|
||||
#### Scenario: Set both
|
||||
|
||||
- **GIVEN** a user with `BO_EVENTS` and `BO_EVENT_GUESTS`
|
||||
- **WHEN** they set capacity `200` and invitation cap `150` on `KL Expo`
|
||||
- **THEN** the event shows capacity 200 and cap 150
|
||||
|
||||
#### Scenario: Without the guests module
|
||||
|
||||
- **GIVEN** a user with `BO_EVENTS` only
|
||||
- **WHEN** they open `KL Expo`
|
||||
- **THEN** they see capacity and cap but cannot change them
|
||||
|
||||
### Requirement: Guest list
|
||||
|
||||
Each event SHALL have a guest list, kept separate from its event leads. A guest SHALL have a name (required), a mobile and an email (at least one of the two), an optional company and an optional salesperson from the event team. Inputs SHALL be normalised and limited as in staff capture. A guest SHALL NOT appear in event leads, lead listings or the dashboard until registered.
|
||||
|
||||
#### Scenario: Add a guest
|
||||
|
||||
- **WHEN** an admin adds guest `Tan Mei Ling` with mobile `012-555 0101` to `KL Expo`
|
||||
- **THEN** the guest list shows `Tan Mei Ling` as Invited
|
||||
- **AND** the event's leads do not include her
|
||||
|
||||
### Requirement: Guest duplicates
|
||||
|
||||
A mobile or email already on the event's guest list SHALL be refused with a message naming the existing guest.
|
||||
|
||||
#### Scenario: Duplicate refused
|
||||
|
||||
- **GIVEN** `Tan Mei Ling` with mobile `+60125550101` is on the list
|
||||
- **WHEN** an admin adds another guest with mobile `0125550101`
|
||||
- **THEN** it is refused with a message naming `Tan Mei Ling`
|
||||
|
||||
### Requirement: Adding guests by paste
|
||||
|
||||
Users with `BO_EVENT_GUESTS` SHALL add guests one at a time or by pasting a list of lines `name, mobile, email, company`. A pasted list SHALL show a preview with per-line errors and save only the valid lines.
|
||||
|
||||
#### Scenario: Paste with errors
|
||||
|
||||
- **WHEN** an admin pastes three lines, one of which has neither mobile nor email
|
||||
- **THEN** the preview marks that line with its error
|
||||
- **AND** saving adds the other two guests only
|
||||
|
||||
### Requirement: Invitation cap enforcement
|
||||
|
||||
When an event has an invitation cap, the number of guests on its list SHALL NOT exceed it. Adding a guest beyond the cap SHALL be refused with "Invitation cap reached (N)". A pasted list SHALL save valid lines only up to the cap and report the lines left out. Lowering the cap below the current number of guests SHALL be refused.
|
||||
|
||||
#### Scenario: Cap reached
|
||||
|
||||
- **GIVEN** `KL Expo` has cap 2 and two guests
|
||||
- **WHEN** an admin adds a third guest
|
||||
- **THEN** it is refused with "Invitation cap reached (2)"
|
||||
|
||||
#### Scenario: Lower the cap too far
|
||||
|
||||
- **GIVEN** `KL Expo` has five guests
|
||||
- **WHEN** an admin sets the cap to 4
|
||||
- **THEN** the change is refused
|
||||
|
||||
### Requirement: Guest removal
|
||||
|
||||
A user with `BO_EVENT_GUESTS` SHALL be able to remove a guest who is only Invited. A guest who has registered or attended SHALL NOT be removable from the guest list.
|
||||
|
||||
#### Scenario: Remove an invited guest
|
||||
|
||||
- **WHEN** an admin removes an Invited guest
|
||||
- **THEN** the guest is gone and their invite link shows that it is no longer active
|
||||
|
||||
#### Scenario: Registered guest stays
|
||||
|
||||
- **GIVEN** `Tan Mei Ling` has registered
|
||||
- **THEN** no remove action is offered for her
|
||||
|
||||
### Requirement: Invite links
|
||||
|
||||
Every guest SHALL have a personal invite link of the form `/i/<token>` with an unguessable token. Copying a guest's link SHALL be available to users with `BO_EVENT_GUESTS`. An invite link SHALL work only while:
|
||||
|
||||
- the guest is on the list;
|
||||
- the event is enabled;
|
||||
- the event's end date in Malaysia time has not passed;
|
||||
- the event's company has a privacy notice.
|
||||
|
||||
Otherwise it SHALL show "This invitation is no longer active." and no event details.
|
||||
|
||||
#### Scenario: Copy a link
|
||||
|
||||
- **WHEN** an admin copies the invite link of `Tan Mei Ling`
|
||||
- **THEN** the clipboard holds her `/i/<token>` link
|
||||
|
||||
#### Scenario: Ended event
|
||||
|
||||
- **GIVEN** `Penang Fair` ended yesterday
|
||||
- **WHEN** a guest opens their invite link
|
||||
- **THEN** the page says the invitation is no longer active
|
||||
|
||||
### Requirement: Invite email
|
||||
|
||||
A user with `BO_EVENT_GUESTS` SHALL be able to send an invite email to one guest who has an email, or to every guest with an email who has not been sent one yet. The email SHALL be in English and Bahasa Malaysia and SHALL carry the event's name, dates and location and the guest's invite link. Values from the event and guest SHALL be escaped as text, never as markup. A guest with no email SHALL offer copy link only.
|
||||
|
||||
#### Scenario: Send to all not yet sent
|
||||
|
||||
- **GIVEN** three guests with an email, one already sent
|
||||
- **WHEN** an admin chooses send to all not yet sent
|
||||
- **THEN** two emails are saved
|
||||
|
||||
### Requirement: Invite sending record
|
||||
|
||||
Sending SHALL record that the guest was invited and how many times an invite was sent. The email SHALL belong to the event's company, so that company's users with Emails can see it.
|
||||
|
||||
#### Scenario: Send to one
|
||||
|
||||
- **WHEN** an admin sends an invite to `Tan Mei Ling`, who has an email
|
||||
- **THEN** an email to her address with her invite link is saved by the email service
|
||||
- **AND** her invite sent count is 1
|
||||
|
||||
### Requirement: Invite page
|
||||
|
||||
The invite page SHALL show "You're invited to <event>" with the event's name, dates and location. Its form SHALL be filled in with the guest's name, mobile, email and company, which the guest may correct. It SHALL offer the company's active interests and the privacy notice consent (required), as on the QR page.
|
||||
|
||||
#### Scenario: Prefilled form
|
||||
|
||||
- **WHEN** `Tan Mei Ling` opens her invite link before the event
|
||||
- **THEN** the form shows her name and mobile, and the consent unticked
|
||||
|
||||
### Requirement: Registration by invitation
|
||||
|
||||
An accepted invite submission SHALL register the guest with the same normalisation, limits, matching and existing-lead rules as QR registration. The resulting event lead SHALL have source `INVITE` and the guest's salesperson. The guest SHALL become Registered and be linked to that event lead. Submitting again SHALL change nothing and SHALL show the same thank-you page.
|
||||
|
||||
#### Scenario: Guest registers
|
||||
|
||||
- **WHEN** `Tan Mei Ling` opens her invite link, ticks the consent and submits
|
||||
- **THEN** the thank-you page names `KL Expo`
|
||||
- **AND** she is Registered on the guest list
|
||||
- **AND** an event lead with source INVITE exists for her
|
||||
|
||||
#### Scenario: Guest already a lead elsewhere
|
||||
|
||||
- **GIVEN** `Tan Mei Ling` is an existing lead with a different job title
|
||||
- **WHEN** she registers by invitation with a new job title
|
||||
- **THEN** her lead is not edited and the new job title is in the event lead's notes
|
||||
|
||||
### Requirement: Capacity before the event
|
||||
|
||||
When an event has a capacity, invite registrations SHALL be refused before the event days once the number of registered guests plus walk-in event leads reaches it. A refused registration SHALL show "This event is full". On the event days (Malaysia, from the start date through the end date) no registration or check-in SHALL be refused for capacity. Staff capture SHALL never be refused for capacity.
|
||||
|
||||
#### Scenario: Full before the event
|
||||
|
||||
- **GIVEN** `KL Expo` starts next week, has capacity 2, and two registered guests
|
||||
- **WHEN** a third guest submits their invite
|
||||
- **THEN** the page says the event is full and nothing is saved
|
||||
|
||||
#### Scenario: Not refused on the day
|
||||
|
||||
- **GIVEN** the same event on its first day
|
||||
- **WHEN** the third guest submits their invite
|
||||
- **THEN** they are registered
|
||||
|
||||
### Requirement: Guest list access
|
||||
|
||||
Users with `BO_EVENTS` SHALL see an event's guest list with each guest's status, invite sent count and salesperson. Only users with `BO_EVENT_GUESTS` SHALL add, paste, remove, copy links for or send invites to guests. Guest endpoints SHALL apply the company scope as everywhere: staff only reach their company's events.
|
||||
|
||||
#### Scenario: Read only
|
||||
|
||||
- **GIVEN** a user with `BO_EVENTS` but not `BO_EVENT_GUESTS`
|
||||
- **WHEN** they open `KL Expo`
|
||||
- **THEN** they see the guests and their statuses without any guest actions
|
||||
|
||||
#### Scenario: Other company
|
||||
|
||||
- **GIVEN** a CV staff user with both modules
|
||||
- **WHEN** they call the guest endpoints of an INS event
|
||||
- **THEN** the answer is not found
|
||||
|
||||
### Requirement: Invite abuse limits
|
||||
|
||||
The public invite endpoints SHALL apply the QR page's limits: 120 page loads per IP per 10 minutes and 60 submissions per IP per event per 10 minutes, answering "Too many attempts. Try again later." beyond them. The IP SHALL be determined as on the QR page.
|
||||
|
||||
#### Scenario: Too many submissions
|
||||
|
||||
- **WHEN** one IP submits a 61st invite registration for `KL Expo` within 10 minutes
|
||||
- **THEN** it is refused as too many
|
||||
@@ -131,3 +131,46 @@ The system SHALL accept at most 60 registrations per client IP per event in 10 m
|
||||
|
||||
- **WHEN** a submission fills the hidden field
|
||||
- **THEN** the thank-you page shows and no lead or event lead is saved
|
||||
|
||||
### Requirement: Sharing personal walk-in codes
|
||||
|
||||
On My QR codes, each code SHALL offer:
|
||||
|
||||
- Share: opens the device's share sheet with the link and a short message, or copies them where the device has no share sheet;
|
||||
- Show full screen: shows the QR as large as the screen allows, on a plain background.
|
||||
|
||||
After sign-in, a user with a personal code for an event they joined in the last 7 days SHALL see a notice that links to My QR codes.
|
||||
|
||||
#### Scenario: Share from a phone
|
||||
|
||||
- **WHEN** `sales1` presses Share on their `KL Expo` code on a phone
|
||||
- **THEN** the phone's share sheet opens with the registration link
|
||||
|
||||
#### Scenario: Full screen at the booth
|
||||
|
||||
- **WHEN** `sales1` presses Show full screen
|
||||
- **THEN** only the QR is shown, filling the screen
|
||||
|
||||
#### Scenario: New code notice
|
||||
|
||||
- **GIVEN** `sales1` was added to the team of `KL Expo` yesterday
|
||||
- **WHEN** `sales1` signs in
|
||||
- **THEN** a notice links to My QR codes
|
||||
|
||||
### Requirement: Printing event codes
|
||||
|
||||
On the event page, users with `BO_EVENTS` SHALL have:
|
||||
|
||||
- Print cards: opens a print-ready page with one card per team member (name, event name and dates, QR and link), plus the event code and the check-in code;
|
||||
- Copy all links: copies one line per code, as `name: link`.
|
||||
|
||||
#### Scenario: Print cards
|
||||
|
||||
- **GIVEN** `KL Expo` has three team members
|
||||
- **WHEN** an admin presses Print cards
|
||||
- **THEN** the print page shows three member cards plus the event and check-in codes
|
||||
|
||||
#### Scenario: Copy all links
|
||||
|
||||
- **WHEN** an admin presses Copy all links on `KL Expo`
|
||||
- **THEN** the clipboard holds one `name: link` line per code
|
||||
Reference in new issue
Block a user