Files
Convivo/roadmap.md
T
b08a439949 Check-in gate + fixes, RPC test suite, docs
- Convivo: not-checked-in gate for non-staff (see-a-staff screen with QR
  code + logout); lifts automatically once staff checks them in
- Convivo: fix check-in 'pick a session first' race (synchronous default
  session fallback)
- Add RPC test suite (npm run test:rpc): points idempotency, role guards,
  service-session guard, speaker auto-promote, leaderboard staff exclusion
- Fix db:types script (create packages/shared/src); gitignore generated types
- Docs: README/roadmap drift fixes, tests.md, backend README link

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]>
2026-09-08 21:05:34 +02:00

77 lines
4.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Convivo — Roadmap
Living roadmap. The top section is the **current focus**; completed phases are
summarized below. For *how* each piece works, see [`docs/`](./docs/README.md).
> **Status:** Phases 0–6 are complete and verified. The **Redesign** (Phases
> 3–6) is done. The real event clock is implemented as a per-event
> `use_realtime_clock` toggle. Remaining work is cross-cutting (deployment,
> automated testing, push notifications).
---
## Current focus — the Redesign (Phases 3–6) ✅ DONE
A new data model replaces the single-event `profiles` schema with a
**multi-event** model, the admin app is rebranded to **APPE Admin**, and the
Convivo App gains several behaviors. Details live in
[`docs/next-steps.md`](./docs/next-steps.md).
| Phase | Scope | Status |
|---|---|---|
| **3** | **Data model** — `contacts` (email PK), `events` (one active), `registrations` (per ticket), `sponsors`; slot types; session speakers (1:N); session `average_feedback` / `ai_generated_feedback` / `material`; activity tables re-scoped to event + contact; drop `profiles`; new RPCs + RLS + `materials` bucket | ✅ |
| **4** | **APPE Admin** — rebrand + new views: Dashboard (active event + aggregates), Contacts, Registrations, Sponsors, Schedule (slots/sessions/speakers/material/AI-evaluate), Activity, event management | ✅ |
| **5** | **Convivo App** — 24h login, 5s visibility-aware polling, staff-only check-in, QR type badge, pending-connection red dot, speaker material upload/download, graceful "no active event" | ✅ |
| **6** | **Branding** — `appe_full.png` as favicon + PWA icon for both apps | ✅ |
### Redesign decisions (locked)
- **Staff = admin (merged).** A contact has `is_admin` + a QR token (its login
password). `is_admin` grants both staff powers (check-in) and APPE Admin access.
- **QR token lives on the contact** (one per person). Each registration (ticket)
references the contact; the lanyard QR is the contact's token.
- **One active event at a time.** All app data is queried for the active event;
the app handles "no active event" gracefully.
- **AI feedback is a stub** this phase (field + state machine + admin "Evaluate"
button → RPC stub). Real LLM integration is a later phase.
- **Points kept, scoped per event** (check-in +10, connection +5 each, feedback
+5/+10), keyed on registration, leaderboard per active event.
---
## Completed
| Phase | Scope | Status |
|---|---|---|
| **0** | Dockerized Supabase core: schema, RLS, transactional points RPCs, seed | ✅ |
| **1** | Attendee web PWA: login (QR + email), Home, Agenda, Scan/Connect, Check-in, Feedback, Leaderboard, Profile | ✅ |
| **2** | Admin console (Convivo Admin): Dashboard, Attendees, Schedule, Activity; `reset_qr_token` RPC | ✅ |
> **Note:** Phases 0–2 built the `profiles`-based single-event model. Phase 3
> (the Redesign) **replaces** that schema — the old `profiles` table is dropped
> and the activity tables are re-scoped to the new `contacts` / `events` /
> `registrations` model.
---
## Cross-cutting / later
- **Real event clock** — ✅ done as a per-event `use_realtime_clock` toggle
(migration `20260834`); the simulated `DEFAULT_NOW` is the default, the real
system clock is opt-in per event.
- **Subdomains** — `convivo.appe.at`, `admin.appe.at`, `db.appe.at` don't exist
yet; everything runs on localhost. DNS + TLS + a reverse proxy in front of the
Supabase core will be needed for a real deployment.
- **Push notifications** — connection requests are currently seen when the app
is opened (or via the 5s poll while visible).
- **Testing** — ✅ RPC test suite added (`npm run test:rpc`, see
[docs/backend/tests.md](./docs/backend/tests.md)): points idempotency, role
guards, service-session guard, speaker auto-promote, leaderboard staff
exclusion. Still to add: an E2E smoke test.
## Open questions
1. **AI provider** — which LLM/API for `ai_generated_feedback` (the admin
"Evaluate" button is still a stub).
2. **Deployment target** — stay on localhost, or plan for the `appe.at`
subdomains now?