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

Code folding in logger [UX] #108

Closed
ritz078 opened this issue Apr 13, 2016 · 2 comments
Closed

Code folding in logger [UX] #108

ritz078 opened this issue Apr 13, 2016 · 2 comments

Comments

@ritz078
Copy link
Contributor

ritz078 commented Apr 13, 2016

We can use react-codemirror or ace editor to enable code folding in the logger so that the logged object doesn't take the whole space just like you get in the console. If you want to see it, you can open it. We can keep that in read only mode. We can also have syntax highlighting this way.

For a lightweight solution we can use JSONView or this

@arunoda
Copy link
Member

arunoda commented Apr 13, 2016

Codemirror or ACE is too big for that. I don't like complete folding. But, something like in the chrome's console looks great.

See:

screen shot 2016-04-13 at 4 00 36 pm

arunoda pushed a commit that referenced this issue Apr 18, 2016
A new UI element 'foldable' has been added. It allows code folding
for the console. It mirrors the behavior found in most browser
consoles, which is to start collapsed and expand upon selection.
@arunoda
Copy link
Member

arunoda commented Apr 18, 2016

This is implemented with #111 and released as v1.13.0.

@arunoda arunoda closed this as completed Apr 18, 2016
wyattdanger pushed a commit to wyattdanger/react-storybook that referenced this issue Apr 26, 2016
A new UI element 'foldable' has been added. It allows code folding
for the console. It mirrors the behavior found in most browser
consoles, which is to start collapsed and expand upon selection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants