Closed omahane closed 7 months ago
@davidmpickett Please review this ticket and share your wisdom
@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?
@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.
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
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
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?
@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?
@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.
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.
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.
@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
@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)
@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 Let us know whatever needs doing. Will add to next 16th minute.
@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
@davidmpickett Do we have appointment lead-in default text for:
I found a couple more places where the VAMC Facility Health Service field is being used:
field_hservice_appt_intro_select
is in
docroot/modules/custom/va_gov_backend/va_gov_backend.module
docroot/modules/custom/va_gov_vamc/src/EventSubscriber/VAMCEntityEventSubscriber.php
@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.
This might not technically be part of this ticket, but documenting what I find as I find it.
Node View
@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.
Because the margins are wrong the gestalt is breaking and it's not immediately clear how the radio buttons relate the field labels
Any chance of getting rid of the multiple nested boxes?
Screenshot
vs Figma
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.
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.
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.
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
field_vba_fac_serv_appt_default
is added to VBA Facility service for "Appointment lead-in default" to hold the default text (a fraternal twin to the same field on the VAMC facility health service content type)field_vba_serv_reg_appt_default
is added to Service region for "Appointment lead-in default" to hold the default textfield_vamc_nonclin_appt_default
is added to VAMC Facility Non-clinical Service for "Appointment lead-in default" to hold the default textfield_hservices_lead_in_default
~ I can't use this field, as it not from a paragraph, but a content type. Adding new markup for each, instead.