Add a redux local storage persist library and establish a new reducer pathway to store a list of "saved charts". These entries will contain the data required to recreate the checkbox selection state of the Geography and Question selector pages (#11) and possibly the "final state" of the data that needs to be rendered on the vizualization page.
However, it may be sufficient (and desirable) to merely save the applied state (geos + questions) and simply let the visualization page render the graphs as normal. This has the benefit of not capturing stale data if the dataset changes, although we will need to gracefully handle cases where a persisted question or geography is not longer available. Whatever data structure is used, include a title key that defaults to the concatenation of selected geographies. The user can update this value later.
Aside from the "save charts" button to initiate this persistence, no other UI is needed for this card.
Overview
Add a redux local storage persist library and establish a new reducer pathway to store a list of "saved charts". These entries will contain the data required to recreate the checkbox selection state of the Geography and Question selector pages (#11) and possibly the "final state" of the data that needs to be rendered on the vizualization page.
However, it may be sufficient (and desirable) to merely save the applied state (geos + questions) and simply let the visualization page render the graphs as normal. This has the benefit of not capturing stale data if the dataset changes, although we will need to gracefully handle cases where a persisted question or geography is not longer available. Whatever data structure is used, include a
title
key that defaults to the concatenation of selected geographies. The user can update this value later.Aside from the "save charts" button to initiate this persistence, no other UI is needed for this card.