wintercms / wn-builder-plugin

GUI for building plugins in Winter CMS
MIT License
34 stars 12 forks source link

Open list of plugins automatically if no plugin is selected #25

Closed multiwebinc closed 1 year ago

multiwebinc commented 2 years ago

Just a quick suggestion, instead of (or in addition to) displaying this:

image

Just open the menu up automatically if no plugin is selected on when the page is loaded.

bennothommo commented 2 years ago

I think this might be a little too jarring to happen on page load, as opening the plugin menu shifts the layout.

What are your thoughts on simply having some more prominent buttons to "Create a plugin" or "Browse plugins" instead of the simple instruction shown above?

multiwebinc commented 2 years ago

@bennothommo The only problem I see with that is the UI for opening up the side menu is rather hidden and probably not very intuitive, so people might not how to switch plugins. How hard is it to hide the left menu for a specific page? Here's just a quick brainstorming idea, but we could create a page like:

image

When no plugin is selected, this will be displayed. Then when the user selects a plugin, they get the current view with a link to switch plugins:

image

When a user clicks the switch plugin button, the currently selected plugin is removed from the session cookie (or wherever it's stored).

LukeTowers commented 2 years ago

That looks pretty good @multiwebinc!

bennothommo commented 2 years ago

@multiwebinc Love the mockup :)

I think that's doable - the only extra thing we need to consider is that there is an option in the plugins list to show plugins that were not created with the Builder plugin, so we'd need a comparable filter or option with this new "splash" page.