Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/pre-election tables, stripe rows by state #3288

Merged
merged 3 commits into from
Oct 30, 2019

Conversation

johnnyporkchops
Copy link
Contributor

@johnnyporkchops johnnyporkchops commented Oct 22, 2019

Summary (required)

Stripe table rows by state instead of zebra striping (Issue 3017)
Show state footnotes (first-column) under row (Issue 3263)

Resolves #3017
Also Resolves #3263

Impacted areas of the application

Pre-election reporting dates tables

modified: fec/static/js/pages/reporting-dates-tables.js
modified: fec/static/scss/components/_table-styles.scss

Note: This PR also includes two files from PR #3206 that where formatted when running npm format-lint and the PR author (@patphongs) directed me to push them up with this PR. They may have bypassed linting because apparently, npm lint is less strict than npm format-lint.
modified: fec/static/js/modules/filters/filter-typeahead.js
modified: fec/static/js/modules/filters/typeahead-filter.js

Related PRs

#3227
#3248

Screenshots

Screen Shot 2019-10-21 at 9 03 54 PM

How to test

  1. Checkout `feature/pre-election-tables-stripe-by-state
  2. npm run build
  3. ./manage.py runserver
  4. Go to 127.0.0.1/admin
  5. Create a page of type FullWidthPage
  6. Create three html blocks and paste in the three sections from the Sample text to copy/paste section below. This step simulates the content team members copy/pasting from Excel but leaves out the actual spreadsheet part here.
  7. Publish/preview the page to confirm that the rows are striped by state
  8. Confirm that the footnotes have the same background color as their parent row and that everything works in desktop and mobile view
Sample text to copy/paste (click to expand)

—————————————
Table html: Paste into Wagtail html block
—————————————

<table class="simple-table simple-table--display simple-table-cms election-dates-table"><tr><th>State</th><th>Election Date</th><th>Close of books<a href='#hdr+'><sup>+</sup></a></th><th>Mailing deadline<a href='#hdr++'><sup>++</sup></a></th><th>Filing deadline<a href='#hdr++'><sup>++</sup></a></th><th>48-hour notices<a href='#hdr**'><sup>**</sup></a></th></tr>
<tr class="al"><td><a href="http://www.fec.gov">Alabama Primary</a><a href="#footnote_*"><sup>*</sup></a></td><td>03/03/2020<a href="#footnote_1"><sup>1</sup></a></td><td>02/12/2020<a href="#footnote_2"><sup>2</sup></a></td><td>02/17/2020<a href="#footnote_5"><sup>5</sup></a></td><td>02/20/2020<a href="#footnote_7"><sup>7</sup></a></td><td>02/13/2020 - 02/29/2020</td></tr>
<tr class="al"><td>Alabama Runoff<a href="#footnote_*"><sup>*</sup></a></td><td>03/31/2020<a href="#footnote_2"><sup>2</sup></a></td><td>03/11/2020<a href="#footnote_4"><sup>4</sup></a></td><td>03/16/2020<a href="#footnote_3"><sup>3</sup></a></td><td>03/19/2020<a href="#footnote_7"><sup>7</sup></a></td><td>03/12/2020 - 03/28/2020</td></tr>
<tr class="ak"><td>Alaska Primary<a href="#footnote_*"><sup>*</sup></a></td><td>08/18/2020<a href="#footnote_2"><sup>2</sup></a></td><td>07/29/2020<a href="#footnote_1"><sup>1</sup></a></td><td>08/03/2020<a href="#footnote_1"><sup>1</sup></a></td><td>08/06/2020<a href="#footnote_5"><sup>5</sup></a></td><td>07/30/2020 - 08/15/2020</td></tr>
<tr class="as"><td>American Samoa General</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="az"><td>Arizona Primary <a href="#footnote_*"><sup>*</sup></a></td><td>08/04/2020<a href="#footnote_2"><sup>2</sup></a></td><td>07/15/2020<a href="#footnote_3"><sup>3</sup></a></td><td>07/20/2020<a href="#footnote_5"><sup>5</sup></a></td><td>07/23/2020<a href="#footnote_7"><sup>7</sup></a></td><td>07/16/2020 - 08/01/2020</td></tr>
<tr class="ar"><td>Arkansas Primary<a href="#footnote_*"><sup>*</sup></a></td><td>03/03/2020</td><td>02/12/2020</td><td>02/17/2020</td><td>02/20/2020</td><td>02/13/2020 - 02/29/2020</td></tr>
<tr class="ar"><td>Arkansas Runoff<a href="#footnote_*"><sup>*</sup></a></td><td>03/31/2020</td><td>03/11/2020</td><td>03/16/2020</td><td>03/19/2020</td><td>03/12/2020 - 03/28/2020</td></tr>
<tr class="ca"><td>California Primary</td><td>03/03/2020</td><td>02/12/2020</td><td>02/17/2020</td><td>02/20/2020</td><td>02/13/2020 - 02/29/2020</td></tr>
<tr class="co"><td>Colorado Primary<a href="#footnote_*"><sup>*</sup></a></td><td>06/30/2020</td><td>06/10/2020</td><td>06/15/2020</td><td>06/18/2020</td><td>06/11/2020 - 06/27/2020</td></tr>
<tr class="ct"><td>Connecticut Convention (Senate) - Democrats</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="ct"><td>Connecticut Convention (House) - Democrats</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="ct"><td>Connecticut Convention (House & Senate)- Republicans</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="ct"><td>Connecticut Primary</td><td>08/11/2020</td><td>07/22/2020</td><td>07/27/2020</td><td>07/30/2020</td><td>07/23/2020 - 08/08/2020</td></tr>
<tr class="de"><td>Delaware Primary<a href="#footnote_*"><sup>*</sup></a></td><td>09/15/2020</td><td>08/26/2020</td><td>08/31/2020</td><td>09/03/2020</td><td>08/27/2020 - 09/12/2020</td></tr>
<tr class="dc"><td>District of Columbia Primary</td><td>06/02/2020</td><td>05/13/2020</td><td>05/18/2020</td><td>05/21/2020</td><td>05/14/2020 - 05/30/2020</td></tr>
<tr class="fl"><td>Florida Primary</td><td>08/18/2020</td><td>07/29/2020</td><td>08/03/2020</td><td>08/06/2020</td><td>07/30/2020 - 08/15/2020</td></tr>
<tr class="ga"><td>Georgia General Runoff*</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="ga"><td>Georgia General Post-Runoff*</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="ga"><td>Georgia Primary<a href="#footnote_*"><sup>*</sup></a></td><td>05/19/2020</td><td>04/29/2020</td><td>05/04/2020</td><td>05/07/2020</td><td>04/30/2020 - 05/16/2020</td></tr>
<tr class="ga"><td>Georgia Runoff<a href="#footnote_*"><sup>*</sup></a></td><td>07/21/2020</td><td>07/01/2020</td><td>07/06/2020</td><td>07/09/2020</td><td>07/02/2020 - 07/18/2020</td></tr>
<tr class="gu"><td>Guam Primary</td><td>08/29/2020</td><td>08/09/2020</td><td>08/14/2020</td><td>08/17/2020</td><td>08/10/2020 - 08/26/2020</td></tr>
<tr class="gu"><td>Guam General Runoff</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="gu"><td>Guam General Post-Runoff</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="hi"><td>Hawaii Primary</td><td>08/08/2020</td><td>07/19/2020</td><td>07/24/2020</td><td>07/27/2020</td><td>07/20/2020 - 08/05/2020</td></tr>
<tr class="id"><td>Idaho Primary<a href="#footnote_*"><sup>*</sup></a></td><td>05/19/2020</td><td>04/29/2020</td><td>05/04/2020</td><td>05/07/2020</td><td>04/30/2020 - 05/16/2020</td></tr>
<tr class="il"><td>Illinois Primary<a href="#footnote_*"><sup>*</sup></a></td><td>03/17/2020</td><td>02/26/2020</td><td>03/02/2020</td><td>03/05/2020</td><td>02/27/2020 - 03/14/2020</td></tr>
<tr class="in"><td>Indiana Convention - Libertarian</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="in"><td>Indiana Primary</td><td>05/05/2020</td><td>04/15/2020</td><td>04/20/2020</td><td>04/23/2020</td><td>04/16/2020 - 05/02/2020</td></tr>
<tr class="ia"><td>Iowa Primary<a href="#footnote_*"><sup>*</sup></a></td><td>06/02/2020</td><td>05/13/2020</td><td>05/18/2020</td><td>05/21/2020</td><td>05/14/2020 - 05/30/2020</td></tr>
<tr class="ks"><td>Kansas Convention - Libertarian<a href="#footnote_*"><sup>*</sup></a></td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="ks"><td>Kansas Primary<a href="#footnote_*"><sup>*</sup></a></td><td>08/04/2020</td><td>07/15/2020</td><td>07/20/2020</td><td>07/23/2020</td><td>07/16/2020 - 08/01/2020</td></tr>
<tr class="ky"><td>Kentucky Primary<a href="#footnote_*"><sup>*</sup></a></td><td>05/19/2020</td><td>04/29/2020</td><td>05/04/2020</td><td>05/07/2020</td><td>04/30/2020 - 05/16/2020</td></tr>
<tr class="la"><td>Louisiana General Post-Runoff (12/5)<a href="#footnote_*"><sup>*</sup></a></td><td>12/05/2020</td><td>12/25/2020</td><td>01/04/2021</td><td>01/04/2021</td><td>n/a - n/a</td></tr>
<tr class="la"><td>Louisiana General Pre-Runoff (12/5)<a href="#footnote_*"><sup>*</sup></a></td><td>12/05/2020</td><td>11/15/2020</td><td>11/20/2020</td><td>11/23/2020</td><td>11/16/2020 - 12/02/2020</td></tr>
<tr class="la"><td>Louisiana Post-General (11/3)<a href="#footnote_*"><sup>*</sup></a></td><td>11/03/2020</td><td>11/23/2020</td><td>12/03/2020</td><td>12/03/2020</td><td>n/a - n/a</td></tr>
<tr class="la"><td>Louisiana Pre-General (11/3)<a href="#footnote_*"><sup>*</sup></a></td><td>11/03/2020</td><td>10/14/2020</td><td>10/19/2020</td><td>10/22/2020</td><td>10/15/2020 - 10/31/2020</td></tr>
<tr class="la"><td>Louisiana Primary<a href="#footnote_*"><sup>*</sup></a></td><td>07/17/2020</td><td>06/27/2020</td><td>07/02/2020</td><td>07/05/2020</td><td>06/28/2020 - 07/14/2020</td></tr>
<tr class="me"><td>Maine Primary<a href="#footnote_*"><sup>*</sup></a></td><td>06/09/2020</td><td>05/20/2020</td><td>05/25/2020</td><td>05/28/2020</td><td>05/21/2020 - 06/06/2020</td></tr>
<tr class="md"><td>Maryland Convention - Green</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="md"><td>Maryland Convention - Libertarian</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="md"><td>Maryland Primary</td><td>04/28/2020</td><td>04/08/2020</td><td>04/13/2020</td><td>04/16/2020</td><td>04/09/2020 - 04/25/2020</td></tr>
<tr class="ma"><td>Massachusetts Primary<a href="#footnote_*"><sup>*</sup></a></td><td>09/15/2020</td><td>08/26/2020</td><td>08/31/2020</td><td>09/03/2020</td><td>08/27/2020 - 09/12/2020</td></tr>
<tr class="mi"><td>Michigan Convention - Green*</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="mi"><td>Michigan Convention - Libertarian*</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="mi"><td>Michigan Convention - US Taxpayers*</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="mi"><td>Michigan Primary<a href="#footnote_*"><sup>*</sup></a></td><td>08/04/2020</td><td>07/15/2020</td><td>07/20/2020</td><td>07/23/2020</td><td>07/16/2020 - 08/01/2020</td></tr>
<tr class="mn"><td>Minnesota Primary<a href="#footnote_*"><sup>*</sup></a></td><td>08/11/2020</td><td>07/22/2020</td><td>07/27/2020</td><td>07/30/2020</td><td>07/23/2020 - 08/08/2020</td></tr>
<tr class="ms"><td>Mississippi Primary<a href="#footnote_*"><sup>*</sup></a></td><td>03/10/2020</td><td>02/19/2020</td><td>02/24/2020</td><td>02/27/2020</td><td>02/20/2020 - 03/07/2020</td></tr>
<tr class="ms"><td>Mississippi Runoff<a href="#footnote_*"><sup>*</sup></a></td><td>03/31/2020</td><td>03/11/2020</td><td>03/16/2020</td><td>03/19/2020</td><td>03/12/2020 - 03/28/2020</td></tr>
<tr class="mo"><td>Missouri Primary</td><td>08/04/2020</td><td>07/15/2020</td><td>07/20/2020</td><td>07/23/2020</td><td>07/16/2020 - 08/01/2020</td></tr>
<tr class="mt"><td>Montana Primary<a href="#footnote_*"><sup>*</sup></a></td><td>06/02/2020</td><td>05/13/2020</td><td>05/18/2020</td><td>05/21/2020</td><td>05/14/2020 - 05/30/2020</td></tr>
<tr class="ne"><td>Nebraska Primary<a href="#footnote_*"><sup>*</sup></a></td><td>05/12/2020</td><td>04/22/2020</td><td>04/27/2020</td><td>04/30/2020</td><td>04/23/2020 - 05/09/2020</td></tr>
<tr class="nv"><td>Nevada Primary</td><td>06/09/2020</td><td>05/20/2020</td><td>05/25/2020</td><td>05/28/2020</td><td>05/21/2020 - 06/06/2020</td></tr>
<tr class="nh"><td>New Hampshire Primary<a href="#footnote_*"><sup>*</sup></a></td><td>09/08/2020</td><td>08/19/2020</td><td>08/24/2020</td><td>08/27/2020</td><td>08/20/2020 - 09/05/2020</td></tr>
<tr class="nj"><td>New Jersey Primary<a href="#footnote_*"><sup>*</sup></a></td><td>06/02/2020</td><td>05/13/2020</td><td>05/18/2020</td><td>05/21/2020</td><td>05/14/2020 - 05/30/2020</td></tr>
<tr class="nm"><td>New Mexico Primary<a href="#footnote_*"><sup>*</sup></a></td><td>06/02/2020</td><td>05/13/2020</td><td>05/18/2020</td><td>05/21/2020</td><td>05/14/2020 - 05/30/2020</td></tr>
<tr class="ny"><td>New York Primary</td><td>06/23/2020</td><td>06/03/2020</td><td>06/08/2020</td><td>06/11/2020</td><td>06/04/2020 - 06/20/2020</td></tr>
<tr class="nc"><td>North Carolina Primary (Senate)*</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="nc"><td>North Carolina Primary (House)*</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="nc"><td>North Carolina Primary<a href="#footnote_*"><sup>*</sup></a></td><td>03/03/2020</td><td>02/12/2020</td><td>02/17/2020</td><td>02/20/2020</td><td>02/13/2020 - 02/29/2020</td></tr>
<tr class="nc"><td>North Carolina Runoff<a href="#footnote_*"><sup>*</sup></a></td><td>05/12/2020</td><td>04/22/2020</td><td>04/27/2020</td><td>04/30/2020</td><td>04/23/2020 - 05/09/2020</td></tr>
<tr class="nd"><td>North Dakota Primary</td><td>06/09/2020</td><td>05/20/2020</td><td>05/25/2020</td><td>05/28/2020</td><td>05/21/2020 - 06/06/2020</td></tr>
<tr class="mp"><td>Northern Mariana Islands</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="oh"><td>Ohio Primary</td><td>03/17/2020</td><td>02/26/2020</td><td>03/02/2020</td><td>03/05/2020</td><td>02/27/2020 - 03/14/2020</td></tr>
<tr class="ok"><td>Oklahoma Primary<a href="#footnote_*"><sup>*</sup></a></td><td>06/30/2020</td><td>06/10/2020</td><td>06/15/2020</td><td>06/18/2020</td><td>06/11/2020 - 06/27/2020</td></tr>
<tr class="ok"><td>Oklahoma Runoff<a href="#footnote_*"><sup>*</sup></a></td><td>08/25/2020</td><td>08/05/2020</td><td>08/10/2020</td><td>08/13/2020</td><td>08/06/2020 - 08/22/2020</td></tr>
<tr class="or"><td>Oregon Convention - Libertarian</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="or"><td>Oregon Convention - Independent Party</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="or"><td>Oregon Convention - Constitution</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="or"><td>Oregon Convention - Pacific Green</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="or"><td>Oregon Primary*<a href="#footnote_*"><sup>*</sup></a></td><td>05/19/2020</td><td>04/29/2020</td><td>05/04/2020</td><td>05/07/2020</td><td>04/30/2020 - 05/16/2020</td></tr>
<tr class="pa"><td>Pennsylvania Primary</td><td>04/28/2020</td><td>04/08/2020</td><td>04/13/2020</td><td>04/16/2020</td><td>04/09/2020 - 04/25/2020</td></tr>
<tr class="pr"><td>Puerto Rico Primary</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="ri"><td>Rhode Island Primary<a href="#footnote_*"><sup>*</sup></a></td><td>09/08/2020</td><td>08/19/2020</td><td>08/24/2020</td><td>08/27/2020</td><td>08/20/2020 - 09/05/2020</td></tr>
<tr class="sc"><td>South Carolina Convention - American</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="sc"><td>South Carolina Convention - Constitution</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="sc"><td>South Carolina Convention - Green</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="sc"><td>South Carolina Convention - Libertarian</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="sc"><td>South Carolina Convention - Working Families</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="sc"><td>South Carolina Primary<a href="#footnote_*"><sup>*</sup></a></td><td>06/09/2020</td><td>05/20/2020</td><td>05/25/2020</td><td>05/28/2020</td><td>05/21/2020 - 06/06/2020</td></tr>
<tr class="sc"><td>South Carolina Runoff<a href="#footnote_*"><sup>*</sup></a></td><td>06/23/2020</td><td>06/03/2020</td><td>06/16/2016</td><td>06/11/2020</td><td>06/04/2020 - 06/20/2020</td></tr>
<tr class="sc"><td>South Dakota Primary<a href="#footnote_*"><sup>*</sup></a></td><td>06/02/2020</td><td>05/13/2020</td><td>05/18/2020</td><td>05/21/2020</td><td>05/14/2020 - 05/30/2020</td></tr>
<tr class="sc"><td>South Dakota Runoff<a href="#footnote_*"><sup>*</sup></a></td><td>08/11/2020</td><td>07/22/2020</td><td>07/27/2020</td><td>07/30/2020</td><td>07/23/2020 - 08/08/2020</td></tr>
<tr class="tn"><td>Tennessee Primary<a href="#footnote_*"><sup>*</sup></a></td><td>08/06/2020</td><td>07/17/2020</td><td>07/22/2020</td><td>07/25/2020</td><td>07/18/2020 - 08/03/2020</td></tr>
<tr class="tx"><td>Texas Convention - Minor Party Multi-County [Dist. #s 1, 4-6, 8-15, 17, 19, 21-28, 31-36]</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="tx"><td>Texas Convention - Minor Party Single-County [Dist. #s 2-3, 7, 16, 18, 20, 29, 30]</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="tx"><td>Texas Convention - Minor Party Senate</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="tx"><td>Texas Primary<a href="#footnote_*"><sup>*</sup></a></td><td>03/03/2020</td><td>02/12/2020</td><td>02/17/2020</td><td>02/20/2020</td><td>02/13/2020 - 02/29/2020</td></tr>
<tr class="tx"><td>Texas Runoff<a href="#footnote_*"><sup>*</sup></a></td><td>05/26/2020</td><td>05/06/2020</td><td>05/11/2020</td><td>05/14/2020</td><td>05/07/2020 - 05/23/2020</td></tr>
<tr class="ut"><td>Utah Convention - Constitution</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="ut"><td>Utah Convention - Democrat</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="ut"><td>Utah Convention - Independent American</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="ut"><td>Utah Convention - Libertarian</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="ut"><td>Utah Convention - Republican</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="ut"><td>Utah Primary</td><td>06/23/2020</td><td>06/03/2020</td><td>06/08/2020</td><td>06/11/2020</td><td>06/04/2020 - 06/20/2020</td></tr>
<tr class="vt"><td>Vermont Primary</td><td>08/11/2020</td><td>07/22/2020</td><td>07/27/2020</td><td>07/30/2020</td><td>07/23/2020 - 08/08/2020</td></tr>
<tr class="vi"><td>Virgin Islands Primary</td><td>08/01/2020</td><td>07/12/2020</td><td>07/17/2020</td><td>07/20/2020</td><td>07/13/2020 - 07/29/2020</td></tr>
<tr class="vi"><td>Virgin Islands Runoff</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="vi"><td>Virgin Islands General Runoff</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="vi"><td>Virgin Islands General Post-Runoff</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="va"><td>Virginia Convention - Democrat [Dist. # 1]</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="va"><td>Virginia Convention - Democrat [Dist. # 5]</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="va"><td>Virginia Convention - Democrat [Dist. # 6]</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="va"><td>Virginia Convention - Democrat [Dist. # 7]</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="va"><td>Virginia Convention - Democrat [Dist. # 9]</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="va"><td>Virginia Convention - Democrat [Dist. # 10]</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="va"><td>Virginia Convention - Republican [Dist. # 3]</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="va"><td>Virginia Convention - Republican [Dist. # 5]</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="va"><td>Virginia Convention - Republican [Dist. # 7]</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="va"><td>Virginia Convention - Republican [Dist. # 8]</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="va"><td>Virginia Convention - Republican [Dist. # 11]</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="va"><td>Virginia Primary<a href="#footnote_*"><sup>*</sup></a></td><td>06/09/2020</td><td>05/20/2020</td><td>05/25/2020</td><td>05/28/2020</td><td>05/21/2020 - 06/06/2020</td></tr>
<tr class="wa"><td>Washington Primary</td><td>08/04/2020</td><td>07/15/2020</td><td>07/20/2020</td><td>07/23/2020</td><td>07/16/2020 - 08/01/2020</td></tr>
<tr class="wv"><td>West Virginia Convention - Libertarian Party</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td><td>TBD</td></tr>
<tr class="wv"><td>West Virginia Primary<a href="#footnote_*"><sup>*</sup></a></td><td>05/12/2020</td><td>04/22/2020</td><td>04/27/2020</td><td>04/30/2020</td><td>04/23/2020 - 05/09/2020</td></tr>
</table>

—————————————
Footnotes object: Paste into Wagtail html block
—————————————

<script>const footnotes={
"1":"The July Quarterly Report is waived for committees filing Alabama Pre-Runoff, Georgia Pre-Runoff, Louisiana Pre-Primary & North Carolina Pre-Runoff Reports. See <a href='https://www.gpo.gov/fdsys/pkg/CFR-2017-title11-vol1/xml/CFR-2017-title11-vol1-sec104-5.xml'>11 CFR 104.5(a)(1)(iii) and (c)(1)(i)(C)</a>.",
"2":"Notice that the registered/certified & overnight mailing deadline falls on a weekend or federal holiday. The report should be postmarked before that date.",
"3":"Notice that this filing deadline falls on a weekend or federal holiday. Filing deadlines are not extended when they fall on nonworking days. Accordingly, reports filed by methods other than registered, certified or overnight mail, or electronically, must be received before the Commission's (or the Secretary of the Senate's Public Records Office) close of business on the last business day before the deadline.",
"4":"The mailing deadline is the same as the filing deadline because the computed mailing deadline would fall one day before the general is held",
"5":"The April Quarterly Report is waived for committees filing Kansas Libertarian Party, Utah Independent American Party and Utah Republican Party Pre-Convention Reports. See <a href='https://www.gpo.gov/fdsys/pkg/CFR-2017-title11-vol1/xml/CFR-2017-title11-vol1-sec104-5.xml'>11 CFR 104.5(a)(1)(iii) and (c)(1)(i)(C).</a>.",
"6":"In <a href='http://saos.fec.gov/aodocs/2000-29.pdf'>AO 2000-29</a> [PDF], the Commission determined that the last day to qualify for a position on the general election ballot in Louisiana--in this case 07/20/18--must be considered the primary election date for Louisiana candidates.  See 11 CFR 100.2(c)(4)(i).  The election for candidates seeking federal office is the general election scheduled for 11/06/18. Additionally, under state law if no candidate in the 11/06/18 general election receives over 50 percent of the vote, a runoff election will be held on 12/08/18.",
"7":"The mailing deadline is the same as the filing deadline because the computed mailing deadline would fall one day before the primary is held.",
"*":"Note that the ballot access deadline is after the caucus or convention date.",
"**":"Testing another symbol footnote",

}
</script>

—————————————
Header Notes object: Paste into Wagtail html block
—————————————

<script>const header_notes={
"+":"<b>Close of books</b>:<br>This date indicates the end of the reporting period. A reporting period always begins the day after the closing date of the last report filed. If the committee is new and has not previously filed a report, the first report must cover all activity that occurred before the committee registered as a political committee with the Commission up through the close of books for the first report due.",
"++":"<b>Mailing/Filing deadline</b>:<br>Reports sent by Registered or Certified mail must be postmarked on or before the mailing deadline. Committees should keep the mailing receipt with its postmark as proof of filing. If using overnight mail, the delivery service must receive the report on or before the mailing deadline. 'Overnight mail' includes Priority or Express Mail having a delivery confirmation, or an overnight delivery service with which the report is scheduled for next business day delivery and is recorded in the service\'s on-line tracking system. Reports filed by any other means must be received by the Commission <b>(or Secretary of the Senate for Senate committees)</b> before the close of business on the last business day before the filing deadline.",
"*":"<b>States holding 2020 Senate elections</b>:<br>States holding 2020 Senate elections.",
"**":"<b>48-hour notices</b>:<br>Filed by candidate committees only. 48-Hour Notices are required if the campaign committee receives any contribution <b>(including in-kind gifts or advances of goods or services; loans from the candidate or other non-bank sources; and guarantees or endorsements of bank loans to the candidate or committee)</b> of $1,000 or more per source, during the applicable period.",
}
</script>

@patphongs
Copy link
Member

@johnnyporkchops We just noticed that header_notes is not always required on each reporting date page. Without the header notes, the script fails. Can we make them optional?

@codecov-io
Copy link

Codecov Report

Merging #3288 into develop will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           develop   #3288      +/-   ##
==========================================
+ Coverage     74.6%   74.6%   +<.01%     
==========================================
  Files          120     120              
  Lines         7194    7195       +1     
  Branches       633     634       +1     
==========================================
+ Hits          5367    5368       +1     
  Misses        1827    1827
Impacted Files Coverage Δ
.../fec/static/js/modules/filters/typeahead-filter.js 37.14% <ø> (ø) ⬆️
.../fec/static/js/modules/filters/filter-typeahead.js 74.05% <100%> (+0.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8ddc92d...14b237f. Read the comment docs.

Copy link
Contributor

@rfultz rfultz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

South Carolina to South Dakota didn't change but it looks good otherwise!
image

@johnnyporkchops
Copy link
Contributor Author

@rfultz It looks like the source from the spreadsheet had the same acronym for South Dakota and South Carolina, so its essentially a typo. Thanks for catching this. @djgarr Heads up..check your master sheet for this possible typo.

@djgarr
Copy link
Contributor

djgarr commented Oct 29, 2019

thanks @johnnyporkchops and @rfultz. i see where to change it in the spreadsheet and have made it

Copy link
Member

@patphongs patphongs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @johnnyporkchops!

@rfultz rfultz merged commit e0ee758 into develop Oct 30, 2019
@rfultz rfultz deleted the feature/pre-election-tables-stripe-by-state branch October 30, 2019 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants