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

VACMS-18435 Facility locator markers to numbers #32021

Merged
merged 5 commits into from
Sep 23, 2024
Merged

Conversation

randimays
Copy link
Contributor

@randimays randimays commented Sep 19, 2024

Are you removing, renaming or moving a folder in this PR?

  • No, I'm not changing any folders (skip to TeamSites and delete the rest of this section)

⚠️ TeamSites ⚠️

Did you change site-wide styles, platform utilities or other infrastructure?

  • No

Summary

Convert the markers in Facility Locator from letters to numbers. Includes updates to styling to make the markers flexible for different zoom levels / browser font sizes.

Also includes an update to move the distance / mileage below the facility name.

Figma for distance / mileage movement: https://www.figma.com/design/GvNVeG9GAXZaBpny7vNxZP/Facility-Locator?node-id=745-13219&m=dev

Related issue(s)

Testing done

Tested all Facility Types on desktop and mobile including different browser font sizes.

Screenshots

Mobile

Medium font size

Vet centers / VA cemeteries

Vet centersVA cemeteries
Screenshot 2024-09-20 at 11 21 52 AMScreenshot 2024-09-20 at 11 21 59 AM


VA benefits / Community pharmacies

VA benefitsCommunity pharmacies
Screenshot 2024-09-20 at 11 22 04 AMScreenshot 2024-09-20 at 11 22 12 AM


Community providers / Emergency care

Community providersEmergency care
Screenshot 2024-09-20 at 11 25 24 AMScreenshot 2024-09-20 at 11 25 36 AM


Urgent care / VA health

Urgent careVA health
Screenshot 2024-09-20 at 11 25 43 AMScreenshot 2024-09-20 at 11 25 51 AM
Other font sizes (List view)
Very largeLarge
Screenshot 2024-09-20 at 11 30 04 AMScreenshot 2024-09-20 at 11 29 57 AM
SmallVery small
Screenshot 2024-09-20 at 11 29 50 AMScreenshot 2024-09-20 at 11 29 42 AM
Other font sizes (Map view)
Very largeLarge
Screenshot 2024-09-20 at 11 38 49 AMScreenshot 2024-09-20 at 11 38 42 AM
SmallVery small
Screenshot 2024-09-20 at 11 38 33 AMScreenshot 2024-09-20 at 11 38 22 AM

Desktop

Medium font size

Vet centers

Search resultsClicking on result 1
Screenshot 2024-09-20 at 11 45 58 AMScreenshot 2024-09-20 at 11 46 08 AM

VA cemeteries

Search resultsClicking on result 4
Screenshot 2024-09-20 at 11 46 18 AMScreenshot 2024-09-20 at 11 46 26 AM

VA benefits

Search resultsClicking on result 7
Screenshot 2024-09-20 at 11 46 39 AMScreenshot 2024-09-20 at 11 46 45 AM

Community pharmacies

Search resultsClicking on result 13
Screenshot 2024-09-20 at 11 46 57 AMScreenshot 2024-09-20 at 11 47 05 AM

Community providers

Search resultsClicking on result 12
Screenshot 2024-09-20 at 11 47 23 AMScreenshot 2024-09-20 at 11 47 35 AM

Emergency care

Search resultsClicking on result 1
Screenshot 2024-09-20 at 11 47 45 AMScreenshot 2024-09-20 at 11 47 53 AM

Urgent care

Search resultsClicking on result 6
Screenshot 2024-09-20 at 11 48 05 AMScreenshot 2024-09-20 at 11 48 12 AM

VA health

Search resultsClicking on result 5
Screenshot 2024-09-20 at 11 48 21 AMScreenshot 2024-09-20 at 11 48 27 AM
Other font sizes
Very large
Screenshot 2024-09-20 at 11 53 04 AM
Large
Screenshot 2024-09-20 at 11 52 57 AM
Small
Screenshot 2024-09-20 at 11 52 48 AM
Very small
Screenshot 2024-09-20 at 11 52 41 AM

What areas of the site does it impact?

Facility locator only.

Acceptance criteria

  • Within the map and the results listing, numbers are used as the markers to indicate locations
  • The markers resize properly according to browser/device font size settings
  • Changes made to both mobile and desktop
  • For each results listing on the Facility locator, the milage is below the heading/facility name - as shown in the Figma file
  • Design review
  • Accessibility review

Quality Assurance & Testing

  • I fixed|updated|added unit tests and integration tests for each feature (if applicable).
  • Screenshot of the developed feature is added
  • Accessibility testing has been performed (by @randimays)

@@ -1,18 +0,0 @@
import DivMarker from './DivMarker';
Copy link
Contributor Author

@randimays randimays Sep 19, 2024

Choose a reason for hiding this comment

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

This file is not used or referenced anywhere. It was added to the repo ~4 years ago and the file that referenced it (VAMap.jsx) was deleted shortly after.

@va-vfs-bot va-vfs-bot temporarily deployed to master/18435-fl-markers/main September 19, 2024 23:44 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/18435-fl-markers/main September 20, 2024 15:36 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/18435-fl-markers/main September 20, 2024 15:44 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/18435-fl-markers/main September 20, 2024 16:17 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/18435-fl-markers/main September 20, 2024 16:26 Inactive
@randimays randimays marked this pull request as ready for review September 20, 2024 17:00
@randimays randimays requested review from a team as code owners September 20, 2024 17:00
Copy link
Contributor

@eselkin eselkin left a comment

Choose a reason for hiding this comment

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

I'm fine with it, but if they change base font size, the marker will change. Does that potentially lead to problems later? Like markers taking too much space? Does text zoom change the marker size a lot (is it the same marker as on the map)? Waiting on RI because I have something building locally.

@randimays randimays requested review from thejordanwood and a team September 20, 2024 17:48
Copy link
Contributor

@chriskim2311 chriskim2311 left a comment

Choose a reason for hiding this comment

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

LGTM

@randimays
Copy link
Contributor Author

@eselkin I have some screenshots in the description that show the markers at "very large" text size in Chrome. They do get pretty big, but they're not so large that they cause problems for the other parts of the UI, IMO.

@laflannery
Copy link

@eselkin and @randimays I'm still waiting for the RI as well but FWIW, before I wrote up this ticket and the testing steps I specifically looked at the sizing of the markers and if I wanted them to scale or not. I ended up at the same conclusion as Randi and thought the benefits of the resizing (ability to see them better, tap them better, etc. - which are the reasons a user might be increasing their font size to begin with) outweighed the possible con of taking up more space on the map.

@randimays
Copy link
Contributor Author

Sorry all; the review instance was working when I requested your reviews. Seems it just died. Same thing happened on Chris's PR as well. Looking into it...

@va-vfs-bot va-vfs-bot temporarily deployed to master/18435-fl-markers/main September 20, 2024 18:36 Inactive
@randimays
Copy link
Contributor Author

@laflannery @eselkin I still can't get the RI for this PR to work. But! I have this commit included in another Facility Locator PR, and its review instance is working:

http://af26f390210ec3fc693f3447480e41fe.review.vetsgov-internal/find-locations

If you want to test in that review instance, here are the tickets you can test in it:

Copy link

@laflannery laflannery left a comment

Choose a reason for hiding this comment

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

Approving for all 3 tickets mentioned in this comment

@randimays
Copy link
Contributor Author

@thejordanwood Forgot to tag you in this comment

Copy link

@thejordanwood thejordanwood left a comment

Choose a reason for hiding this comment

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

Approving the milage and the number tickets! I don't really need to approve the semantic tag ticket.

@randimays randimays merged commit 4bfb0bc into main Sep 23, 2024
86 checks passed
@randimays randimays deleted the 18435-fl-markers branch September 23, 2024 13:59
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.

7 participants