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

Conditionally display "Location" header on Service Location templates #17414

Closed
8 tasks
Tracked by #16825
davidmpickett opened this issue Mar 5, 2024 · 25 comments
Closed
8 tasks
Tracked by #16825
Assignees
Labels
CY24-Q2 Calendar year Q2 2024 priority Facilities Facilities products (VAMC, Vet Center, etc) Regional office CMS managed VBA product owned by the Facilities team sitewide UX VA.gov frontend CMS team practice area VAMC CMS managed product owned by Facilities team

Comments

@davidmpickett
Copy link
Contributor

davidmpickett commented Mar 5, 2024

User Story or Problem Statement

Currently it is possible for a CMS editor to populate the field_building_name_number or field_wing_floor_or_room_number fields of Service Location Address without populating the field_clinic_name. This can lead to situations where these fields don't have an appropriate header.

There is a Drupal ticket which would resolve this issue on the editor side by conditionally requiring this fields, however, having even once that is implemented, it won't immediately fix current instances of that field being missing.

In the design ticket, Jordan has proposed adding the label “Location” when the Name field is left blank and moving it to the top of the Service Location section.

Mockup

A mockup can be seen here. This design can also be found on the Location headers page in the VAMC Master Figma file

Screenshot 2024-03-11 at 10 03 31 AM

Description or Additional Context

VAMC Health Service

Screenshot 2024-03-22 at 11 02 09 AM

VAMC Top Task Page

Screenshot 2024-03-22 at 1 20 42 PM

VBA Facility Service

Screenshot 2024-03-22 at 1 26 38 PM

Steps for Implementation

Acceptance Criteria

  • Iffield_building_name_number or field_wing_floor_or_room_number are populated but field_clinic_name is not, display a header that says "Location" where field_clinic_name would normally be displayed
  • I expect all Liquid Templates that have Service Location in them are updated with this logic
    • VAMC Facility (health services section)
    • VAMC Billing and Insurance, Medical records, register for care (Police if it has been updated to use non clinical services)
    • VBA facility (service accordions)
    • Confirm this works for cases where a service has either a single or multiple service locations
  • Requires design review
  • Requires accessibility review
@davidmpickett davidmpickett added VA.gov frontend CMS team practice area Facilities Facilities products (VAMC, Vet Center, etc) Needs refining Issue status VAMC CMS managed product owned by Facilities team labels Mar 5, 2024
@davidmpickett
Copy link
Contributor Author

@xiongjaneg @mmiddaugh tagging you on this ticket as it is one that of the smaller actionable items to come out of Jordan's design work and might be a good candidate for prioritization

@aklausmeier
Copy link

@thejordanwood Please review and update ticket with finalized mockup, I believe you wanted to move "location" up above phone so it falls beneath facility address.

@thejordanwood
Copy link

thejordanwood commented Mar 11, 2024

@aklausmeier I've updated the ticket with that info and also included a mockup of the new design.

@davidmpickett davidmpickett changed the title [Consider] Conditionally display "Location" header on Service Location templates Conditionally display "Location" header on Service Location templates Mar 11, 2024
@xiongjaneg xiongjaneg added the UX label Mar 19, 2024
@davidmpickett davidmpickett added Regional office CMS managed VBA product owned by the Facilities team and removed Needs refining Issue status labels Mar 21, 2024
@davidmpickett
Copy link
Contributor Author

@mmiddaugh I think there's a good case for this being launch blocking for VBA/VAMC service location. Compare before and after:

Screenshot 2024-03-22 at 1 31 52 PM

Screenshot 2024-03-22 at 1 32 03 PM

@jilladams
Copy link
Contributor

Would help to provide an example service with multiple service locations for testing.

@davidmpickett
Copy link
Contributor Author

davidmpickett commented Mar 27, 2024

https://www.va.gov/pittsburgh-health-care/locations/pittsburgh-va-medical-center-university-drive/#gastroenterology
is my go-to example of 2 service locations

Example of a Service with 2 service locations where 1 of the service locations meets the criteria:

field_building_name_number or field_wing_floor_or_room_number are populated but field_clinic_name is not

https://www.va.gov/syracuse-health-care/locations/syracuse-va-medical-center/#nutrition-food-and-dietary-care

screencapture-web-xptmfsnjoodldn85nzgkrgljqtfbz24b-ci-cms-va-gov-syracuse-health-care-locations-syracuse-va-medical-center-2024-03-27-11_34_19

@maxx1128
Copy link

maxx1128 commented Apr 2, 2024

@davidmpickett Are you able to give links to any other active page examples of this bug? I have a review instance up at http://9b38542627c29dcfdb00072ae2240fdc.review.vetsgov-internal/ and will be able to check the effectiveness of the fix quickly against that.

@davidmpickett
Copy link
Contributor Author

@maxx1128
Copy link

maxx1128 commented Apr 5, 2024

I was able to confirm the first two linked examples locally and updated the pull request. Once I can update my local environment to recreate multiple service locations, then this should be all set to review.

@davidmpickett davidmpickett added the CY24-Q2 Calendar year Q2 2024 priority label Apr 11, 2024
@davidmpickett
Copy link
Contributor Author

Rerunning content release on Tugboat so this can be verified

@davidmpickett
Copy link
Contributor Author

Verified on Prod, but still gonna verify on Tugboat that it plays well with VBA and Service Location enhancements

Screenshot 2024-04-15 at 5 15 52 PM

Screenshot 2024-04-15 at 5 16 01 PM

@davidmpickett
Copy link
Contributor Author

Hey @maxx1128 noticing some funky spacing on Tugboat when comparing the instances where the Location header is used compared to instances with field_clinic_name

Location

Screenshot 2024-04-15 at 11 49 46 PM

field_clinic_name

Screenshot 2024-04-15 at 11 49 54 PM

https://web-xptmfsnjoodldn85nzgkrgljqtfbz24b.ci.cms.va.gov/pittsburgh-health-care/locations/pittsburgh-va-medical-center-university-drive/#mental-health-care

https://web-xptmfsnjoodldn85nzgkrgljqtfbz24b.ci.cms.va.gov/pittsburgh-health-care/locations/pittsburgh-va-medical-center-university-drive/#hivhepatitis-care

Looks like the Location header is missing class="vads-u-margin-top--0"

@maxx1128
Copy link

@davidmpickett Those tugboat links aren't working, but I can still update those headers to add the class.

@maxx1128
Copy link

@davidmpickett I created a draft pull request with the class added, you can see it here: department-of-veterans-affairs/content-build#2020

@jilladams
Copy link
Contributor

jilladams commented Apr 16, 2024

#sitewide-facilities thread with some concerns from Michelle / Amanda about changes here: https://dsva.slack.com/archives/C0FQSS30V/p1713299374411909

@maxx1128 please take a look at that thread for your reference, and Jordan / Dave are tagged there to take a UX-look as well.

(edited by @davidmpickett to link to the Slack source of truth)

@thejordanwood
Copy link

@maxx1128 Just for your awareness, I think this looks good except for the spacing issue that Dave pointed out. I'm waiting to approve until I can review the draft pull request you've created to fix this issue. cc: @davidmpickett

@davidmpickett
Copy link
Contributor Author

davidmpickett commented Apr 18, 2024

@jilladams While I'm out. Steps to get this closed:

  • Max's new PR (contentbuild-2020) needs to target the content build integration branch rather than main so that it can be reviewed with all other changes in context
  • Code review on Max's new PR @eselkin
  • Design review on Max's PR env
  • [Optional] Do a content release on the Integration Branch Tugboat using contentbuild-2020 as the content build version so can verify the fix works as intended on Tugboat [QA step]
  • Max's new PR merged into Integration Branch
  • Do a content release on the Integration Branch Tugboat using Integration Branch PR (contentbuild-1912) as the content build version so can verify the fix works as intended on Tugboat [Verification on Prod]

The alternate path of merging contentbuild-2020 to Main

  • Precludes the step of QAing on Integration Branch Tugboat, might need ngrok into Max's local or something?
  • would require rebasing contentbuild-1912 against Main before the final content release for "prod verification"

@maxx1128
Copy link

@thejordanwood The pull request with the change fixing the spacing issue has a working test environment you can look at here.

@thejordanwood
Copy link

thejordanwood commented Apr 19, 2024

@maxx1128 The spacing is a bit too close together now. Is there any way that it can be the same as the spacing between the Contact information and Behavioral health services headers in this example?

Edit: Design System guidance in Figma says spacing above H5 headers should be 22.5 px. We should get as close to this as the VADS ecosystem spacing allows.

This is what I'm seeing:
Screenshot 2024-04-19 at 1 42 53 PM

ideally, the spacing should look like this:
Screenshot 2024-04-19 at 1 42 34 PM

@laflannery
Copy link
Contributor

@maxx1128 I spoke to @aklausmeier and we want to make sure that there aren't custom margins being used - that we use the standard margins provided by the DS. That being said can you:

  • Remove the 0 margin on the "Location" header Jordan noted above?

Screenshot 2024-04-22 at 12 04 42 PM

  • Remove the custom 1em margin that is on the "Contact information" header (which I know you didn't add if that could be removed anyway?)
    Screenshot 2024-04-22 at 12 04 13 PM

@maxx1128
Copy link

The custom 1em margin is actually being added in the vets-website repo, not content-build, which is a little odd, but makes these updates a bit simpler. I have closed the existing pull request, so the Location header stays as it is in production without the 0 margin helper. I've also opened another pull request that removes the custom margin.

@laflannery
Copy link
Contributor

laflannery commented Apr 22, 2024

Just want to close the loop on the spacing issues that Jordan and Dave had brought up in a few comments in this ticket. This is a mural of everywhere this Location header work currently has an impact right now, it shows a few issues:

  • The largest issue will be handled with a separate ticket (noted in a comment in the mural)
  • The other 2 issues are what was pointed out originally by Dave but then after Max resolved that one instance a new issue was pointed out by Jordan, because now in another use case the headers were too close.

We ideally should always be using DS margins/spacing and not adding custom margins. In this case, we need to look at the margins being added to the wrapping <div>. But again, we need to look at this for every possible scenario because I already know that if I remove the margin in one case, I have created an issue in another case. The overall spacing here should be reviewed/cleaned up separately (perhaps as part of the typography review)

@aklausmeier
Copy link

Thank you @laflannery! Agree with reviewing spacing as part of the typography updates.

@davidmpickett
Copy link
Contributor Author

@laflannery Thanks for that thorough audit! I made a note about reviewing spacing on the Typography Audit.

@maxx1128, seems like once you merge your new PR and this is verified on Prod, we'll be good to close this ticket

@davidmpickett
Copy link
Contributor Author

Confirmed on Tugboat and Prod

Screenshot 2024-04-25 at 11 07 25 AM

Screenshot 2024-04-25 at 11 10 36 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CY24-Q2 Calendar year Q2 2024 priority Facilities Facilities products (VAMC, Vet Center, etc) Regional office CMS managed VBA product owned by the Facilities team sitewide UX VA.gov frontend CMS team practice area VAMC CMS managed product owned by Facilities team
Projects
None yet
Development

No branches or pull requests

7 participants