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. 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]>
This commit is contained in:
1 parent
015c0a3a06
commit
32c86767ef
45 files changed
+4425
-87
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
# Convivo Admin app — container entrypoint.
|
||||
#
|
||||
# Injects the Supabase proxy target into the nginx config template, then starts
|
||||
# nginx. The target defaults to the Kong container on the shared Supabase
|
||||
# network (supabase_kong_Convivo:8000 — Kong's internal port; 54321 is the
|
||||
# host-only mapping). Override with SUPABASE_PROXY_TARGET
|
||||
# (e.g. host.docker.internal:54321) if the core is not on the shared network.
|
||||
set -eu
|
||||
|
||||
TARGET="${SUPABASE_PROXY_TARGET:-supabase_kong_Convivo:8000}"
|
||||
TEMPLATE=/etc/nginx/conf.d/default.conf.template
|
||||
CONF=/etc/nginx/conf.d/default.conf
|
||||
|
||||
echo "[convivo-admin] Proxying Supabase paths to: ${TARGET}"
|
||||
sed "s|__SUPABASE_PROXY_TARGET__|${TARGET}|g" "${TEMPLATE}" > "${CONF}"
|
||||
|
||||
# Run nginx in the foreground.
|
||||
exec nginx -g "daemon off;"
|
||||
Reference in new issue
Block a user