psu-software-engineering-capstone / walktober

Walktober is a yearly fitness challenge at PSU and this project is to design a software platform for it. The platform is modern, responsive, improved design and analytics and simplified configuration. Let's create the best Walktober experience!
Other
5 stars 3 forks source link

Update exit modal #301

Closed keca2 closed 1 year ago

keca2 commented 1 year ago

This PR checks the newly implemented adminContext.endDate field to see if the current date is after the endDate of the event.

image

If it is, (from homepage) the post event survey modal will open. Upon completion of the survey, user will be directed to the results landing page.

INSTRUCTIONS TO RENDER: 2 options : Either change the field from adminContext.endDate to be before today's date for testing, or swap the logic in the homePage.tsx (today < end) on line 75.

image

Also in this PR, updates to the modal render for the post event survey:

image

UPDATE 3/13

image
bailee-crandley commented 1 year ago

For the "Take me to the results" button, does it require that all of the above fields are filled out before proceeding? Also, are you able to click off the modal if you want to see the home page?

bailee-crandley commented 1 year ago

Would it be super difficult to add an X close button on the modal? I think that might be an accessibility concern for those who use screen readers to navigate.