feat(vocab): implement user vocab lesson progress reset functionality
All checks were successful
Deploy to production / deploy (push) Successful in 2m59s
All checks were successful
Deploy to production / deploy (push) Successful in 2m59s
- Added `resetUserVocabLessonProgress` method in `AdminController` to allow admins to reset a user's progress for a specific vocab lesson. - Introduced corresponding route in `adminRouter` for the new reset functionality. - Enhanced `VocabService` with methods to purge lesson progress for users, ensuring that only the specified lesson's progress is affected. - Updated UI components in `UsersView` to facilitate the selection of courses and lessons for resetting progress, including confirmation dialogs and loading states. - Added localization support for the new reset functionality across multiple languages. - Implemented reset functionality in `VocabLessonView` for users to reset their own lesson progress.
This commit is contained in:
@@ -30,6 +30,20 @@
|
||||
"actions": "Aktionen",
|
||||
"search": "Suchen"
|
||||
},
|
||||
"vocabLessonReset": {
|
||||
"title": "Sprachkurs: Lektionsfortschritt",
|
||||
"intro": "Fortschritt, Übungsergebnisse und gespeicherter Lektionszustand für eine einzelne Lektion löschen (nicht der ganze Kurs). Es werden nur Kurse gelistet, die du als Admin sehen kannst (öffentlich oder eigene).",
|
||||
"loadCourses": "Kurse laden",
|
||||
"selectCourse": "Kurs",
|
||||
"selectLesson": "Lektion",
|
||||
"reset": "Lektion für diesen Nutzer zurücksetzen",
|
||||
"confirm": "Fortschritt der Lektion „{lesson}“ für {username} wirklich löschen?",
|
||||
"success": "Lektionsfortschritt wurde zurückgesetzt.",
|
||||
"error": "Zurücksetzen fehlgeschlagen.",
|
||||
"pickUserFirst": "Zuerst einen Benutzer auswählen.",
|
||||
"noCourses": "Keine Kurse geladen oder keine sichtbaren Kurse.",
|
||||
"loadingLessons": "Lektionen werden geladen …"
|
||||
},
|
||||
"adultVerification": {
|
||||
"title": "[Admin] - Erotik-Freigaben",
|
||||
"intro": "Volljährige Nutzer können den Erotikbereich beantragen. Hier werden Anfragen geprüft und freigegeben oder abgelehnt.",
|
||||
|
||||
Reference in New Issue
Block a user