-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/schedule-visualization #127
Conversation
…heduleAccordionItem
…alize with current date
… conditional rendering for AM/PM availability
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 great! I have noted a couple minor changes to make before merging. Also, now that I see this schedule page with its "Show real time information" button, it feels clear to me that these should be unified in some way. I'll open a new task for that. Bravo!
@@ -14,13 +15,6 @@ | |||
let interval; | |||
let busPosition = 0; | |||
|
|||
function formatTime(seconds) { |
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.
👍
schedulesMap.clear(); | ||
routeReference.clear(); | ||
|
||
if (!scheduleForStop.entry.stopRouteSchedules.length) { |
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.
👍
@@ -38,7 +38,7 @@ | |||
}; | |||
} else if (scheduledDiff <= 0) { | |||
return { | |||
status: 'on time', | |||
status: `${$t('status.on_time')}`, |
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.
I'll still merge this, but is there any reason this isn't expressed as:
status: $t('status.on_time'),
isn't the outer template string redundant?
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.
you're right I will update it in the upcoming PR.
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.
👍
fixes: #123