feat(points): staff auto-connect never scores; event feedback pays +5

- Migration 20261020120000: staff (type staff / Admin / @appe.at) are
  auto-connected to every participant of the event via connections.auto
  rows inserted directly as accepted - never through accept_connection,
  so zero points by construction; backfill + idempotent helper + trigger.
- Migration 20261020130000: submit_event_feedback awards +5 on the first
  submission per participant x event (edits earn 0), gated by
  _points_eligible; response gains earned column; ACL restored.
- Admin: points move from Contacts to Registrations (active-event rows
  only, in-place save); Dashboard Top points drops emails; Dashboard and
  Activity hide auto connections.
- Attendee: leaderboard masks surnames (Max M.); EventFeedback toast
  shows +5 pts on paid submissions.
- Tests: staff_auto_connections_tests.sql (14 assertions), rpc_tests
  section 11 (4 assertions). Docs + release record 2026-10-20.
- README: document the git-ignored .env provisioning step (missing key
  = white screen).

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:
committed 2026-10-20 22:15:29 +02:00
1 parent e243b83a56
commit 3ee91b5ad6
22 files changed
+809 -166

No files matched your search

+7 -1
View File
@@ -218,13 +218,19 @@ npm run db:start
# 2. (Re)apply migrations + seed, then restart the stack
npm run db:reset
# 3. Run the apps (Vite dev servers, proxy to the core)
# 3. One-time: provision each app's dev env (git-ignored, never committed)
cp apps/convivo/.env.example apps/convivo/.env
cp apps/admin/.env.example apps/admin/.env
# 4. Run the apps (Vite dev servers, proxy to the core)
npm run app:dev # attendee app on :3000
npm run admin:dev # admin console on :3001
npm run sidecar:dev # Sessionize sync sidecar on :3002
```
Open **http://localhost:3000** (attendee) and **http://localhost:3001** (admin). Studio is at **http://localhost:54323** (user `postgres`, password `postgres`).
> **Blank white page?** You skipped step 3. Without `VITE_SUPABASE_ANON_KEY` the Supabase client throws at load and React renders nothing (the server still answers HTTP 200 — the failure is in the browser console). The `.env` files are git-ignored, so a fresh clone or worktree never has them; the values in `.env.example` are the standard local-stack demo keys and are not secrets. After creating them, restart Vite (env is read only at startup) and hard-refresh the browser (Ctrl+Shift+R).
### Option B — Docker (apps as sidecars)
```bash
# 1. Start the Supabase core (creates the supabase_network_Convivo network)