jbrowse-components icon indicating copy to clipboard operation
jbrowse-components copied to clipboard

track selector state not saved between closing and reopening

Open scottcain opened this issue 10 months ago • 2 comments

Describe the bug

In a nutshell: the state of collapsed versus open categories in the track selector doesn't appear to be saved during a session, so that if I close the track selector with some categories collapsed and then reopen the track selector, they are all open.

To Reproduce

This is fairly straight forward to reproduce. Take for example this testing site for WormBase: https://test.d2jjb0xowet5mr.amplifyapp.com/?session=share-HtAPAik3r7&password=heLRz This link has the track selector open with all of the categories collapsed. Now close the track selector and then reopen it: now all of the categories are open.

Expected behavior

I think it is quite reasonable for the user to expect that the state of the track selector would be saved, so closing and reopening the track selector for a given LGV should reopen in the same state. This extends to synteny views as well: if I open a track selector for one of the assemblies in a synteny view, the track state should be the same as the track state for the LGV. I decided this isn't true--what if I have multiple LGV open for the same assembly? Anyway, the track selector for an assembly that I'm opening from a synteny view should get the initial track selector state (i.e., if the config has them all collapsed, when I open the track selector for a synteny view, those categories should be collapsed). This is perhaps a separate issue.

Version:

2.7.0

scottcain avatar Oct 11 '23 19:10 scottcain