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

Nearby View: Add Location Field Search #1320

Merged
merged 9 commits into from
Jan 7, 2025

Conversation

miles-grant-ibigroup
Copy link
Collaborator

@miles-grant-ibigroup miles-grant-ibigroup commented Dec 9, 2024

Adds a location field search field to the nearby view. There are still some styling concerns, and the current location issue is annoying as well. Would be nice to get that fixed.

Should we have it try to render a string on first load? If we did that then the placeholder text would never appear and that's why I'm against it.

Should we add using this thing to the Percy tests?

Screenshot 2024-12-09 at 1 00 40 PM

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.

This looks great!!! Found some opportunities for cleanup, also looks like there might be a few type errors

lib/components/viewers/nearby/nearby-view.tsx Show resolved Hide resolved
lib/components/viewers/nearby/nearby-view.tsx Outdated Show resolved Hide resolved
...nearbyViewCoords,
name: reversedPoint
}}
LocationIconComponent={() => (
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm this isn't showing up on chrome or safari
image

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, when it does show up it feels v close to the placeholder text? Probably better suited to a OTP-UI PR, but I guess just flagging it here

image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah these might both be otp-ui issues!

lib/components/viewers/nearby/nearby-view.tsx Outdated Show resolved Hide resolved
@miles-grant-ibigroup
Copy link
Collaborator Author

These were some beautifully excellent catches thank you! All resolved

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 great! Thanks for the changes (and sorry for how long it took me to look at them)

lib/components/viewers/nearby/nearby-view.tsx Show resolved Hide resolved
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!

@@ -401,6 +401,7 @@ components:
headsign: "{destination}"
nearbyListIntro: Liste de {count} entités à proximité.
nothingNearby: Aucun lieu à proximité.
searchNearby: Search nearby...
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this get flagged for wrong translation on weblate? I assume this was put here to pass the CI tests.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fingers crossed!

@miles-grant-ibigroup miles-grant-ibigroup merged commit d6f8374 into dev Jan 7, 2025
9 checks passed
@miles-grant-ibigroup miles-grant-ibigroup deleted the nearby-view-location-field branch January 7, 2025 15:50
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