Skip to content

Make it easier to jump between tree and comment(s) #8628

@philippotto

Description

@philippotto

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

Context

https://scm.slack.com/archives/C5AKLAV0B/p1747294069361719

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions