Skip to content

fix: remove "Planned Route" label from Map by Vehicle #1123

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

Merged
merged 35 commits into from
May 18, 2025

Conversation

RGvirer
Copy link
Collaborator

@RGvirer RGvirer commented May 18, 2025

Description

Remove "Planned Route" label from the map legend in "Map by Vehicle"

screenshots

Screenshot_31
Screenshot_30

RGvirer added 2 commits May 18, 2025 16:26
Remove "Planned Route" label from the map legend in "Map by Vehicle"
@RGvirer RGvirer requested a review from NoamGaash as a code owner May 18, 2025 13:37
@RGvirer RGvirer self-assigned this May 18, 2025
@RGvirer RGvirer linked an issue May 18, 2025 that may be closed by this pull request
Copy link
Contributor

github-actions bot commented May 18, 2025

@RGvirer RGvirer changed the title Remove "Planned Route" label from Map by Vehicle fix: remove "Planned Route" label from Map by Vehicle May 18, 2025
Copy link
Member

@NoamGaash NoamGaash left a comment

Choose a reason for hiding this comment

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

I wander if we can make it more generic -
I mean, instead of having two arguments for planned and actual rides, and a flag to remove one of the

imgSrc={plannedRouteStopMarkerPath}
title={t('plannedRoute')}
/>
{showPlannedRoute && (
Copy link
Member

Choose a reason for hiding this comment

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

Did you consider this option?

Can be cleaner :)

Suggested change
{showPlannedRoute && (
{plannedRouteStops && (

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You're absolutely right – it's much cleaner this way.
Updated the code accordingly. Thanks for the suggestion!

@RGvirer RGvirer merged commit eeaa9af into hasadna:main May 18, 2025
13 checks passed
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.

Remove "Planned Route" label from the map legend in "Map by Vehicle"
2 participants