-
Notifications
You must be signed in to change notification settings - Fork 70
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
Review error states recommendations and feasibility for VBA content types #16906
Comments
From UX sync: |
Suggestions/questions
|
@davidmpickett does a Service region require at least one associated VBA facility? |
This field is intentionally not set to required. There is a use case for Service Regions being saved without any facilities attached to them. Could be during initial set-up, or in preparation before a timed launch. Also because we don't delete content, they would need to be saved in Archive even after all the connections to facilities are severed. These are not the primary use cases, but they are legitimate. Back in May/June 2023 when we discussed the content specs with the CMS Platform team one of the principles that we establishes was that we shouldn't be overly restrictive with required fields. Basically, fields should only be required if the entity cannot function without them. We also have a lot of fields that were marked as required "No -> Yes" meaning that we will have them not required during pilot phase and might lock them during/after national rollout cc @aklausmeier because this is a good content modelling principle to know |
There is a defect preventing us from changing this text.
It is possible to enter random text here. This error message is for the instance where the user has entered some text, but not selected something from the dropdown. |
This type of nuanced guidance is best kept to Knowledge Base articles rather than the interface. Since the Design System recommends that banners should be dismissible by default, we also typically word this guidance in the opposite direction: |
@thejordanwood comments added to Figma file since we have until end of March to migrate this from CMS to VA Figma space |
I'd like to get more specific in the ACs than "Matches Design" only because some what had been in the design are challenging to implement because of the need to patch core and contrib modules. |
Because we have limited time in pre-refinement, I'll pull out annotations from the design and put them in the ACs. EDIT: You did it already, thank you! |
From Steve: how hard did we want to make the validations? Particularly for email? From Dave: We don't want validation that email is va.gov particularly. This is more of an engineering spike/review about predetermined error messages versus ones we can update. Jordan did work based on feedback on what is desired, though there may be limitations that don't allow us to follow that feedback. We need to determine the feasibility of the feedback. |
For phone numbers: Do phone numbers need format validation? From Michelle: We need to accommodate international numbers. |
From Michelle: Are there things we can do to fix the issues for the editors, like parentheses are evil, where we can help the editor. |
From Christian: The intent of the error states feedback response was to capture in the design what the current error states are. That helps to identify and fill gaps in error states. |
@davidmpickett to take a pass at reviewing error messages and identifying any VBA specific error messages |
This ticket should capture existing standard error states and what would be new. It should also consider impact on other products. |
See also this comment regarding meaningful help text for Local spotlights |
From planning: Dave noted the next work here is for him to Drupalize the design proposal from Jordan. |
@jilladams Steve's question about how hard we want to lock down phone validation is not fully answered. Does someone have some guidance on this? For example, these numbers are currently in the Facilities API:
I'll admit, some of these are a little bananas (and suggest that we need more guidance), but we need some more specific validation expectation before this can be worked (or pointed). |
Per @davidmpickett, the relevant precursory ticket appears to block this one: #15691 |
Noting: Laura did us an audit in #17814. As a result, she's gonna draft / share some proposed guidance with the CMS team. That might resolve #15691 as a no-op, or might not and this ticket might still be blocked by Figuring Things Out. I've asked Laura to follow up on that ticket once she talks to CMS. |
@laflannery @jilladams @davidmpickett @omahane I've seen action on phone number validation that would imply that this has all been working out per Jill's comment on 18-Apr. Are error state recommendations and feasibility sufficiently reviewed? Can we close this? |
Basic validation and error states are in place for VBA. All the fields Jordan indicated that should have error messages have some error messaging. Exact wording may differ, but that is also not entirely in our control due to the various sources of error messages. A note for the future - because of the nested nature of Drupal fields, it is best to evaluate this error and validation at a component level rather than at a product level. Laura's phone number epic is a good example of this. TL;DR - This ticket can be closed. We have spent multiple cycles on this and some of this is not totally in our control. |
User Story or Problem Statement
As a Drupal editor, I want to know when I'm making an error or missing a requirement as I'm making edits.
In #16068, Jordan added error states to the Figma design. This ticket is to implement the recommended error states in the design.
Acceptance Criteria
"Error message when required fields are empty" matches design.Required fields use Drupal Core and HTML5 so staying away from modifying required fields at this time."Error message for link/URL fields" matches design.This no longer appears in the design.The text was updated successfully, but these errors were encountered: