-
Notifications
You must be signed in to change notification settings - Fork 162
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
Redesign panel sections in sidebar #1704
Conversation
@jameshadfield this PR is unfinished but would like to get your opinion on general implementation direction. All the remaining tasks that I can think of are in the PR description - please add anything that I might be missing! |
82015f3
to
16e680b
Compare
16e680b
to
9838191
Compare
891ee1a
to
705b64c
Compare
705b64c
to
c9e4480
Compare
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.
Thanks Victor. Overall some nice reorganisations here. Most (all?) of my comments are minor.
f080bcb
to
a69a067
Compare
@jameshadfield it's probably hard to track in the sea of notifications/threads. Here's links to places where I'd like your input, as of now: |
1864c9c
to
ea97343
Compare
The component was written to allow tooltip as optional, so make that explicit. Other props should be required.
This keeps the styling closer to where it is used.
Previously, it looked like language was a part of Panel Options.
Instead of determining in the sidebar and passing down as props.
Disabling this makes typed prop drilling more readable by not requiring a conditional for optional props¹. ¹ https://stackoverflow.com/a/48816255
Split AnnotatedHeader into AnnotatedTitle and ControlHeader. A future commit will introduce PanelHeader. This places the header info icon immediately to the right of the title, instead of the far right side (to make room for the upcoming panel visibility toggle).
Force-pushing a rebase onto latest |
b25e783
to
a8f8b0d
Compare
Do this with some new panel-specific components that build upon the existing AnnotatedTitle and Toggle components. Simplify headers and translations to just the panel name (e.g. Tree) instead of "Show <panel name>" / "<panel name> Options". Conditionally render the entire "Panel Options" section including the header. This also adds a section for the entropy panel to maintain its toggle-ability. This is an empty section because it does not have any sidebar options.
This color is now used for more than just the unselected background.
a8f8b0d
to
e3eabae
Compare
I chose the title "Display" even though it is called "layout" in the state because "Layout" is already used to describe tree layout, and I didn't want translations to conflict. I also contemplated putting this control at the top. However, its conditional rendering worsens usability upon toggling panel visibility, as the scroll position is changed due to its placement above the toggles.
e3eabae
to
8a69ca2
Compare
Force-pushed two more design touch-ups:
|
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.
I haven't re-reviewed the code changes, but UI-3 is working well and, judging by the commentary on slack, looks good to merge!
8a69ca2
to
beadef7
Compare
Description of proposed changes
Hopefully a good improvement to user experience.
Related issue(s)
Checklist
panelsAvailable
whenshowTreeToo
is changed (thread)unselectedBackground
still works