big-issue-mps's People
big-issue-mps's Issues
The maximum length of all inputs should be the same on the back end
The database has a max length of 64 for most strings. The input fields should match this.
Add placeholder copy to template email page
We need to add some placeholder copy to the page with the email template to fill out hte page a bit.
Implement recaptcha
We need ot implement recpatcha as a way to reduce spam
initialise database
since we're doing email verification we need to create a database to store info of people trying to send emails.
Send email validation request before emailing MPs
In order to prevent unverified email addresses, we need to set up email validation.
create redirect page for user after email to mp is sent
update 'sent' field in database to true when email is sent to mp
at the moment we check if the 'sent' field is false before sending the email but don't actually update the field when we send the email. we should do that.
Show recaptcha fails to user
Show a nice error message when there's a problem with reCAPTCHA.
Works both when the error comes from Google or from our server.
candidate email is set to front end
we decided not to have candidate emails on the front end for security reasons but our api is sending them to the front end.
Add party colours to the borders of MP portraits
add user input to database
when the user has been sent the verification email we need to put their input into their row in the database.
Transpile es6 front end code to es5
We wrote a mix of es5 and es6 in our client side javascript, we need ot use the babel CLI to transpile it to all ES5 to ensure compatibility in older browsers.
Set all required payloads / querystrings to 'required' with Joi
give feedback to user about email being sent
when the user sends the email to themself now the email sends but the user gets no feedback, we need to add a page which will show the user a confirmation of sending
Doesn't work on iPhone
We need to work out why!
add textarea to inside of the email template
we need ot ad space for user to add things to the email to their mp, if we put a textarea inside of the email template this will be nice and clear.
There's an ugly error page when a user sends the same email twice
After the user receives a verification email, if they click the link more than once it shows a plain-text error.
Instead, we should display all the Big Issue branding plus a link that goes back to the start.
Make api call get only elected MP
Currently we get all of the candidates, but now that the product is only getting the elected MP we need to make it so that we only get the candidate who was actually elected.
Restyle the first form so reCAPTCHA doesn't look rubbish
Write unit tests for all JS files
Routes:
- api
- apiSentEmail
- apiSendVerify
- home
- public
- success
Utils:
- database
- getCandidates
- postmark
- recaptcha
Front-end:
- script
make link in verification email send to mp
MP cards don't show on iOS Safari
An error message is displayed instead.
add a card with the mp on it to the dom
We want to show the user a card with their mp on it to make the interaction more relatable.
Get tape initialised
We need to write some lovely lovely tests so need ot get the testign framework all set up.
make front end code deal with new api response
Back end now returns object rather than an array of objects, we need to change FE code to deal with this.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.