Giter Club home page Giter Club logo

boston-votes's Issues

Indicate incumbent

Back End
Determine incumbent by looking at last election's winner. Add that to the race summary JSON.

Front End
The results panel (and any future popups) should indicate which candidate is the incumbent with an asterisk*

Default to first election/race

Default to the first election, since it's the most recent.

Default to the first race, since, in general, it'll be mayor or at large anyway.

Precinct popup

Hovering over a precinct should show a popup that shows the precinct specific results

Make race select have a next button

If you want to flip though the races in an election, you have to open the select menu and select the next one.

Might be easier to just have a button you can click to jump to the next item in the list

Only put dots where people live

Boston's got some big parks, cemeteries, industrial areas, a big pond, and a big airport. It's funny having dots in those places. It also makes those districts seem sparsely populated.

The idea

  • create a tessellation over Boston and use land-use data from the BPDA to determine which tiles shouldn't have dots in them.
  • I wouldn't want to mess with the precinct GeoJSONs, but I could have a geojson specifying the area to not have dots, and use that as a filter when calculating locations for dots.

p.s. I could get open space data, but after trying it I think it's kind of annoying... because there are other non-open-space areas that I don't want dots in (e.g. airport, castle island)... and the open space polygons leave out roads between them, and I don't want to put dots on Walk Hill Street, for example.

Prepare for live results

In the week or two following and election (especially the day of!) I'll want to be able to update results without a GitHub pages deploy. I'm thinking that results can be put in Firebase with the same json format as all other files. Then I can run a script to update firebase with scraped data from Boston Open Election Results Portal and/or unofficial results from the city.

Thoughts:

  • The front-end might want to subscribe to changes of that Firebase document?
  • I currently set the order and color of candidates based on their standing, if standings change as results change then colors will flip which could be confusing.
  • I'll want some way to automatically run the scraping script

Tailwind in Safari

Figure out why tailwind doesn't make my select boxes look pretty in Safari ๐Ÿ˜ 

Safari screenshot Chrome Screenshot

Figure out caching

idk what I'm doing.

There some sort of caching going on, but... idrk what's going on. May be an issue if I change one of those cached files. Need to set some sort of expiration?

Also, have a better name for the cache than my-cache

Skip updating precincts when clearing selection

To reproduce:

  1. select an election
  2. select "Choose an election"

You'll get this in the console:
Uncaught TypeError: Cannot read properties of undefined (reading 'geometry') at HTMLSelectElement.electionDidChange (index.js:134:77)

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.