Educado-App / educado-mobile

The repository for the educado mobile education application
GNU General Public License v3.0
1 stars 3 forks source link

PBI 262 #335

Closed LucaPurcilly closed 1 month ago

LucaPurcilly commented 1 month ago

Description

An error closes a question and completes the course, you do not receive points but automatically generates the certificate.

Additionally, there was an error with incorrect answers resulting in infinite exercises in the section.

Changes

The handleReviewAnswer function was updated to fix the main issue. We check for the last component in the section and handle completion accordingly. (ExerciseScreen.jsx)

Then the handleExerciseContinue function was updated to properly handle updates to the order of the components of a section when an exercise is incorrectly answered. Additionally, it also handles re-rendering of the subsequent exercise, however, the animation of this event could be improved to illustrate swiping instead of re-rendering. (CompSwipeScreen.jsx)

Related Issues

Fixes #262

Checklist

Screenshots (if applicable)

Points correctly awarded:

Before and after - incorrect answers: