icefoganalytics / travel-authorization

0 stars 0 forks source link

Part 4: Wire Travel Desk Request Tab #187

Closed klondikemarlen closed 2 months ago

klondikemarlen commented 2 months ago

Relates to:

Context

Using the existing Travel Desk forms (https://github.com/ytgov/travel-authorization/tree/main/web/src/modules/travelDesk) rewire the travel desk request to exist in the travel desk tab of the travel auth.

Travel Desk forms should be created anytime a user is traveling by air.

image

Implementation

Concerns

Selecting "no" for conference meeting/hotel, still requires that you enter a hotel/conference name. This functionality was in the original code, but doesn't quite make sense to me. It might make sense to either update the text on change?

Screenshots

Hotel Request edit table image

Create hotel dialog image

Edit Hotel dialog image

Testing Instructions

  1. Run the test suite via dev test (or dev test_api)
  2. Boot the app via dev up
  3. Log in to the app at http://localhost:8080
  4. Go to the "My Travel Requests" page via the top drop down nav.
  5. Create a travel authorization.
  6. In the details section, select at least one travel method with "aircraft" type.
  7. Generate the travel estimate.
  8. Submit the travel authorization to yourself as the supervisor.
  9. Go to Manger View page accessible via the drop down nav.
  10. Click on the new request from the "Pending Approvals" panel in the top left.
  11. Scroll to the bottom and approve the request.
  12. Go back to the "My Travel Requests" page, and find your new travel request in the table.
  13. Click on the Submit Travel Desk Request button to go to the Request tab.
  14. Add one flight in the Flight Request section.
  15. Scroll down to the "Add hotel" section and click the "Add Hotel" button to open the dialog.
  16. Note that only the Check-in Date is prefilled from the flight.
  17. Go back to the flights section and add another flight.
  18. Go back to the hotels section and open the add hotel dialog again. Note that both check-in/out are prefilled.
  19. Fill in the rest of the required fields. Check that validation works as expected.
  20. After creating a hotel, test out editing it via the "pencil" icon in the table.
  21. Check that you can delete a hotel via the red "x" icon.

Note that the Other Transportation Request section do not work yet.