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 <[email protected]> * fix(i18n): add localized reset progress strings for all locales Co-authored-by: Rotimi Best <[email protected]> * 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 <[email protected]> * 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 <[email protected]> --------- Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: Rotimi Best <[email protected]>
This commit is contained in:
co-authored by
Rotimi Best
Cursor Agent
parent
e43d8a2444
commit
a695c97eda
@@ -3308,6 +3308,26 @@
|
||||
"no": "No",
|
||||
"yes": "Yes"
|
||||
},
|
||||
"reset_progress": {
|
||||
"button": "Reset progress",
|
||||
"dialog": {
|
||||
"title": "Reset progress for {studentName}?",
|
||||
"intro": "This permanently deletes this student's progress in this course. They will stay enrolled and can restart from lesson 1.",
|
||||
"bullets": {
|
||||
"lessons": "Lessons completed — {completed} of {total}",
|
||||
"exercises": "Exercises submitted — {count} submissions",
|
||||
"comments": "Lesson comments by this student — {count}",
|
||||
"newsfeed": "Course newsfeed posts and replies by this student — {count}",
|
||||
"video_progress": "Video watch progress — {count} lessons tracked",
|
||||
"attendance": "Attendance entries — {count}",
|
||||
"certificate_yes": "Certification / compliance records — yes",
|
||||
"certificate_no": "Certification / compliance records — no"
|
||||
},
|
||||
"warning": "This cannot be undone.",
|
||||
"cancel": "Cancel",
|
||||
"confirm": "Delete"
|
||||
}
|
||||
},
|
||||
"roles": {
|
||||
"admin": "Admin",
|
||||
"tutor": "Tutor",
|
||||
@@ -4196,6 +4216,10 @@
|
||||
"toggle_error": "Failed to toggle pinned feed",
|
||||
"news_feed_fail": "Failed to fetch news feeds",
|
||||
"feed_fetch_error": "An error occured while fetching feed"
|
||||
},
|
||||
"people": {
|
||||
"progress_reset": "Progress reset",
|
||||
"progress_reset_failed": "Failed to reset progress"
|
||||
}
|
||||
},
|
||||
"lms": {
|
||||
|
||||
Reference in New Issue
Block a user