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 Co-authored-by: Stephan Charles <[email protected]> Co-authored-by: Amelia Hernandez <[email protected]> Co-authored-by: Markus Franz <[email protected]> Co-authored-by: Sabrina Hota <[email protected]> Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
1 parent
adcbb507e9
commit
ffb270c140
16 files changed
+730
-142
No files matched your search
+28
-13
@@ -45,12 +45,15 @@ A 3-step flow: **splash → scan → confirm**.
|
||||
## Home
|
||||
|
||||
The landing screen. Shows:
|
||||
- **Greeting + points pill** — "Good morning, Ana 👋" and `⚡ {points}` (tapping
|
||||
the pill opens the Leaderboard). The event name (`event.name`) is shown under
|
||||
the greeting.
|
||||
- **Now card** — the session the user picked for the current slot, with a
|
||||
"✓ Checked in" or "Show your QR to staff to check in" pill.
|
||||
- **Next card** — the pick for the next slot.
|
||||
- **Greeting + pills** — "Good morning, Ana 👋" and, to the right, a **red
|
||||
material pill** `📎 {n}` (only for speakers who have one or more of their
|
||||
sessions without material — tapping it opens a popup listing the pending
|
||||
sessions) and the **points pill** `⚡ {points}` (tapping opens the Leaderboard).
|
||||
The event name (`event.name`) is shown under the greeting.
|
||||
- **Now card** — **always shown** for the current slot. If the user has a pick,
|
||||
the session title + a "✓ Checked in" / "Show your QR to staff to check in"
|
||||
pill; otherwise a "No pick yet" placeholder (identical layout for every role).
|
||||
- **Next card** — **always shown** for the next slot (pick or "No pick yet").
|
||||
- **My picks today** — shows only **2 rows** (the current slot's pick + the next
|
||||
slot's pick). "tap to change" is a **hyperlink** to the Agenda.
|
||||
- **Quick actions** — Scan & connect, Agenda, Connections, Leaderboard.
|
||||
@@ -58,11 +61,14 @@ The landing screen. Shows:
|
||||
Check back soon!").
|
||||
|
||||
> **Identical for every role.** The Home screen (and the tab bar) is the same for
|
||||
> attendees and staff — no role badge, no "Check-in" relabel. Staff keep their
|
||||
> check-in capability inside the **Scan** screen (Attendee/Staff mode toggle).
|
||||
> attendees and staff — no role badge, no "Check-in" relabel. The Now/Next cards
|
||||
> always render (with a "No pick yet" placeholder when there's no pick), so the
|
||||
> layout is identical whether or not the user has picks. Staff keep their check-in
|
||||
> capability inside the **Scan** screen (Attendee/Staff mode toggle).
|
||||
|
||||
Data: `useEvent()` (event + agenda + clock) + `getMyPreferences()` +
|
||||
`getMyCheckins(email)`. Slot status comes from `slotStatus(slot, now)`
|
||||
`getMyCheckins(email)` + `getMySpeakerSessions(email)` (for the pending-material
|
||||
pill). Slot status comes from `slotStatus(slot, now)`
|
||||
([app-structure.md#the-event-clock](./app-structure.md#the-event-clock)).
|
||||
|
||||
## Agenda
|
||||
@@ -84,6 +90,9 @@ user speaks shows a **"🎤 you"** tag; a session with material shows a **📎**
|
||||
notice is gone and a **📎 Download material** button appears (visible to **all**
|
||||
attendees), pinned to the **bottom** of the sheet's button stack (below
|
||||
"Pick this session").
|
||||
- **Remove material** — a speaker of the session can also **🗑 Remove material**
|
||||
(to re-upload). This deletes the storage object and clears `material_path` via
|
||||
`set_session_material` (null) — `removeSessionMaterial`.
|
||||
- Picking is "one per slot" — picking a new session in a slot replaces the old
|
||||
pick (enforced by the `set_preference` RPC).
|
||||
|
||||
@@ -101,10 +110,16 @@ is role-aware — staff (`contact.is_admin`) default to **Staff** mode, attendee
|
||||
"Connect with {name}?" sheet (with the peer's registration-type badge + LinkedIn
|
||||
link if visible) → `createConnectionRequest(qr)`. Guards: can't connect with
|
||||
yourself. Result toast reflects the connection status (sent / already connected).
|
||||
- **Staff mode (check-in):** pick a session (dropdown grouped by slot), then scan
|
||||
an attendee's lanyard → `checkinAttendee(sessionId, qr)`. Shows a result sheet:
|
||||
"✓ {name} — Checked in — +10 pts · now {total}" or "⚠️ Already checked in — no
|
||||
extra points" (the `already` flag from the RPC).
|
||||
- **Staff mode (check-in):** a **check-in type toggle** (uiverse switch) switches
|
||||
between two sub-modes:
|
||||
- **Session check-in** (default) — pick a session (dropdown grouped by slot),
|
||||
then scan an attendee's lanyard → `checkinAttendee(sessionId, qr)`. Shows a
|
||||
result sheet: "✓ {name} — Checked in — +10 pts · now {total}" or "⚠️ Already
|
||||
checked in — no extra points" (the `already` flag from the RPC).
|
||||
- **Welcome check-in** — no session dropdown; scanning an attendee's lanyard →
|
||||
`welcomeCheckin(qr)` marks them present at the **event**
|
||||
(`registrations.checked_in = true`, no points). Result sheet: "👋 {name} —
|
||||
Welcome to the event! — ✓ Checked in" (or "Already checked in to the event").
|
||||
|
||||
Data: `useEvent()` (for the session list) + the RPCs above.
|
||||
|
||||
|
||||
Reference in new issue
Block a user