Files
Convivo/docs
Lago c49a94fe80 fix(admin): per-row check-in toggle; feat(db): front-desk gate + badge copies
Registrations table felt buggy because both row actions did
setBusy(true) -> write -> reloadRegistrations() -> setBusy(false):
the list is sorted by points, so a reload made the row you just
touched jump (or vanish under a Checked-in filter), and the single
`busy` flag disabled every control in the table for the whole
request. The fix is per-row in-flight state (busyIds + withRowBusy)
and no reload at all: the toggle patches its own row's checked_in
plus the points delta the RPC returns, the type change patches
`type`; a rejected write rolls both back. Only the touched row is
disabled, shows a "Saving…" pulse, and two rows can save at once.
Toggle hit area is now 40x41 px with a focus-visible ring.

Front-desk gate: checkin_attendee reads registrations.checked_in
and raises "This attendee needs to be checked in at the front desk
first." when it is not true, and no longer sets checked_in as a
side effect. checkins has no INSERT policy, so the RPC is the only
write path and the gate cannot be bypassed. The scanner shows a
dedicated "Not checked in yet" sheet instead of a toast.

Badge copies: events.badge_copies (1..4, default 1). welcome_checkin
sends that many pgmq jobs in one transaction (the Pi prints one
label per job, so N jobs = N labels; no worker change) and clamps
the value again itself. preview_welcome_checkin gained a `copies`
column (drop + recreate) so the popup states the real count. Manual
reprint still prints exactly one. Set from Settings -> Badge
printing (active event) and the Events form, always as a
single-column update; the Settings badge section now renders even
when the LLM settings call fails.

Tests: badge_print 113 (+6), leaderboard 47 (+1), new
registration-checkin-toggle (6), front-desk-gate (3),
welcome-badge-copies (3); the stale registrations-PATCH mock in
registration-ticket-merge now targets set_registration_checked_in,
the ambiguous Save button is "Save copies", and the print-copy
assertion tolerates the typographic apostrophe. Docs updated
(rpcs, schema, printing, tests, admin-app, screens) with a release
record; NOT deployed - see docs/releases/2026-10-19.md.
2026-10-19 15:10:20 +02:00
..

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–6 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. See the root roadmap.md and 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
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
Manual event/session feedback summaries and LLM configuration backend/feedback-ai.md
Badge printing — pgmq queue, Raspberry Pi stations, tokens, troubleshooting backend/printing.md
Deployment — VM access (remote host for appe.at) deployment.md
2026-10-10 changes, deployment and verification releases/2026-10-10.md
What's next (Redesign Phases 3–6 + later + open items) next-steps.md

Reading order

  1. New to the project? Start with architecture.md, then backend/README.md and frontend/README.md.
  2. Working on the database / points logic? Go to backend/schema.md → backend/rpcs.md → backend/rls.md.
  3. 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.
  4. Planning the next phase? Read next-steps.md.

Conventions