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
@@ -242,6 +242,10 @@
|
||||
"unpinned": "Desafixado",
|
||||
"successfully": "Com sucesso",
|
||||
"feed_delete_success": "Feed excluído com sucesso"
|
||||
},
|
||||
"people": {
|
||||
"progress_reset": "Progresso redefinido",
|
||||
"progress_reset_failed": "Falha ao redefinir o progresso"
|
||||
}
|
||||
},
|
||||
"landing_page_settings": {
|
||||
@@ -1100,6 +1104,26 @@
|
||||
"no": "Não",
|
||||
"yes": "Sim"
|
||||
},
|
||||
"reset_progress": {
|
||||
"button": "Redefinir progresso",
|
||||
"dialog": {
|
||||
"title": "Redefinir o progresso de {studentName}?",
|
||||
"intro": "Isso exclui permanentemente o progresso deste aluno neste curso. Ele permanecerá matriculado e poderá recomeçar da lição 1.",
|
||||
"bullets": {
|
||||
"lessons": "Lições concluídas — {completed} de {total}",
|
||||
"exercises": "Exercícios enviados — {count} envios",
|
||||
"comments": "Comentários de lição deste aluno — {count}",
|
||||
"newsfeed": "Publicações e respostas no feed do curso deste aluno — {count}",
|
||||
"video_progress": "Progresso de visualização de vídeo — {count} lições acompanhadas",
|
||||
"attendance": "Registros de presença — {count}",
|
||||
"certificate_yes": "Registros de certificação/conformidade — sim",
|
||||
"certificate_no": "Registros de certificação/conformidade — não"
|
||||
},
|
||||
"warning": "Isso não pode ser desfeito.",
|
||||
"cancel": "Cancelar",
|
||||
"confirm": "Excluir"
|
||||
}
|
||||
},
|
||||
"invite_modal": {
|
||||
"title": "Convide pessoas",
|
||||
"invite": "Convidar tutores",
|
||||
|
||||
Reference in New Issue
Block a user