-
Notifications
You must be signed in to change notification settings - Fork 383
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
Add ability to acknowledge and suppress/ignore specific validation errors #1003
Comments
If you had 100 posts and each had a different script tag, you want to understand what's unique. There should be a count of unique instances of the post so you can know what is unique so you can prioritize what should be fixed. There should be the ability to suppress errors for not valid AMP so you don't get reported ("deal with it later") - sanitizer will take care of it anyway to ensure validity. |
Hi @westonruter, I plan to write a formal user story and ACs, but dropping this in for now:
Let me know if there's any details here I'm missing. Related #1006, which should inform/be informed by progress in both places. |
Yeah, I think this needs some UX insights to figure out what would be the most beneficial for users. It's closely related to my #1060 (comment) and the story of activating AMP on a site. It could go so far as a “wizard”-like setup flow. But beyond the initial setup, there is then the ongoing monitoring of validity, as new content is added and plugins are added/removed. |
I think a nice flow for end-users to enable AMP theme support without doing coding:
|
In addition to a user being able to acknowledge a validation error to ignore/suppress it, the user should also be able to acknowledge a validation error as being critical. Critical and unacknowledged validation errors should prevent a response from being served as AMP at all, whereas if only ignored/suppressed errors are present then AMP can be served. Acknowledging a validation error marks it as read so that the user is not notified about it. Essentially a validation error needs to have a status introduced. |
Hey @westonruter, thank you for all of your suggestions and definitions here. One item I wanted to call out of note again:
Related to a lot of the documentation work that @kienstra has done, I think it's something we should consider continue doing to help non-developer admins be able to get a seamless AMP experience. This is a big part of the narrative we're trying to create: We've made (and are continue to make) AMP as easy as possible to use, and are extending features. Perhaps we can extend the work here and make a "Getting started for non-coding admins" guide? Let me know your thoughts. |
@postphotos Yes, I think there would need to be a guide that explains what things might need to be re-worked when enabling AMP. But I should think that most of that information would ideally be presented contextually as the user is taken throw some flow for enabling AMP for a given theme. |
Steps To Test Hi @csossi,
<script>myFunction();</script>
<button onclick="doThis();">Click Me</button>
|
verified in QA |
Amp Validation / warn The native JavaScript AMPHTML Validator (validator.js) has been turned down. If you are seeing this error, update your tooling to instead load the API compatible WebAssembly AMPHTML Validator (validator_wasm.js) instead. please anyone can help |
@Perumalt82 I think you're commenting on the wrong repo. Please see these issues: |
With #971 there is now reporting on the validation errors that the sanitizer scrubs from the output to ensure valid AMP. For example (and these screens need better UX/design):
I think it is clear that there should be a way to dismiss certain validation errors from being reported. When something is dismissed, it would then not show up again.
For example, if a theme uses an illegal
overflow
CSS property, then this is going to get reported on every URL. But if it doesn't cause a big problem for the AMP rendering the page, then this is something the user probably would like to ignore. If you have a plugin that does one thing you know is bad, and the removal doesn't cause any problems in AMP, then the user should be able to just acknowledge it was removed and cease getting notified about it.The text was updated successfully, but these errors were encountered: