GenSpectrum / dashboards

3 stars 0 forks source link

refactor(website): reduce code duplication in views #341

Closed fengelniederhammer closed 4 days ago

fengelniederhammer commented 5 days ago

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