november9 / wecansavedemocracy

A simple mobile and tablet-friendly web app to help get citizens in the habit of taking peaceful political action towards progressive causes.
GNU General Public License v3.0
10 stars 3 forks source link

Refactored representative data creation and storage #37

Closed dorono closed 7 years ago

dorono commented 7 years ago

This will make it easier to pass this data around, as I created a new property on the userActivities object that gives you all of the data already processed so that all you need to do is render the markup. This was mainly done for the purpose of displaying the representative title, which, due to the poor design of Google Civic's API, requires a lot of fancy footwork to display properly, so it was deemed better to just get the title once and save it to the global state as a string.