-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Style Revisions: Provide more details on what changed in each style revision #55647
Comments
Love it! As we dig into this, let's also think about what we can reuse to provide more information in the saving flow as well as per this issue #29388 |
Yes, that would work. 👍 👍 |
Love the iteration, especially the more exact timing and increased specificity in what's being saved 🌟. I'm curious how we might present changing to a different style variation. We emphasize switching style variations in the UI and changing to one results typically in numerous changes across the site. Being able to quickly go back and forth based on a prior style variation selection is an important use case to cover. |
This looks like a great iteration and significantly more useful with the details of what changed. My personal preference is the line intersections over dots, it seems easier to scan. Agree with Anne, we probably want to have variation changes as a single entry that can be navigated. |
We also talked about removing the user being displayed if the site has only one user. I'd imagine this can remain the same just with the user and avatar removed? |
Updated the title to provide more details at a glance from the tracking issue |
Reopening this after testing #55913 with Gutenberg.run. I don't currently see more information about the style revision. In particular, I changed style variations and added lightbox + duotone functionality for all images but nothing shows up to indicate that: This doesn't fulfill the heart of the problem here, unless I'm missing something! Let's keep it open until we iterate closer to what's shared above design wise. |
Thanks @annezazu Yes, good idea. We decided to separate that piece of functionality from the redesign piece as it's a bit murkier and larger than first thought. This issue auto-closed, so thanks for reopening. |
I've been exploring options here, and trying to work out a reliable (and acceptable) way to go about it. Just jotting down some findings so far...
To limit the impact of the comparison calculation, I've rejigged the revisions buttons to only calculate them when a revision item has been clicked on and is "active". Once calculated, I cache them so we don't have to recalculate. I've also limited the depth of the summary copy to 3 levels. So, for example, instead of reporting that a slug name has been added/updated for 2023-11-28.12.40.37.mp4(Ignore the 'Apply' button in each item for now, I'm testing something else related to pagination 😄 ) Here's the experimental PR: Related links |
I think the PR is looking quite good, it's certainly an improvement.
I do wonder if it's still valuable to be less fine-grained here. Stick to higher level groups like "Colors, Typography, Spacing" etc etc. Looking at your PR code, it's going to be a big load of translations to maintain which does worry me. |
True, it could get ugly very quickly. 😆
The risk in making things too high-level is repetitiveness. E.g., if a sequence of revisions changes typography > font size, then typography > letter spacing and so on, then we'll see "Typography" repeated. Not a bad thing really. Anyway, I'll try it out and update the PR.
Good one! I'll have a play around. Thanks for the feedback, folks! |
I've updated the PR and reduced the depth to 2 levels and removed a bunch of translation. Seem ok 🤷🏻 2023-11-30.14.07.13.mp4
I might hang on to this idea until after we look at pagination. At the moment there can be up to 100 revisions in the list. To achieve an "active in the editor" marker for each rendered item we'd need to do an object comparison for every one, which slows down rendering a bit. If we limit paginated results to say, 10 or 20 items at a item that performance hit is reduced. However, as you can see in the screencast above, I've used your idea for the currently-selected element. Do you think we need the text as well to explain that the revision matches what's in the editor? |
Hi folks, I think I have something workable over at: Just need some opinions on how the summary should look. Thank you! |
I can take a pass at it design wise, but it'd be great to iterate on the revisions list component, so it provides more valuable context.
Specifically:
cc @apeatling
The text was updated successfully, but these errors were encountered: