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
Left panel: Make "Expand all" and "Collapse all" based on selected node #8874
Left panel: Make "Expand all" and "Collapse all" based on selected node #8874
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8874 +/- ##
=======================================
Coverage 56.08% 56.08%
=======================================
Files 925 925
Lines 65872 65873 +1
Branches 12084 12086 +2
=======================================
+ Hits 36942 36945 +3
+ Misses 25919 25912 -7
- Partials 3011 3016 +5
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
873e9ed
to
fefb9be
Compare
I don't think it would be a good idea. I agree that "Expand all" is in most (perhaps all) repositories of no use and that we could remove it because it clutters the contextual menu. But expand and collapse are not symmetric in the use we do of it. And because there is not a single root, you want to keep the current "Collapse all" behavior that collapse everything. In the left panel, that's not a problem because there is the "Collapse all" that act on the whole tree in the left panel toolbar. |
If I sum up my point of view.... Preamble: First, I should remind that left panel and file tree can't be managed exactly the same way because in left panel we display things that are not linked together (branches, remotes) and we could want to act one without having a effect on others. Left panel (LP):
File tree (FT):
Note: For File tree a perfect solution is not achievable in term of UX, and depending on the choice we will made, we will have to choose between some symmetry in features proposed and contextual menu clutter. Difficult choice. (0): to make the discussion easier |
I think File Tree panel needs tools for global actions and Collapse/Expande for node. Like in others. |
Yes, I think we could agree in this goal but what I was asking for is a clever step ̂toward this goal because I won't do all that in this PR. That's why I proposed to keep FT-CollAll in the contextual menu even if that's not what is done in Left panel until FT gain a kind of toolbar. Because adding a toolbar ask a lot of new questions that we can't solve now... |
I agree. We spend more time on discussions. Several PRs could have been done already. 😄 |
I fully understand your impatience and frustration. I'd love to be able to move faster. I think in the past it was often a case - someone proposed a change, and it would get merged without much discussion and appreciation how it would fit in the overall user experience, whether there was a similar implementation somewhere else, or the same change would need to be applied in another component. This led to the current state where we have disjoint or incoherent user experiences - affecting both behaviours and UI. We have tens (or more like hundreds) of thousands of users, and we need to be mindful of this fact, and (try to) make rational and balanced decisions that would appeal to the majority (if not all) of our users. |
Left panel (LP):
File tree (FT):
|
fefb9be
to
aa8be91
Compare
@RussKie Done. Even If I will miss |
Wouldn't you achieve the same by clicking on the top node > Collapse?
|
No. There is no top node for all the top folders in the FT. That was the main goal of my big comment to explain that the LP and FT doesn't contains the same type of data (heterogeneous vs homogeneous) and so it could make sense that they behave differently...by keeping FT-CollAll (that makes more sense for me than FT-Coll) until we get the toolbar feature that @ivangrek proposed to develop 🤣 |
aa8be91
to
804b60b
Compare
Sorry, I didn't have a GE instance to look at while I was responding earlier. |
I'm not sure to understand what is "working for your". But playing with the FT, I discovered a new strange thing that we should know before deciding... In the LP, a left click to collapse a node keep the expanded/collapse state of subnodes (so it makes sense to have a So I propose: File tree (FT):
|
What does "Expand" mean:
1. Expand the current node only, or
2. Expand the current node and all of its children?
|
"Expand" means 2. (with children) because 1. is of course done with the left click. That's you that bring the idea to remove the text after (to do like in Visual Studio) even if I would prefer to find some more explicit (and good English) label like:
I will put this question in the fact that you handle a lot of things 😉 |
Thank you.
I'm still of an opinion we should keep it short, i.e. "Expand".
Users will quickly learn what it means after one or two interactions with
it.
|
Is this ready? |
If the table @pmiossec did in #8874 (comment) is updated with click behavior too, I will vote... |
No, that is not. I have to finish it. But it's even harder these last few days to find some free time... (I admire all the work @gerhardol is able to deliver while I can just give my point of view on some discussions from time to time... ) |
e69e03b
to
8d52f5b
Compare
Done. Sum up of what has been done in this PR with the new knowledge ... Left panel (LP):
File tree (FT):
Just before writing this message, I was considering this PR as finished until I noticed 2 things:
Your point of view on everything? |
My 2c
1. Expand first, followed by Collapse
2. Remove tooltips, if other items don't have them.
Do you find tooltips useful here?
|
In side panel, no added information For file tree, the hint that operation can be slow could have been useful for the slow expand all, that is being removed. |
8d52f5b
to
eb738fd
Compare
Done.
Kept because other items have a tooltip |
Remove most of the flickering when loading the tree view
Renaming menu items to be consistent with left panel
as collapse is the default behavior when doing a collapse with the left click
eb738fd
to
f47e84e
Compare
Including into 3.5 since it won't drastically affect the translation status. |
Fixes #8873
Proposed changes
Screenshots
Before
After
Test methodology
Test environment(s)