Phase 2: Admin console (admin.appe.at)
A desktop-first React app for organizers, guarded to the admin role. Backend (supabase/migrations/20260823000000_admin_app.sql): - Admin-only SELECT policies on preferences, connections, feedback - reset_qr_token RPC: regenerates a lanyard token, re-hashes it as the Auth password (old token stops working), and clears the attendee's sessions to force re-login App (apps/admin, port 3001): - Login: same QR+email flow, but non-admin sessions are rejected - Dashboard: live stats + top points + recent activity - Attendees: search, edit name/company/role, reset QR, adjust points - Schedule: manage slots + sessions (create/edit/delete) - Activity: check-ins / connections / feedback tables - Same-origin proxy (Vite dev / nginx in Docker), same design tokens Docker + scripts: - convivo-admin service in docker-compose.yml (:3001) - admin:dev / admin:build root scripts - fixed db:reset script (supabase reset -> supabase db reset) Docs: new frontend/admin-app.md; updated architecture, rls, rpcs, docker, next-steps, and READMEs. Verified: build clean, all views + flows browser-tested, Docker build + proxy + login + admin guard confirmed. DB reset to clean seed.
This commit is contained in:
1 parent
0cbfb25714
commit
cf70f39903
45 files changed
+4425
-87
No files matched your search
+23
-19
@@ -8,10 +8,10 @@ interface → **4** Sessionize interface.
|
||||
> 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`).
|
||||
> Per the working agreement, we **stop here** and let the user evaluate before
|
||||
> starting Phase 2.
|
||||
> **Current state:** Phase 0 + Phase 1 + Phase 2 are **complete and verified**
|
||||
> (browser-tested end-to-end, Docker-verified, pushed to
|
||||
> `git.lago.dev/Lago/Convivo.git`). Per the working agreement, we **stop here**
|
||||
> and let the user evaluate before starting Phase 3 (Pretix).
|
||||
|
||||
## Done
|
||||
|
||||
@@ -29,22 +29,27 @@ interface → **4** Sessionize interface.
|
||||
- All flows browser-tested; Docker build + proxy + login verified.
|
||||
- Details: [frontend/README.md](./frontend/README.md).
|
||||
|
||||
## 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
|
||||
### Phase 2 — Admin app (admin.appe.at) ✅
|
||||
A separate desktop-first web app for event organizers, using the **admin** role
|
||||
(which 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.
|
||||
- **Login** — same QR + email flow, but guarded: non-admin accounts are signed
|
||||
out and rejected ("This account is not an admin").
|
||||
- **Dashboard** — live stats (attendees, check-ins, connections, avg rating,
|
||||
sessions) + top points + recent activity.
|
||||
- **Attendees** — searchable table; edit name/company/role, view + **reset QR
|
||||
token** (new `reset_qr_token` RPC), **adjust points** (via `adjust_points`).
|
||||
- **Schedule** — manage slots + sessions (create/edit/delete).
|
||||
- **Activity** — check-ins, connections, and feedback tables.
|
||||
- Same-origin proxy to Supabase (Vite dev on :3001 / nginx in Docker).
|
||||
- Docker: `convivo-admin` service on :3001, same network + proxy pattern.
|
||||
- All views + flows browser-tested; Docker build + proxy + login verified.
|
||||
- Details: [frontend/admin-app.md](./frontend/admin-app.md).
|
||||
|
||||
### Phase 3 — Pretix interface ⬜
|
||||
## Next
|
||||
|
||||
### Phase 3 — Pretix interface ⬜ (next)
|
||||
Sync **tickets → attendees** from [Pretix](https://pretix.eu) (the ticketing
|
||||
system). This replaces the hand-written seed with real ticket data.
|
||||
|
||||
@@ -96,8 +101,7 @@ Likely scope:
|
||||
1. **Pretix role mapping** — which ticket type = staff/admin?
|
||||
2. **Sync style** — webhook (push) vs scheduled (pull) for Pretix/Sessionize?
|
||||
3. **Sync runtime** — Supabase Edge Functions vs separate containers?
|
||||
4. **Admin app scope** — which admin features are must-haves for the event?
|
||||
5. **Deployment target** — stay on localhost, or plan for the `appe.at`
|
||||
4. **Deployment target** — stay on localhost, or plan for the `appe.at`
|
||||
subdomains now?
|
||||
|
||||
## How to pick up work
|
||||
|
||||
Reference in new issue
Block a user