Giter Site home page Giter Site logo

propublica / staffers Goto Github PK

View Code? Open in Web Editor NEW
26.0 26.0 4.0 16.27 MB

Interactive and searchable House staffer directory, based on House disbursement data.

Home Page: http://staffers.sunlightfoundation.com/

License: GNU General Public License v3.0

Ruby 24.15% CSS 22.76% JavaScript 22.05% HTML 31.04%

staffers's People

Contributors

dwillis avatar heyitsolivia avatar jcarbaugh avatar konklone avatar plantfansam avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

staffers's Issues

Split out titles with "and" into multiple positions

This means:

  1. On the process of generating titles.csv, if a title has an "and" (with spaces around it), split it out into two titles and treat them separately, UNLESS it appears already in titles.csv (this would be because of manual intervention to assert that the use of "and" is part of one title).

  2. In the process of loading in the data to the staffer directory, if a position's original title has an "and", split it up and load in a position for each constituent title.

And one-time:

  1. Delete all titles from titles.csv that currently have an "and" in them, as otherwise they will be interpreted as correct.

Allow table to be sortable

Sort on viewable columns, even if the content itself is hidden in some cases. Might need to start duplicating the name in the HTML and marking it as display: none, so that the tablesorter plugin has a way of accessing the sortable attribute in each row.

Office pages

A page that lists all legislators, one for all committees, and one for all regular offices.

Search page

Revamp so it works roughly according to plan, and so that each search is scoped entirely to a quarter.

JSON API

For every view that has a CSV download, make a JSON endpoint.

Basic design

A basic design plan and styling for the search form and display of the daa.

CSV download links

From every search results page and on every office and staffer results page.

Office page

Show, for each quarter, the staffers in their office and their titles, with links to each one.

Search by title

Standardized title, in a dropdown.
Create a Titles collection.

Slugs for URLs

Use Mongoid::Slug after switching to Mongoid. Base it on each office's name, and assign during data load time.

All objects must end up with the same predictable URL on each data reload.

Display original titles

Of positions, on lists of staffers. Use some sort of hoverable question mark with a tooltip.

Staffer page

Show, for each quarter, the title and member they worked for.

Order quarters descending.

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.