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

Controls addon UX #288

Open
Hurtak opened this issue Nov 14, 2022 · 1 comment
Open

Controls addon UX #288

Hurtak opened this issue Nov 14, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@Hurtak
Copy link

Hurtak commented Nov 14, 2022

Is your feature request related to a problem? Please describe.
This will probably vary between apps and how people are used to use storybook but from what I have seen the add-ons usage was like this

  • controls: they were in almost every story and used heavily
  • dark theme and viewport: very useful but used only once in a while, probably order of magnitude less usage than controls
  • other add-ons: used even less, probably another order of magnitude less compared to dark theme and viewport

If this usage patterns are correct and not just some isolated outliers (or just me having wrong idea how stories are used) I think it could make sense, from UX point of view, to give the controls add-on more space/priority in the UI, compared to other add-ons.

Describe the solution you'd like
For example storybook has dedicated panel in layout for controls that is always visible unless you minimalize it, so we could do something along these lines?

Describe alternatives you've considered
Or we could just have some simple adjustments like "if there are controls for given story, open by default the controls add-on panel

TLDR: If most stories use controls, it is little annoying that you need to re-open controls panel whenever you switch between stories

@Hurtak Hurtak added the needs triage needs to be reviewed label Nov 14, 2022
@tajo tajo added enhancement New feature or request and removed needs triage needs to be reviewed labels Nov 14, 2022
@tajo
Copy link
Owner

tajo commented Nov 14, 2022

Yea, controls are probably the most used addon.

Or we could just have some simple adjustments like "if there are controls for given story, open by default the controls add-on panel

This could be an opt-in part of config for this addon. Maybe even with additional options:

  • closed by default
  • open by default
  • open if control values are changed/active

Might make sense to also consider some redesign. I didn't put much effort into the styling of controls initially.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants