-
Notifications
You must be signed in to change notification settings - Fork 157
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
Gutenberg: Extra Refresh to Push Content In Gutenberg #141
Comments
I think for the new editor we should probably explore using a side panel instead of the admin bar. Generally we probably need to explore other push UI besides/in addition to the admin bar because it's possible to have it off or not have enough space especially on smaller screens. |
This belongs in a more major 1.7-type of milestone, can call it good enough for a point release in #750 but want to get into this and remove a lot of that hover code for the next release. |
@peterwilsoncc I can't speak to the tag but there is still an issue here. Those referenced PRs definitely make the integration of Distributor and the block editor nicer but the don't fully solve the issue I opened here. To recap, by default we only allow published items to be distributed so the distribution menu isn't even loaded if an item is in a non-published state. When an item is published in the block editor, because this doesn't refresh the page the menu is never shown. We do show this now (coming from those referenced PRs), which lets the user know they need to refresh themselves: But I think there's still opportunity here for improvement, whether we lazy load in the menu after publish, whether we load it in at the beginning and only show it after publish, some other approach? Also, and I didn't test this but I wonder if we have the same issue in reverse, for an item that is published and then gets put back in draft. I believe the distribution menu is probably still active until the page refreshes, though I'd have to test to see if it allows you to still distribute that item or not. |
Thanks for clarifying Darin. For 1.7.0 I think I will keep the existing PRs as the bug fix and aim to remove the refresh in either 2.0.0 or 2.1.0 |
By default, we only allow published content to be Distributed. In the Classic Editor, when you publish an item, the page refreshes and then the admin menu item is added by Distributor, which then allows us to push that item to other connections.
In Gutenberg, there are no page refreshes, so if you publish an item, the item is published but the page doesn't refresh, so the custom menu item is never added. This means you have to manually refresh the page before you can push that item anywhere. Not a huge deal but also not the most intuitive approach. Not sure the best way around this but would be nice, if possible, to listen for the post publish event and then add the dropdown menu.
The text was updated successfully, but these errors were encountered: