Story #128 Update New Member Signup | 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 dev-update-new-member-signup branch.
  2. Navigate to /new_members/ and sign up for a new member orientation.
  3. Fill out the form and make sure that all fields that are required must be filled out.
  4. Verify that a UNL Student/Staff/Faculty with Garage or Lot parking but without perimeter parking must check the box asking them to request parking at NIS from UNLPTS.
  5. Submit the form.
  6. Verify that there is a user created who has the same information as was put on the new member signup form.
  7. Log in with development2 so that you have permissions to view the Admin -> Users page.
  8. Navigate to the Admin -> Users page and search for the new member you just created or any of the development accounts.
  9. Edit the user and ensure that you can now access the user's vehicle and emergency contact information from the edit user page.
    • Ensure that all create, update, and delete functions work for the vehicle and emergency contact information. Ensure that an emergency contact is only saved if a name, relationship, and primary phone are provided. To delete you would just clear out all of the fields for the emergency contact and save.
  10. Navigate to the My Account page and ensure that you can now view your account's emergency contact information.
    • Ensure that all create, update and delete functions work for the emergency contact information. To delete you would just clear out all of the fields for the emergency contact and save. Ensure that an emergency contact is only saved if a name, relationship, and primary phone are provided.
  11. 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/login/ and log in with an account that has elevated permissions to view the Admin -> Users page.
  2. Follow steps 3 and up from the dev testing instructions above.

Technical Documentation

README.md

  • Updated README to include more detailed instructions for staging and production rollouts.

models/emergency_contact.rb

  • Added a new model for the emergency_contacts table

models/users.rb

  • Added a new method to get the user's date of birth

routes/admin/users.rb

  • Updated user status options.
  • Added logic to save and view emergency contact and vehicle information on the edit user page.

routes/auth.rb

  • Added logic to view and save emergency contact information on the My Account page.

routes/new_members.rb

  • Added logic to save vehicle and emergency contact information on new member sign up.

routes/vehicles.rb

  • Added logic to create, save, and delete vehicles for any user by passing in a user_id parameter.

views/admin/edit_user.erb

  • Added UI to view emergency contact and vehicle information.

views/me.erb

  • Added UI to view emergency contact information.

views/new_member_signup.erb

  • Added UI to collect more information about the new member such as date of birth, emergency contact information, and vehicle information.