Skip to content

Addon-controls: JSON Editor/Treeview for Object Properties #12599

@hydrosquall

Description

@hydrosquall

Is your feature request related to a problem? Please describe
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

  • I have some object properties that are long/nested/hard to read when displayed as unformatted text using the current "textbox" in storybook.
  • I'd like to have a more organized way to navigate my JSON properties as an option. (It doesn't need to replace the existing text option, it would just be good to have 1 more choice).

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

  • Pretty-printing the JSON string prior to putting it into the textbox so it isn't all squashed onto 1 line
  • Instead of implementing something custom, using an existing JsonEditor component

Are you able to assist to bring the feature to reality?
no | yes, I can...

  • I can help with testing, or possibly implementation with some pointers about what region of code to modify, assuming that this new control is something that matches Storybook's goals.

Additional context
Add any other context or screenshots about the feature request here.

Screen Recording 2020-09-28 at 03 25 50 PM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions