Make window with errors expandable
Can we make bottom window with errors and warnings expandable, just like right tab with rendered doc? Now it is small, and not handy to investigate or overview errors :(
Hello there @savinmikhail. Thank you for creating an issue. Are you open to providing a PR?
@robert-hebel-sb hi, unfortunately no, I have no experience in frontend :(
Hi @robert-hebel-sb, I would like to work on solving this issue.
hello there @Miran-Firdausi 👋
sure, I've assigned the issue to you, and I'm looking forward to PR 💟
Hi @robert-hebel-sb,
I used the same logic that was applied to create the left and right panes, but I found one issue. With react-split-pane, it’s not possible to collapse a pane completely, there’s always a small gap left, even when the pane has no content.
I tried conditionally rendering the SplitPane and just the Editor, but that didn’t work either, as it caused the underlying text model to be destroyed on re-render.
So, one option is to always keep the error pane visible, even when it’s empty. Or would you prefer that I look for another package to handle this?
Also, there are ways to manipulate DOM to get it done, but that wont be very neat. What's your advice?
hey @Miran-Firdausi 👋
From the issue attachment, I assume the fix should be for swagger-editor@next, which uses the react-collapse-pane library.
I haven't checked it, but according to docs, they support collapsed mode https://b-zurg.github.io/react-collapse-pane/#/?id=react-collapse-pane