nextstrain / auspice

Web app for visualizing pathogen evolution
https://docs.nextstrain.org/projects/auspice/
GNU Affero General Public License v3.0
290 stars 159 forks source link

Reset layout in entropy view has no effect when URL params are set: either disable button in that case, or make it override URL params #1774

Open corneliusroemer opened 1 month ago

corneliusroemer commented 1 month ago

Current Behavior

When one colors by a nucleotide, the entropy view panel does not respect clicks on "reset layout" - in contrast to at least my personal user experience.

Expected behavior

I would expect one of the following things as a user instead: a) If the button doesn't work in this case of coloring, disable it so it is greyed out and/or shows a 🚫 sign to notify the user b) Override the auto-view setting, allow reset layout to uncouple from the initial zoom that is the result of coloring c) add additional button to "unlock" the coupling

How to reproduce

  1. Go to entropy panel
  2. Click on nucleotide
  3. Click reset layout
  4. Observe result

compressed