-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/kolibri/plugins/coach/assets/src/views/reports/ReportsQuizQuestionListPage.vue b/kolibri/plugins/coach/assets/src/views/reports/ReportsQuizQuestionListPage.vue
deleted file mode 100644
index aedfd60db3f..00000000000
--- a/kolibri/plugins/coach/assets/src/views/reports/ReportsQuizQuestionListPage.vue
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/kolibri/plugins/coach/assets/src/views/reports/ReportsQuizQuestionPage.vue b/kolibri/plugins/coach/assets/src/views/reports/ReportsQuizQuestionPage.vue
deleted file mode 100644
index 4d68204447f..00000000000
--- a/kolibri/plugins/coach/assets/src/views/reports/ReportsQuizQuestionPage.vue
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/kolibri/plugins/coach/assets/src/views/reports/allReportsPages.js b/kolibri/plugins/coach/assets/src/views/reports/allReportsPages.js
deleted file mode 100644
index a6decd38e4d..00000000000
--- a/kolibri/plugins/coach/assets/src/views/reports/allReportsPages.js
+++ /dev/null
@@ -1,83 +0,0 @@
-import ReportsGroupActivityPage from './ReportsGroupActivityPage';
-import ReportsGroupLearnerListPage from './ReportsGroupLearnerListPage';
-import ReportsGroupListPage from './ReportsGroupListPage';
-import ReportsGroupReportLessonExerciseLearnerListPage from './ReportsGroupReportLessonExerciseLearnerListPage';
-import ReportsGroupReportLessonExerciseLearnerPage from './ReportsGroupReportLessonExerciseLearnerPage';
-import ReportsGroupReportLessonExerciseQuestionListPage from './ReportsGroupReportLessonExerciseQuestionListPage';
-import ReportsGroupReportLessonExerciseQuestionPage from './ReportsGroupReportLessonExerciseQuestionPage';
-import ReportsGroupReportLessonPage from './ReportsGroupReportLessonPage';
-import ReportsGroupReportLessonLearnerPage from './ReportsGroupReportLessonLearnerPage';
-import ReportsGroupReportLessonLearnerListPage from './ReportsGroupReportLessonLearnerListPage';
-import ReportsGroupReportLessonResourceLearnerListPage from './ReportsGroupReportLessonResourceLearnerListPage';
-import ReportsGroupReportPage from './ReportsGroupReportPage';
-import ReportsGroupReportQuizLearnerListPage from './ReportsGroupReportQuizLearnerListPage';
-import ReportsGroupReportQuizLearnerPage from './ReportsGroupReportQuizLearnerPage';
-import ReportsGroupReportQuizQuestionListPage from './ReportsGroupReportQuizQuestionListPage';
-import ReportsGroupReportQuizQuestionPage from './ReportsGroupReportQuizQuestionPage';
-import ReportsLearnerActivityExercisePage from './ReportsLearnerActivityExercisePage';
-import ReportsLearnerActivityPage from './ReportsLearnerActivityPage';
-import ReportsLearnerListPage from './ReportsLearnerListPage';
-import ReportsLearnerReportLessonExercisePage from './ReportsLearnerReportLessonExercisePage';
-import ReportsLearnerReportLessonPage from './ReportsLearnerReportLessonPage';
-import ReportsLearnerReportPage from './ReportsLearnerReportPage';
-import ReportsLearnerReportQuizPage from './ReportsLearnerReportQuizPage';
-import ReportsLessonExerciseLearnerListPage from './ReportsLessonExerciseLearnerListPage';
-import ReportsLessonExerciseLearnerPage from './ReportsLessonExerciseLearnerPage';
-import ReportsLessonExerciseQuestionListPage from './ReportsLessonExerciseQuestionListPage';
-import ReportsLessonExerciseQuestionPage from './ReportsLessonExerciseQuestionPage';
-import ReportsLessonLearnerExercisePage from './ReportsLessonLearnerExercisePage';
-import ReportsLessonLearnerListPage from './ReportsLessonLearnerListPage';
-import ReportsLessonLearnerPage from './ReportsLessonLearnerPage';
-import ReportsLessonListPage from './ReportsLessonListPage';
-import ReportsLessonManagerPage from './ReportsLessonManagerPage';
-import ReportsLessonReportPage from './ReportsLessonReportPage';
-import ReportsLessonResourceLearnerListPage from './ReportsLessonResourceLearnerListPage';
-import ReportsQuizLearnerListPage from './ReportsQuizLearnerListPage';
-import ReportsQuizLearnerPage from './ReportsQuizLearnerPage';
-import ReportsQuizListPage from './ReportsQuizListPage';
-import ReportsQuizPreviewPage from './ReportsQuizPreviewPage';
-import ReportsQuizQuestionListPage from './ReportsQuizQuestionListPage';
-import ReportsQuizQuestionPage from './ReportsQuizQuestionPage';
-
-export default {
- ReportsGroupActivityPage,
- ReportsGroupLearnerListPage,
- ReportsGroupListPage,
- ReportsGroupReportLessonExerciseLearnerListPage,
- ReportsGroupReportLessonExerciseLearnerPage,
- ReportsGroupReportLessonExerciseQuestionListPage,
- ReportsGroupReportLessonExerciseQuestionPage,
- ReportsGroupReportLessonPage,
- ReportsGroupReportLessonLearnerPage,
- ReportsGroupReportLessonLearnerListPage,
- ReportsGroupReportLessonResourceLearnerListPage,
- ReportsGroupReportPage,
- ReportsGroupReportQuizLearnerListPage,
- ReportsGroupReportQuizLearnerPage,
- ReportsGroupReportQuizQuestionListPage,
- ReportsGroupReportQuizQuestionPage,
- ReportsLearnerActivityExercisePage,
- ReportsLearnerActivityPage,
- ReportsLearnerListPage,
- ReportsLearnerReportLessonExercisePage,
- ReportsLearnerReportLessonPage,
- ReportsLearnerReportPage,
- ReportsLearnerReportQuizPage,
- ReportsLessonExerciseLearnerListPage,
- ReportsLessonExerciseLearnerPage,
- ReportsLessonExerciseQuestionListPage,
- ReportsLessonExerciseQuestionPage,
- ReportsLessonLearnerExercisePage,
- ReportsLessonLearnerListPage,
- ReportsLessonLearnerPage,
- ReportsLessonListPage,
- ReportsLessonManagerPage,
- ReportsLessonReportPage,
- ReportsLessonResourceLearnerListPage,
- ReportsQuizLearnerListPage,
- ReportsQuizLearnerPage,
- ReportsQuizListPage,
- ReportsQuizPreviewPage,
- ReportsQuizQuestionListPage,
- ReportsQuizQuestionPage,
-};
diff --git a/kolibri/plugins/coach/assets/test/views/AssignmentCopyModal.spec.js b/kolibri/plugins/coach/assets/test/views/AssignmentCopyModal.spec.js
index 39bb71b2106..5f5df51478a 100644
--- a/kolibri/plugins/coach/assets/test/views/AssignmentCopyModal.spec.js
+++ b/kolibri/plugins/coach/assets/test/views/AssignmentCopyModal.spec.js
@@ -1,6 +1,6 @@
import Vuex from 'vuex';
import { mount } from '@vue/test-utils';
-import AssignmentCopyModal from '../../src/views/plan/assignments/AssignmentCopyModal';
+import AssignmentCopyModal from '../../src/views/common/assignments/AssignmentCopyModal';
const defaultProps = {
modalTitle: '',
diff --git a/kolibri/plugins/coach/assets/test/views/AssignmentDeleteModal.spec.js b/kolibri/plugins/coach/assets/test/views/AssignmentDeleteModal.spec.js
index 6d54918dde8..e5175cbba9a 100644
--- a/kolibri/plugins/coach/assets/test/views/AssignmentDeleteModal.spec.js
+++ b/kolibri/plugins/coach/assets/test/views/AssignmentDeleteModal.spec.js
@@ -1,5 +1,5 @@
import { mount } from '@vue/test-utils';
-import AssignmentDeleteModal from '../../src/views/plan/assignments/AssignmentDeleteModal';
+import AssignmentDeleteModal from '../../src/views/common/assignments/AssignmentDeleteModal';
const defaultProps = {
modalTitle: '',
diff --git a/kolibri/plugins/coach/assets/test/views/AssignmentDetailsModal.spec.js b/kolibri/plugins/coach/assets/test/views/AssignmentDetailsModal.spec.js
index 16faaa3429c..f87659db3c8 100644
--- a/kolibri/plugins/coach/assets/test/views/AssignmentDetailsModal.spec.js
+++ b/kolibri/plugins/coach/assets/test/views/AssignmentDetailsModal.spec.js
@@ -1,6 +1,6 @@
import { mount } from '@vue/test-utils';
import makeStore from '../makeStore';
-import AssignmentDetailsModal from '../../src/views/plan/assignments/AssignmentDetailsModal';
+import AssignmentDetailsModal from '../../src/views/common/assignments/AssignmentDetailsModal';
// HACK to avoid having to mock this property's dependencies on vuex and vue router
AssignmentDetailsModal.computed.titleIsInvalidText = () => '';
diff --git a/kolibri/plugins/coach/assets/test/views/reports/ReportsLearnersTable.spec.js b/kolibri/plugins/coach/assets/test/views/reports/ReportsLearnersTable.spec.js
index b3f2f032aea..7d5761226fb 100644
--- a/kolibri/plugins/coach/assets/test/views/reports/ReportsLearnersTable.spec.js
+++ b/kolibri/plugins/coach/assets/test/views/reports/ReportsLearnersTable.spec.js
@@ -1,7 +1,7 @@
import { shallowMount, mount, RouterLinkStub } from '@vue/test-utils';
import { STATUSES } from '../../../src/modules/classSummary/constants';
-import ReportsLearnersTable from '../../../src/views/reports/ReportsLearnersTable';
+import ReportsLearnersTable from '../../../src/views/common/tables/ReportsLearnersTable';
const entries = [
{
diff --git a/kolibri/plugins/coach/assets/test/views/reports/ReportsLessonExerciseLearnerListPage.spec.js b/kolibri/plugins/coach/assets/test/views/reports/ReportsLessonExerciseLearnerListPage.spec.js
index 0d4a32b1144..c0d9efc7539 100644
--- a/kolibri/plugins/coach/assets/test/views/reports/ReportsLessonExerciseLearnerListPage.spec.js
+++ b/kolibri/plugins/coach/assets/test/views/reports/ReportsLessonExerciseLearnerListPage.spec.js
@@ -3,7 +3,7 @@ import VueRouter from 'vue-router';
import { STATUSES } from '../../../src/modules/classSummary/constants';
import makeStore from '../../makeStore';
-import ReportsLessonExerciseLearnerListPage from '../../../src/views/reports/ReportsLessonExerciseLearnerListPage';
+import LessonExerciseLearnersPage from '../../../src/views/lessons/reports/LessonExerciseLearnersPage.vue';
const localVue = createLocalVue();
localVue.use(VueRouter);
@@ -68,7 +68,7 @@ const GROUP_3 = {
};
const ROUTE_ALL_LEARNERS = {
- name: 'FakeReportsLessonExerciseLearnerListPage',
+ name: 'FakeLessonExerciseLearnersPage',
params: {
lessonId: LESSON_ID,
exerciseId: EXERCISE_ID,
@@ -86,7 +86,7 @@ const router = new VueRouter({
routes: [
{
path: '/reports/lessons/:lessonId/exercises/:exerciseId/learners',
- name: 'FakeReportsLessonExerciseLearnerListPage',
+ name: 'FakeLessonExerciseLearnersPage',
},
],
});
@@ -180,7 +180,7 @@ const initWrapper = lessonMap => {
router.push(ROUTE_ALL_LEARNERS).catch(() => {});
- const wrapper = mount(ReportsLessonExerciseLearnerListPage, {
+ const wrapper = mount(LessonExerciseLearnersPage, {
store,
localVue,
router,
@@ -193,7 +193,7 @@ const initWrapper = lessonMap => {
return wrapper;
};
-describe('ReportsLessonExerciseLearnerListPage', () => {
+describe('LessonExerciseLearnersPage', () => {
let wrapper;
beforeEach(() => {
diff --git a/kolibri/plugins/coach/assets/test/views/reports/ReportsLessonResourceLearnerListPage.spec.js b/kolibri/plugins/coach/assets/test/views/reports/ReportsLessonResourceLearnerListPage.spec.js
index 1bc67213bf0..22f79079a6b 100644
--- a/kolibri/plugins/coach/assets/test/views/reports/ReportsLessonResourceLearnerListPage.spec.js
+++ b/kolibri/plugins/coach/assets/test/views/reports/ReportsLessonResourceLearnerListPage.spec.js
@@ -3,7 +3,9 @@ import VueRouter from 'vue-router';
import { STATUSES } from '../../../src/modules/classSummary/constants';
import makeStore from '../../makeStore';
-import ReportsLessonResourceLearnerListPage from '../../../src/views/reports/ReportsLessonResourceLearnerListPage';
+import LessonResourceLearnersPage from '../../../src/views/lessons/reports/LessonResourceLearnersPage';
+
+LessonResourceLearnersPage;
const localVue = createLocalVue();
localVue.use(VueRouter);
@@ -25,7 +27,7 @@ jest.mock('../../../src/composables/useCoreCoach', () => {
};
});
-const ROUTE_NAME = 'FakeReportsLessonResourceLearnerListPage';
+const ROUTE_NAME = 'FakeLessonResourceLearnersPage';
const LESSON_ID = 'lesson-id';
const RESOURCE_ID = 'resource-id';
@@ -195,7 +197,7 @@ const initWrapper = lessonMap => {
// TODO find way to reduce unnecessary navigations to speed up test
router.push(ROUTE_ALL_LEARNERS).catch(() => {});
- const wrapper = mount(ReportsLessonResourceLearnerListPage, {
+ const wrapper = mount(LessonResourceLearnersPage, {
store,
localVue,
router,
@@ -208,7 +210,7 @@ const initWrapper = lessonMap => {
return wrapper;
};
-describe('ReportsLessonResourceLearnerListPage', () => {
+describe('LessonResourceLearnersPage', () => {
let wrapper;
beforeEach(() => {
diff --git a/kolibri/plugins/coach/assets/test/views/reports/__snapshots__/ReportsLessonExerciseLearnerListPage.spec.js.snap b/kolibri/plugins/coach/assets/test/views/reports/__snapshots__/ReportsLessonExerciseLearnerListPage.spec.js.snap
index 5b2c2f081cc..b3abdc3cdb1 100644
--- a/kolibri/plugins/coach/assets/test/views/reports/__snapshots__/ReportsLessonExerciseLearnerListPage.spec.js.snap
+++ b/kolibri/plugins/coach/assets/test/views/reports/__snapshots__/ReportsLessonExerciseLearnerListPage.spec.js.snap
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`ReportsLessonExerciseLearnerListPage for a lesson restricted to some groups recipients only when displaying all learners renders a correct summary tally 1`] = `
+exports[`LessonExerciseLearnersPage for a lesson restricted to some groups recipients only when displaying all learners renders a correct summary tally 1`] = `
Completed by 1 of 1
@@ -10,7 +10,7 @@ exports[`ReportsLessonExerciseLearnerListPage for a lesson restricted to some gr
`;
-exports[`ReportsLessonExerciseLearnerListPage for a lesson restricted to some groups recipients only when displaying learners by groups renders a correct group tally 1`] = `
+exports[`LessonExerciseLearnersPage for a lesson restricted to some groups recipients only when displaying learners by groups renders a correct group tally 1`] = `
1
@@ -35,7 +35,7 @@ exports[`ReportsLessonExerciseLearnerListPage for a lesson restricted to some gr
`;
-exports[`ReportsLessonExerciseLearnerListPage for a lesson restricted to some groups recipients only when displaying learners by groups renders a correct group tally 2`] = `
+exports[`LessonExerciseLearnersPage for a lesson restricted to some groups recipients only when displaying learners by groups renders a correct group tally 2`] = `
0 of 0
@@ -45,7 +45,7 @@ exports[`ReportsLessonExerciseLearnerListPage for a lesson restricted to some gr
`;
-exports[`ReportsLessonExerciseLearnerListPage for an entire class lesson when displaying all learners renders a correct summary tally 1`] = `
+exports[`LessonExerciseLearnersPage for an entire class lesson when displaying all learners renders a correct summary tally 1`] = `
Completed by 1 of 3
@@ -62,7 +62,7 @@ exports[`ReportsLessonExerciseLearnerListPage for an entire class lesson when di
`;
-exports[`ReportsLessonExerciseLearnerListPage for an entire class lesson when displaying learners by groups renders a correct group tally 1`] = `
+exports[`LessonExerciseLearnersPage for an entire class lesson when displaying learners by groups renders a correct group tally 1`] = `
1
@@ -87,7 +87,7 @@ exports[`ReportsLessonExerciseLearnerListPage for an entire class lesson when di
`;
-exports[`ReportsLessonExerciseLearnerListPage for an entire class lesson when displaying learners by groups renders a correct group tally 2`] = `
+exports[`LessonExerciseLearnersPage for an entire class lesson when displaying learners by groups renders a correct group tally 2`] = `
1
@@ -112,7 +112,7 @@ exports[`ReportsLessonExerciseLearnerListPage for an entire class lesson when di
`;
-exports[`ReportsLessonExerciseLearnerListPage for an entire class lesson when displaying learners by groups renders a correct group tally 3`] = `
+exports[`LessonExerciseLearnersPage for an entire class lesson when displaying learners by groups renders a correct group tally 3`] = `
0 of 0
diff --git a/kolibri/plugins/coach/assets/test/views/reports/__snapshots__/ReportsLessonResourceLearnerListPage.spec.js.snap b/kolibri/plugins/coach/assets/test/views/reports/__snapshots__/ReportsLessonResourceLearnerListPage.spec.js.snap
index 12aa1ff8ec6..ec5c7ef8f16 100644
--- a/kolibri/plugins/coach/assets/test/views/reports/__snapshots__/ReportsLessonResourceLearnerListPage.spec.js.snap
+++ b/kolibri/plugins/coach/assets/test/views/reports/__snapshots__/ReportsLessonResourceLearnerListPage.spec.js.snap
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`ReportsLessonResourceLearnerListPage for a lesson restricted to some groups recipents only when displaying all learners renders a correct summary tally 1`] = `
+exports[`LessonResourceLearnersPage for a lesson restricted to some groups recipents only when displaying all learners renders a correct summary tally 1`] = `
Completed by 1 of 1
@@ -10,7 +10,7 @@ exports[`ReportsLessonResourceLearnerListPage for a lesson restricted to some gr
`;
-exports[`ReportsLessonResourceLearnerListPage for a lesson restricted to some groups recipents only when displaying all learners renders correct resources stats 1`] = `
+exports[`LessonResourceLearnersPage for a lesson restricted to some groups recipents only when displaying all learners renders correct resources stats 1`] = `
@@ -25,7 +25,7 @@ exports[`ReportsLessonResourceLearnerListPage for a lesson restricted to some gr
`;
-exports[`ReportsLessonResourceLearnerListPage for a lesson restricted to some groups recipents only when displaying learners by groups renders a correct group tally 1`] = `
+exports[`LessonResourceLearnersPage for a lesson restricted to some groups recipents only when displaying learners by groups renders a correct group tally 1`] = `
1
@@ -46,7 +46,7 @@ exports[`ReportsLessonResourceLearnerListPage for a lesson restricted to some gr
`;
-exports[`ReportsLessonResourceLearnerListPage for a lesson restricted to some groups recipents only when displaying learners by groups renders a correct group tally 2`] = `
+exports[`LessonResourceLearnersPage for a lesson restricted to some groups recipents only when displaying learners by groups renders a correct group tally 2`] = `
0 of 0
@@ -56,7 +56,7 @@ exports[`ReportsLessonResourceLearnerListPage for a lesson restricted to some gr
`;
-exports[`ReportsLessonResourceLearnerListPage for a lesson restricted to some groups recipents only when displaying learners by groups renders correct group resources stats 1`] = `
+exports[`LessonResourceLearnersPage for a lesson restricted to some groups recipents only when displaying learners by groups renders correct group resources stats 1`] = `
@@ -71,7 +71,7 @@ exports[`ReportsLessonResourceLearnerListPage for a lesson restricted to some gr
`;
-exports[`ReportsLessonResourceLearnerListPage for an entire class lesson when displaying all learners renders a correct summary tally 1`] = `
+exports[`LessonResourceLearnersPage for an entire class lesson when displaying all learners renders a correct summary tally 1`] = `
Completed by 1 of 3
@@ -88,7 +88,7 @@ exports[`ReportsLessonResourceLearnerListPage for an entire class lesson when di
`;
-exports[`ReportsLessonResourceLearnerListPage for an entire class lesson when displaying all learners renders correct resources stats 1`] = `
+exports[`LessonResourceLearnersPage for an entire class lesson when displaying all learners renders correct resources stats 1`] = `
@@ -103,7 +103,7 @@ exports[`ReportsLessonResourceLearnerListPage for an entire class lesson when di
`;
-exports[`ReportsLessonResourceLearnerListPage for an entire class lesson when displaying learners by groups renders a correct group tally 1`] = `
+exports[`LessonResourceLearnersPage for an entire class lesson when displaying learners by groups renders a correct group tally 1`] = `
1
@@ -124,7 +124,7 @@ exports[`ReportsLessonResourceLearnerListPage for an entire class lesson when di
`;
-exports[`ReportsLessonResourceLearnerListPage for an entire class lesson when displaying learners by groups renders a correct group tally 2`] = `
+exports[`LessonResourceLearnersPage for an entire class lesson when displaying learners by groups renders a correct group tally 2`] = `
1
@@ -145,7 +145,7 @@ exports[`ReportsLessonResourceLearnerListPage for an entire class lesson when di
`;
-exports[`ReportsLessonResourceLearnerListPage for an entire class lesson when displaying learners by groups renders a correct group tally 3`] = `
+exports[`LessonResourceLearnersPage for an entire class lesson when displaying learners by groups renders a correct group tally 3`] = `
0 of 0
@@ -155,7 +155,7 @@ exports[`ReportsLessonResourceLearnerListPage for an entire class lesson when di
`;
-exports[`ReportsLessonResourceLearnerListPage for an entire class lesson when displaying learners by groups renders correct group resources stats 1`] = `
+exports[`LessonResourceLearnersPage for an entire class lesson when displaying learners by groups renders correct group resources stats 1`] = `
@@ -170,7 +170,7 @@ exports[`ReportsLessonResourceLearnerListPage for an entire class lesson when di
`;
-exports[`ReportsLessonResourceLearnerListPage for an entire class lesson when displaying learners by groups renders correct group resources stats 2`] = `
+exports[`LessonResourceLearnersPage for an entire class lesson when displaying learners by groups renders correct group resources stats 2`] = `