Gutenberg: Iterations on W icon in the editor header

Created on 16 Mar 2020  Â·  10Comments  Â·  Source: WordPress/gutenberg

20579 introduced a WordPress icon button to function as the "view posts / go back" action in full-screen mode.

image

General Interface Needs Dev [Type] Enhancement

Most helpful comment

This my favorite GitHub issue of all time. Thank you so much. The double ring logo makes me so sad. I can't wait to create all sorts of silly illustrations to replace that button with.

All 10 comments

This my favorite GitHub issue of all time. Thank you so much. The double ring logo makes me so sad. I can't wait to create all sorts of silly illustrations to replace that button with.

+1 to this. It would be good to have the option to change it to anything, or at least have the possibility to change it back to a left/back arrow.

I agree on this one. I opened #21795 with a similar suggestion. More specifically, I think we should allow to:

  1. Lock Gutenberg to be full-screen only
  2. Change the page where the (W) goes back to
  3. Bonus: even better if the look can be customized too as noted above.

Also in regard to #21121, it's important that in case of modification of the "back" behaviour, the sidebar behaviour can be overridden.

The reason is that this would address some use cases that would allow Gutenberg to be way more integrated in various flows.

Use cases:

  • Businesses could build custom workflows that open Gutenberg as their edit interface.
  • Agencies could have their own interfaces to simplify the interaction with their clients.
  • Products could use Gutenberg and make sure the user always come back to their UI.

In short, it should allow flows like:

Custom UI → Gutenberg → back to Custom UI

Bypassing WP Admin entirely, in order to avoid the user getting lost. Which would allow for example to build advanced "Themes" with specific functionality, relying on Gutenberg for editing, and back. Imagine specific, narrow, app-like services.

In short, it would make Gutenberg to be already more easily integrated.

Finished the first part of this issue with #22323.

Heya @vindl does that mean it's possible now to add a hook to override the destination of the W like I mentioned above, or not yet?

I'm asking as I saw some work going on #22191 and I was wondering if it was already fixed, or if I should raise it again there.

Heya @vindl does that mean it's possible now to add a hook to override the destination of the W like I mentioned above, or not yet?

Hi @folletto - This allows replacing the whole default component and the custom component can provide a different destination.

If we are looking into modifying just the destination while preserving everything else, that might require the rest of the functionality to be essentially copied over. I think that this can be improved in a similar fashion as I did for icon replacement case.

Ok so it's doable even if it requires right now to rewrite the component.

And yes, would be a nice improvement if there was a way to just switch the "back" action, without changing everything else :)

And yes, would be a nice improvement if there was a way to just switch the "back" action, without changing everything else :)

I can look into that after #22191 gets merged in order to avoid introducing even more merge conflicts for them. :)

Thanks! :D

The second item has been resolved with merging of #22952.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jasmussen picture jasmussen  Â·  3Comments

hedgefield picture hedgefield  Â·  3Comments

youknowriad picture youknowriad  Â·  3Comments

spocke picture spocke  Â·  3Comments

BE-Webdesign picture BE-Webdesign  Â·  3Comments