feat(course): reset student course progress (#671)
* feat(course): add reset student course progress action Give course admins and tutors a destructive reset-progress flow on the student people detail page. The backend clears learner progress for one (courseId, memberId) pair in a single transaction while keeping the groupmember enrolled, and logs an audit summary. The dashboard shows a confirmation dialog with impact counts from analytics before deleting. Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> * fix(i18n): add localized reset progress strings for all locales Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> * fix(course): scope reset progress to course data only Stop deleting org-level community questions and answers during course progress reset. Fix course newsfeed deletion order so comments on a student's posts are removed before the posts themselves. Restrict reset to student members, move analytics loading to the person detail layout, and rename impact copy to course newsfeed only. Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> * fix(course): address Greptile review on reset progress Make progressImpact opt-in via includeProgressImpact query param so analytics requests avoid extra DB work unless the reset dialog needs it. Count only student-authored course newsfeed posts and comments in the impact summary to avoid double-counting replies on the student's posts. Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com>
This commit is contained in:
co-authored by
Rotimi Best
Cursor Agent
parent
e43d8a2444
commit
a695c97eda
@@ -242,6 +242,10 @@
|
||||
"unpinned": "Désépinglé",
|
||||
"successfully": "Avec succès",
|
||||
"feed_delete_success": "Flux supprimé avec succès"
|
||||
},
|
||||
"people": {
|
||||
"progress_reset": "Progression réinitialisée",
|
||||
"progress_reset_failed": "Échec de la réinitialisation de la progression"
|
||||
}
|
||||
},
|
||||
"landing_page_settings": {
|
||||
@@ -1100,6 +1104,26 @@
|
||||
"no": "Non",
|
||||
"yes": "Oui"
|
||||
},
|
||||
"reset_progress": {
|
||||
"button": "Réinitialiser la progression",
|
||||
"dialog": {
|
||||
"title": "Réinitialiser la progression de {studentName} ?",
|
||||
"intro": "Cela supprime définitivement la progression de cet apprenant dans ce cours. Il restera inscrit et pourra recommencer à la leçon 1.",
|
||||
"bullets": {
|
||||
"lessons": "Leçons terminées — {completed} sur {total}",
|
||||
"exercises": "Exercices soumis — {count} soumissions",
|
||||
"comments": "Commentaires de leçon de cet apprenant — {count}",
|
||||
"newsfeed": "Publications et réponses du fil d’actualité du cours de cet apprenant — {count}",
|
||||
"video_progress": "Progression de visionnage vidéo — {count} leçons suivies",
|
||||
"attendance": "Entrées de présence — {count}",
|
||||
"certificate_yes": "Dossiers de certification/conformité — oui",
|
||||
"certificate_no": "Dossiers de certification/conformité — non"
|
||||
},
|
||||
"warning": "Cette action est irréversible.",
|
||||
"cancel": "Annuler",
|
||||
"confirm": "Supprimer"
|
||||
}
|
||||
},
|
||||
"invite_modal": {
|
||||
"title": "Inviter des personnes",
|
||||
"invite": "Inviter des tuteurs",
|
||||
|
||||
Reference in New Issue
Block a user