ucsb-cs156-w24 / proj-gauchoride-w24-7pm-3

https://ucsb-cs156-w24.github.io/proj-gauchoride-w24-7pm-3/
0 stars 0 forks source link

Admin Rider Application Review Form #50

Closed calee14 closed 6 months ago

calee14 commented 6 months ago

In this PR, I added an Admin Review Form (plus its tests and stories) for Rider Applications such that:

Admins can see applications with buttons like "Approve", "Deny", and "Save". All three buttons ("Approve", "Deny", "Save") save any edits made to the response field. The "Approve" or "Deny" buttons can change the status of the application to "Accepted" or "Declined" respectively. There's also a "Return without Saving" button, which redirects to the "/admin/applications/riders" page without saving any changes to the form. For Accepted Applications:

Admins can see applications with a button called "Set Status to Expired" on the "/admin/applications/riders/review/:id" page. There's also a "Return without Saving" button. In this case, the notes field is editable. Clicking the "Set Status to Expired" button updates the status to "Expired" and saves the changes. Clicking "Return without Saving" returns to the "/admin/applications/riders" page, discarding any changes made to the form. Your form effectively manages the lifecycle of applications, providing admins with intuitive buttons and functionalities based on the application's status.

Screen Shot 2024-03-06 at 12 21 43 AM Screen Shot 2024-03-06 at 12 22 38 AM

Closes #48

andrewpengucsb commented 6 months ago

SORRY THE CHANGES WERE MERGED WITH #53, POINTS ASSIGNED THERE AS WELL CLOSING