UoaWDCC / passport

WDCC Passport project. Established in 2024.

Home Page:https://wdcc-passport.fly.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syncing the leaderboard page and prizes dashboard

derogative404 opened this issue · comments

Description

As a user
I want to be able to click the "redeem prize" button on the /leaderboard page and be able to collect my prize at the next event.

As an Admin
I want to be able to see users who have achieved a prize on the '/dashboard/prizes' page once they have clicked the "redeem prize" button.

Proposed Solution

Acceptance Criteria

  • Create a new API, similar to /api/user/:upi to instead fetch user data with access token
  • Update Prizes schema to include the following attributes: userId, firstname, lastName
  • Once "redeem prize" button is clicked, prizes post API is called
  • When prizes post API is called, it's given the attributes userId, firstname, lastName as parameters
  • "redeemed" attribute should be automatically set to false in Mongo once a new record is added

Notes