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).
This commit is contained in:
1 parent
1cbbd1b529
commit
a54ce69c4d
27 files changed
+147
-1150
No files matched your search
+5
-39
@@ -3,10 +3,9 @@
|
||||
Living roadmap. The top section is the **current focus**; completed phases are
|
||||
summarized below. For *how* each piece works, see [`docs/`](./docs/README.md).
|
||||
|
||||
> **Status:** Phases 0–8 are complete and verified. The **Redesign** (Phases
|
||||
> 3–6) is done, and the **Pretix + Sessionize interfaces** (Phases 7–8) are
|
||||
> built and browser-verified end-to-end (against the local mock API). Remaining
|
||||
> work is cross-cutting (real event clock, deployment, automated testing).
|
||||
> **Status:** Phases 0–6 are complete and verified. The **Redesign** (Phases
|
||||
> 3–6) is done. Remaining work is cross-cutting (real event clock, deployment,
|
||||
> automated testing).
|
||||
|
||||
---
|
||||
|
||||
@@ -38,33 +37,6 @@ Convivo App gains several behaviors. Details live in
|
||||
|
||||
---
|
||||
|
||||
## The Interfaces (Phases 7–8) ✅ DONE
|
||||
|
||||
Pull **real** data from the systems that run a conference. Full detail in
|
||||
[`docs/backend/interfaces.md`](./docs/backend/interfaces.md).
|
||||
|
||||
| Phase | Scope | Status |
|
||||
|---|---|---|
|
||||
| **7** | **Pretix interface** — `sync-trigger` Edge Function pulls tickets → `contacts` + `registrations` (+ auth users, generated QR tokens, type mapping, idempotent by `external_id`); QR CSV export in APPE Admin | ✅ |
|
||||
| **8** | **Sessionize interface** — same Edge Function pulls the agenda → `slots` + `sessions` + `session_speakers` (idempotent by `external_id`) | ✅ |
|
||||
|
||||
### Interface decisions (locked)
|
||||
- **Runtime** — a Supabase **Edge Function** (`sync-trigger`), not a separate
|
||||
container. It's the only component that talks to the external APIs and holds
|
||||
the service-role key.
|
||||
- **Style** — **pull** (on-demand from the APPE Admin **Interfaces** view +
|
||||
cron-ready via `CRON_SECRET`). Webhooks are a later add-on.
|
||||
- **Service-role-only RPCs** — `sync_pretix_attendees` / `sync_sessionize_sessions`
|
||||
are guarded to the service-role caller (JWT `role` claim); the apps cannot
|
||||
call them.
|
||||
- **Idempotency** — `external_id` columns (partial unique indexes) on
|
||||
contacts / registrations / sessions; re-runs update in place.
|
||||
- **Audit** — a `sync_runs` table (admin-only read) records every run.
|
||||
- **Local testing** — a `mock-api` Docker service serves the real API shapes
|
||||
from fixtures, so the pipeline is testable without credentials.
|
||||
|
||||
---
|
||||
|
||||
## Completed
|
||||
|
||||
| Phase | Scope | Status |
|
||||
@@ -93,13 +65,7 @@ Pull **real** data from the systems that run a conference. Full detail in
|
||||
|
||||
## Open questions
|
||||
|
||||
**Resolved in Phases 7–8:** sync runtime (Edge Function), sync style (pull +
|
||||
cron-ready), credentials (env-configured + local mock API).
|
||||
|
||||
1. **Pretix mapping** — confirm the ticket-type → registration-type mapping
|
||||
(the substring matcher is a reasonable default).
|
||||
2. **Sync cadence** — how often to pull (pre-event vs during the event)?
|
||||
3. **AI provider** — which LLM/API for `ai_generated_feedback` (the admin
|
||||
1. **AI provider** — which LLM/API for `ai_generated_feedback` (the admin
|
||||
"Evaluate" button is still a stub).
|
||||
4. **Deployment target** — stay on localhost, or plan for the `appe.at`
|
||||
2. **Deployment target** — stay on localhost, or plan for the `appe.at`
|
||||
subdomains now?
|
||||
Reference in new issue
Block a user