hedyorg / hedy

Hedy is a gradual programming language to teach children programming. Gradual languages use different language levels, where each level adds new concepts and syntactic complexity. At the end of the Hedy level sequence, kids master a subset of syntactically valid Python.
https://www.hedy.org
European Union Public License 1.2
1.26k stars 281 forks source link

💻 Reduce achievements time #5605

Closed jpelay closed 2 weeks ago

jpelay commented 3 weeks ago

While working on another PR I found out that a new user that tries to create a class has to wait a lot of time for their first class to show. This happens because the showAchievements functions has some timeouts of 6 seconds, so the user, as a minimum has to wait this long if they get an achievement.

Therefore I reduced the time of the achievements a bit.

How to test

Other way to test:

You can try that on main and see the difference (remember to clear the site data and restore the devdb in order for the achievement to be shown again)

mergify[bot] commented 2 weeks ago

Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).