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 282 forks source link

💻 add roles of variables: stepper in for loops #5538

Closed juliabolt closed 3 weeks ago

juliabolt commented 1 month ago

I've added the stepper role, it works with for loops, but other kinds of steppers are not working yet.

Also started using labels so that the variable role names can be translated into the different languages (added the English myself, with container now called list and input instead of input constant).

How to test

Follow these steps to verify this PR works as intended:

Checklist Done? Check if you have it all in place using this list: (mark with x if done)

If you're unsure about any of these, don't hesitate to ask. We're here to help!

juliabolt commented 1 month ago

I'll try to make a cypress test an make the feature flag a variable in the environment in a new PR, to prevent this PR from becoming too big :)

mergify[bot] commented 3 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).

Felienne commented 3 weeks ago

Ah interesting... this one passes but the Weblate one is still broken, so maybe it was not the same issue?

juliabolt commented 3 weeks ago

yeah maybe it was another cypress test