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

Appointments header is showing on VBA services without content #17925

Closed
1 of 2 tasks
Tracked by #16445
laflannery opened this issue Apr 23, 2024 · 10 comments
Closed
1 of 2 tasks
Tracked by #16445

Appointments header is showing on VBA services without content #17925

laflannery opened this issue Apr 23, 2024 · 10 comments
Assignees
Labels
Facilities Facilities products (VAMC, Vet Center, etc) Regional office CMS managed VBA product owned by the Facilities team sitewide VA.gov frontend CMS team practice area VAMC CMS managed product owned by Facilities team

Comments

@laflannery
Copy link
Contributor

laflannery commented Apr 23, 2024

Background

I added to test services to a VBA facility and in one instance the "Appointments" header showed when I'm not sure it should be because there was no content below it.

Description

Happy path that works properly I added a VBA service with the following options: - Service options: - Office visits: First-come, first-served - Virtual: First-come, first-served - Appointments: - Remove text - Uncheck Facility phone number - No additional phone numbers - No online scheduling

On the FE, there was no appointments info at all, which was expected:
Screenshot 2024-04-23 at 9 52 15 AM

Bug

However, in the second scenario I did see FE info and I feel like I shouldn't have:

  • Service options:
    • Office visits: Yes, with or without and appointment
    • Virtual: First-come, first-served
  • Appointments:
    • Remove text
    • Uncheck Facility phone number
    • No additional phone numbers
    • No online scheduling
      On the FE, there was an "Appointment" heading and then no content underneath it:
      Screenshot 2024-04-23 at 9 54 12 AM

Is this heading conditional based on the Service option choices? And if so, would we be able to but some conditionals into Drupal to validate against this FE scenario? or at the very least maybe update the helptext - For example "If you have indicate that appointments are available or necessary please make sure to do something"? Or is the better option to conditionalize the header against something else?

Acceptance Criteria

  • If all the values below a header are empty, on either VAMC or VBA Regional Office, don't display the Appointments header
  • Requires accessibility review
@laflannery laflannery added Needs refining Issue status Facilities Facilities products (VAMC, Vet Center, etc) Regional office CMS managed VBA product owned by the Facilities team VA.gov frontend CMS team practice area Drupal engineering CMS team practice area labels Apr 23, 2024
@jilladams
Copy link
Contributor

From refinement:

  • Previously Dave tried to come up with a logic matrix for when to / not to display the Appointments header. This might be an exception. The task here is to revisit the matrix, figure out this case, and handle it.

@jilladams jilladams removed the Needs refining Issue status label May 8, 2024
@davidmpickett
Copy link
Contributor

davidmpickett commented May 8, 2024

Logic matrix is maintained in Figma: https://www.figma.com/file/eECF81nwktbnKX889HiKhl/VBA-Content-Specs?type=design&node-id=208-714&mode=design

Static copy for ease of references

Logic for displaying Appointment Info on Front End

However, this matrix was really meant to show scenarios in which all the Appointment fields should definitely be Hidden (because editor has indicated that appointments are not possible). The Show scenarios still should account for the possibility of no appointment data being entered and therefore the Header shouldn't show.

Ideally, in the scenario Laura has described that what we should actually be doing is enforcing Drupal input. If the Editor has indicated that Appointments are possible, there should be SOMETHING in the appointment section (a phone number, online scheduling, or some text). I have a ticket where I have been gathering some of the possible conditional validation situations: #18031

I think this ticket can be refined as a FE ticket to be defensive against this scenario.

@jilladams
Copy link
Contributor

(Just read this title as "Appointments header is showing on VBA services without consent" and had to double take for a sec.)

@jilladams
Copy link
Contributor

From product sync:

  • We would prefer (ideally) to fix this via Drupal validation in Conditional logic for Service Locations fields #18031
  • Applies to both VBA & VAMC
  • Where there is existing data about appointments in VAMCs, if we enforce via Drupal validation, there will be a lag to get content into compliance, as it will only get fixed when Editors make their way back around to edit their facility data.

Shouldn't block VBA staging review, signed off by Michelle / Michael.

@laflannery
Copy link
Contributor Author

The issue is actually simpler than this and the matrix really should have nothing to do with the display of this header.

  • The "Appointments" header should only appear if content in the Drupal Appointments section has been entered because this is the relevant information that would apply to the Appointments section
  • We also need to address the heading levels/display of this information. This was something we put off for MVP but it needs to be addressed
    • For example, when we have an H4 Appointments heading and then an H4 phone heading, it's not clear that this phone number is for making appointments

@mmiddaugh
Copy link
Contributor

Example in Prod with scenario Laura describes above, from Coatesville VA Medical Center urgent care

Screenshot image.png

@eselkin
Copy link
Contributor

eselkin commented Jul 1, 2024

I agree about the h4s all being the same level, because of the way that I constructed the new conditionals (variables that can be reused), we can conditionally push the appointments phone numbers down to h5 if we want. But I don't know what the view of using headers that high are.

@davidmpickett
Copy link
Contributor

I agree about the h4s all being the same level, because of the way that I constructed the new conditionals (variables that can be reused), we can conditionally push the appointments phone numbers down to h5 if we want. But I don't know what the view of using headers that high are.

The long-term vision is to move away from headers for most of the interior of Service Accordions, so I would say let's definitely not add an additional tier of headers.

@davidmpickett davidmpickett self-assigned this Jul 3, 2024
@davidmpickett
Copy link
Contributor

I didn't have published content that met the specific criteria needed to test this on my Tugboat, so I just added some and am doing content release again. Should be here when ready: https://web-jdujzwgvp8kmj36hcfonqejlgtq5b6st.demo.cms.va.gov/birmingham-veteran-readiness-and-employment-office

@davidmpickett
Copy link
Contributor

Verified on Tugboat
Screenshot 2024-07-08 at 9 55 21 AM

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

No branches or pull requests

5 participants