-
Notifications
You must be signed in to change notification settings - Fork 25
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
User dashboard: add badges to dashboard #2281
Comments
this looks really cool! |
Thanks @gari01234. We've long wanted to incorporate more game design elements into Project Sideawlk and the push to make mapathons a bit more fun (e.g., with leaderboards) gave us another opportunity to revisit this! |
Now looks like: The remaining TODOs here are:
|
@jonfroehlich is the plan still to make an initial MVP version that doesn't include that back end code, where you just have the logic on the front end? |
I can do that, yes. But I was also thinking we might want to architect out a lightweight backend as described above. The computations can be simple and not tied to a specific badge database but this way front end doesn’t do anything smart except show/hide appropriate badges based on levels returned from backend
…Sent from my iPhone
On Sep 29, 2020, at 1:03 PM, Mikey Saugstad ***@***.***> wrote:
@jonfroehlich is the plan still to make an initial MVP version that doesn't include that back end code, where you just have the logic on the front end?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I think that if it isn't overly complex, we should move forward with the all front end MVP. Given the number of things on my plate, we'll probably get the code out on production much sooner this way |
Sure. I'll do that and then make a new Issue for making a more sophisticated backend that's shared across mission screens, mission sidebar, and user dashboard. Note to self: tips on conditional statements, etc. in Play framework here: https://www.playframework.com/documentation/2.8.x/ScalaTemplates @misaugstad, since this MVP will need a whole bunch of if/elseif blocks in the Scala template, do you know how to do that? I could only find syntax for if/else (not if/elseif/else) in the docs. I did find this on Stack Overflow. |
Honestly, that sounds incredibly annoying, and I try to keep as much logic out of the template scala files as possible. Would you be able to just do it in JavaScript? Maybe by just showing/hiding elements based on the data you have? Getting the data might look like
|
Makes sense. I’ll try something! It probably won’t be as clean as our eventual implementation.
…Sent from my iPhone
On Sep 29, 2020, at 3:02 PM, Mikey Saugstad ***@***.***> wrote:
Honestly, that sounds incredibly annoying, and I try to keep as much logic out of the template scala files as possible. Would you be able to just do it in JavaScript? Maybe by just showing/hiding elements based on the data you have? Getting the data might look like
<script type="text/javascript">
var auditedDistance = @getDistanceAudited(user.get)
</script>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Current version, which now dynamically calculates which badges to show based on user progress and also dynamically prints out an "encouraging" statement (which can be changed, of course). Still need to:
|
Spanish translations Your missions: Tus misiones Just "X" more missions until your next achievment: Sólo "X" misiones más hasta tu próximo logro missing something? |
Thanks @gari01234. I'm gonna have a set of dynamic encouragement statements that I'll need translated. Stay tuned. In the mean time, here are some testing screenshots: |
OK, @gari01234, here are some of the translations I need:
|
"Awesome!" "¡Increíble!" |
Thank you!
…On Sun, Oct 4, 2020 at 9:38 AM Gari01234 ***@***.***> wrote:
OK, @gari01234 <https://github.com/gari01234>, here are some of the
translations I need:
*"Awesome!"* "¡Increíble!"
*"Woohoo!"*
*"You can do it!"* "¡Puedes lograrlo!"
*"Amazing work!"* "¡Increíble trabajo!"
*"Nice job!"* "¡Buen trabajo!"
*"Keep it up!"* "¡Sigue así!"
*"Now we're rolling!"* "¡Ahora estamos avanzando!" (Not so sure about
this one)
*"Thanks for helping!"* "¡Gracias por ayudar!"
*"You're more than halfway!"* "¡Estás a más de la mitad de lograrlo!"
*"Making great progress!"* "¡Estas haciendo un gran progreso!"
*"Great job!"* "¡Gran trabajo!"
*"Congratulations, you've earned all of your badges!"* "¡Felicidades, te
has ganado todas tus insignias!"
*"3 more until your first achievement"* "3 más para tu primer logro"
*"36 more labels until your first label achievement"* "36 etiquetas más
para tu primer logro de etiquetas"
*"Just 3 more until your next achievement"* "Solo 3 más para tu próximo
logro"
*"3 more missions until your first mission achievement"* "3 misiones más
para tu primer logro de misiones"
*"Your labeling accuracy. If N/A is shown, then not enough of your labels
have been validated by other users."* "Tu precisión de etiquetado. Si se
muestra N/A, significa que no se han validado suficientes de tus etiquetas
por otras personas usuarias"
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2281 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAML55PA3Y7YYQX6UKAVYP3SJCQHRANCNFSM4R4TAJ7A>
.
--
Jon E. Froehlich <https://jonfroehlich.github.io/>
Associate Professor
Paul G. Allen School of Computer Science & Engineering
University of Washington
http://makeabilitylab.io
@jonfroehlich <https://twitter.com/jonfroehlich> - Twitter
Help make sidewalks more accessible: http://projectsidewalk.io
|
Because it might be useful to use in the future, here is Google's "CrowdSource" game with badge implementation: https://youtu.be/WmzwfFWEodw. The video shows us the user experience for their "validation" interface, their badge system, and their leaderboard. |
@gari01234 would you be able to provide a few more translations for us? Your labeling accuracy. If N/A is shown, then not enough of your labels have been validated by other users. |
Tu precisión de etiquetado. Si se muestra N/A, significa que no se han validado suficientes de tus etiquetas por otras personas usuarias
Icono que muestra el camino curvo hacia el destino
Icono minimalista de un mapa, con un gran marcador de destino
Listado junto a un lápiz
Blanco con una flecha en la mira. I feel that this is a "are you a robot?" test. 😂 I guess it's for the icons 😉 |
Hahah it really does feel like that. Yeah it is alt text for the icons :) |
I am splitting up #1363 into individual pieces for the user dashboard.
This Issue covers adding badges, which I want to keep simple for now but grow outward in the future.
Currently, I've mocked up badges for:
There is also a larger software engineering architecture question about how to implement badges so that:
BadgesTable.scala
?)But for this initial user dashboard MVP, I could just implement the logic in the frontend itself via conditional checks since all badge levels are earned based on threshold checks.
Badge Mockups
I'm not a professional designer by any means and my goal here was to quickly mockup ideas and implement something (which is better than nothing). We can, of course, improve these over time.
Labeling activity badges
Validation activity badges
Distance audited badges
Mission complete badges
The text was updated successfully, but these errors were encountered: