diff --git a/kolibri/plugins/coach/assets/src/constants/index.js b/kolibri/plugins/coach/assets/src/constants/index.js
index e98e0bf724c..c5f99dbc351 100644
--- a/kolibri/plugins/coach/assets/src/constants/index.js
+++ b/kolibri/plugins/coach/assets/src/constants/index.js
@@ -17,6 +17,10 @@ export const PageNames = {
QUIZ_SECTION_ORDER: 'QUIZ_SECTION_ORDER',
BOOK_MARKED_RESOURCES: 'BOOK_MARKED_RESOURCES',
+ /** Quiz summary page */
+ QUIZ_LEARNERS_REPORT_TAB: 'QUIZ_LEARNERS_REPORT_TAB',
+ QUIZ_DIFFICULT_QUESTIONS_REPORT_TAB: 'QUIZ_DIFFICULT_QUESTIONS_REPORT_TAB',
+
EXAM_REPORT: 'EXAM_REPORT',
EXAM_REPORT_DETAIL: 'EXAM_REPORT_DETAIL',
EXAM_REPORT_DETAIL_ROOT: 'EXAM_REPORT_DETAIL_ROOT',
diff --git a/kolibri/plugins/coach/assets/src/routes/planExamRoutes.js b/kolibri/plugins/coach/assets/src/routes/planExamRoutes.js
index ff0f1a3b83a..b18781c6054 100644
--- a/kolibri/plugins/coach/assets/src/routes/planExamRoutes.js
+++ b/kolibri/plugins/coach/assets/src/routes/planExamRoutes.js
@@ -7,6 +7,9 @@ import CoachExamsPage from '../views/plan/CoachExamsPage';
import QuizSummaryPage from '../views/plan/QuizSummaryPage';
import SectionOrder from '../views/plan/CreateExamPage/SectionOrder';
import { generateQuestionListHandler } from '../modules/questionList/handlers';
+import ReportsLearnersTable from '../views/reports/ReportsLearnersTable.vue';
+import ReportsDifficultQuestionsTable from '../views/reports/ReportsDifficultQuestionsTable.vue';
+import { QuizzesTabs } from '../constants/tabsConstants';
export default [
{
@@ -54,11 +57,35 @@ export default [
},
{
name: QuizSummaryPage.name,
- path: '/:classId/plan/quizzes/:quizId/:tabId?',
+ path: '/:classId/plan/quizzes/:quizId',
component: QuizSummaryPage,
handler: generateQuestionListHandler(['quizId']),
meta: {
titleParts: ['QUIZ_NAME', 'quizzesLabel', 'CLASS_NAME'],
},
+ children: [
+ {
+ name: PageNames.QUIZ_LEARNERS_REPORT_TAB,
+ path: QuizzesTabs.REPORT,
+ component: ReportsLearnersTable,
+ },
+ {
+ name: PageNames.QUIZ_DIFFICULT_QUESTIONS_REPORT_TAB,
+ path: QuizzesTabs.DIFFICULT_QUESTIONS,
+ component: ReportsDifficultQuestionsTable,
+ },
+ {
+ path: '*',
+ redirect: {
+ name: PageNames.QUIZ_LEARNERS_REPORT_TAB,
+ },
+ },
+ {
+ path: '',
+ redirect: {
+ name: PageNames.QUIZ_LEARNERS_REPORT_TAB,
+ },
+ },
+ ],
},
];
diff --git a/kolibri/plugins/coach/assets/src/views/CoachAppBarPage.vue b/kolibri/plugins/coach/assets/src/views/CoachAppBarPage.vue
index 29ba2d9ca07..cdc572c7742 100644
--- a/kolibri/plugins/coach/assets/src/views/CoachAppBarPage.vue
+++ b/kolibri/plugins/coach/assets/src/views/CoachAppBarPage.vue
@@ -13,7 +13,10 @@
-