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

Trip form custom icons #88

Merged
merged 5 commits into from
Mar 18, 2020

Conversation

binh-dam-ibigroup
Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup commented Mar 12, 2020

This PR addresses #87 by allowing implements to pass custom icons into SettingsSelectorPanel the way OTP-react-redux does, so implementers can optionally use icons in the mode selection pane other than the ones from the OTP-UI icons package. In particular, in OTP-UI icons, the "Take Transit" icon is the TriMet's logo, so with this PR, implementers will be able to change it.

This PR also fixes improper knob types used in some storybook stories.

Copy link
Contributor

@evansiroky evansiroky left a comment

Choose a reason for hiding this comment

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

See comment

@evansiroky evansiroky removed their assignment Mar 13, 2020
@evansiroky evansiroky removed their assignment Mar 14, 2020
Copy link
Member

@fpurcell fpurcell left a comment

Choose a reason for hiding this comment

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

I still see the storybook cranking out files to console.log. Would be good to get a fix in place for that.

e.g., when visiting story "Settings Selector Panel Styled":
@storybook/source-loader was applied to a file which does not contain a story. Please check your webpack configuration and make sure to apply @storybook/source-loader only to files containg stories. Related file:

Copy link
Member

@fpurcell fpurcell left a comment

Choose a reason for hiding this comment

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

Storybook is throwing a prop type validation error (might be nothing)

image

Copy link
Member

@fpurcell fpurcell left a comment

Choose a reason for hiding this comment

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

I'd like to see the Storybook warnings (see #79) being pumped out to console.log fixed. The storybook / props obj v. str issue is also something that would be good see to fixed.

That said, let me know if now is not the right time to fix, and I'll switch to approve.

Copy link
Member

@fpurcell fpurcell left a comment

Choose a reason for hiding this comment

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

I'm okay approving this now. Ideally w/ a fix to any console.log warnings, but not critical to the lib (think it's all Storybook).

@binh-dam-ibigroup
Copy link
Collaborator Author

@fpurcell Please see #90 for the issues you mentioned.

@fpurcell fpurcell merged commit df5c676 into opentripplanner:master Mar 18, 2020
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