feat(scan): confirm before welcome check-in, with print warning
The staff scanner checked attendees in silently, and the default session mode never prints — so a welcome-desk scan could check someone in with no badge and no confirmation. - new read-only RPC preview_welcome_checkin(qr): resolves the attendee and reports already + will_print (mirrors the exact welcome_checkin enqueue condition: first check-in AND a layout exists). Staff/admin only; checks nobody in, enqueues nothing. - attendee Scan screen previews first and shows a Yes/No sheet: "You are checking in [Name]. By confirming, you will print this person's label." Only Yes runs welcome_checkin. Session check-in unchanged (never prints). - badge_print_tests.sql +8 assertions (109 total); ScanPage + welcome specs drive the confirm step; new CONV-CHECKIN-003 (No cancels, Yes checks in). - docs: rpcs.md, printing.md, releases/2026-10-19.md.
This commit is contained in:
1 parent
c980effddc
commit
9a6e2e5c2a
11 files changed
+348
-7
No files matched your search
@@ -125,6 +125,16 @@ worker) and stamps `last_seen_at`.
|
||||
behaviour, plus the `badge_print` enqueue for a **genuine first check-in** only,
|
||||
inside the same transaction (see [rpcs.md](./rpcs.md#welcome_checkinp_attendee_qr--attendee_email-attendee_name-already)).
|
||||
|
||||
The staff scanner (attendee app → Scan → Welcome check-in) does **not** fire
|
||||
`welcome_checkin` directly. It first calls the read-only
|
||||
`preview_welcome_checkin(qr)` and shows a confirmation — *"You are checking in
|
||||
[Name]. By confirming, you will print this person's label."* — with **Yes/No**.
|
||||
Only **Yes** runs `welcome_checkin`. The preview's `will_print` mirrors the exact
|
||||
enqueue condition (first check-in **and** a layout exists), so the popup never
|
||||
promises a print that won't happen; when it is `false` the popup says the person
|
||||
is checked in without mentioning a label. Session check-in is unchanged and never
|
||||
prints. (Added in `20261019090000_welcome_checkin_preview.sql`.)
|
||||
|
||||
## 5. Station tokens & security model
|
||||
|
||||
- Token format `cvp_…` (256 bits of entropy), generated server-side, shown
|
||||
|
||||
Reference in new issue
Block a user