-
Notifications
You must be signed in to change notification settings - Fork 8
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
[BUG] Branches do not remain collapsed when adding a new element #492
Comments
@chrisdburr this is the expected behaviour as we reload the chart after adding a new element. Which pulls the new updated assurance case and re-creates the nodes for that case, updating the assurance case in the state. Therefore, removing any elements that had been toggled to hide. |
@RichGriff, I appreciate it may be the expected behaviour, but it's not desirable as a user. Here's another example of how this is frustrating. In this example, I add a new element to the right-hand side of the case and when the case reloads I am moved to the left-hand side of the case. issue.mp4Constantly moving around to get back to where you were is not good UX. If this needs to be revised into a broader issue, and not a bug, that's fine. But we need to change this behaviour to improve the user experience. |
@chrisdburr The only thing we can do here then is not reload the screen which is what we had before we put in place the identifier stuff. |
Would need to store the hidden value for each node. Myself and @cptanalatriste - have checked the feasibility of this and have identified about 1 week of work. @chrisdburr to discuss next sprint planing. |
Thanks, both. It was flagged as an annoyance by multiple users in our workshops, so I think it's probably worth the effort. Let's discuss next week. |
Notes:
|
Progress update
The last part here is going to be difficult as we currently re-render the nodes when the assurance case in state changes Screen.Recording.2024-06-26.at.19.15.57.mov |
Big improvement with just these first fixes, @RichGriff. I don't understand the final issue with the hidden value, but appreciate the status update. |
So this one has been a little pain but i think i have nailed the last point - retaining to the hidden state. The below video should show the following:
Screen.Recording.2024-07-01.at.15.40.40.mov |
Incorrectly setting hidden value on evidence. Correction was to look at at parent hidden if there are no siblings. |
This is now in |
@chrisdburr I have managed to retain the hidden value when adding a new link (this was in fact missing but had implemented the logic for when moving elements) |
Working branch on this issue: I can't seem to get this toggle functionality to play ball - it works but the issue is when the child elements are already visible (after adding an child element, when they were hidden) its causing a double click on the toggle button but only the initial time. Putting this on hold to pick up new features. |
Issue
If a user has collapsed a branch, and then goes on to add a new element to a separate branch, when the case refreshes all branches are expanded.
Note in this video how
S3
is collapsed, and then a new element is added to a child ofS4
. When the case is refreshed,S3
is expanded.issue.mp4
Desired Behaviour
Expanded/collapsed states should persist.
The text was updated successfully, but these errors were encountered: