[Locate in tree] Complete the button action behaviour
Summary
Following the #717 (closed) issue: consider that the current node is not visible in the tree because you have closed its parent (while browsing), then clicking on "Locate in tree" does nothing.
Steps to reproduce
- open any node
- then close the current parent's node in the tree
- click on "Locate in tree"
What is the current bug behavior?
Described in summary.
What is the expected correct behavior?
Clicking on the button should (re)open the current node parent(s) before focusing on the node element in tree.
Relevant logs and/or screenshots
We are talking about this button:
Possible fixes
One way to resolve: modify the openNodesInsert
(there's an example in https://gitlab.iscpif.fr/gargantext/purescript-gargantext/blob/dev/src/Gargantext/Components/Forest/Breadcrumb.purs, line 253