-
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
Supported post types/templates setting: move to React/REST #5044
Supported post types/templates setting: move to React/REST #5044
Conversation
…5-react-post-template-settings
…5-react-post-template-settings
…ssion' into feature/5015-react-post-template-settings
…-post-template-settings
73c933f
to
c125be1
Compare
ed311e1
to
9e129f9
Compare
Plugin builds for a8fd8a8 are ready 🛎️!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@johnwatkins0 I've selected a Reader theme but the template selection is not available to me:
Also, when I've selected Legacy, in which it is correct to hide the template selection, the toggle does not appear as disabled:
I wonder if we should just hide the “Serve all templates as AMP” altogether in this case. The notice is confusing because the section as a whole is relevant to Legacy mode whereas the notice is supposed to only be for the toggle.
I think this is the right approach. I'm going to try it (while fixing the other thing). |
Updated in f27fec7 |
…ithub.com/ampproject/amp-wp into feature/5015-react-post-template-settings
Co-authored-by: Pierre Gordon <[email protected]>
Co-authored-by: Pierre Gordon <[email protected]>
…015-react-post-template-settings * 'develop' of github.com:ampproject/amp-wp: Bump lodash from 4.17.15 to 4.17.19
…ithub.com/ampproject/amp-wp into feature/5015-react-post-template-settings
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
@googlebot I consent. |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving since the failing Optimizer tests are unrelated to the PR.
…015-react-post-template-settings * 'develop' of github.com:ampproject/amp-wp: Ignore write-only property errors Ignore unused private message errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
Summary
Fixes #5015
Fixes #5046
This fixes #5015 by converting the PHP-based interface for managing supporting post types/templates on the Settings page to React. It should work the same as before from a user perspective. Data is now saved over REST, and the settings page no longer needs to refresh to save the data. Instead we now show a "Settings saved" notice on the screen for several seconds.
Things to test
Checklist