Global styles revisions: revision comparisons #53620
Labels
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
Needs Design Feedback
Needs general design feedback.
Needs Technical Feedback
Needs testing from a developer perspective.
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
It's possible to use WordPress's existing
revisions.php
page to compare the global styles custom post, however it means comparing changes to JSON, which may not be accessible to everyone.It would be more useful to have a visual tool, or initially, a text summary of changes, to differentiate global styles revisions.
Discussed in:
What is your proposed solution?
Ideally we'd have a visual representation of changes between two revisions. @jameskoster has been thinking about this:
As mentioned previously, it is possible to load two versions in two iframes:
2023-05-01.16.16.51.mp4
@c4rl0sbr4v0 has also explored a comparison engine to diff two theme.json trees: tenberg/pull/52829#issuecomment-1659027089
We probably need to undertake more investigation in order to balance performance and utility.
As a starting taster will might like to display top-level changes to the user, e.g.,
The text was updated successfully, but these errors were encountered: