azavea / fb-gender-survey-dashboard

Interactive exploration of global results from the Facebook "Survey on Gender Equality At Home
https://gender-survey-dashboard.netlify.app/
Apache License 2.0
2 stars 2 forks source link

Update meta tags and handle null geoMode #140

Closed TaiWilkin closed 2 years ago

TaiWilkin commented 2 years ago

Overview

Updates the meta tags to use new text for 2021 (swapping out "Visualize aggregate data from over the 2020 Survey on Gender Equality at Home, which reached over 460,000 Facebook users in 208 locations around the world" with "Explore the country and region-level data from the 2020 and 2021 waves of the Survey on Gender Equality at Home.") per client request.

Adds protections to handle a null or invalid geoMode. The geography mode (region or country) must be selected for the app to successfully access the data and work as expected. This value is set to countries by default, but in the case of an invalid value somehow entering the system, the app will reset the value to countries, and prevent content from loading until a valid value is found.

Connects #131, #139

Notes

A separate commit with an invalid geoMode set by default has been pushed. Drop this before merging.

Testing Instructions

TaiWilkin commented 2 years ago

Thank you for reviewing!