Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

Prevent "bad" votes by adding a wait timer #27

Open
grepsedawk opened this issue Jan 1, 2018 · 4 comments
Open

Prevent "bad" votes by adding a wait timer #27

grepsedawk opened this issue Jan 1, 2018 · 4 comments

Comments

@grepsedawk
Copy link
Owner

For now, this can be implemented in elm directly, I'm thinking somewhere within https://github.com/Mingosio/celebrity-picture-rater/blob/master/app/javascript/Voting.elm#L67-L68, basically the equal to a setTimeout to disable the newest loaded vote, then re-enable the actions after a few seconds.
Also with this piece, it probably makes sense to add some visual cue like a green border flash or equal to depict the chosen image.

@grepsedawk
Copy link
Owner Author

Planning on doing this myself, but really anybody that wants to pick up some elm can pick this up.

@grepsedawk
Copy link
Owner Author

I could add a time to any new model and in NewVote set it, then not allow any actions until the time limit is met.

@grepsedawk
Copy link
Owner Author

Related to: #53

@grepsedawk
Copy link
Owner Author

Have to look into elm debouncers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant