Skip to content

Allow staff to scan badges on behalf of sponsors#251

Merged
JacobCoffee merged 2 commits intomainfrom
fix/staff-lead-retrieval
Apr 10, 2026
Merged

Allow staff to scan badges on behalf of sponsors#251
JacobCoffee merged 2 commits intomainfrom
fix/staff-lead-retrieval

Conversation

@JacobCoffee
Copy link
Copy Markdown
Member

Summary

Staff users with door check permission can now use the lead retrieval scanner on behalf of any sponsor.

Changes:

  • Staff Tools shows Lead Scanner for users with door_check_in permission
  • On scanner page load, staff see a sponsor selector (fetched from new API endpoint)
  • Selected sponsor displayed as a tappable banner, tap to switch
  • Scanner button disabled until a sponsor is selected
  • sponsor_id passed to capture and note API endpoints via query param / POST body
  • Regular sponsor reps are completely unaffected

Requires backend: PyCon/pycon-site#654

Test plan

  • Staff user sees Lead Scanner in Staff Tools
  • Sponsor selector shows on scanner page for staff
  • Can select a sponsor and scan a badge
  • Scanned lead attributed to selected sponsor (check admin)
  • Can switch sponsors mid-session
  • Regular sponsor rep flow unchanged (no selector)
  • Scanner disabled when no sponsor selected

🤖 Generated with Claude Code

JacobCoffee and others added 2 commits April 10, 2026 12:53
Staff users with door_check_in permission can now use the lead scanner:
- Staff Tools action sheet shows Lead Scanner for door_check users
- On scanner load, staff see a sponsor selector (radio list from API)
- Selected sponsor shown as a banner with tap-to-switch
- Scanner disabled until a sponsor is selected
- sponsor_id passed to capture and note API endpoints
- Regular sponsor reps unaffected (no selector, same flow as before)

Requires backend PR: PyCon/pycon-site#654

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…r errors

- Staff Tools uses ion-modal with breakpoints for a modern bottom sheet
  instead of the old ion-action-sheet
- Sponsor selector shows error alert when API fails (endpoint not deployed yet)
- Shows "no sponsors available" message when list is empty

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JacobCoffee JacobCoffee merged commit 71aebf4 into main Apr 10, 2026
2 checks passed
@JacobCoffee JacobCoffee deleted the fix/staff-lead-retrieval branch April 10, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant