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

Rider Applications: Fix Rider Application Form and Added Show Page #23

Closed calee14 closed 6 months ago

calee14 commented 6 months ago

Task

In this PR, I fixed the Rider Application Form to match the requirements from the EPIC.

I also added code that fixed the storybook for the form. Prior, storybooks did not display the different states the form can be in. I added a storybook for when a user is creating a new application, when a user is editing their application, and one for an admin editing an application.

For the RiderApplicationForm itself, I added the changes that were specified under the Task checklist. More importantly, I added code so that the form can access the currentUser object and check if the user was regular user or admin. This was important for implementing the requirements listed in the issue I linked to below. Having the currentUser object was also important for autofilling the email field in the form.

Screen Shot 2024-02-23 at 5 11 13 PM

Screen Shot 2024-02-23 at 5 10 48 PM

Screen Shot 2024-02-23 at 5 12 19 PM

Screen Shot 2024-02-28 at 7 23 50 PM

Closes #22

shamitagurusu commented 6 months ago

LGTM 👍