Code Monkey home page Code Monkey logo

cambridge_voting_locations's People

Contributors

carpeliam avatar emilydirsh avatar frankcardillo avatar gretacb avatar isaacchansky avatar lolmaus avatar lucyq avatar moczka avatar noah-t avatar osesina avatar thadk avatar thecristen avatar whereshj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cambridge_voting_locations's Issues

Add analytics

We should add Google analytics before launch. @beechnut, you should have access to the CfB Google account, otherwise tell me and I'll generate the code.

Preliminary UI concepts

I created these UI concepts for mobile quite some time ago (two stylistic versions of the same interface), feel free to take or leave them - you'll have the call if you like, @EmilyDirsh.

I was using the Lato typeface from Google Fonts, but open to others - might be better to use something native to each platform like Roboto / Helvetica Neue.

1_splash_dk
2_main_ui_dk
3_info_screen_dk
4_splash_lt
5_main_ui_lt
6_info_screen_lt

2016 design refresh

The site looks a bit dated. Let's update it ๐Ÿ’ƒ

image

It should support the features described by #31 and possibly #32

bug: precinct of polling place differs from precinct shown

When searching for the polling location of 1654 Massachusetts Avenue, Cambridge, MA, the precinct for the displayed polling place is not the same as the one shown. This location happens to be on the border between two precincts. See screenshot!

screen shot 2016-10-18 at 10 34 24 pm

Incorrect polling locations are being returned

In the course of working on the styling and layout, I put in a few test addresses, including my own, and was directed to the wrong polling location.

You can see in the following two screenshots that the polling locations are very clearly outside of the correct prrecinct.

screenshot from 2013-10-31 01 51 22
screenshot from 2013-10-31 01 51 53

Polygon obscuring map

When obtaining directions for election day voting, the precinct polygon obscures visuals on the map.
Do we need to show the polygon at all?

image

Early Voting Polling location geojson file property names differ from old one.

After going over the code in module findPollingLocationsFor (polling_location_finder.js) I noticed that after the (lat, lng) coordinates from the user location are found in one of the Cambridge precincts (districts). The precinct code property name (.WardPrecinct) is used to find a polling location with the same precinct code (hence the nearest polling location). However, this property is missing in the Early Voting Polling location geojson file and a few key property names like pollingLocation.geojsonProperties.LOCATION, pollingLocation.geojsonProperties.Address changed so the module will not work with this new geojson unless we standardize the property names in both files. Since the early voting locations are just 5, I will be adding the percincts code manually and standardizing property names in both geojson files in my own fork of the project. I will also be working on adding the polling hours and other features I have in mind in a secondary branch.

Can't access address alternatives

When the app can't determine an exact address, it places the alternatives in the "directions" box, which is good. However, it doesn't close the modal window and so those options are inaccessible, which is bad.

We should close the modal window in this case.

GeoJSON is missing from production build

Steps to reproduce:

  1. Create production build (npm run build)
  2. Open website (e.g., cd dist && python -m SimpleHTTPServer)
  3. Perform some kind of action that uses GeoJSON, for example, find an election day polling location
  4. Verify that a JavaScript error occurs

I've narrowed it down to GeoJSON by modifying the uglify config in Grunt:

grunt.initConfig({
  uglify: {
    options: {
      mangle: false,
      compress: false
    }
  }
  /* ... */
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.