feat: add admin raffle with confetti and top-3/staff exclusion

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-15 21:39:57 +02:00
1 parent 4cf09cd739
commit 4ec03410ff
14 files changed
+680 -2

No files matched your search

+21
View File
@@ -1,3 +1,24 @@
# Raffle Regression
After applying `20261015180640_raffle`, run:
```sh
docker exec -i supabase_db_Convivo psql -X -U postgres -d postgres \
-v ON_ERROR_STOP=1 < supabase/tests/raffle_tests.sql
CONVIVO_ADMIN_URL=http://127.0.0.1:3001 npm test --prefix e2e -- raffle.spec.ts --project=chromium
```
The SQL fixture is rollback-only: fifteen assertions cover the eligible pool
(excluding staff, Admin, the `@appe.at` domain and the leaderboard top 3),
sequential draw numbers, drawn attendees leaving the pool, the empty-pool
over-draw error, winner persistence, run reset, and admin/non-admin/anon
authorization. The browser suite is API-mocked and covers the default five
picks, the decelerating roulette landing on a winner, drawing until the pick
count, retry after a failed draw, starting a new run, a configurable pick
count, and the mobile layout. No real LLM, email or points change is involved.
See [RPC rules](./rpcs.md#raffle) and the [Raffle view](../frontend/admin-app.md).
# Leaderboard Regression
After applying `20261015164546_leaderboard_staff_admin_exclusion`, run: