-
Notifications
You must be signed in to change notification settings - Fork 384
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
Improve displaying validation errors' invalid markup in Gutenberg block warning notice #3664
Comments
With the work being done to add stylesheet information to the validated URL screen (#4026), we also need to surface this information proactively in the post editor, in a similar way to how validation errors will get surfaced. One idea would be to incorporate the admin bar item similar to what Site Kit does. The same admin bar item could also be present on the frontend. Clicking it would trigger a validation request and then show the results right there on the frontend instead of having to go to the validated URL screen. |
|
Fixed by #4401. |
Feature description
The compatibility tool now includes nice translatable error messages instead of error codes:
This has not yet fully been done for the error listed in the warning notice at the block level:
Essentially the logic from
\AMP_Validation_Error_Taxonomy::get_error_title_from_code()
and\AMP_Validation_Error_Taxonomy::filter_manage_custom_columns()
needs to be adapted from PHP to be included in JS.The text style should be consistent as well.
Aside: It would be great if more information could also be included in the warning without requiring the user to navigation to the Validated URL screen. The user should be able to manage whether or not the invalid markup is Removed or Kept straight from the warning itself, and have access to all of the context. This is part of a larger issue: #2316.
The validation error warning should also include:
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: