Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of proposed changes
See #1444 for context & commit messages for further info. Or just look at the examples 😉
Testing
Unit tests added, as well as interactive testing
Examples
Branch Hover
I've grouped nucleotide mutations on branch hover, as I find it super useful for exploring the tree to see if mutations are homoplasic or reversions to the root (i.e. potentially backfilled). In the interest of keeping the size of the info-box manageable, I've kept the AA mutations unchanged.
Branch (shift+)click
Branches group mutations into unique vs homoplasies vs gaps vs Ns. They also report which are reversions to the root. Gaps and Ns are grouped into intervals.
Tip hover
When hovering over tips we no longer report the mutations on the branch leading to the tip, rather we report a summary of changes w.r.t the root. If you want to see the mutations on the branch leading to the tip, then you can still hover on the branch to see them.
Tip click
When clicking on a tip we list those changes between the root and this sample:
Questions
Further work
I purposefully didn't spend a huge amount of time tweaking the aesthetics of the changes here, as I plan to incorporate the nextclade / CoVariants badges shortly.