O-C-R / floodwatch

A collective ad monitoring tool for the public good.

Home Page:http://ocr.nyc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filter

KateBK opened this issue · comments

As a logged in user I can filter categories based on the demographic data I've provided, I cannot make a comparison using any demographic filter I haven't filled in. I can change the comparison to compare myself to other demographics including age and race groups. I can select and compare two different demographics.

commented
  1. Filtering triggered by button below the comparison graph/comparison sentence.

screen shot 2016-11-01 at 12 04 43 pm

  1. Filtering occurs in comparison modal.

screen shot 2016-11-01 at 12 04 48 pm

[Code.](https://github.com/O-C-R/floodwatch-prototype/blob/a181338dc0b78431e40bdf7786d41c685a33a42b/src/js/modules/ComparisonModal.js)
  1. Comparison modal contains presets and custom filters. These vary in availability based on what demographic info the user has provided. If the user tries to choose something they have not given into for, they get a popup asking them to fill that data in.

screen shot 2016-11-01 at 12 04 56 pm

screen shot 2016-11-01 at 12 05 01 pm

Code (custom)
Code (presets)
Code (overlay)
Filters currently read in from FilterList.json.

  1. Note: not in prototype screenshot! Each custom filter should contain a toggle for what logic the user wants to use for their query (basically: AND, OR, NOT)

screen shot 2016-10-20 at 5 45 10 pm

[Code](https://github.com/O-C-R/floodwatch-prototype/blob/a181338dc0b78431e40bdf7786d41c685a33a42b/src/js/modules/ComparisonModal.js#L340-L344)
commented

Will be addressed by #45.

commented

For private alpha, you can filter by any demographic--not just your own.

commented

Functionality in!!! If we find bugs, let's create new specific issues rather than re-opening this behemoth.