hodcroftlab / covariants

Real-time updates and information about key SARS-CoV-2 variants, plus the scripts that generate this information.
https://covariants.org/
GNU Affero General Public License v3.0
316 stars 111 forks source link

Add region (continent) filters #221

Closed ivan-aksamentov closed 2 years ago

ivan-aksamentov commented 2 years ago

Adds continent checkboxes to the filtering sidebar, such that countries can be toggled en masse by continent.

The two-directional updates between country and continent checkboxes required changing the underlying state structure. So I moved a lot of things around, And while on it I decided to improve the code of everything that touches this state. So now the codebase should hopefully a little bit better, at the expense of non-reviewable huge diff in this PR.

Example: everything is deselected and then Europe is selected:

01

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/hodcroftlab/covariants/5pDZvJ3FyEbjJ5MX8riHHPcGsx9A
✅ Preview: https://covariants-git-regioncountry-hodcroftlab.vercel.app

emmahodcroft commented 2 years ago

Thank you Ivan, this is very cool!