Fixes & Refinements: QR token on registration, role caps, connection detail + red dot, admin schedule/sponsors
Datamodel: - Move qr_token from contacts to registrations (per event); new migration 20260826000000. lanyard_lookup / create_connection_request / checkin_attendee resolve via registrations + active event. - reset_qr_token -> reset_registration_qr_token (fixes ambiguous 'email' col). - upsert_contact drops the token arg; create_registration generates + syncs it. - Pretix sync writes the token to the registration (keeps it on re-sync). Registration types: - Distinct pill colors; red reserved for Staff (both apps). - Roles capitalized everywhere (Attendee/Speaker/Sponsor/Staff); 'Attendee' hidden only at the Home footer. - Reset-token button moved from Contacts to Registrations (per registration). Sessions (APPE Admin): - Slot types capitalized; material submitted/not-submitted state. - Speaker selection = multi-select search dropdown. - Fix 'a session must have a speaker' on edit (diff-based setSessionSpeakers) and the file-upload bug (speaker save no longer aborts first). APPE Admin: - Sponsors contact lookup = search field (filter + pick). Convivo App: - Other people's QR codes hidden; connection detail sheet shows public info + points. - Connect red dot recalculates immediately on accept/decline/send. - 'My picks today' = 2 rows (current + next); 'tap to change' links to Agenda. Docs updated across backend + frontend.
This commit is contained in:
1 parent
005f1d404f
commit
b52d8ab007
30 files changed
+1083
-232
No files matched your search
@@ -98,15 +98,18 @@ Input: a JSON array of
|
||||
`{ email, full_name, ticket_type, qr_token?, linkedin_url?, external_id? }`.
|
||||
|
||||
For each item:
|
||||
- **Upsert the contact** by `email`. Keeps the existing QR token unless a new
|
||||
one is supplied; **generates a token** (`CVV-XXX-NNNN`) for new ticket holders
|
||||
(Pretix doesn't provide one) so they can log in.
|
||||
- **Ensure the auth user** exists (`_ensure_auth_user` — QR token = password).
|
||||
- **Upsert the contact** by `email` (no token on the contact).
|
||||
- **Map the ticket type** to a registration type via `_map_ticket_type`
|
||||
(case-insensitive substring: `speaker` / `staff` / `sponsor`, else `attendee`).
|
||||
- **Auto-create a sponsor row** if the type is `sponsor` (the sponsor rule
|
||||
requires a sponsor lookup).
|
||||
- **Upsert the registration** for the active event (by contact).
|
||||
- **Upsert the registration** for the active event (by contact). The **QR token
|
||||
lives on the registration**: it keeps the existing token unless a new one is
|
||||
supplied (so a re-sync never invalidates a lanyard), and **generates a token**
|
||||
(`CVV-XXX-NNNN`) for new ticket holders (Pretix doesn't always provide one) so
|
||||
they can log in.
|
||||
- **Ensure the auth user** exists and **sync the token as the Auth password**
|
||||
(QR token = password).
|
||||
|
||||
Returns `{ created, updated, skipped, errors[] }`.
|
||||
|
||||
@@ -114,7 +117,7 @@ Returns `{ created, updated, skipped, errors[] }`.
|
||||
|
||||
Input: a JSON array of
|
||||
`{ external_id, title, description?, room?, capacity?, date, start_time, end_time,
|
||||
speakers: [{ email, full_name, qr_token? }] }`.
|
||||
speakers: [{ email, full_name }] }`.
|
||||
|
||||
For each item:
|
||||
- **Find or create the slot** by `(event, date, start, end)` (new slots get an
|
||||
@@ -146,7 +149,7 @@ Interfaces view shows the last 8 runs.
|
||||
| `attendee_name` | `contacts.full_name` |
|
||||
| `ticket_type` | `registrations.type` (via `_map_ticket_type`) |
|
||||
| `order_code` | `contacts.external_id` + `registrations.external_id` |
|
||||
| *(generated)* | `contacts.qr_token` (for new ticket holders) |
|
||||
| `qr_token` / *(generated)* | `registrations.qr_token` (Pretix per-ticket, or generated for new holders) |
|
||||
|
||||
| Sessionize field | → Convivo |
|
||||
|---|---|
|
||||
|
||||
Reference in new issue
Block a user