Files
co-lite/openspec/changes/add-qr-self-registration/proposal.md
T

2.4 KiB

Why

Co-Lite is a lead-generation system for INS and CV (the owner dropped the member app on 2026-12-01). At events, staff type every visitor in by hand. Walk-in visitors should scan a QR code, register themselves, and land in Event Leads and the dashboard, credited to the salesperson whose code they scanned. Approved design: docs/superpowers/specs/2026-12-01-qr-self-registration-design.md.

What Changes

  • A public, phone-first registration page /r/<token> on the admin portal. It shows the event's details, a short form and a bilingual PDPA consent, and every successful submit gets the same thank-you page.
  • A registration links to an existing lead without editing it (differences go to the event lead's notes), or creates a new lead. It creates an OPEN event lead with source = QR and the consent record.
  • Registration codes: one per event and one per salesperson per event. Staff with BO_EVENTS see, download, copy and switch off codes on the event page. Every staff user sees their own codes on a new "My QR codes" page.
  • Each company's privacy notice is versioned and edited by super admins on the Companies page. INS and CV are seeded with a default English and Bahasa Malaysia notice. A company without a notice has no working codes.
  • Abuse limits: per IP per event for submissions and per IP for page loads, plus a honeypot field.
  • The admin portal gains qrcode.react (already used by babyboo's portal) to draw the codes.
  • dynamic-qr: no code integration. An admin may paste a Co-Lite link into dynamic-qr's console for a repointable printed code.

Capabilities

New Capabilities

  • qr-registration: registration codes, the public registration page and its rules, consent and privacy notices, and abuse limits.

Modified Capabilities

Impact

  • service-counter: new table registration_link; event_lead gains source, consent_at and consent_notice_id.
  • service-system: new table company_privacy_notice, seeded for INS and CV.
  • solvway-services-counter, solvway-services-system, solvway-mobile-api (public /api/public/registration/**, admin link and notice endpoints), solvway-admin-portal (public route outside the admin sign-in guard, event QR section, My QR codes, Companies notice).
  • New public, unauthenticated surface: covered by the abuse limits and the anti-goals in the design.
  • docs/deployment.md: the SQL, and a note that the default notice must be reviewed.