-
Notifications
You must be signed in to change notification settings - Fork 59
Route Viewer Details Pane and Realtime Vehicle Position Viewer #441
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
Route Viewer Details Pane and Realtime Vehicle Position Viewer #441
Conversation
…etries in one request
|
Have implemented all changes and slimmed down |
Can this be a fallback instead? |
|
Yes it can be! In 30f4a83 |
binh-dam-ibigroup
left a comment
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.
Some more recommendations for changes.
i18n/en-US.yml
Outdated
| incoming_at: "approaching {stop}" | ||
| stopped_at: "doors open at {stop}" | ||
| in_transit_to: "next stop {stop}" | ||
|
|
||
| travellingAt: "travelling at {milesPerHour}" | ||
| relativeTime: "{seconds} ago" |
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.
Any reason the first letter of the displayed text is not capitalized?
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.
Personal preference, but I do think it looks cleaner and helps hide the fact that 3 rows of text are being shown with no graphics to balance it out
| import React, { Component } from 'react' | ||
| import { connect } from 'react-redux' | ||
| import styled from 'styled-components' | ||
| import PropTypes from 'prop-types' |
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.
Sort imports. (I recall we enabled prettier automatically on commits at one point?)
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 the comments Binh. All addressed |
binh-dam-ibigroup
left a comment
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.
Good to go after fixing the typo and the import order.
|
Thanks Binh! All changes are addressed. |
|
🎉 This PR is included in version 3.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Expands the route viewer details to be a full fledged view that can fill the sidebar.
Piggyback PR of #435 for internationalization.
New components added in this PR are still missing internationalization, but these will be added once #435 is approved.
Should work with existing OTP instances, but has features designed to work explicitly with ibi-group/OpenTripPlanner#63. If not using the new version of OTP, route shapes will not appear (due to changed OTP endpoints) and realtime vehicles will not appear