Skip to content
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

Add functionality for plugins to add options to the OptionsModal #16401

Closed
richtabor opened this issue Jul 2, 2019 · 3 comments
Closed

Add functionality for plugins to add options to the OptionsModal #16401

richtabor opened this issue Jul 2, 2019 · 3 comments
Labels
[Feature] Extensibility The ability to extend blocks or the editing experience [Feature] Plugins API Extending the Gutenberg project with plugins via the Plugins API [Type] Enhancement A suggestion for improvement.

Comments

@richtabor
Copy link
Member

richtabor commented Jul 2, 2019

Is your feature request related to a problem? Please describe.
It would be quite useful if there was a singular place for plugins to append on/off options within the OptionsModal. Currently, each plugin with settings of some sort has to either create a separate sidebar/modal for their controls, or simply not provide any settings.

A number of settings modals is quite heavy-handed UX, and the alternative of not providing settings limits the flexibility of Gutenberg/WordPress that we all have come to appreciate.

Describe the solution you'd like
Plugins that deploy a number of enhancements could have options listed within the OptionsModal, instead of building out another modal just for their plugin. This is similar to how iOS has a number of app settings in one familiar location, the Settings app.

For example, a real-world scenario would be in CoBlocks, where we're considering adding an option to remove more advanced controls, to provide a simpler interface for folks (or clients) that don't want or need a high level of flexibility that CoBlocks currently offers.

Describe alternatives you've considered
Making a separate plugin/modal for options. It's not awesome and soon enough most block plugins will have their own options modal, likely consisting of their own flavor of UI/X. This would lead to a fragmented experience whereas a simple way to add to the OptionsModal would limit that fragmentation quite a bit.

Screenshot
Screen Shot 2019-07-02 at 3 34 41 PM

@swissspidy swissspidy added [Feature] Extensibility The ability to extend blocks or the editing experience [Feature] Plugins API Extending the Gutenberg project with plugins via the Plugins API labels Jul 2, 2019
@klihelp
Copy link

klihelp commented Jul 4, 2019

Thank you, good idea.

@jordesign
Copy link
Contributor

With #33774 merged - is this something that could be looked at now?

@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Aug 4, 2023
@skorasaurus
Copy link
Member

I think this also can be implemented with the preferences package now available https://github.com/WordPress/gutenberg/blob/trunk/packages/preferences/README.md

@richtabor Please reopen if you have questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Extensibility The ability to extend blocks or the editing experience [Feature] Plugins API Extending the Gutenberg project with plugins via the Plugins API [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

5 participants