-
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
🚧 Experimental: Global styles revisions #49912
🚧 Experimental: Global styles revisions #49912
Commits on Apr 21, 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 705cda0 - Browse repository at this point
Copy the full SHA 705cda0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 376d279 - Browse repository at this point
Copy the full SHA 376d279View 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 9978710 - Browse repository at this point
Copy the full SHA 9978710View 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 926a2b0 - Browse repository at this point
Copy the full SHA 926a2b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11600cf - Browse repository at this point
Copy the full SHA 11600cfView 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 631432e - Browse repository at this point
Copy the full SHA 631432eView 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 1a13b77 - Browse repository at this point
Copy the full SHA 1a13b77View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc2a83d - Browse repository at this point
Copy the full SHA bc2a83dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 146464c - Browse repository at this point
Copy the full SHA 146464cView 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 087e786 - Browse repository at this point
Copy the full SHA 087e786View 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 958e746 - Browse repository at this point
Copy the full SHA 958e746View 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 3c88909 - Browse repository at this point
Copy the full SHA 3c88909View 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 5df24c5 - Browse repository at this point
Copy the full SHA 5df24c5View 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 225606b - Browse repository at this point
Copy the full SHA 225606bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c77f1e - Browse repository at this point
Copy the full SHA 5c77f1eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 70150bb - Browse repository at this point
Copy the full SHA 70150bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 10b2de0 - Browse repository at this point
Copy the full SHA 10b2de0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a066ab4 - Browse repository at this point
Copy the full SHA a066ab4View commit details -
Configuration menu - View commit details
-
Copy full SHA for be5005f - Browse repository at this point
Copy the full SHA be5005fView 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 eed6463 - Browse repository at this point
Copy the full SHA eed6463View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8671471 - Browse repository at this point
Copy the full SHA 8671471View 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 7ee47a1 - Browse repository at this point
Copy the full SHA 7ee47a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8640877 - Browse repository at this point
Copy the full SHA 8640877View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc2b825 - Browse repository at this point
Copy the full SHA fc2b825View commit details -
Configuration menu - View commit details
-
Copy full SHA for d16bd4d - Browse repository at this point
Copy the full SHA d16bd4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7287070 - Browse repository at this point
Copy the full SHA 7287070View commit details -
Configuration menu - View commit details
-
Copy full SHA for 23c4a57 - Browse repository at this point
Copy the full SHA 23c4a57View commit details -
Configuration menu - View commit details
-
Copy full SHA for f3cfeb0 - Browse repository at this point
Copy the full SHA f3cfeb0View commit details