-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
feat: Grid-tree view to improve information density and preserve visual hierarchy (#6936) #8661
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8661 +/- ##
=======================================
Coverage 45.78% 45.78%
=======================================
Files 220 220
Lines 26170 26170
=======================================
Hits 11981 11981
Misses 12531 12531
Partials 1658 1658 Continue to review full report at Codecov.
|
Hey @rbreeze, could you please have a look at this? |
097bff0
to
5bd2b8b
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.
Hi Keith! I checked this out and it looks good to me. One suggestion I have is to add a tooltip to the smaller +/- on the resource so that a user will know it's for collapsing/expanding child nodes. You also had a point about the line connectors disappearing when zoomed out but I didn't observe that so I'm curious where you're seeing that happening?
Hi Keith, great work on this complicated task! Good learning from reviewing the PR 👍 Thank you for that. I only have one small concern that if we can pass the color to the SCSS so that the right arrow would have same color as the dashed line in the network view? That way it looks a little bit more clearer when it comes to very complex graph. You probably already know the trick, but here's an example of what I mean: https://css-tricks.com/getting-javascript-to-talk-to-css-and-sass/ |
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.
Looks good, but I agree with both @reginapizza and @ciiay 's suggestions that:
- Matching the color of the arrows in network view and
- Adding a tooltip indicating what the minimize/maximize button does
The color of the right arrow is an issue without this enhancement. But, yes, it will make the graphical view more refined and polished: MatchingColoredArrow.mov |
Also, the arrow will be centred along the connecting line and the line ends at the wide part of the arrow, unlike the current behavior now: ArrowsCentered-LinesEndAtArrow.mov |
264871c
to
8628614
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.
LGTM once comment is addressed
ui/src/app/applications/components/application-resource-tree/application-resource-tree.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Keith Chong <[email protected]>
One issue (one can argue it isn't an issue) is that because the lines are overlapping, the more lines there are, the more they are 'concentrated' so that the connector lines will appear more solid, as shown in the screenshot below. Notice the connector lines are dashed and appear more 'normal' when the connections are toward the outer pods (because there are fewer overlapping lines) |
Signed-off-by: Keith Chong [email protected]
This fixes #6936
This is a preliminary solution to address the concerns in 6936, as well as several other issues.
Points:
Please try this fix out, especially with applications with many nodes.
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist: