New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the validator actually validate #3584
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed on mobile and the videos didn't play in the app - so do with this as you'd like, but the code looked fine to me:)
sound.play(); | ||
showCompleted(); | ||
(user: User) => { | ||
console.log(user); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this is only here for testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooops. Removed, thanks :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Previously it only checked if you had a user, and the qr did nothing at all. With this change, we validate that the user is a member of Abakus and the QR scanner also displays success or error messages for validation status.
Description
Previously it only checked if you had a user, and the qr did nothing at
all. With this change, we validate that the user is a member of Abakus
and the QR scanner also displays success or error messages for
validation status.
On error, it just gives an alert. I would make it nicer if I had time. But the alert works great tbh. It makes sure that the person validating needs to confirm the message before continuing. Not very fancy but effective.
All the other changed files are just related typing improvements.
Result
User is not member of Abakus:
Screencast.from.2023-02-16.18-11-01.webm
User does not exist (only makes sense for QR):
Screencast.from.2023-02-16.18-16-03.webm
Successful validation:
Screencast.from.2023-02-16.18-24-01.webm
Testing