Recidiviz / justice-counts-components

A set of React components powering a web app for exploring centralized, standardized metrics on the performance of justice systems across the United States
GNU General Public License v3.0
1 stars 0 forks source link

Create county selector for new Jails view #42

Closed jessex closed 3 years ago

jessex commented 3 years ago

Is your feature request related to a problem? Please describe. As described in the new "Category 2: Jails" section of the PRD, we are going to create a new Jails view alongside the existing Corrections view. The middle section of the view is a pair of graphs created in #41. One of these graphs should have a new button that opens a modal for selecting a specific county to show on the graph.

Describe the solution you'd like There will be a styled link next to the county's name in the legend of the graph. When the link is clicked, it opens a modal that shows a list of counties for that state. When a county is selected and the "View County" button in the modal is clicked, it will close the modal and change the county that is being shown in that graph.

There is an open question in the PRD as to whether the list of counties should be all counties we have data for in that state or all counties that exist in that state. See the comments in this sub-section of the PRD.

Describe alternatives you've considered N/A

Additional context See the new "Category 2: Jails" section of the PRD and the Figma mocks it links to.