Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(TripPlan.ItineraryGroups): improve handling for "arrive by" selection #2329

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

thecristen
Copy link
Collaborator

Summary of changes

Asana Ticket: TP | Show appropriate itineraries for the "Arrive by" selection and TP | Alternate time selection should be reflected in the itinerary summary

The main crux is that, when the user selects "arrive by" instead of the default or "leave at" time, many of our code's assumptions turned out to be false... so this PR makes a slew of changes around that.

  • when limiting the number of itineraries for each group, we don't want the first N itineraries if using "arrive by" -- we want the last
  • move (and rename) the 'depart at buttons' to same level as itinerary_summary and itinerary_detail. this one just felt more legible to me
  • fix which button from the group is the initially active one (as it will be the last button, not first, for "arrive by")
  • fix the displayed summary so that it reflects the chosen (via button click) itinerary from the group, instead of always reflecting the representative itinerary
  • adjust the display text in various ways, to better describe 'arrive by' results
  • adjust ItineraryGroups.from_itineraries/2 to take 5 groups after all the sorting
  • add more docs all around

- fix the displayed summary so that it reflects the chosen itinerary from the group
- move (and rename) the 'depart at buttons' to same level as itinerary_summary and itinerary_detail
- fix which button from the group is the initially active one
- adjust the display to better describe 'arrive by' results
- adjust ItineraryGroups.from_itineraries/2 to take 5 groups *after* sorting
- add more docs all around
@thecristen thecristen requested a review from a team as a code owner January 14, 2025 18:24
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.

1 participant