mariechatfield / call-my-congress Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED. Simple app that displays contact information for US Congress representatives by district.
Home Page: http://www.callmycongress.com/
License: MIT License
DEPRECATED. Simple app that displays contact information for US Congress representatives by district.
Home Page: http://www.callmycongress.com/
License: MIT License
Currently, there is no loading feedback on the home (search) page. Most requests don't take too long, but a user has slow or spotty internet connection, they may not know if the request has actually gone through.
I entered my zip, 30328, on the input screen and received the message “Please provide valid zip code”. 30328 is a valid zip code covering a portion of north Atlanta and Sandy Springs, GA.
I'd like to link to pages of this project in my own project but running into issues with linking.
Currently pages link like this:
https://www.callmycongress.com/NY-1
But it I use this method (industry standard) I'll get a page titled NY 1st, but without the Congressional representative, just statewide (senators):
https://www.callmycongress.com/NY-01
Ideally I'd use this format for links:
https://www.callmycongress.com/NY01
☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.
Branch | Build failing 🚨 |
---|---|
Dependency | request |
Current Version | 2.83.0 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
request is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 6 commits.
d77c839
Update changelog
4b46a13
2.84.0
0b807c6
Merge pull request #2793 from dvishniakov/2792-oauth_body_hash
cfd2307
Update hawk to 7.0.7 (#2880)
efeaf00
Fixed calculation of oauth_body_hash, issue #2792
253c5e5
2.83.1
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:
.travis.yml
package.json
files, so that was left aloneIf you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.
Greenkeeper has checked the engines
key in any package.json
file, the .nvmrc
file, and the .travis.yml
file, if present.
engines
was only updated if it defined a single version, not a range..nvmrc
was updated to Node.js 10.travis.yml
was only changed if there was a root-level node_js
that didn’t already include Node.js 10, such as node
or lts/*
. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.For many simpler .travis.yml
configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.
Branch | Build failing 🚨 |
---|---|
Dependency | ember-resolver |
Current Version | 4.5.2 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
ember-resolver is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Incorrect addresses are expected to display the error message Could not find valid address. Please double check the street address and zip code.
When searching by zip code alone, the generic Something went wrong.
message is displayed for invalid zip codes.
Request | Response Body |
---|---|
https://www.callmycongress.com/api/district-from-address?zip=12345 |
{"translationKey":"UNKNOWN"} |
https://www.callmycongress.com/api/district-from-address?zip=12345&street=123%20Main |
{"translationKey":"INVALID_ADDRESS"} |
Both requests should respond with {"translationKey":"INVALID_ADDRESS"}
I tested CallMyCongress.com on Safari with VoiceOver, and for the most part everything seemed clearly labelled and decent to navigate.
However, there were two pain points I'd like to address:
h1
element, but there's no context.I think these are both related to the nature of single page apps, but I'm sure I can do something to improve accessibility here.
Possible resources to consider:
I received the following "Provided URL does not map to a valid state and district number." when I looked up my (non-voting) representative from the District of Columbia. Please ensure that all Americans are able to use this to find their representatives, voting or not.
Hi - this is awesome!!!
we are hearing from congressional offices that the local office phone are important. It would be great if you added that info.
Many thanks,
sas
Allow users to return to the home page (search view) by clicking anywhere on the header bar.
Currently, the only way to get to the home page from a district page is to click the Search Again
button, but on smaller devices this button may be pushed down out of view.
Branch | Build failing 🚨 |
---|---|
Dependency | sinon |
Current Version | 4.1.5 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 10 commits.
68c37ed
Update docs/changelog.md and set new release id in docs/_config.yml
cd8ae51
Add release documentation for v4.1.6
29e80be
4.1.6
a5c59a5
Update History.md and AUTHORS for new release
0ae60b6
Merge pull request #1653 from mroderick/upgrade-dependencies
dcd4191
Upgrade browserify to latest
a316f02
Upgrade markdownlint-cli to latest
78ebdb3
Upgrade lint-staged to latest
fcf967b
Upgrade dependency supports-color
7c3cb4f
Enable StaleBot with default configuration (#1649)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
According to a former congressional staffer, it can be far more effective to call your congressional representatives at their regional offices than at their DC offices.
Currently GovTrack.us only provides DC phone numbers via its API. This feature request may require finding another API that does provide regional numbers.
To reproduce:
Expected: To be back on the screen I just came from with the list of possible congressional districts.
Actual: I'm back on the home screen with both fields empty and no information about my previous search results.
Unfortunately, as you can see from the screenshot below, when I tried the website with just the zip code, “something went wrong.” When I typed in the address as well as the zip code, I received a message that says “Provided URL does not map to a valid state and district number.”
I used my home address, so I know it’s correct.
From a first look at the issue, it seems that the server response is returning a properly formatted response that has no districts:
{"districts":[]}
In addition to fixing whatever the underlying problem is, I'll also need to provide better error handling for this sort of bug in the future.
I tried looking up rep on https://www.callmycongress.com/ using my zip code - 59937, and several other Montana zip codes including the state captial, Helena (59601) and received the following message...
District number provided does not exist in your state.
I tried it for a Washington state zip and it did work...
https://www.callmycongress.com/WA-2
I am not familiar with the code that callmycongress uses, but did a little looking and found that one of the sites listed at the bottom of the page is whoismyrepresentative.com. I tried the montana zips using the PHP syntax from following page and got no results... http://www.whoismyrepresentative.com/api
Using the zip code lookup on the following page was successful: http://whoismyrepresentative.com/
It returned the following web page: http://whoismyrepresentative.com/search/zip/59937 with the correct reps.
Not sure if any of this is relevant or helpful. Just thought I would let you know that the site is not fully functional.
Some people may be hesitant (and rightly so) to enter their address. Providing an address should be optional.
Possible data sources for zip -> congressional district lookup
Feature request:
One thing I was hoping to find on it though, would be the addresses of different Congress People's offices, both in DC and in their own districts.
The phone lines have been pretty jammed for most Congressional offices since the election (a great thing!). So having that physical address helps to send a letter that is harder to ignore than an email and gets tracked in the office.
I also love supporting the post office!
In the theme of keeping things simple, I'm not sure adding extra information to each row in the districts page is the right direction. A few possible solutions:
/person/:id
. For Sen. Barbara Boxer: https://www.govtrack.us/api/v2/role?id=3853Hi there! I just forked your repo and ran locally yesterday. I ran into issues with starting the backend before the frontend - nodemon just ends up in this restart loop then errors out. Starting the frontend before backend is fine, tho Nodemon seems to restart more with changes than it should. It looks like adding ignore flags on line 16 of the package.json start script helps this
"backend": "PORT=3000 nodemon backend/app/server.js --ignore tmp/ --ignore app/",
Let me know if you see this on your end too - I'm happy to put in a PR.
Request via email:
Is it possible to add the legislator's email address and official webpage to the search results?
Unfortunately, GovTrack.us's API does not expose email addresses for representatives. However, it does provide websites. That information should already be passed from the server, so a small change in the client is the only thing needed to display this additional information.
Reference:
Role API
Person API
At some point in the future, GovTrack.us will deprecate its APIs (possibly summer 2017).
ProPublica offers an API that can look up current members by state or district. However, at this time that API does not expose phone numbers (but it does offer Twitter handles).
whoismyrepresentative.com exposes phone numbers via its API, and is currently used by call-my-congress to look up districts by zip code alone. However, the API does not have an option to search by district, and it is unclear who owns the site or how to get updates on API changes. May also want to consider replacing current dependence on this site for the zip code to district lookup.
Both the House and Senate expose contact information of members by XML, and both do include DC phone numbers. However, it doesn't look like there's a way to get a subset of the list by district or state.
Possible option: every new election, spend some time mapping data provided by the House and Senate into some database (maybe Firebase?). Would be more time overhead and more prone to error. But that might also be an option to help provide local office numbers (#3) if I can't find an API that provides them.
There are no immediate plans to deprecate GovTrack.us' API, but this is something to consider and keep in mind. Please add any thoughts or suggestions for other APIs here if you know of any!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.