-
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
Inspector: Remove revisions panel #61867
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +9 B (0%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
Pushed a small commit to ensure the action is hidden from post types that don't support revisions (just like the component). Also, with this, we're losing the revision count from the UI (just want to make sure that it's ok). |
@youknowriad Ideally the revisions menu item would include the count as a |
It's not trivial I think, the "label" of the action need to be a component and not sure we support that @ntsekouras @jorgefilipecosta |
I could get it to work by adding gutenberg/packages/editor/src/components/post-actions/index.js Lines 92 to 95 in f49e0b5
But I wasn't able to update Seems as though it'd be possible given the count is already available:
I feel like I'm missing something obvious :D |
8597c16
to
d281b55
Compare
Yeah, we don't for now it would involve some exploring to see what a good API for that would be. Is that a blocker for this PR and the removal of the panel? --edit I'll open a separate PR to support labels as components. |
Not a blocker. |
I guess some tests will need updating here. |
58e4875
to
a895c42
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and I updated the e2e tests. Thank you!
Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>
Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>
Follow-up to #59689.
What?
Remove the revisions panel from the document inspector.
Why?
Revisions are now accessible from the ellipsis menu which offers more appropriate prominence.
Testing Instructions