[x] (#475) Before we can start, we have some hasura admin tasks
What happens every time:
[x] (#471 )Record in the Activity Hub that the completed-a-mission achievement has been attained by a user once every stage of any mission has been viewed
[ ] (#472) Triggered by an update to the achievements table in the Activity Hub, check to see if any of the list of achievements earns a reward and if so, update the rewards table and achievements table to indicate this.
[ ] (#474) Expose an achievements API which returns all a user's achievements, rewards and claimed status of their rewards
[ ] (#470) From the front-end, check the achievements API on all logged in navigation events, and update UI if new achievement is present
Desired User Flow
video-completed
event to Activity Hub/achievements
endpoint to get a list of achievements and rewards from Activity HubScheme and flow: https://miro.com/app/board/o9J_lWmoARA=/
Work to enable the above
What happens every time:
completed-a-mission
achievement has been attained by a user once every stage of any mission has been viewedachievements
table in the Activity Hub, check to see if any of the list of achievements earns a reward and if so, update therewards
table andachievements
table to indicate this.