Views need two dimensions: the organism and the "view type" (single variant, sequencing efforts, ...)
We can compose every view as a set of two constants (for the organism and the view type)
and a collection of commoon functionality (the "page state handlers")
This refactoring restructures the code so that the views reflect this logic.
Summary
Views need two dimensions: the organism and the "view type" (single variant, sequencing efforts, ...) We can compose every view as a set of two constants (for the organism and the view type) and a collection of commoon functionality (the "page state handlers") This refactoring restructures the code so that the views reflect this logic.
This is a preparation for https://github.com/GenSpectrum/dashboards/issues/19
Screenshot