Skip to content
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

Restore terminal branch hover/click behaviour #1753

Merged
merged 4 commits into from
Feb 20, 2024

Conversation

jameshadfield
Copy link
Member

@jameshadfield jameshadfield commented Feb 20, 2024

PR #1749 (released in version 2.52.0) inadvertently removed the distinction between terminal branches and tips, which resulted in hovering or shift-clicking on terminal branches showing the wrong information. The intended behaviour (restored here) is to summarise the changes on the branch, whereas hovering/clicking on the tip shows information about the specific strain and collects all mutations between the tip and the tree root.

Closes #1752

Hovering on terminal branches incorrectly displayed tip-specific
information rather than branch-specific. This was first noticed in
<#1752> as the mutations are
summarised differently for branches vs nodes.

This bug was introduced in 86b8527 and
this commit reverts some of the changes introduced there.

Closes the original issue described in
<#1752>, but comments in
that issue also identified a separate bug related to the branch-click
modal.
Clicking on terminal branches incorrectly behaved as if we had clicked
on the tip (the circle); the intended behaviour is for internal +
terminal branches to summarise the information the same way. This was
noticed in an issue comment
<#1752 (comment)>

The bug was introduced in f7e944d which
removed the ability to detect if a click occurred on a terminal node
(tip) or terminal branch.
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-james-fix-termi-hpwj8a February 20, 2024 23:24 Inactive
@jameshadfield jameshadfield changed the title Fix missing mutations on terminal branch hover Restore terminal branch hover/click behaviour Feb 20, 2024
With the changes in the previous commit we no longer need the
`isTerminal` argument, as we use the (more accurate) `isBranch`
property. This removes the console errors "trying to remove values from
an un-initialised filter!" when shift-clicking on a branch then removing
the info modal. The bug was introduced by #1749.
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-james-fix-termi-hpwj8a February 20, 2024 23:49 Inactive
@jameshadfield
Copy link
Member Author

Merging without review (see #1752 for context). Post-merge review welcomed!

@jameshadfield jameshadfield merged commit 68700b5 into master Feb 20, 2024
20 checks passed
@jameshadfield jameshadfield deleted the james/fix-terminal-muts branch February 20, 2024 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show mutation split into homoplasic/unique/reversions also on terminal branches, not just internal ones
2 participants