feat: add manual feedback AI summaries and secure leaderboard scoring

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 19:06:10 +02:00
1 parent 407b878e23
commit 821907b164
37 files changed
+1640 -77

No files matched your search

+42
View File
@@ -1,3 +1,45 @@
# Leaderboard Regression
After applying `20261015164546_leaderboard_staff_admin_exclusion`, run:
```sh
docker exec -i supabase_db_Convivo psql -X -U postgres -d postgres \
-v ON_ERROR_STOP=1 < supabase/tests/leaderboard_tests.sql
CONVIVO_BASE_URL=http://127.0.0.1:3000 npm test --prefix e2e -- leaderboard-live.spec.ts --project=chromium
```
The SQL fixture rolls back and checks scoring, idempotency, event isolation,
staff/Admin zero balances, role changes, deterministic ranking, API-role grants
and Realtime publication membership. The browser test is local-only and uses real
Auth, PostgREST and WebSockets, not mocked APIs. It creates disposable accounts,
verifies live score/rank changes and staff/Admin exclusions, then deletes its
fixtures. It requires the local attendee app, Supabase and an active event.
See [October 15 validation](../releases/2026-10-15.md) for results and scope.
# Feedback AI Summary Regression
After applying only `20261011163332_feedback_ai_summaries`, run:
```sh
npm test --prefix apps/sidecar
docker exec -i supabase_db_Convivo psql -X -U postgres -d postgres \
-v ON_ERROR_STOP=1 < supabase/tests/feedback_ai_summary_tests.sql
CONVIVO_ADMIN_URL=http://127.0.0.1:3001 npm test --prefix e2e -- feedback-ai-summary.spec.ts --project=chromium
```
The SQL fixture is rollback-only: eight assertions cover RLS, grants, deprecated
stub permissions, service-role persistence, admin/non-admin reads and cascades.
Unit tests cover provider payload privacy, settings-key redaction and retention,
scope isolation, empty feedback, errors, duplicate requests and private-address
rejection and multi-page snapshots. Eight API-mocked browser tests cover settings,
manual event/session generation, restored summaries, disabled states, pagination,
retry and desktop/mobile layouts.
These tests do not send real feedback to any LLM or send login emails.
See [Feedback AI summaries](./feedback-ai.md) for the request/response contract and
local-only activation status.
# Service Staff Regression
The attendee browser suite also covers demo clock dates for two different events