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

Add time to map itin summary overlay #1254

Merged
merged 4 commits into from
Aug 20, 2024

Conversation

miles-grant-ibigroup
Copy link
Collaborator

Description:

Adds a time duration to the itinerary summary overlay! Follows SEPTA style

PR Checklist:

  • Does the code follow accessibility standards (WCAG 2.1 AA Compliant)?
  • Are all languages supported (Internationalization/Localization)?
  • Are appropriate Typescript types implemented?

Copy link
Contributor

@amy-corson-ibigroup amy-corson-ibigroup left a comment

Choose a reason for hiding this comment

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

Looks really good!

@@ -57,7 +70,8 @@ const Card = styled.div`
}
}
div {
margin-top: -0px!important;
margin-top: -0px !important;
Copy link
Contributor

Choose a reason for hiding this comment

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

I doing think this - is doing anything!

Copy link
Collaborator Author

@miles-grant-ibigroup miles-grant-ibigroup Aug 13, 2024

Choose a reason for hiding this comment

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

Good catch haha

@@ -112,7 +126,8 @@ function getUniquePoint(

const selfDistance = distance(point, centerOfLine)
// maximize distance from all other points while minimizing distance to center of our own line
const averageDistance = totalDistance / otherMidpoints.length - selfDistance
const averageDistance =
1.2 * (totalDistance / otherMidpoints.length) - selfDistance
Copy link
Contributor

Choose a reason for hiding this comment

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

What's this 1.2 do?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This prioritizes the labels not overlapping slightly above them being in the center of the line. I'm not super happy with this value, so we'll probably tweak it more in the future

Copy link
Contributor

@josh-willis-arcadis josh-willis-arcadis left a comment

Choose a reason for hiding this comment

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

LGTM

@miles-grant-ibigroup miles-grant-ibigroup merged commit 21140f2 into dev Aug 20, 2024
9 checks passed
@miles-grant-ibigroup miles-grant-ibigroup deleted the add-time-to-map-itin-summary-overlay branch August 20, 2024 14:57
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.

3 participants