Skip to content

AMP Mode Notice for Index listings#1376

Merged
westonruter merged 4 commits intodevelopfrom
add/1366-amp_mode_notice
Sep 5, 2018
Merged

AMP Mode Notice for Index listings#1376
westonruter merged 4 commits intodevelopfrom
add/1366-amp_mode_notice

Conversation

@miina
Copy link
Copy Markdown
Contributor

@miina miina commented Aug 29, 2018

Fixes #1366.

Adds admin notice to Invalid Pages and Validation Errors index listings according to the AMP Mode and configuration.

The notices:

  • Native mode:
    The site is using native AMP mode, the validation errors found are already automatically handled.
  • Paired mode with auto-sanitization:
    The site is using paired AMP mode with auto-sanitization turned on, the validation errors found are already automatically handled.
  • Paired mode without auto-sanitization:
    The site is using paired AMP mode without auto-sanitization, the validation errors found require action and influence which pages are shown in AMP. For automatically handling the errors turn on auto-sanitization from Validation Handling settings. (<--- link)
  • Classic mode:
    The site is using classic AMP mode, your theme templates are not used and the errors below are irrelevant.
    <--- Although the index pages are not visible when in classic mode, it is possible to see this notice when turning on Classic mode in one tab and refreshing an index page in the other tab, thus the notice.

@miina miina changed the title [WIP] AMP Mode Notice for Index listings AMP Mode Notice for Index listings Sep 4, 2018
Copy link
Copy Markdown
Contributor

@kienstra kienstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good, A Few Points

Hi @miina,
Thanks for your thorough work, including describing the notices in detail.

There are a few suggestions here.

@westonruter westonruter added this to the v1.0 milestone Sep 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants