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

Feature/schedule-visualization #127

Merged
merged 29 commits into from
Nov 23, 2024
Merged

Conversation

Ahmedhossamdev
Copy link
Member

fixes: #123

… conditional rendering for AM/PM availability
Copy link
Member

@aaronbrethorst aaronbrethorst left a 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) {
Copy link
Member

Choose a reason for hiding this comment

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

👍

src/components/stops/StopPane.svelte Outdated Show resolved Hide resolved
schedulesMap.clear();
routeReference.clear();

if (!scheduleForStop.entry.stopRouteSchedules.length) {
Copy link
Member

Choose a reason for hiding this comment

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

👍

src/routes/stops/[stopID]/schedule/+page.svelte Outdated Show resolved Hide resolved
@@ -38,7 +38,7 @@
};
} else if (scheduledDiff <= 0) {
return {
status: 'on time',
status: `${$t('status.on_time')}`,
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

@aaronbrethorst aaronbrethorst left a comment

Choose a reason for hiding this comment

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

👍

@aaronbrethorst aaronbrethorst merged commit e8f0216 into main Nov 23, 2024
4 checks passed
@aaronbrethorst aaronbrethorst deleted the feature/schedule-visualization branch November 23, 2024 04:09
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.

Add support for visualizing schedules
2 participants