Skip to content

Conversation

@binh-dam-ibigroup
Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup commented Jul 2, 2020

This PR passes the correct version of setActiveLeg to ConnectedItineraryBody and addresses an issue involving ibi-group/trimet-mod-otp#265.

To test: clicking on a leg summary (e.g. "Walk 2 miles to ...") in the current dev will cause a blank screen.
With the proposed changes, the map will zoom to the selected leg.

@evansiroky evansiroky removed their assignment Jul 2, 2020
Copy link
Member

@landonreed landonreed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is OK for now, but the thing we should ultimately do is to change the signature of setActiveLeg and the other actions in narrative-itineraries.js from (index, leg) to ({index, leg}). That probably means some changes in otp-ui too. Please add a comment to that effect in narrative-itineraries and open an issue (if needed) in otp-ui.

@binh-dam-ibigroup
Copy link
Collaborator Author

I have created this OTP-UI issue opentripplanner/otp-ui#180 to coordinate updating the signature of setActiveLeg.

@landonreed landonreed merged commit 7b42339 into dev Jul 7, 2020
@landonreed landonreed deleted the itin-body-set-active-leg branch July 7, 2020 19:46
@landonreed
Copy link
Member

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@landonreed
Copy link
Member

🎉 This PR is included in version 1.0.0-alpha.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants