-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Show "Depart at" buttons and show the correct itinerary on click (
#2238) * prefactor: Convert <.itinerary_detail /> into a live component And change its input from `itinerary` to `itineraries` so that it can be responsible for choosing which itinerary to display * feat: Show "Depart at" buttons and show the correct itinerary on click * style: Style depart-at buttons correctly (entirely with Tailwind) * refactor: Extract <.depart_at_button /> as a sub-component * style: Format the "Depart at" text correctly * cleanup: Remove some useless assigns * tests: Add tests that validate itinerary-toggling behavior * refactor/cleanup: Rename selected_trip_index to selected_itinerary_index * fix: Remove TODO tag, which was causing Credo to fail * refactor: Convert itinerary_details to a function component * tests: Co-locate exlicit testing values * cleanup: Make test helper functions private * fix: Don't preserve selected_itinerary_detail_index when hiding and re-showing an itinerary * tests: Use existing factory for otp_itineraries rather than calling limit_route_types each time * cleanup: Use faker for trip times and trip ID's in tests
- Loading branch information
1 parent
fc582ba
commit 5ab1881
Showing
5 changed files
with
196 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters