efforg / check-your-reps Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Presently I need to create their password myself.
I've read that using placeholder text to label form elements is bad for accessibility. Here's an example: https://www.nngroup.com/articles/form-design-placeholders/
Could we use a label element instead? If not, let's at least add visually hidden labels for screen readers.
Running rake test spits out some errors, as follows:
`Offenses:
app/helpers/tweet_helper.rb:6:67: C: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
related: Rails.application.config.twitter_related.to_a.join(',')
^^^
app/helpers/tweet_helper.rb:9:12: C: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
link_to 'Tweet', url, { target: "_blank", rel: "noopener noreferrer" }
^^^^^^^
app/helpers/tweet_helper.rb:16:10: C: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
when 'yes'
^^^^^
app/helpers/tweet_helper.rb:17:7: C: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
'for'
^^^^^
app/helpers/tweet_helper.rb:18:10: C: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
when 'no'
^^^^
app/helpers/tweet_helper.rb:19:7: C: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
'against'
^^^^^^^^^
app/helpers/tweet_helper.rb:21:7: C: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
'undecided'
^^^^^^^^^^^
app/helpers/tweet_helper.rb:29:12: C: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
].join(' ')
^^^
app/models/congress_member.rb:18:22: C: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
twitter_id[0] == '@' ? twitter_id : "@#{twitter_id}"
`
Presently the .env example shows "localhost", but docker requires "db". We should probably make this work natively by default and let this be an optional environment variable for docker.
From the landing page, add a street address to the form field.
Change your mind and click on 'See all reps'
The form is submitted and the 'Please fill out this field' error is thrown. Users should be routed to to the full list page instead.
Some design tweaks:
It's not possible to click the form inputs on desktop because they're blocked by transparent parts of the social media icons.
The social media text pullouts could also use a social background. They look strange when there's content behind them.
For uncommitted reps, they should have a diff. color under the photo and N/A for their position, also in the uncommitted color.
... and not take user of the site.
Katharine said due to legal reasons
If the admin user edits an existing score position, the dropdown for the congress member defaults to the top of the lists instead of the correct name.
Add tweet intents for individual reps (when the user looks them up) and to the general "view all" reps table
for people with JS ,avoid full page reload on submit
On the action center, we're using a gem to make the production log both quieter and privater. We should use it here too.
We should provide a dropdown of fixed options for the position field on the score model.
We shouldn't ever use Google fonts.
This is an enormous symbolic ticket, please break down
The user should input their zipcode
Smartystreets for getting a congressional district
We should get (probably from phantom):
Vertical links for twitter, fb, g+ not yet functional
The action center embed should be prepopulated with the user zip code and if possible, pre-populated with a relevant topic for every rep
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.