feat: finalize ticket merging and speaker-aware imports

This commit is contained in:
Lago committed 2026-10-10 13:28:18 +02:00
1 parent 648daa0794
commit 4e71e9b797
35 files changed
+1772 -348

No files matched your search

+13 -9
View File
@@ -20,15 +20,20 @@ Bootcamp (Austria)** — instead of random demo data:
| Data | Count | Notes |
|---|---|---|
| `auth.users` + `auth.identities` | 54 | 50 attendees + 4 staff; **QR token = bcrypt password** (attendees), **`appe-admin-2026`** (staff) |
| `contacts` | 54 | 50 attendees + 4 staff (`is_admin = true`, `password = 'appe-admin-2026'`) |
| `auth.users` + `auth.identities` | 4 | Staff only; **`appe-admin-2026`** (staff password) |
| `contacts` | 4 | Staff only (`is_admin = true`, `password = 'appe-admin-2026'`) |
| `events` | 1 | **Global Power Platform Bootcamp \| Austrian Power Platform Enthusiasts Edition**, 2026-02-20, Vienna, Austria, **active**, `sessionize_endpoint` set to `https://sessionize.com/api/v2/4domszaq/view/All` |
| `registrations` | 54 | 50 `attendee` + 4 `staff`; each with a `CVV-XXX-NNNN` QR token |
| `registrations` | 4 | Staff only; each with a staff QR token |
| `slots` | 10 | 2026-02-20, 09:15–17:00 (7 `session` + 3 `service_session`) |
| `sessions` | 22 | real titles/descriptions/rooms from the Sessionize API |
| `session_speakers` | 0 | **added by the Excel import** (not seeded) |
| `sponsors` | 0 | none for this event |
No synthetic attendees or artificial starting points are seeded. Attendee
registrations come from purchased Pretix tickets. Removing fixtures from the seed
does not delete accounts already present in a database; do not reset a live
database to apply this change.
> **Speaker contacts are intentionally absent.** After `db:reset`, run the Excel
> import (Interfaces → Import Excel → choose the `.xlsx` → Import) to add the 21
> speakers: their contacts, session links, and `speaker` registrations.
@@ -86,17 +91,16 @@ trigger).
| **Sabrina Hota** | staff (admin) | sabrina@appe.at | `appe-admin-2026` |
| **Jose Lago** | staff (admin) | jose@appe.at | `appe-admin-2026` |
| **Markus Franz** | staff (admin) | markus@appe.at | `appe-admin-2026` |
| 50 attendees | attendee | (made-up, e.g. lena.huber@gmail.com) | QR `CVV-ATT-1000`…`CVV-ATT-1049` |
> **Speaker auto-promote:** the Excel import creates the speakers' registrations
> as `speaker` directly (and the `session_speakers_speaker_promote` trigger
> promotes any `attendee` that gets linked). The seed itself contains **no
> speakers** — only the 50 attendees and 4 staff.
> speakers** — only the 4 staff.
## Suggested demo flow
1. Log in as **Amelia** (staff/admin) in the admin app (`[email protected]` /
`appe-admin-2026`) → Dashboard shows the real event (54 registrations, 22
1. Log in as **Amelia** (staff/admin) in the admin app using an email magic link
for `[email protected]` → Dashboard shows the real event (4 registrations, 22
sessions).
2. **Interfaces → Import Excel** → choose the "Sessions and speakers
(advanced)" `.xlsx` → **Import** → the result modal shows the speakers
@@ -105,5 +109,5 @@ trigger).
sessions list their speakers.
4. **Events** → the event's **Sessionize endpoint** is set; the **Sync** button
runs the (keyless) API sync.
5. Log in as an **attendee** in the Convivo app (QR `CVV-ATT-1000` +
`[email protected]`) → Home/Agenda show the real agenda.
5. Sync purchased tickets from Pretix, then log in as an **attendee** in the
Convivo app using their ticket QR and email → Home/Agenda show the real agenda.