Registration optionset + speaker auto-promote + welcome check-in
- registrations.type is now a Postgres ENUM (registration_type) - session_speakers trigger auto-promotes attendee -> speaker (never overrides staff/sponsor) - new welcome_checkin RPC: staff marks an attendee present at the event - admin Registrations: QR token is final (no reset); failed sponsor change opens in-place sponsor lookup - Convivo Home: Now/Next cards always render; red pending-material pill + popup for speakers - Convivo Agenda: speakers can delete their material to re-upload - Convivo Scan: staff Session/Welcome check-in toggle (uiverse switch) - seed: staff (Bruno/Rita) get a password so staff QR login works after reset
This commit is contained in:
1 parent
1bffae9777
commit
1cbbd1b529
16 files changed
+730
-142
No files matched your search
+58
-4
@@ -4,15 +4,21 @@ 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, plus three polish
|
||||
> **Current state:** Phases 0–8 are complete and verified, plus five polish
|
||||
> rounds: **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),
|
||||
> **Admin password + profile self-service** (admin logs in with email + password;
|
||||
> attendees set LinkedIn + visibility on their Profile), and **Staff exclusions
|
||||
> + password sync** (setting `contacts.password` auto-syncs the Auth password;
|
||||
> attendees set LinkedIn + visibility on their Profile), **Staff exclusions +
|
||||
> password sync** (setting `contacts.password` auto-syncs the Auth password;
|
||||
> staff excluded from the leaderboard; Home/Agenda/Profile identical for all
|
||||
> roles).
|
||||
> roles), **Convivo staff QR login** (a staff QR asks for the staff password, not
|
||||
> an email), and **Registration optionset + speaker promote + welcome check-in**
|
||||
> (`registrations.type` is now a Postgres enum; adding a speaker auto-promotes
|
||||
> their registration to `speaker`; staff can do a Welcome check-in that marks an
|
||||
> attendee present at the event; the admin QR token is final (no reset) and a
|
||||
> failed sponsor change opens an in-place sponsor lookup; speakers see a red
|
||||
> pending-material pill on Home and can delete their material to re-upload).
|
||||
> Remaining work is cross-cutting (real event clock, deployment, testing) and
|
||||
> the open questions in [backend/interfaces.md](./backend/interfaces.md).
|
||||
|
||||
@@ -304,6 +310,54 @@ browser-verified.
|
||||
- Agenda session sheet: **"Download material"** moved to the **bottom** of the
|
||||
button stack (below "Pick this session") with proper spacing.
|
||||
|
||||
## Registration optionset + speaker promote + welcome check-in — ✅ complete
|
||||
|
||||
Migration `20260829000000_registration_type_optionset_speaker_promote_welcome_checkin.sql`
|
||||
+ app changes, all browser-verified.
|
||||
|
||||
**`registrations.type` is now a Postgres ENUM** (`public.registration_type`).
|
||||
- The `text` column (with its old CHECK constraint + text default) is converted
|
||||
to the enum; the old CHECK and default are dropped first (they can't be
|
||||
auto-cast), then the enum default is set.
|
||||
- The admin RPCs (`create_registration`, `set_registration_type`) take `p_type
|
||||
text` and now cast it to the enum on write.
|
||||
|
||||
**Speaker auto-promote trigger.**
|
||||
- `session_speakers_speaker_promote` (after insert on `session_speakers`)
|
||||
promotes a contact's active-event registration from `attendee` → `speaker`.
|
||||
One-way (removing a speaker never demotes) and never overrides an explicit
|
||||
`staff`/`sponsor` ticket. The seed states the final types explicitly.
|
||||
|
||||
**Welcome check-in (staff).**
|
||||
- New `welcome_checkin(p_attendee_qr)` RPC (staff-only): resolves the attendee by
|
||||
QR for the active event and sets `registrations.checked_in = true` (no points).
|
||||
- The Convivo **Scan** screen's Staff mode has a **check-in type toggle**
|
||||
(uiverse switch) switching between **Session check-in** (existing dropdown +
|
||||
`checkin_attendee`) and **Welcome check-in** (`welcome_checkin`).
|
||||
|
||||
**Admin Registrations: final QR token + in-place sponsor lookup.**
|
||||
- The **Reset token** button is gone — the token is final (generated by Pretix).
|
||||
The QR modal now says "This token is final…".
|
||||
- Setting a type to **Sponsor** when no sponsor lookup exists opens an
|
||||
**in-place sponsor popup** (create the sponsor linked to the contact, then set
|
||||
the type) instead of just erroring.
|
||||
|
||||
**Convivo Home: always-on Now/Next + pending-material pill.**
|
||||
- The **Now** and **Next** cards always render (with a "No pick yet" placeholder
|
||||
when there's no pick), so the layout is identical for every role.
|
||||
- Speakers with one or more sessions missing material see a **red `📎 {n}` pill**
|
||||
(left of the points pill); tapping it opens a popup listing the pending
|
||||
sessions. The pill disappears once every session has material.
|
||||
|
||||
**Convivo Agenda: speakers can delete their material.**
|
||||
- A speaker of a session with material sees a **🗑 Remove material** button
|
||||
(deletes the storage object + clears `material_path` via `set_session_material`
|
||||
null) so they can re-upload.
|
||||
|
||||
**Seed: staff passwords.**
|
||||
- Bruno and Rita now have `contacts.password = 'appe-admin-2026'` so the Convivo
|
||||
**staff QR login** (QR + staff password) works out of the box after a reset.
|
||||
|
||||
## Cross-cutting / later
|
||||
|
||||
- **Real event clock** — replace the simulated `DEFAULT_NOW`
|
||||
|
||||
Reference in new issue
Block a user