-
Notifications
You must be signed in to change notification settings - Fork 53
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
Stop viewer new schedules #292
Conversation
Non-breaking change (adds args to getFormattedStopTime signature)
One quick comment: for the scrolling, I think we should perhaps have the controls at the top of the stop viewer fixed in place (rather than disappearing when I scroll down the list of arrivals). The table headers should also stay fixed if possible. |
This prevents overlap of the header content with the scrolling content (e.g. long route lists or long schedules).
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 is looking pretty good! I have a few more small changes:
Ready to review again, hopefully. |
Ready to review once more. |
# # not begin service again until Monday, we are showing its next | ||
# # departure and it is not entirely excluded from display | ||
# # (defaults to 4 days/345600s if unspecified). | ||
# timeRange: 345600 |
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.
Thanks for adding all of this!
lib/reducers/create-otp-reducer.js
Outdated
@@ -74,6 +74,8 @@ export function getInitialState (userDefinedConfig, initialQuery) { | |||
routingTypes: [], | |||
stopViewer: { | |||
numberOfDepartures: 3, // per pattern | |||
// Hide block ids unless explicitly enabld in config. |
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.
typo: enabld
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.
Oh, the spellchecker did not catch that @evansiroky!?
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! Just a small typo and merge conflict (probably from the onTimeThresholdSeconds
merge).
🎉 This PR is included in version 3.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR fixes #286 and fixes #287 as follows:
StopScheduleTable
sorted by departures across all patterns.(it will be underneath the stop viewer header)and highlights it./date/
OTP endpoint, removing stop times previously included from the previous service day.stoptime.headsign
returned by OTP are blank, they are populated using the pattern description from OTP.utils/viewer.js
, including a newStopTimeCell
component used byPatternRow
Remaining issues
working on this nextrefactored in c7e2368.PatternRow
, will get removed eventiually. => Removed.