learningequality / kolibri

Kolibri Learning Platform: the offline app for universal education
https://learningequality.org/kolibri/
MIT License
812 stars 687 forks source link

Incorrect Icon Logic in `AttemptLogItem.vue` #12836

Open EshaanAgg opened 1 week ago

EshaanAgg commented 1 week ago

Observed behavior

Currently, the AttemptLogItem.vue uses the following logic to determine the icon to be displayed for the attempt:

https://github.com/learningequality/kolibri/blob/87418dd7b5dedf0a09213b8e209d61cc341b20ef/kolibri/core/assets/src/views/AttemptLogItem.vue#L18-L51

This logic would never show the Hinted icon to the user! (The attemptLog.correct key can have the values true, false or undefined. In the case of true, we would hit the second branch and display the correct icon, and in the false cases, we would hit the fourth branch, and thus, the incorrect icon would be displayed.)

Expected behavior

We should finalize one of the following expected behaviors:

User-facing consequences

rtibbles commented 1 week ago

Hrm, my first question is whether this is necessary - I think (but am happy to be corrected) that the AttemptLogItem component is only used in the Quiz and Practice Quiz reports - in which case, a hinted state is not possible.

MisRob commented 1 week ago

Hrm, my first question is whether this is necessary - I think (but am happy to be corrected) that the AttemptLogItem component is only used in the Quiz and Practice Quiz reports - in which case, a hinted state is not possible.

It sounds to me that's what @EshaanAgg suggests as one possible solution here "Possibly remove the hinted state altogether from the UI"?