Datamodel: - Move qr_token from contacts to registrations (per event); new migration 20260826000000. lanyard_lookup / create_connection_request / checkin_attendee resolve via registrations + active event. - reset_qr_token -> reset_registration_qr_token (fixes ambiguous 'email' col). - upsert_contact drops the token arg; create_registration generates + syncs it. - Pretix sync writes the token to the registration (keeps it on re-sync). Registration types: - Distinct pill colors; red reserved for Staff (both apps). - Roles capitalized everywhere (Attendee/Speaker/Sponsor/Staff); 'Attendee' hidden only at the Home footer. - Reset-token button moved from Contacts to Registrations (per registration). Sessions (APPE Admin): - Slot types capitalized; material submitted/not-submitted state. - Speaker selection = multi-select search dropdown. - Fix 'a session must have a speaker' on edit (diff-based setSessionSpeakers) and the file-upload bug (speaker save no longer aborts first). APPE Admin: - Sponsors contact lookup = search field (filter + pick). Convivo App: - Other people's QR codes hidden; connection detail sheet shows public info + points. - Connect red dot recalculates immediately on accept/decline/send. - 'My picks today' = 2 rows (current + next); 'tap to change' links to Agenda. Docs updated across backend + frontend.
Convivo — Documentation
Living documentation for Convivo — a conference networking app that turns a
conference into a game. This folder is the single source of truth for how the
system works; the root README.md is the quick-start.
Status: Phases 0–8 are complete and verified. The Redesign (Phases 3–6) is done: the new multi-event data model is live, the admin app is rebranded to APPE Admin, the Convivo App has all the new behaviors, and both apps carry the APPE branding. Phases 7–8 added the Pretix + Sessionize interfaces (sync RPCs,
sync-triggerEdge Function, mock API, APPE Admin Interfaces view). See the rootroadmap.mdand next-steps.md.
Where things live
| Topic | Read this |
|---|---|
| System overview, tech stack, data flows, ports | architecture.md |
| Backend (Supabase core) — overview | backend/README.md |
| Supabase local stack, ports, how it runs | backend/supabase-core.md |
| Database schema (all tables) | backend/schema.md |
| Transactional points RPCs (the business logic) | backend/rpcs.md |
| Row Level Security policies | backend/rls.md |
| Interfaces (Pretix + Sessionize sync) | backend/interfaces.md |
| Seed data + demo accounts | backend/seed.md |
| Docker (app image + compose) | backend/docker.md |
| Frontend — overview (both apps) | frontend/README.md |
| Attendee app: structure, state, contexts, routing | frontend/app-structure.md |
| Attendee app: every screen (Login, Home, Agenda, Scan, …) | frontend/screens.md |
| API client (how the app talks to Supabase) | frontend/api-client.md |
| Admin console (views, auth guard, QR reset, points, schedule) | frontend/admin-app.md |
| What's next (Redesign Phases 3–6 + later + open items) | next-steps.md |
Reading order
- New to the project? Start with architecture.md, then backend/README.md and frontend/README.md.
- Working on the database / points logic? Go to backend/schema.md → backend/rpcs.md → backend/rls.md.
- Working on the UI? Go to frontend/app-structure.md → frontend/screens.md → frontend/api-client.md. For the admin console, read frontend/admin-app.md.
- Planning the next phase? Read next-steps.md.
Conventions
- No duplication. Each fact lives in exactly one file; other files link to it with relative Markdown links. (e.g. the frontend API client links to the backend RPC reference instead of re-describing the RPCs.)
- Code is the source of truth. If a doc and the code disagree, the code wins —
fix the doc. Key files:
- Schema + RPCs + RLS (the Redesign, current):
supabase/migrations/20260824000000_redesign.sql - Interfaces (Pretix + Sessionize sync):
supabase/migrations/20260825000000_interfaces.sql+supabase/functions/sync-trigger/ - Earlier migrations (applied, then replaced by the Redesign):
20260822000000_init.sql,20260823000000_admin_app.sql - Seed:
supabase/seed.sql - Attendee app source:
apps/convivo/src/ - Admin app source:
apps/admin/src/
- Schema + RPCs + RLS (the Redesign, current):
- Keep it current. Update the relevant doc in the same change that changes the behavior it describes.