nextclade
nextclade copied to clipboard
Open tree in new tab without requiring new analysis
Right now, it's not possible to open the tree view in a new tab without having to do the whole alignment again.
Use case: I have two screens and would like to look at tree and alignment in parallel.
This is somewhat related to #440 in that it revolves around switching back and forth between tree and alignment view.
This might be hard to do, because there is no server, or any other way to persist the results outside of the current browsing context. It is also not possible to encode the required data in the URL.
Could possibly be implemented with Post Message API.
Alternatively, we might try to persist the result in local storage or use another storage option.
Related: #30
Local storage may be the best bet because it enables multiple features in one go.
Sadly, there seems to be no easy solution: https://stackoverflow.com/questions/15281000/duplicate-a-tab-in-chrome-without-reloading-the-page
I've been contemplating persistence for a while.
The problems in persistence I see are:
- amount of data, especially if we persist sequence data and the tree
- if we don't persist all data, then the new tab will be "incomplete", that is it cannot might not be able to go back and show the results table, downloads, etc. Which might or might not be a problem
- unclear what to do if there's multiple Nextclade tabs open and multiple analyses are ran. Which one to persist
- If we persist all of them, then again the size
Glad to discuss the options, typical workflows, user experience, edge cases where things may break etc.