Call-for-Code-for-Racial-Justice / Five-Fifths-Voter

Five Fifths Voter is a web application tool designed to enable and empower Black people and others to exercise their right to vote by ensuring their voice is heard
Apache License 2.0
67 stars 38 forks source link

Include California elections in 'Vote' Section of 'Your Voting Journey #229

Closed Sabine-Justilien closed 3 years ago

Sabine-Justilien commented 3 years ago

Background on the problem the feature will solve/improved user experience

As we have a large audience in California, it is important we have information on California elections that are happening, including local or municipal elections (i.e. Los Angeles).

Describe the solution you'd like

In the drop down menu I'd like to see California, or more specifically Los Angeles, included as an option.

Screen Shot 2021-09-22 at 9 34 33 AM

Tasks

Description of the development tasks needed to complete this issue, including tests,

Acceptance Criteria

upkarlidder commented 3 years ago

The code picks up the current elections from the google civic API. For example, last week it had the California gubernatorial recall listed. It is possible there are no immediate upcoming elections in Cali. I am not sure how far in the future it looks, but we depend on this API. @davidnixon, please chime in.

You can try it here. https://developers.google.com/civic-information/docs/v2/elections/electionQuery

Output:

{
  "elections": [
    {
      "id": "2000",
      "name": "VIP Test Election",
      "electionDay": "2025-06-06",
      "ocdDivisionId": "ocd-division/country:us"
    },
    {
      "id": "7052",
      "name": "Virginia Election",
      "electionDay": "2021-11-02",
      "ocdDivisionId": "ocd-division/country:us/state:va"
    },
    {
      "id": "7078",
      "name": "Georgia Election",
      "electionDay": "2021-09-21",
      "ocdDivisionId": "ocd-division/country:us/state:ga"
    },
    {
      "id": "7145",
      "name": "North Carolina Municipal Election",
      "electionDay": "2021-10-05",
      "ocdDivisionId": "ocd-division/country:us/state:nc"
    },
    {
      "id": "7146",
      "name": "Rhode Island Municipal Election",
      "electionDay": "2021-10-05",
      "ocdDivisionId": "ocd-division/country:us/state:ri"
    }
  ],
  "kind": "civicinfo#electionsQueryResponse"
}
Sabine-Justilien commented 3 years ago

Currently 4 states are available on the the dropdown menu.

Add new text:

If you cannot find your election, the information may not be available through the Google Civic Information API right now. Check out the 'Get Informed' tab to find out more information about your state elections.

after

Need help knowing where to go on voting day? Want to know what location in your precinct allows for early voting? Five Fifths Voter can help you figure it out. Input your address below, and select either "Early Voting" or "Polling Location". We'll do the rest.

Screen Shot 2021-09-27 at 6 32 53 PM
upkarlidder commented 3 years ago

@Sabine-Justilien is this the same solutions as #228?

Update - Sabine updated the comment above with the changes she wants to see.

upkarlidder commented 3 years ago

@davidnixon pls see update from @Sabine-Justilien in the comment above.

https://github.com/Call-for-Code-for-Racial-Justice/Five-Fifths-Voter/issues/229#issuecomment-926930857

davidnixon commented 3 years ago

@Sabine-Justilien looks like Upkar fixed this one too.

Sabine-Justilien commented 3 years ago

Fix is included. Ok to close.