-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Improve visibilty of the drag pane when viewed vertically #2713
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
Improve visibilty of the drag pane when viewed vertically #2713
Conversation
develohpanda
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One additional note: there is some custom logic in app.js to support the draggable resize bar in the Debug tab, both in the horizontal and the vertical layouts. The Design/Test tabs do not have this resize bar implemented in the horizontal layout, so I didn't bring it over for the vertical layout, either. (I couldn't think of a simple and clean way to implement it, and I didn't want to clutter app.js any further). Maybe implementing the resize bar for Design/Test could be a future improvement.
Nice observation, #2583 is this very issue, and someone is already working through it 👏
This PR looks good to me; I agree with the verbiage changes. They are subtle and convey the same message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename the settings options (for consistency) as described below. (I realize the requirement listed in #2584 was to change the text to read "Force vertical layout", but "force" feels a little weird to me, as both of the settings below are supported features, not something that needs to be "forced". If that is still the desired verbiage, let me know and I'll change the PR appropriately).
"Force bulk header editor" -> "Use bulk header editor"
"Vertical request/response layout" -> "Use vertical layout"
Let's change the "bulk header editor" text in a separate PR as it is un-related to this feature, it's a side-effect of the discussion occurred here and should reference this PR as such.
I'm okay with Use vertical layout, this does make me think we should add information tooltips what this setting is going to change or implies for the user as without immediate visual feedback it could be un-clear compared to previous text.
19ad2ce to
496afac
Compare
Thank you for the feedback, @nijikokun, that makes sense -- I will move the bulk header editor change to another PR.
I am struggling to come up with a descriptive label for the help text. This is the best I could muster, but perhaps someone else here will have a better suggestion: "Stack application panels vertically instead of horizontally" I've updated this PR pending other suggestions. |
This change is to be consistent with Kong#2713.
This change is to be consistent with #2713.
It's definitely a good start! My only suggestion is providing an example after
🤗 Thank you for the great PR 🎉 |
Following up on this - it looks like with the changes introduced in #2712, forcing vertical layout seems to be fixed as a side-effect. 🤯 I really appreciate the time that you put into this fix, but with the refactoring and removal of duplication in #2712, my preference would be to go ahead with the overall fix in that PR. I did, however, notice some border styling that you introduced in this PR, which might fix another related bug I found during recent QA - #2787. That, coupled with the re-naming changes you have suggested in preferences are still valid. |
|
Ok, thank you @develohpanda! I will rebase this PR on top of #2712 later today and reduce the scope to include only the border fix and renames (including wording adjustment as suggested by @nijikokun). I appreciate all of the feedback 😊 |
|
|
54c69d7 to
6d2aa60
Compare
develohpanda
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@develohpanda Sorry I never got around to cleaning up my branch, thanks for doing that and merging, and thanks for maintaining such a great developer tool ❤️ |
|
No worries at all 😊 |







This PR fixes #2584, by making
forceVerticalLayoutalso apply to the "Design" and "Test" tabs. Here's an overview of the changes that were made:"Force bulk header editor" -> "Use bulk header editor"-- This has been moved to Change bulk header editor setting verbiage #2717, see comments belowOne additional note: there is some custom logic in
app.jsto support the draggable resize bar in the Debug tab, both in the horizontal and the vertical layouts. The Design/Test tabs do not have this resize bar implemented in the horizontal layout, so I didn't bring it over for the vertical layout, either. (I couldn't think of a simple and clean way to implement it, and I didn't want to clutterapp.jsany further). Maybe implementing the resize bar for Design/Test could be a future improvement.Screenshots:
Closes INS-923