From e2044f7eb012ba35a1b16a5a7b839e1bd1fdf08a Mon Sep 17 00:00:00 2001 From: Liana Harris <46411498+LianaHarris360@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:34:53 -0500 Subject: [PATCH 1/4] Add PLAN_LESSONS_ROOT_BETTER to LessonsPageNames constants --- kolibri/plugins/coach/assets/src/constants/lessonsConstants.js | 1 + 1 file changed, 1 insertion(+) diff --git a/kolibri/plugins/coach/assets/src/constants/lessonsConstants.js b/kolibri/plugins/coach/assets/src/constants/lessonsConstants.js index c0cc59694e4..ea7d512759e 100644 --- a/kolibri/plugins/coach/assets/src/constants/lessonsConstants.js +++ b/kolibri/plugins/coach/assets/src/constants/lessonsConstants.js @@ -1,5 +1,6 @@ export const LessonsPageNames = { PLAN_LESSONS_ROOT: 'PLAN_LESSONS_ROOT', + PLAN_LESSONS_ROOT_BETTER: 'PLAN_LESSONS_ROOT_BETTER', LESSON_CREATION_ROOT: 'LESSON_CREATION_ROOT', LESSON_CREATION_ROOT_BETTER: 'LESSON_CREATION_ROOT_BETTER', SUMMARY: 'SUMMARY', From 604986b6143f36b0b400603ca4e17a7648743eed Mon Sep 17 00:00:00 2001 From: Liana Harris <46411498+LianaHarris360@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:35:30 -0500 Subject: [PATCH 2/4] Create /lessonstemp route as the temporary root lessons landing page using the LessonsRootPage component --- .../coach/assets/src/routes/planLessonsRoutes.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/kolibri/plugins/coach/assets/src/routes/planLessonsRoutes.js b/kolibri/plugins/coach/assets/src/routes/planLessonsRoutes.js index 747295ef8a8..2ad60d24e17 100644 --- a/kolibri/plugins/coach/assets/src/routes/planLessonsRoutes.js +++ b/kolibri/plugins/coach/assets/src/routes/planLessonsRoutes.js @@ -55,6 +55,20 @@ export default [ titleParts: ['lessonsLabel', 'CLASS_NAME'], }, }, + { + name: LessonsPageNames.PLAN_LESSONS_ROOT_BETTER, + path: '/:classId/plan/lessonstemp', + component: LessonsRootPage, + handler(toRoute, fromRoute, next) { + if (classIdParamRequiredGuard(toRoute, PageNames.PLAN_PAGE, next)) { + return; + } + showLessonsRootPage(store, toRoute.params.classId); + }, + meta: { + titleParts: ['lessonsLabel', 'CLASS_NAME'], + }, + }, { name: LessonsPageNames.LESSON_CREATION_ROOT, path: path(CLASS, ALL_LESSONS, '/new'), From 22795e1cdcce7adb24c70b35871a4fb782ce7eb9 Mon Sep 17 00:00:00 2001 From: Liana Harris <46411498+LianaHarris360@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:40:32 -0500 Subject: [PATCH 3/4] Update LessonsRootPage table to include progress from reports, maintaining the same empty states for unavailable data --- .../src/views/plan/LessonsRootPage/index.vue | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/kolibri/plugins/coach/assets/src/views/plan/LessonsRootPage/index.vue b/kolibri/plugins/coach/assets/src/views/plan/LessonsRootPage/index.vue index 02b7d555eda..777c68f9780 100644 --- a/kolibri/plugins/coach/assets/src/views/plan/LessonsRootPage/index.vue +++ b/kolibri/plugins/coach/assets/src/views/plan/LessonsRootPage/index.vue @@ -7,7 +7,10 @@ :tabsId="PLAN_TABS_ID" :activeTabId="PlanTabs.LESSONS" > -
+
{{ coachString('totalLessonsSize', { size: calcTotalSizeOfVisibleLessons }) }}