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
+59
-2
@@ -4,8 +4,10 @@ What's done, what's next, and the open decisions. The full roadmap lives in the
|
||||
root [`roadmap.md`](../roadmap.md); this file is the working detail for the
|
||||
current phase.
|
||||
|
||||
> **Current state:** Phases 0–8 are complete and verified. The **Redesign**
|
||||
> (Phases 3–6) and the **Pretix + Sessionize interfaces** (Phases 7–8) are done.
|
||||
> **Current state:** Phases 0–8 are complete and verified, plus a round of
|
||||
> **Fixes & Refinements** (QR token moved to the registration, role-pill
|
||||
> capitalization, connection detail sheet + red-dot recalc, admin schedule
|
||||
> speaker multi-select + upload/speaker bug fixes, sponsor contact search).
|
||||
> Remaining work is cross-cutting (real event clock, deployment, testing) and
|
||||
> the open questions in [backend/interfaces.md](./backend/interfaces.md).
|
||||
|
||||
@@ -179,6 +181,61 @@ Sync the **real agenda** (slots, sessions, speakers, rooms) from
|
||||
- **Auth** — the Edge Function accepts an admin JWT (verified via `is_admin()`)
|
||||
or a `CRON_SECRET` header for scheduled runs.
|
||||
|
||||
## Fixes & Refinements — ✅ complete
|
||||
|
||||
A cross-cutting polish round (migration `20260826000000_registration_qr_token.sql`
|
||||
+ app changes), all browser-verified.
|
||||
|
||||
**Datamodel — QR token moves from `contacts` to `registrations`.**
|
||||
- The token is a property of the **registration** (generated per event by
|
||||
Pretix), not the contact. `contacts.qr_token` is dropped; `registrations.qr_token`
|
||||
is added (partial unique index `registrations_qr_token_uniq`).
|
||||
- `lanyard_lookup`, `create_connection_request`, and `checkin_attendee` now
|
||||
resolve tokens via `registrations` + the active event.
|
||||
- `reset_qr_token(contact)` is replaced by `reset_registration_qr_token(email)`
|
||||
(admin-only; regenerates the active-event registration's token + re-hashes the
|
||||
Auth password + clears sessions). `upsert_contact` no longer takes a token;
|
||||
`create_registration` generates one and syncs it as the password.
|
||||
- The Pretix sync writes the token to the **registration** (keeps the existing
|
||||
token on re-sync so a lanyard is never invalidated).
|
||||
|
||||
**Registration types.**
|
||||
- Type pills have **distinct colors**; **red is reserved for Staff** (both apps).
|
||||
- Roles are shown **capitalized** in both apps (Attendee / Speaker / Sponsor /
|
||||
Staff). "Attendee" is **not shown at the bottom** of the Home screen (it's the
|
||||
default); it *is* shown (capitalized) on Profile, Login, Scan, and Connections.
|
||||
- The **reset-token button is removed from the Contacts view** (meaningless now
|
||||
that the token lives on the registration) and moved to the **Registrations**
|
||||
view (per-registration QR + reset).
|
||||
|
||||
**Sessions (APPE Admin).**
|
||||
- Slot types are shown **capitalized** (Session, Keynote, Lunch Break, …).
|
||||
- The session list shows whether material was **submitted / not submitted**.
|
||||
- Speaker selection is a **multi-select search dropdown** (search + chips),
|
||||
replacing the checkbox list.
|
||||
- **Fixed:** editing a session no longer fails with "a session must have a
|
||||
speaker" — `setSessionSpeakers` now **diffs** (insert the new set, then delete
|
||||
only the removed ones) instead of delete-all-then-insert, so the
|
||||
`session_needs_speaker` trigger (which counts the row being deleted) never
|
||||
fires. This also **fixes the file-upload bug** (the speaker save no longer
|
||||
aborts before the material upload runs).
|
||||
|
||||
**APPE Admin — Sponsors.**
|
||||
- The sponsor **contact lookup is a search field** (filter + click-to-pick), not
|
||||
a dropdown of all contacts.
|
||||
|
||||
**Convivo App.**
|
||||
- **Other people's QR codes are hidden** — the connection detail sheet shows
|
||||
public info + points only (no QR).
|
||||
- **Connect red dot** — any interaction with the connection logic (accept /
|
||||
decline / send) dispatches a `connections-changed` event; the Shell recalculates
|
||||
the dot **immediately** (stays while any incoming request is pending, clears
|
||||
when none are). 5s polling remains as a fallback.
|
||||
- **Connect menu** — clicking any connection (connected or requested) opens a
|
||||
sheet with that person's **public info + their points**.
|
||||
- **"My picks today"** — shows only **2 rows** (current + next slot's pick);
|
||||
"tap to change" is a **hyperlink** to the Agenda.
|
||||
|
||||
## Cross-cutting / later
|
||||
|
||||
- **Real event clock** — replace the simulated `DEFAULT_NOW`
|
||||
|
||||
Reference in new issue
Block a user