Skip to content

Conversation

@thecristen
Copy link
Collaborator

@thecristen thecristen commented Feb 5, 2024

* refactor(TripPlanController): remove extra inputs

For the remaining wheelchair accessibility checkbox, make it initially selected.

* refactor(OpenTripPlanner): stop merging accessible+inaccessible

Because requests without `wheelchair: true` do not compute the accessibilityScore, remove the (misleading, inaccurate) "Might not be accessible" icon from the result.

* feat(OTP.Parser): improved error handling
@thecristen thecristen added the dev-blue Deploy to dev-blue label Feb 5, 2024
* deps(mix): add open_trip_planner_client

* refactor: use OpenTripPlannerClient

- deprecate `TripPlan.Api` behaviour and the modules using it (`TripPlan.Api.MockPlanner` and `TripPlan.Api.OpenTripPlanner`) in favor of using the client (`OpenTripPlannerClient` and its behaviour `OpenTripPlannerClient.Behaviour`).
- remove `TripPlan.plan/4` function

* deps(mix): install Mox

* feat(OpenTripPlannerClient.Mock): add test stub

* deps(mix): add ex_machina and faker

* feat(Test.Support.Factory): trip plan data generation

* feat: request itinerary tags

* feat: render itinerary tags

* fix typings

* deps(mix): update OpenTripPlannerClient

* refactor: one tag per itinerary

* feat(TripPlan.Query): different tags for arrive/depart

* fixup: one tag per itinerary
* fixup merge commit

* feat(TripPlan.Query): add new MostDirect tag

bump open_trip_planner_client version, which adds support for MostDirect tag since v0.6.

this also adjusts the returned data slightly, so when parsing we can use the agency name as opposed to parsing the agency GTFS ID.

* hotfix for OTPClient error involving parsing routing errors
* fixup: hotfix for OTPClient error involving parsing routing errors

* fix: preserve selected modes and wheelchair options
* fixup merge commit

* feat(TripPlan.Query): add new MostDirect tag

bump open_trip_planner_client version, which adds support for MostDirect tag since v0.6.

this also adjusts the returned data slightly, so when parsing we can use the agency name as opposed to parsing the agency GTFS ID.

* hotfix for OTPClient error involving parsing routing errors

* fixup: hotfix for OTPClient error involving parsing routing errors

* fix: preserve selected modes and wheelchair options

* cleanup: remove unused component

* chore: make TS believe formData.entries() is a thing

* chore(TripPlannerResultsTest): change test render

use testing-library instead of react-test-renderer

* fix: add border to form controls

* feat(FeedbackForm): new component

* fix (?) snapshot time

* fixup: use classes

* feedback: style improvements
* deps: bump open_trip_planner_client

* chore: stop server-rendering TripPlannerResults

* chore(TripPlan.Query): remove unused argument

* feat(TripPlanView): add trip_plan_metadata/1

* pass trip plan metadata to frontend

* feat(TripPlan.Feedback): submit response to backend

* mostly renames

* cleanup with some feedback
@thecristen thecristen marked this pull request as ready for review March 4, 2024 17:06
@thecristen thecristen requested a review from a team as a code owner March 4, 2024 17:06
@thecristen thecristen requested a review from anthonyshull March 4, 2024 17:06
@thecristen thecristen merged commit 9332225 into master Mar 4, 2024
@thecristen thecristen deleted the feat/trip-planner-improvements branch March 4, 2024 17:41
@thecristen thecristen removed the dev-blue Deploy to dev-blue label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants