-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Labels
Description
If a user has lots of trees and lots of nodes with comments, it can be cumbersome to scroll to the correct counter part. The two cases are:
- I have clicked on a comment in the comment tab and now I want to scroll to the corresponding tree in the trees tab
- I have clicked on a tree in the skeleton tab and now I want to scroll to the corresponding comments in the comments tab
Ideas
A) Automatically expand/scroll to the corresponding counter part. Note that both tabs CAN be visible at the same time but it cannot be assumed. Both cases should work.
B) Add a "go to tree/comments" item to the context menu. Then the other tab could be activated and the relevant item would be focused.
Approach
We should check first what the status quo is for the described use cases. Then, we should find out which solution is the best way to go.
Todos
- changing active tree should clear "selected tree ids" even when tree tab is invisible
- when activating tree tab, it should scroll to active tree
- "focus tree" should also work if the tree is already active (possibly difficult because react component needs to listen to action or sth similar)
- "focus tree" should also activate tree tab if it is not already visible