WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.32k stars 4.12k forks source link

Make List View more extendable #42458

Open gikaragia opened 2 years ago

gikaragia commented 2 years ago

What problem does this address?

We have a use case in our plugin where we want to mark some blocks with visibility tags. A block marked with a visibility tag basically means that in some cases the block will be hidden from the user. We are thinking to add these tags to the block list, to make it easy for the user to view which blocks might be hidden:

178691588-c1b53ba4-7fd3-4ea9-9fdf-730f930d2b6e

We would also like in the future to make these tags clickable in order for the user to be able to change the settings directly from the block list, in a similar way that is explored here for locking.

This currently is not possible as the block list is not expandable.

What is your proposed solution?

I think that it would be possible for plugins to customize the block list if a filter is added to its components.

mtias commented 2 years ago

Related #26632

spencerfinnell commented 2 years ago

Related #33583

Thelmachido commented 1 year ago

Since this is related to 33583 and there is more movement there, wouldn't it be better to close this issue and continue the discussion there @gkaragia

gikaragia commented 1 year ago

Hey @Thelmachido 33583 would not fit our use case as we wanted to be able to fully customize the content of the List View, e.g to add a button that would modify the block. I think that this issue is about allowing users (and possibly plugins?) to modify the name of the blocks only.