-
Notifications
You must be signed in to change notification settings - Fork 5
refactor(app.js): Migrate to @opentripplanner icons #260
Conversation
Also @landonreed or @evansiroky, I had to regenerate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still splits the icon config stuff up quite a bit. Can we just consolidate icon config in config.js and leave the rest out?
That's a caveat of using the OTP-UI library. The default OTP-RR is ported over, so to avoid that you need to compile the desired style into OTP-RR before hand. |
I'm seeing a prop warning when I plan a trip: trip plan |
@landonreed, I think we have now a pretty good visual parity between the two with my latest changes to opentripplanner/otp-react-redux#150. |
… config.js. BREAKING CHANGE: ustomIcons previously defined in config.yml must be moved into custom ModeIcon or custom LegIcon components that you define in config.js.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! But let's be sure not to merge into master until the otp-rr release is performed and fully tested. In fact, I think it might actually be good to change the base branch from master
to otp-ui-refactor
(which should be branched from master).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See most recent comment (#260 (comment)). Also, there are merge conflicts.
Blocked pending action on opentripplanner/otp-react-redux#171. |
…se with OTP-RR 1.0 beta.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the branch changed to with-otp-ui-refactor
? Can't we just use master for this?
Blocking, awaiting #265. |
This PR migrates trimet-mod-otp to use the new @opentripplanner icon sets.
What changes (breaking):
configure()
function inconfig.js
now defines:ModeIcon
attribute that sets the icon set for the transit mode selection pane.LegIcon
attribute that replacesapplyCustomIconLogic
and contains custom logic to determine icons based on travel leg.customIcons
are entirely removed.Now depends on #265 .