Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
61 lines
4.2 KiB
Markdown
61 lines
4.2 KiB
Markdown
# Proposal
|
|
|
|
## Why
|
|
|
|
To run an event end to end at go-live (2027-01-15), INS and CV need to:
|
|
|
|
- invite known people before the event;
|
|
- know who registered and who actually came;
|
|
- capture walk-ins on the day;
|
|
- compare these numbers with the event's capacity.
|
|
|
|
Today Co-Lite only captures leads. It cannot invite anyone, and it cannot tell a registration from an attendance. The approved product design is `docs/superpowers/specs/2026-12-01-event-invitations-attendance-design.md`.
|
|
|
|
## What Changes
|
|
|
|
- **Event settings:** each event gains two optional numbers, a max capacity and an invitation cap.
|
|
- **Guest list per event:** a named list of invited people, kept separate from event leads. Each guest:
|
|
- has a personal invite link;
|
|
- moves through Invited → Registered → Attended, with the status derived from the linked event lead.
|
|
- **Invite sending:** admins send each guest an invite email in English and Bahasa Malaysia through the existing email service. Each guest also has a copy-link action for sending by WhatsApp by hand.
|
|
- **Public invite page `/i/<token>`:** shows "You're invited", with the guest's details filled in and the privacy consent. Submitting registers the guest as an event lead with source `INVITE`. On the event days the page offers check-in instead.
|
|
- **Public check-in page `/c/<token>`:** one per event, open only on the event days.
|
|
- A guest or earlier registrant enters a mobile or email and is checked in.
|
|
- Anyone else fills in the walk-in form and is captured and checked in at once.
|
|
- The page never shows a guest's details back to the person typing.
|
|
- **Attendance on event leads:** a new attended time, set by check-in or by a capture made during the event days. Staff can tick or untick it, and listings can filter on it.
|
|
- **A matching guest is linked whatever the route.** When any capture creates or finds an event lead for the event, a guest of that event with the same mobile or email is linked to it.
|
|
- **Capacity:** reaching capacity stops invite registrations before the event days. Nothing is refused on the event days.
|
|
- **Numbers on the event page:** invited (against the cap), registered, attended, walk-ins, and total (against capacity).
|
|
- **Walk-in code distribution:**
|
|
- My QR codes gains a share button, a full-screen QR, and a notice about new codes.
|
|
- The event page gains a printable sheet of cards and a copy-all-links action.
|
|
- **New back-office module `BO_EVENT_GUESTS`:** only roles granted it can manage guests, send invites, and set capacity and the cap. Everyone with `BO_EVENTS` can see the guest list and the numbers.
|
|
- **Internal gateway:** opens exact method and path pairs for the new public endpoints, as the QR change did.
|
|
|
|
## Capabilities
|
|
|
|
### New Capabilities
|
|
|
|
- `event-invitations`: event capacity and invitation cap, the guest list, invite links and emails, and registration by invitation.
|
|
- `event-attendance`: the event check-in page, attended marks on event leads, guest linking across capture routes, and the event's attendance numbers.
|
|
|
|
### Modified Capabilities
|
|
|
|
- `qr-registration`: adds distribution of walk-in codes (share, full screen, new-code notice, printable cards, copy all). Walk-in registrations made during the event days count as attended. Existing requirements are unchanged.
|
|
|
|
## Impact
|
|
|
|
- **Data (services-counter):**
|
|
- new table `event_guest`;
|
|
- new columns `event.capacity` and `event.invitation_cap`;
|
|
- new column `event_lead.attended_at`;
|
|
- `event_lead.source` gains the value `INVITE`;
|
|
- check-in codes.
|
|
- **Data (services-system):** the new module row `BO_EVENT_GUESTS`.
|
|
- **services-counter:** guest, invite, check-in and attendance endpoints; changes to the staff and QR capture paths for attendance and guest linking.
|
|
- **mobile-api:** the admin guest endpoints and event fields, the public invite and check-in endpoints with rate limits, and the invite email.
|
|
- **api-gateway:** new public paths.
|
|
- **admin portal:** new pages and sections, including the public `/i/` and `/c/` pages, the Guests section, the numbers strip, the print sheet, the My QR codes additions, and the attended column and filter.
|
|
- **Deployment:** new SQL to run before the images go live. Invite emails are only saved until SMTP is configured.
|