Tree view: expand/collapse all tasks or families
Problem
Sometimes users want to monitor the families only as the list of tasks in them is very long.
Proposed Solution
Currently there is a button for expanding all down to the task level, and a button for collapsing down to the cycle level. Perhaps this could be replaced by a toggle group for expanding/collapsing to a choice of cycle, family and task.
Another issue is that the state of expansion/collapsing is lost on navigation away... in principle we can store this in the initialOptions for the tree view but we need to figure out how to deal with newly spawned tasks since you navigated away. Edit: and avoid a memory leak where this stored configuration grows infinitely!
Perhaps we need to re-think the existing expand/collapse all buttons?
One option would be to offer a dropdown for them, allowing the user to select the level they want to expand/collapse to, e.g:
- cycle
- family
- level 2 family
- level 3 family
- task
- job (don't offer an expand all option for jobs!)
Gets a bit messy for nested families. I think Cylc 7 used to expand to a given (and non-configurable) tree depth. But offered expand/collapse all buttons (can't remember the details of what they did).