Skip to content

[MyByte] Wire qrRead to useAuth and implement action handler #228

@TheRyanMajd

Description

@TheRyanMajd

Description

Connect useAuth() in projects/mybyte/pages/qrRead.tsx, implement determineAction(uid) to fetch user name/shirt size, verify registration, and invoke checkinUser, checkoutUser, givePoints, removePoints. Ensure service_writer guard and friendly status messages.

Acceptance criteria:

  • qrRead compiles without TypeScript errors.
  • Scanning a UID populates name and shirt size from Firestore.
  • Clicking “Run Selected Action” performs the selected action and shows success/error status.
  • Only service_writer can execute actions; others see a clear “Unauthorized” message.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions