Story #65 Tabs for sorting by workshop area - cseseniordesign/reservations GitHub Wiki
End User Documentation
Dev Testing Instructions
Make sure you are on the most recent version of the dev-sort-by-workshop-area branch.
Start your dev environment and click on the "Reserve Equipment" tab.
Click the "Workshop Category" dropdown menu and choose a category. Click "Search."
You should only see tools with the matching category. Verify that the items shown are the same as the ones you saw before applying the filter. You should not have access to any more tools than you had before you applied the filter (i.e. tools you are not authorized on).
Navigate to Admin > Events.
Click the "Event Type" dropdown menu and choose a type. Click "Search." Verify that the events listed match the category you selected. If there are no upcoming events, you can create one. Note that you will not see any events if there are no upcoming events with the same type. You can check an event's type by editing the event and seeing what is listed under "Type."
Click the "Past" tab button located above "Upcoming Event Items."
Select any event type from the dropdown menu. Click "Search."
Verify that the event type you selected is preserved when navigating between pages using the pagination buttons under the events table.
Navigate to Admin > Agenda.
Use the "Go to another date" selection and select a different date. Click "Search."
Verify the date format is still displayed correctly (MM/DD/YYYY).
Click the "Workshop Category" dropdown and select a category. Click "Search."
Verify the correct tool reservations are listed.
Change both the date and workshop category. Click "Search." Verify that both fields are preserved.
Technical Documentation
models/event.rb
Added a "type options" hash to be referenced in the Event Type dropdown menu.
routes/admin/agenda.rb
Added code to define and handle the workshop category, to be set by the Workshop Category dropdown menu.
routes/admin/events.rb
Added code to define and handle the event type, to be set by the Event Type dropdown menu.
routes/tools.rb
Added code to define and handle the workshop category, to be set by the Workshop Category dropdown menu.
views/admin/agenda.erb
Expanded the box containing the date picker. This contains the new Workshop Category dropdown menu and a new search button.
views/admin/events.erb
Created a dropdown menu with a search button. Allows for filtering events by their Type.
views/tools.erb
Created a dropdown menu with a search button. Allows for filtering tools by their Category.