Three attendee-app polish items from hands-on testing (Sabrina). All presentation-layer: no migration, no RPC, no admin/sidecar change. - Session detail collapsed multi-paragraph descriptions into one block. The feed carries real newlines (the sidecar passes Sessionize description through untouched), so this was pure CSS: new .sd-desc uses white-space: pre-line. The AI feedback summary gets the same via .feedback-review .fr-text. - Staff saw "Your session feedback" on Break/Lunch cards, because _assign_service_session_speakers makes every staff member a speaker of every service slot. showFeedback = !isService now gates all three feedback surfaces (review block, Give-feedback button, "not checked in" note). The sheet itself stays openable for service sessions. - Removed the "Demo clock" badge from the Home header. The simulated clock is an internal demo aid; attendees were never meant to see it. useEvent() still exposes clockMode and the admin toggle is unchanged. Tests: three new API-mocked cases in convivo-admin-entry.spec.ts (service feedback suppression, multi-line description via pre-line CSS + exact textContent + rendered-height comparison, no demo-clock badge per clock mode). 45/45 green against the local dev server; attendee build clean. Docs synced: screens.md, app-structure.md, backend/tests.md, next-steps.md, plus a release record at docs/releases/2026-10-18.md noting that items 1/3/7 of the report were already shipped (84d3922,2aa2b89) and that this change is not yet deployed. Co-authored-by: Stephan Charles <[email protected]> Co-authored-by: Amelia Hernandez <[email protected]> Co-authored-by: Markus Franz <[email protected]> Co-authored-by: Sabrina Hota <[email protected]> Co-authored-by: Nilüfer Doğan <[email protected]>
Backend — Supabase Core
Convivo uses a local Supabase stack (run with the Supabase CLI) for its schema, RPCs and RLS, plus a Node sidecar for imports, reports and manual feedback AI summaries. This folder documents both the database core and those integrations.
| File | What it covers |
|---|---|
| supabase-core.md | The local stack: containers, ports, how to start/reset, config |
| schema.md | All 14 tables, columns, constraints, indexes |
| rpcs.md | The transactional points RPCs (the business logic) |
| rls.md | Row Level Security policies + which key the app uses |
| seed.md | Seed data + the demo accounts |
| docker.md | Docker: the app image + root compose (how the core + app run together) |
| sidecar.md | The Sessionize sync sidecar (on-demand, service-role) |
| feedback-ai.md | Admin-configured LLM endpoint and manual event/session feedback summaries |
| tests.md | The RPC test suite (npm run test:rpc) |
The big picture
Postgres 17 ── schema (14 tables, multi-event model)
── RLS (who can read/write what)
── RPCs (security definer, transactional points logic)
── seed (demo data)
- Data + logic live in the database. The app never computes points or writes
to
registrations.pointsdirectly — it calls RPCs, and Postgres enforces the rules. - RLS is the security boundary. The app uses the anon key + the user's session JWT; RLS decides what that user may see and do. The service-role key is never shipped to the app. See rls.md.
- Points are transactional. Each RPC updates points, inserts the related row,
and re-syncs the
leaderboardmirror in one transaction, so the leaderboard is always consistent and duplicate actions never double-award. See rpcs.md.
Source of truth
- Schema + RPCs + RLS (the Redesign, current):
supabase/migrations/20260824000000_redesign.sql - Earlier migrations (still applied, then replaced by the Redesign):
20260822000000_init.sqland20260823000000_admin_app.sql - Seed:
supabase/seed.sql - Stack config:
supabase/config.toml