Story #1 Active Membership Heading | User and Technical Documentation - cseseniordesign/reservations GitHub Wiki

End User Documentation

Dev Testing Instructions

  1. Make sure you are on the most recent version of the Development branch.
  2. Start your dev environment.
  3. On the home screen you should see a heading displayed between three options:
  • Your membership will expire on: expiration_date (in white)
  • Your membership will expire on: expiration_date (in yellow- if it is within a week of expiration)
  • Your membership is inactive. (in red)
  1. Underneath the Admin header click Users.
  2. Click the edit button next to your currently logged-in username.
  3. Change the expiration date to test any of the three options by changing it to an expired expiration date, a date within a week of expiring, or a date over a week from expiring.
  4. Update the user with the new expiration date.
  5. Return to the main page.
  6. Confirm that the correct heading is displayed based on the updated expiration date.
  7. Ensure there are no errors in the console throughout your testing and that the page is still responsive on all screen sizes.

Production Testing Instructions

  1. Go to https://innovationstudio-manager.unl.edu/home/
  2. Follow steps 3 and up from the dev testing instructions above.

Technical Documentation

views/home.erb

  • Added HTML headers to display the membership header which informs user of expiration date status
  • Embedded Ruby into the HTML file to set logic to decide which header should be displayed based on user expiration date