-
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
Style Revisions: Remove the dropdown menu #55779
Comments
Is there another way to get to style revisions? Wondering if we need that back arrow next to "Revisions", if the panel is toggled via the "clock" icon. |
The back arrow is really awkward in its current state in trunk. It takes you back to the main global styles sidebar, but you don't get there with the reverse animation. I think we can remove it. I'm not aware of other ways to get here. |
Should the last item "Default styles" in the revisions history also be called "Reset styles"? It's essentially the same action. |
Good question. As everything else is a timeline event, it should probably be labeled as such too. It could be fine to have it be a time/date stamp with "{themeName} activated" even. |
While we're at it (though a bit off topic), I don't think we need the "Apply" button and corresponding modal at the footer. It does the saving flow, but not the full deal, like you get when you hit "Save" in the header, or in the site editor sidebar. If we do keep it, "Apply" should probably be "Save", and it should use the proper save modal. Though I think it'd be nice to remove the loose end, and rely on the existing save patterns (that are also stronger and less scary). |
Clicking on a revision item provides a preview in the revisions window only. The "Apply" button loads the revision into the current editor state and therefore the editor canvas, which is a separate entity and sits below the revisions window. This separation is important as users can preview revisions before loading them into the editor, where the change counts as a document edit. I'm hopeful there's an alternative UI or even different messaging that would improve the UX here. Perhaps there's a neat way to have two functions, that is, "apply without save" or "apply and save". 🤷🏻 I'm convinced that something will become obvious as we work through the ideas in #55776
There was some testing around immediate saving in the initial PR. The "Apply" button triggers a dirty state and therefore enables the Save button, and it also affords the user the opportunity to edit the revision changeset before committing it to save (and creating another revision entry). The save flow contains other dirty entities as well, such as template edits. It's why the "Restore this revision" paradigm (load and save a single, historical state) of the WordPress code diff revisions.php page is tricky to migrate. Another question we had in mind was, if the revisions panel did trigger a save flow, would we want the entire save flow, or limit the entities to global styles seeing as the revisions panel's explicit focus is global styles? Seems like that just complicates things. I'm not sure, but in my mind, the save flow belongs to the editor. |
Forget that, that's the way we already did it 🤦🏻 but it doesn't seem to do it all the time. I'll look into harmonizing it. |
I'm working on this one 👍 |
We currently have a dropdown menu that contains two items, it feels unnecessary and redundant considering other buttons here have no dropdown:
We can move all of this information into the style revisions sidebar view.
Here's my suggestion for how this could look:
The text was updated successfully, but these errors were encountered: