HackAtUCI / irvinehacks-site-2024

https://irvinehacks.com
1 stars 1 forks source link

Integrate waitlist promotion modal and action #346

Closed samderanova closed 7 months ago

samderanova commented 7 months ago

Finishes the remaining of #340.

Changes

Testing

  1. Impersonate yourself and navigate to the participants page of the admin dashboard. Make sure to grant yourself the director role!
  2. If they don't already exist, create records of users with the ATTENDING, WAIVER_SIGNED, WAITLISTED, and ACCEPTED statuses.
  3. Click "Check In" and ensure the modal has popped up. Then click "Confirmed". A new check-in record should show up in the database.
  4. Ensure that you do not have access to click "Promote" and that when clicking on it, a tooltip shows up explaining why.
  5. Now grant your UID the role of checkin_lead to allow yourself to check in people and promote applicants off the waitlist.
  6. Click "Promote". The API call should return a 500 status code because this route updates the applicant's status to ACCEPTED and then attempts to send out an email to the applicant notifying them of their acceptance, but you do not have the API key for that.
github-actions[bot] commented 7 months ago

Deploy preview for irvinehacks-site-2024 ready!

Name IrvineHacks 2024 Site
Preview Visit Preview
Commit 3bc0aa267c430b5e18ee91e147b3411df5f7e2a0