Existing-sponsor link + remove Interfaces (Pretix/Sessionize)
- Sponsor lookup popup can now link an existing sponsor (dropdown + pre-fill) or create a new one; save upserts the sponsor linked to the contact and sets the registration type to sponsor. - Remove the Interfaces feature end-to-end: admin nav button + Sync view, sync API helpers + SyncRun type, sync-trigger Edge Function, mock-api + its docker-compose service, and a migration dropping the sync RPCs, helpers, and sync_runs table. - Update docs (architecture, backend, frontend, README, roadmap, next-steps). 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
ffb270c140
commit
24909cf8ab
27 files changed
+147
-1150
No files matched your search
@@ -10,7 +10,6 @@ Postgres. This folder documents that core.
|
||||
| [schema.md](./schema.md) | All 14 tables, columns, constraints, indexes |
|
||||
| [rpcs.md](./rpcs.md) | The transactional points RPCs (the business logic) |
|
||||
| [rls.md](./rls.md) | Row Level Security policies + which key the app uses |
|
||||
| [interfaces.md](./interfaces.md) | Pretix + Sessionize sync (RPCs, `sync-trigger` Edge Function, mock API) |
|
||||
| [seed.md](./seed.md) | Seed data + the demo accounts |
|
||||
| [docker.md](./docker.md) | Docker: the app image + root compose (how the core + app run together) |
|
||||
|
||||
@@ -20,7 +19,6 @@ Postgres. This folder documents that core.
|
||||
Postgres 17 ── schema (14 tables, multi-event model)
|
||||
── RLS (who can read/write what)
|
||||
── RPCs (security definer, transactional points logic)
|
||||
── sync RPCs (service-role-only Pretix/Sessionize import)
|
||||
── seed (demo data)
|
||||
```
|
||||
|
||||
@@ -29,10 +27,7 @@ Postgres 17 ── schema (14 tables, multi-event model)
|
||||
rules.
|
||||
- **RLS is the security boundary.** The app uses the **anon key + the user's
|
||||
session JWT**; RLS decides what that user may see and do. The service-role key
|
||||
is never shipped to the app. See [rls.md](./rls.md). The one exception is the
|
||||
**interface sync RPCs**, which are `service_role`-only and are called by the
|
||||
`sync-trigger` Edge Function (which holds the service-role key server-side).
|
||||
See [interfaces.md](./interfaces.md).
|
||||
is never shipped to the app. See [rls.md](./rls.md).
|
||||
- **Points are transactional.** Each RPC updates points, inserts the related row,
|
||||
and re-syncs the `leaderboard` mirror in **one transaction**, so the leaderboard
|
||||
is always consistent and duplicate actions never double-award. See [rpcs.md](./rpcs.md).
|
||||
@@ -40,7 +35,6 @@ Postgres 17 ── schema (14 tables, multi-event model)
|
||||
## Source of truth
|
||||
|
||||
- Schema + RPCs + RLS (the Redesign, **current**): [`supabase/migrations/20260824000000_redesign.sql`](../../supabase/migrations/20260824000000_redesign.sql)
|
||||
- Interfaces (Pretix + Sessionize sync): [`supabase/migrations/20260825000000_interfaces.sql`](../../supabase/migrations/20260825000000_interfaces.sql) + [`supabase/functions/sync-trigger/`](../../supabase/functions/sync-trigger/)
|
||||
- Earlier migrations (still applied, then replaced by the Redesign):
|
||||
[`20260822000000_init.sql`](../../supabase/migrations/20260822000000_init.sql) and
|
||||
[`20260823000000_admin_app.sql`](../../supabase/migrations/20260823000000_admin_app.sql)
|
||||
|
||||
Reference in new issue
Block a user