From 0cbfb2571417c76699f348149fd83229743dee63 Mon Sep 17 00:00:00 2001 From: Jose Lago Date: Sat, 22 Aug 2026 18:13:57 +0200 Subject: [PATCH] docs: renumber phases (admin app = Phase 2, Pretix = Phase 3) --- README.md | 6 +++--- docs/backend/rls.md | 2 +- docs/backend/rpcs.md | 2 +- docs/next-steps.md | 38 +++++++++++++++++++++----------------- 4 files changed, 26 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 9b7f3d3..84ac518 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ > - **Phase 0** — Dockerized Supabase core (Postgres + GoTrue + PostgREST + Realtime + Kong + Studio) with the full schema, RLS, and transactional points RPCs. > - **Phase 1** — Attendee web PWA: login (QR + email), Home, Agenda, Scan/Connect, staff Check-in, Feedback, live Leaderboard, Profile. > -> Next: Phase 2 (Pretix ticketing interface), Phase 3 (Admin app), Phase 4 (Sessionize interface). +> Next: Phase 2 (Admin app), Phase 3 (Pretix ticketing interface), Phase 4 (Sessionize interface). --- @@ -256,8 +256,8 @@ Login = **QR code** (typed or scanned) + **email**. The QR token is the password |---|---|---| | **0** | Dockerized Supabase core: schema, RLS, transactional points RPCs, seed | ✅ | | **1** | Attendee web PWA: login, Home, Agenda, Scan/Connect, Check-in, Feedback, Leaderboard, Profile | ✅ | -| **2** | **Pretix** interface — sync tickets → attendees (QR tokens, roles) | ⬜ next | -| **3** | **Admin app** (admin.appe.at) — manage attendees, sessions, points, event | ⬜ | +| **2** | **Admin app** (admin.appe.at) — manage attendees, sessions, points, event | ⬜ next | +| **3** | **Pretix** interface — sync tickets → attendees (QR tokens, roles) | ⬜ | | **4** | **Sessionize** interface — sync the real agenda (slots, sessions, speakers) | ⬜ | > **Subdomains** (`convivo.appe.at`, `admin.appe.at`, `db.appe.at`, `pretix.eu`, `sessionize.com`) do not exist yet — everything runs on **localhost** for now. diff --git a/docs/backend/rls.md b/docs/backend/rls.md index 107efa7..d18e5c2 100644 --- a/docs/backend/rls.md +++ b/docs/backend/rls.md @@ -115,7 +115,7 @@ full DML at the Postgres level, but **RLS narrows it** to the policies above. the check-in RPC. - **Admin** — full read on everything, and the only role with **direct** write access to `profiles` / `slots` / `sessions` (this is what the future Admin app - in Phase 3 will use). + in Phase 2 will use). ## Things to revisit later diff --git a/docs/backend/rpcs.md b/docs/backend/rpcs.md index 004895d..87b9ed1 100644 --- a/docs/backend/rpcs.md +++ b/docs/backend/rpcs.md @@ -105,7 +105,7 @@ Post-session feedback. ### `adjust_points(p_profile_id, p_delta, p_reason)` → `void` **Admin-only** manual points adjustment (category `admin`). Used by the future -Admin app (Phase 3). +Admin app (Phase 2). ## Role helper functions diff --git a/docs/next-steps.md b/docs/next-steps.md index 68ba330..32210f6 100644 --- a/docs/next-steps.md +++ b/docs/next-steps.md @@ -1,8 +1,12 @@ # Next Steps -What's done, what's next, and the open decisions. Phases follow the original -whiteboard: **0** Supabase core → **1** attendee app → **2** Pretix interface → -**3** admin app → **4** Sessionize interface. +What's done, what's next, and the open decisions. Phase order: +**0** Supabase core → **1** attendee app → **2** admin app → **3** Pretix +interface → **4** Sessionize interface. + +> **Renumbered:** the admin app is now **Phase 2** (built before the ticketing +> sync), and the Pretix interface is **Phase 3**. (Originally the whiteboard had +> Pretix as Phase 2 and the admin app as Phase 3.) > **Current state:** Phase 0 + Phase 1 are **complete and verified** (browser- > tested end-to-end, Docker-verified, pushed to `git.lago.dev/Lago/Convivo.git`). @@ -27,7 +31,20 @@ whiteboard: **0** Supabase core → **1** attendee app → **2** Pretix interfac ## Next -### Phase 2 — Pretix interface ⬜ (next) +### Phase 2 — Admin app (admin.appe.at) ⬜ (next) +A separate web app for event organizers, using the **admin** role (which already +has direct write access to `profiles` / `slots` / `sessions` via RLS — see +[backend/rls.md](./backend/rls.md)). + +Likely scope: +- Manage **attendees** (view, edit role/company, reset QR, adjust points via + `adjust_points`). +- Manage **schedule** (slots + sessions) — create/edit/delete. +- **Live overview** — who's checked in, connection activity, leaderboard. +- Reuse the same Supabase core + anon/service key pattern; a new `apps/admin` + PWA. + +### Phase 3 — Pretix interface ⬜ Sync **tickets → attendees** from [Pretix](https://pretix.eu) (the ticketing system). This replaces the hand-written seed with real ticket data. @@ -49,19 +66,6 @@ Likely scope: 2. Push (webhook on new order) vs pull (scheduled sync)? 3. Where does the sync job run (Supabase Edge Function vs a separate container)? -### Phase 3 — Admin app (admin.appe.at) ⬜ -A separate web app for event organizers, using the **admin** role (which already -has direct write access to `profiles` / `slots` / `sessions` via RLS — see -[backend/rls.md](./backend/rls.md)). - -Likely scope: -- Manage **attendees** (view, edit role/company, reset QR, adjust points via - `adjust_points`). -- Manage **schedule** (slots + sessions) — create/edit/delete. -- **Live overview** — who's checked in, connection activity, leaderboard. -- Reuse the same Supabase core + anon/service key pattern; a new `apps/admin` - PWA. - ### Phase 4 — Sessionize interface ⬜ Sync the **real agenda** (slots, sessions, speakers, rooms) from [Sessionize](https://sessionize.com) instead of the hand-written seed.