uw-datasci / uwdsc-website-v2

Website for UWaterloo's Data Science Club
https://www.uwdatascience.ca
4 stars 1 forks source link

Implement QR detector and pass JSON back #52

Closed dscwebdev closed 1 month ago

dscwebdev commented 1 month ago

Admin page -> QR detection page -> User information -> Check-in user

From the admin page, the admin should be able to click a button to be routed to the QR detection page. From the QR detection page, the camera will open and try to scan for a QR code. Once scanned, it should display username, uwEmail, faculty, hasPaid, and isCheckedIn of the user. (/api/admin/getUserById/:id)

  1. If the user has not paid - Display message that user needs to pay
  2. If the user has paid, but is not checked in - Display button to check them in
  3. If the user has paid and is checked in - Display message that user has already checked in to current event

Check in button sends a PUT to (/api/admin/checkInById/:id)

At all times there should be a button to return to camera.

mrkhunt commented 1 month ago

On branch: qrcode-detection