department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
99 stars 69 forks source link

Add appointment fields from VAMC facility health service to Service location #16348

Closed omahane closed 7 months ago

omahane commented 11 months ago

User Story or Problem Statement

As an editor, I want to be able to create facility services with service locations specific the appropriate type of facility and service, whether VAMC or VBA.

Acceptance Criteria

Implementation steps

Service location - Service Options

Service location - Appointments

Default appointment text per Service

xiongjaneg commented 10 months ago

@davidmpickett Please review this ticket and share your wisdom

omahane commented 10 months ago

@davidmpickett

Are we doing ALL the updates to Service Location from that Figma file in this ticket? Or are we limiting the scope to the sub sections: Service Options and Appointments? (question by @davidmpickett )

I covered in the Implementation Steps the changes I planned to make. I'll update the AC to be more specific and clear.

Also, do we have a comprehensive list of the changes to Service Location, based on Figma?

omahane commented 10 months ago

@davidmpickett

Are we going to power these two list fields with the VA Service delivery options taxonomy that was created previously? (question by @davidmpickett)

No, we were going to make two new list fields.

davidmpickett commented 10 months ago

Also, do we have a comprehensive list of the changes to Service Location, based on Figma?

No. There are still open feedback threads in #16154, so until that's wrapped up can't make a final list.

For changes that won't be covered by this ticket, those could be added to #16327

davidmpickett commented 10 months ago

Just realized that there are two different Figma files covering Service Location both with active comments:

Before this ticket is picked up, @thejordanwood will need to indicate a single source of truth for Drupal devs to reference.

davidmpickett commented 10 months ago

@davidmpickett

Are we going to power these two list fields with the VA Service delivery options taxonomy that was created previously? (question by @davidmpickett)

No, we were going to make two new list fields.

Then let's also retire that Taxonomy so we don't have a vestigial entity hanging around. Since it never got any data, might be able to full on Delete it?

omahane commented 9 months ago

@mmiddaugh @xiongjaneg I was adding the help text for the Service options and noticed the use of "if" where I would typically expect to see "whether":

I recommend that we use "whether" instead:

What do you think?

xiongjaneg commented 9 months ago

@omahane Were you an English major? I was but I still can't figure this out so looked it up Merriam Webster online: "For clarity, it is best to use whether in reference to a choice or alternatives ("we're going whether it rains or not") and if when establishing a condition ("we will go if it doesn't rain")." So your recommendation sounds right since it's a choice.

omahane commented 9 months ago

I also was an English major, so it tripped my internal sensors. Obviously, in conversation, we substitute "if" for "whether" all the time, but in writing for external audiences, I'm a little more fastidious.

jilladams commented 9 months ago

https://dsva.slack.com/archives/C0FQSS30V/p1706293907123389

To support the migration of service information to the Service Location paragraph, I have picked up this ticket: https://github.com/department-of-veterans-affairs/va.gov-cms/issues/16451. This means #16348 is on hold and the UX niceties may cross the finish line after this sprint.

omahane commented 9 months ago

@jilladams @xiongjaneg (cc: @swirtSJW ) I have discovered another area in need of refactoring related to this change: docroot/modules/custom/va_gov_post_api/src/Service/PostFacilityServiceVamc.php It sets the appointment introduction text that we send to Lighthouse.

This needs some more investigation, though, as I'm not 100% how the new post_api data should look.

I stubbed a ticket: https://github.com/department-of-veterans-affairs/va.gov-cms/issues/17081

swirtSJW commented 9 months ago

@omahane Good catch. I forgot we are sending intro text to lighthouse. I wrote that code three years ago. The context is, Facility Locator V1 is not using it. It was in anticipation of V2 (and any other consumers of the Facility API V1).

It was not accounting for different service locations / modality. At the time, that was not even a twinkle in @davidmpickett 's eyes.

We should discuss, but I think we are going to need to move this output into the service location(s)

swirtSJW commented 9 months ago

@xiongjaneg and @jilladams ^^
This is a bit of a mess due to Lighthouse API versioning because V1 is already locked in. This may be a blocker that I completely missed. :(

xiongjaneg commented 9 months ago

@swirtSJW Let us know whatever needs doing. Will add to next 16th minute.

davidmpickett commented 9 months ago

@xiongjaneg and @jilladams ^^ This is a bit of a mess due to Lighthouse API versioning because V1 is already locked in. This may be a blocker that I completely missed. :(

@swirtSJW Is this the bullet we dodged? 🤞🏻 https://dsva.slack.com/archives/C0FQSS30V/p1706569480675859

omahane commented 9 months ago

@davidmpickett Do we have appointment lead-in default text for:

omahane commented 9 months ago

I found a couple more places where the VAMC Facility Health Service field is being used: field_hservice_appt_intro_select is in

davidmpickett commented 9 months ago

@davidmpickett Do we have appointment lead-in default text for:

  • VAMC Facility Non-clinical service
  • Service Region
  • VBA Facility service

    • Figma has "Contact us to schedule, reschedule, or cancel your appointment." // Is that right? If so, should I use the same for Service region?

I think that default text works for those three content types for now. The main reason we needed to split these apart is that the VAMC Facility Health Service has the additional sentence of "If a referral is required, you’ll need to contact your primary care provider first." which wouldn't apply to the three other types.

@mmiddaugh @xiongjaneg - might be something to chat with VBA about as you get closer having editors adding services.

davidmpickett commented 9 months ago

This might not technically be part of this ticket, but documenting what I find as I find it.

Node View

screencapture-cms-admiczzm3omzebumtehckicvnqr8dcdc-ci-cms-va-gov-node-33088-latest-2024-02-02-15_09_43

davidmpickett commented 9 months ago

Service Options

@omahane - I'm not sure how much control you have over margins but wanted to call out these discrepancies ccing @thejordanwood in since this is more her expertise.

Screenshot 2024-02-02 at 3 29 08 PM

Screenshot 2024-02-02 at 3 21 40 PM

Screenshot 2024-02-02 at 3 24 17 PM

Because the margins are wrong the gestalt is breaking and it's not immediately clear how the radio buttons relate the field labels

Screenshot 2024-02-02 at 3 17 52 PM

davidmpickett commented 9 months ago

Phone number for appointments

Any chance of getting rid of the multiple nested boxes?

Screenshot Screenshot 2024-02-02 at 3 39 56 PM

vs Figma Screenshot 2024-02-02 at 3 40 05 PM

omahane commented 9 months ago

Service Options

@omahane - I'm not sure how much control you have over margins but wanted to call out these discrepancies ccing @thejordanwood in since this is more her expertise.

The margin of these elements is sitewide and really belongs to CMS Platform.

omahane commented 9 months ago

This might not technically be part of this ticket, but documenting what I find as I find it.

Node View

  • The Service Location section is disorganized
  • New fields appear after previous field sections
  • The order and grouping of fields here should match the Node Edit screen

I can clean this up in this ticket.

omahane commented 9 months ago

Phone number for appointments

Any chance of getting rid of the multiple nested boxes?

Sure, but I think this is also a CMS Platform issue.