Some geography/year combinations are unavailable. In those cases,
we indicate which years are available for the geography on both the
geography selection page and the years selection page, and prevent
users from selecting a year if no selected geographies have data
available for it.
If a user selects both available geographies for a year and an unavailable
geography for a year, the unavailable geography is filtered from the chart
data. This prevents the rendering of null values.
A bug in Chakra-UI was preventing the radio buttons in the year selector
from displaying an externally controlled value correctly. It has been fixed
in the latest version, so ChakraUI has been upgraded.
Connects #123
Demo
Geography Selection
Year Selection (partial availability)
Year Selection (no availability)
Year Selection (complete availability)
Testing Instructions
In the Netlify preview, select a geography that is available for 2020 and 2021, then view the years selector. Both years should be available and neither should have an availability warning.
Select a geography that is available for only 2020. On the years page, 2021 should be disabled and show an availability warning.
Select a geography that is available for only 2020 and a geography that is available for 2020 and 2021. On the years page, 2021 should show an availability warning. Select 2021.
On the charts page, the unavailable geography should not appear on any of the charts. The available geography should render as usual.
Overview
Some geography/year combinations are unavailable. In those cases, we indicate which years are available for the geography on both the geography selection page and the years selection page, and prevent users from selecting a year if no selected geographies have data available for it.
If a user selects both available geographies for a year and an unavailable geography for a year, the unavailable geography is filtered from the chart data. This prevents the rendering of null values.
A bug in Chakra-UI was preventing the radio buttons in the year selector from displaying an externally controlled value correctly. It has been fixed in the latest version, so ChakraUI has been upgraded.
Connects #123
Demo
Geography Selection
Year Selection (partial availability)
Year Selection (no availability)
Year Selection (complete availability)
Testing Instructions