GMOD / jbrowse-components

Source code for JBrowse 2, a modern React-based genome browser
https://jbrowse.org/jb2
Apache License 2.0
205 stars 61 forks source link

Fix configuration settings for track sorting in the track selector #4483

Closed cmdcolin closed 2 months ago

cmdcolin commented 2 months ago

A change in v2.11.1 changed the way sorting/collapsing was stored in the track selector, and makes it remember it across closing/re-opening the track selector, but broke the ability for admins to configure the sort behavior

This fixes that by making it so the fetching of the setting from the users localStorage becomes "undefined" rather than default false.

cmdcolin commented 2 months ago

tried to make a variety of unit tests now that exercises the cases of "configuration supplied" and "localstorage supplied" settings