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

Configure driving directions #658

Conversation

amy-corson-ibigroup
Copy link
Contributor

@amy-corson-ibigroup amy-corson-ibigroup commented Sep 20, 2023

Removes step-by-step driving directions from the itinerary body if hideDrivingDirections is enabled in the configuration.

Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

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

I think the changes would be much easier to read if separating the component and render logic when hiding driving directions vs. not (see comments).

packages/itinerary-body/package.json Outdated Show resolved Hide resolved
packages/itinerary-body/src/AccessLegBody/index.tsx Outdated Show resolved Hide resolved
Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

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

Could you take care of some more cleanup, please.

packages/itinerary-body/src/AccessLegBody/index.tsx Outdated Show resolved Hide resolved
packages/itinerary-body/src/AccessLegBody/index.tsx Outdated Show resolved Hide resolved
packages/itinerary-body/src/AccessLegBody/index.tsx Outdated Show resolved Hide resolved
packages/itinerary-body/src/styled.tsx Outdated Show resolved Hide resolved
packages/itinerary-body/package.json Outdated Show resolved Hide resolved
Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

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

Sorry, I should have requested the additional story before. See also the cleanup comment.

Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for the changes!

@binh-dam-ibigroup
Copy link
Collaborator

@amy-corson-ibigroup Please remember to update the snapshots.

Copy link
Contributor

@daniel-heppner-ibigroup daniel-heppner-ibigroup left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for adding the stories too!

@amy-corson-ibigroup amy-corson-ibigroup merged commit 6e6fc37 into opentripplanner:master Oct 3, 2023
@amy-corson-ibigroup amy-corson-ibigroup deleted the configure-driving-directions branch October 3, 2023 16:34
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.

4 participants