The front-desk check-in set checked_in and printed badges but awarded nothing, so the +10 depended on which check-in a person happened to get. Every award path was reviewed: - welcome_checkin awards +10 (category checkin) on a genuine first check-in and returns points + points_awarded; checkin_attendee and preview_welcome_checkin return points_awarded too. - set_registration_checked_in(false) deleted all checkin points while keeping the checkins rows, and switching back on awarded nothing -- one mistaken toggle destroyed those points permanently. ON now recomputes from the rows that still exist and awards only the shortfall: reversible, still unfarmable. - The staff/Admin/@appe.at exclusion stays (product decision) but is no longer silent: three-way points sheets in the scanner, "no points" with a tooltip in Registrations, and the Contacts points modal refuses to apply rather than letting adjust_points (void) no-op quietly. Also in this change: - admin silent refresh (5s poll + 500ms after writes) across all data views; Registrations patches in place so rows never slide under the cursor - Settings "Validate AI connection" via a new sidecar POST /llm-test verdict endpoint (never leaks the key, distinguishes "no usage block" from "off") - new Sessions view between Schedule and Activity: speakers, attendance, ratings, attendee filter, and one button that summarises every session with feedback (one request each, concurrency 3, UI blocked until all settle) - provider requests disable thinking through one shared body builder sending both reasoning_effort:"none" and chat_template_kwargs.enable_thinking SQL: 113 / 57 / 24 assertions (set_registration_checked_in section 3 was rewritten, it asserted the bug). Sidecar 34 unit tests. Full e2e 202 passed, 0 failed. Migration applied locally only -- not deployed.
Convivo E2E Acceptance Suite
Playwright-based end-to-end acceptance tests for the Convivo application, covering all four roles (Staff, Attendee, Speaker, Sponsor) across the full spec (CONV-STAFF-AUTH-001 → CONV-E2E-002).
Running
cd e2e
npm install # first time
npx playwright install chromium # first time
npx playwright test # full suite
npx playwright test <name> # a subset (e.g. `feedback`, `sponsor`)
npx playwright show-report reports/html
The suite runs against the live local stack (app :3000, Kong :54321, Postgres
container supabase_db_Convivo). Every test resets the relevant backend state
first (see src/helpers/reset.ts), so the suite is self-contained and
re-runnable.
Layout
playwright.config.ts— workers=1, 90s timeout, trace/screenshot/video on failure, HTML report toreports/html.src/helpers/—config(identities, session ids),db(psql assertions),api(PostgREST/Auth client for backend authorization checks),reset(state reset + temporary-identity setup),auth(login flows),multi(isolated per-user browser contexts).src/pages/— page objects (App, Home, Agenda, Scan, Connections, Profile, Feedback).tests/— the spec cases, grouped by feature.
Design decisions
- Isolated BrowserContext per user — multi-user tests (real-time gate lift, connections, E2E journeys) create one context per participant so sessions never leak and real-time behaviour is observed naturally.
- Backend state validation — assertions read the resulting persisted state through a psql helper (spec §40), not just UI toasts. Authorization cases call the RPC as a specific user (via their JWT) to prove the backend enforces the rule, not just the frontend (spec §30/§39).
- Stable
data-testidselectors — the app was instrumented with testids so the suite is resilient to copy/label changes. - Real-time = 4s polling — the app lifts the check-in gate via a 4s poll (not Supabase Realtime); the real-time tests wait for that poll to fire.
Results
44/44 passing (3.3 min, single worker).
| Area | Cases | Status |
|---|---|---|
| Staff auth | CONV-STAFF-AUTH-001..005 | ✅ |
| Staff UI | CONV-STAFF-UI-001 | ✅ |
| Welcome check-in + attendee access | CONV-CHECKIN-001..002, CONV-ATT-AUTH-001..003 | ✅ |
| Connections | CONV-CONN-001..008 | ✅ |
| Session check-in | CONV-SESSION-001..003 | ✅ |
| Profile visibility | CONV-PROFILE-001..005 | ✅ |
| Speaker + material | CONV-SPEAKER-001, CONV-MATERIAL-001..004 | ✅ |
| Sponsor | CONV-SPONSOR-001 | ✅ |
| Feedback | CONV-FEEDBACK-001..005 | ✅ |
| E2E journeys | CONV-E2E-001..002 | ✅ |
| Role security matrix | §39 (welcome/session check-in, material, feedback) | ✅ |
Findings
- Speakers have NULL
qr_tokenin the seed — the reset helper assignsCVV-SPK-9001and re-hashes the auth password so the speaker can log in. - No sponsors exist in the seed — the reset helper creates one
(
[email protected]/CVV-SPO-9001). - Real-time is 4s polling, not Supabase Realtime — the gate lift and
check-in activation are driven by a 4s poll in
App.tsx. create_connection_requestis idempotent — re-requesting an existing connection returns the existing row rather than erroring.- GoTrue 500s on NULL
auth.userstoken columns — newly created auth users must setconfirmation_token,email_change_token_new,email_change,recovery_token,reauthentication_token,phone_change_tokento''(empty string, not NULL) or the login endpoint returns a 500. - The speaker has 2 sessions — so the pending-material pill shows a count (not 0) even after uploading one session's material; tests assert the count decreases by exactly 1.