-
Notifications
You must be signed in to change notification settings - Fork 64
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
hierarchical track selector config options: collapse by default, sort ordering #26
Comments
draft config options that we would want initially:
|
I think we might want to renew this issue The ordering is pretty arbitrary and based on ordering in config.json file. Should we implement something new? |
I believe the v1.1.0 has a default sort by name on categories but the virtualized tree removed this just for reference, resulting in slightly different observed ordering between v1.1.0 and v1.2.0 upcoming |
Is there any update on this? It would be helpful to have more configuration on the track selector, specifically collapsing at category levels. It would also be good to have a defaultCollapse value and then collapse: {"Category_A":false"} to uncollapse specific categories. |
@JoshuaFortriede no updates on this yet but thanks for posting to add interest :) will try to see if we can get this worked in... |
An unexpected behavior I see here: it seems that the track that appears first (in any the category) in the config file ends up being the last one (in that category) in the track selector |
@anamariaelek is there any specific default behavior that you think might be best by chance? just asking cause we could try to make e.g. alphabetical sort on each category a default or e.g. "first that appears in config.json appears first in list" also |
@cmdcolin |
I agree with @AlbatrosHurleur, having an option to modify this by changing the order in the config is really useful |
@anamariaelek @AlbatrosHurleur thanks for pushing forward with this issue. I made a PR here that may help to address #3808 can try it out the beta branch with |
released in v2.6.3, some docs added here! https://jbrowse.org/jb2/docs/config_guides/track_selector/ |
by default it should follow more or less the "order in the config.json" with the optional collapsing and alphabetical sorting documented there |
i upgraded to v2.6.3, and try to add the collapse feature into config.json following the docs, but it does not work in my test. |
hi there, it is actually named "defaultCollapsed" and not "defaultCollapse". the docs are incorrect in a couple places on this so I will fix. hope that helps |
note also that the "defaultCollapsed" option are only applied when your session is first loaded, so you may need to clear the ?session= parameter from the URL bar for it to take effect |
yes, this solved my problem. Thanks a lot!! |
@rbuels I decided to not actually do any configs for the track selector until the stuff you're working on now gets merged.
I was just planning to do some simple configs to have categories be expanded or collapsed by default. We could probably do a category and track sorting config sometime too, but not sure if we want to add that quite yet.
The text was updated successfully, but these errors were encountered: