digitalfabrik / lunes-app

The front end for the Lunes vocabulary trainer. Back end: https://github.com/digitalfabrik/lunes-cms
https://lunes.app
Apache License 2.0
23 stars 5 forks source link

905: Refactoring of navigation types #994

Closed ztefanie closed 9 months ago

ztefanie commented 10 months ago

Short description

Added a contentType for Exercise-Screens. So we have type of content "standard" for discipline vocabulary and
"userVocabulary" and "repetition" for content, where the front-end generates the vocabulary.

Previously this was handled quite hacky, by checking for the disciplineId that is passed. But we need to handle things quite different depending on the type of content, e.g. for standard, we save the progress per module. For userVocabualry, wo do not save any progress and for "repetition" we save the progress per word. So it really makes sense, to pass this information to the components. This is a preparation for Related: #123

Side effects

Resolved issues

none, is only part one


ztefanie commented 10 months ago

When ✖️-ing the result screen or trying to terminate an exercise I get an error. Besides that everything seems to work fine 👍🏼

Thanks, fixed it.