-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Global styles: enable user global styles revisions #46667
Commits on Apr 14, 2023
-
Showing revisions for the wp_global_styles custom post type in the styles sidebar. We're only showing max 10 to limit the payload.
Configuration menu - View commit details
-
Copy full SHA for ab00625 - Browse repository at this point
Copy the full SHA ab00625View commit details -
Configuration menu - View commit details
-
Copy full SHA for 241460c - Browse repository at this point
Copy the full SHA 241460cView commit details -
Sending and checking for settings as well since some style variations…
… might have different settings we'd want to reinstate. Doing a deep equality check to highlight the currently selected revision.
Configuration menu - View commit details
-
Copy full SHA for 0ba94e6 - Browse repository at this point
Copy the full SHA 0ba94e6View commit details -
Added a new endpoint to the global styles rest API (/revisions)
- Limit is 100 revisions in response Added experimental revisions selector/action/resolver to the core-data store Abstracted compare revisions into isGlobalStyleConfigEqual and added tests Showing selector control in the UI if revision count is > 10
Configuration menu - View commit details
-
Copy full SHA for 7dcf0d0 - Browse repository at this point
Copy the full SHA 7dcf0d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for f56cb4e - Browse repository at this point
Copy the full SHA f56cb4eView commit details -
Update description for rest param
Bumped revision count that can be returned from the API to 100
Configuration menu - View commit details
-
Copy full SHA for fcfed1a - Browse repository at this point
Copy the full SHA fcfed1aView commit details -
There's no reason to use the stored userConfig at all if we're reinst…
…ating the full revision. The revision should overwrite everything.
Configuration menu - View commit details
-
Copy full SHA for 025fcf5 - Browse repository at this point
Copy the full SHA 025fcf5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 59cb723 - Browse repository at this point
Copy the full SHA 59cb723View commit details -
Configuration menu - View commit details
-
Copy full SHA for af7420e - Browse repository at this point
Copy the full SHA af7420eView commit details -
Bumping minimum revision count until display to two:
- same behaviour as post editor - since revisions includes the current saved post, so we need at least two in order to switch
Configuration menu - View commit details
-
Copy full SHA for 9728372 - Browse repository at this point
Copy the full SHA 9728372View commit details -
Added a very unpretty E2E test for global styles revisions. We can't …
…yet delete global styles revisions and, because of other tests, we can't rely on the post revisions being a certain count so we try to cater for both in the test for now. Added aria label to buttons in the UI
Configuration menu - View commit details
-
Copy full SHA for eeab42f - Browse repository at this point
Copy the full SHA eeab42fView commit details -
Formatting the comments in the E2E test.
Checking for the number of revision buttons in the revisions list.
Configuration menu - View commit details
-
Copy full SHA for 75b579f - Browse repository at this point
Copy the full SHA 75b579fView commit details -
Fixing up things after a rebase, mainly usage of __experimentalGetCur…
…rentGlobalStylesId, which has been removed in this PR. Adding a reset button.
Configuration menu - View commit details
-
Copy full SHA for 7003d22 - Browse repository at this point
Copy the full SHA 7003d22View commit details -
Moving changes to global styles controller to 6.2 compat
Removing secondary button styling
Configuration menu - View commit details
-
Copy full SHA for 08a3eed - Browse repository at this point
Copy the full SHA 08a3eedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 363105d - Browse repository at this point
Copy the full SHA 363105dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a7a47df - Browse repository at this point
Copy the full SHA a7a47dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 760ae90 - Browse repository at this point
Copy the full SHA 760ae90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b1b41d - Browse repository at this point
Copy the full SHA 4b1b41dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c1bb9f8 - Browse repository at this point
Copy the full SHA c1bb9f8View commit details -
Moving the revisions link so that it's under the drop down
Updating e2e tests A sad attempt at caching the unsaved userConfig Adding an `is_latest` prop to the rest response to indicate the latest saved revision
Configuration menu - View commit details
-
Copy full SHA for 3a6c161 - Browse repository at this point
Copy the full SHA 3a6c161View commit details -
Configuration menu - View commit details
-
Copy full SHA for 461d7ad - Browse repository at this point
Copy the full SHA 461d7adView commit details -
Adding author display name and avatar to rest response
Redesigning the buttons view Rationalizing rest API return properties
Configuration menu - View commit details
-
Copy full SHA for 408a755 - Browse repository at this point
Copy the full SHA 408a755View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6445d13 - Browse repository at this point
Copy the full SHA 6445d13View commit details