Open JayDarnell opened 2 years ago
COVID status pre-empted this during 57
This needs further consideration within some broader Opening Hours issues, including help text guidance, error message writing, etc.
@JayDarnell @swirtSJW Is this still relevant or has this been fixed / what's up with it?
@JQuaggles this is still relevant. Two related issues were closed which audited these comment fields and then subsequently cleaned up the data.
Audit: https://github.com/department-of-veterans-affairs/va.gov-cms/issues/9358 Cleanup: https://github.com/department-of-veterans-affairs/va.gov-cms/issues/8935
We still need to add a validator to these fields to prevent time zones from being entered on save moving forward. This issue wasn't prioritized when it was created due to other more pressing matters at the time.
Note: The audit script created in 9358 needs to be updated. Line 91 references a field that is no longer present. Until this line is changed that script is effectively broken.
This is related. #8883 When we bring in time zones, we will want to make sure we are not also getting timezones entered as comments.
Problem Statement
We recently migrated our service location office hours data from the old table field format to the new office hours format. The new office hours field stores three items for each day: start time, end time, and a comment. As part of that migration we cleaned up some key items that could end up in the comments field but they can still contain time zones: (ET, EST, CT, CST, MT, MST, PT, PST) We do not want time zones in the comments field so we need to throw an error if this occurs.
User Stories
1) As a Veteran or caregiver, I want to see only the times my chosen facility without time zones so that I have a clear understanding of the office hours for a specific facility without potentially conflicting information.
2) As an author in the CMS, I want to be told if I put in copy into the Office Hours 'Comment' field that contains time zone information, so that I don't accidentally provide conflicting information with automatically pulled office hours.
Implementation steps
Add a field validation function to the field_office_hours field on the service_location paragraph type. If the editor enters a time zone throw an error.
Design principles
Veteran-centered
Single source of truth
: Increase reliability and consistency of content on VA.gov by providing a single source of truth.Accessible, plain language
: Provide guardrails and guidelines to ensure content quality.Purposely structured content
: Ensure Content API can deliver content whose meaning matches its structure.Content lifecycle governance
: Produce tools, processes and policies to maintain content quality throughout its lifecycle.Editor-centered
Purpose-driven
: Create an opportunity to involve the editor community in VA’s mission and content strategy goals.Efficient
: Remove distractions and create clear, straightforward paths to get the job done.Approachable
: Offer friendly guidance over authoritative instruction.Consistent
: Reduce user’s mental load by allowing them to fall back on pattern recognition to complete tasks.Empowering
: Provide clear information to help editors make decisions about their work.CMS Team
Please check the team(s) that will do this work.
Platform CMS Team
Sitewide program
⭐️ Sitewide CMS
⭐️ Public websites
⭐️ Facilities
⭐️ User support