Skip to content
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

determine logic for when achievement unlocked #459

Open
tzmanics opened this issue Jan 20, 2021 · 3 comments
Open

determine logic for when achievement unlocked #459

tzmanics opened this issue Jan 20, 2021 · 3 comments

Comments

@tzmanics
Copy link
Contributor

No description provided.

@philhawksworth
Copy link
Contributor

We'll most likely maintain a list of achievement criteria and associated rewards.
I propose that the initial achievement we use to prove the end-to-end flow is:

Achievement Reward
Complete one mission Explorers sticker pack

@jlengstorf
Copy link
Contributor

current thoughts on the logic here, which would be triggered on each dashboard page load:

  1. check for achievement events attached to the current user
  2. if found (for now, since there's only one) short-circuit and display the UI described in user dashboard swag reward button #455
  3. if not, check for whether the user has completed any missions
  4. if not, do nothing
  5. if they have completed a mission, create a new achievement and send that off
  6. display the UI

later on, we'll need to revisit this for additional achievements, but this should get us up and running

@tzmanics
Copy link
Contributor Author

tzmanics commented Feb 2, 2021

Is this technically closed with this miro mind map @jlengstorf https://miro.com/app/board/o9J_lWmoARA=/

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

No branches or pull requests

4 participants