-
Notifications
You must be signed in to change notification settings - Fork 33
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
Feat/extra info refactor #408
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
7f5eaf0
to
0bab51e
Compare
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 1 New issue |
simplify method to use array of lat and lng values instead of objects.
when an alternative route was selected and the routes recalculated, the UI would keep the activeRouteIndex. It is now reset to the first route instead which is the normal route.
when using alternative routes, the selected extra information was lost when switching the active route. The selected extra is now saved in the store and displayed when the active route changes.
when switching between alternative routes, the extra info section is now expanded if some extra info is currently displayed on the map.
when selecting an alternative route via map or the button in the route details, the active route would change but the details would not be expanded. The panel that should be expanded is now set from the, activeRouteIndex in the store. - avoid collapsing again for button in the route details
0bab51e
to
dbbaa51
Compare
Quality Gate passedIssues Measures |
This improves the usability of the extra info toggle and makes it working properly with alternative routes.
The state of the extra info visibility is now stored and reused for subsequent and alternative routes.
This works for extra info sub categories as well (e.g. waytype=highway).
If the selected/new route doesn't have that sub category, it falls back to the main extra info category (e.g. from displaying waytype=highway to waytype)
Fixes two small issues:
Includes small refactoring.