feat(vocab): add lesson review functionality and update navigation
All checks were successful
Deploy to production / deploy (push) Successful in 2m46s

- Introduced VocabLessonReviewView for reviewing lessons within the vocabulary course structure.
- Updated routing in socialRoutes.js to include a new path for lesson reviews, ensuring authenticated access.
- Modified VocabCourseView to change the lesson button click behavior to navigate to the review view, enhancing user flow.
- Added a new method to handle lesson review navigation, improving the overall user experience in the vocabulary section.
This commit is contained in:
Torsten Schulz (local)
2026-04-07 09:38:00 +02:00
parent e17f0cdce0
commit 3cc5f63610
3 changed files with 301 additions and 1 deletions

View File

@@ -87,7 +87,7 @@
:key="`due-${lesson.id}`"
type="button"
class="course-flow-lesson"
@click="openLesson(lesson.id)"
@click="openLessonReview(lesson.id)"
>
<strong>{{ lesson.title }}</strong>
<span>{{ formatReviewDue(getLessonProgress(lesson.id, lesson)?.reviewNextDueAt) }}</span>
@@ -705,6 +705,10 @@ export default {
if (!step?.lesson) {
return;
}
if (step.type === 'review_due') {
this.openLessonReview(step.lesson.id);
return;
}
if (step.type === 'practice') {
this.openLessonPractice(step.lesson);
return;
@@ -717,6 +721,9 @@ export default {
lessonId: lesson.id
});
},
openLessonReview(lessonId) {
this.$router.push(`/socialnetwork/vocab/courses/${this.courseId}/lessons/${lessonId}/review`);
},
openLessonAssistant(lessonId) {
this.$router.push(`/socialnetwork/vocab/courses/${this.courseId}/lessons/${lessonId}?assistant=1`);
},