From 7c6fb105215835f5a2e1aa6ccb31cc2d78164c42 Mon Sep 17 00:00:00 2001 From: joonas-a Date: Mon, 5 Oct 2026 15:38:12 +0300 Subject: [PATCH] [Courses of class] add hidden course indicator to table --- .../PopulationCourseStats/GradeDistribution/index.jsx | 2 ++ .../PopulationCourseStats/PassFailEnrollments/index.tsx | 2 ++ .../PopulationCourseStats/PassingSemesters/index.jsx | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/services/frontend/src/components/PopulationCourseStats/GradeDistribution/index.jsx b/services/frontend/src/components/PopulationCourseStats/GradeDistribution/index.jsx index cbac788e0..c866f1f31 100644 --- a/services/frontend/src/components/PopulationCourseStats/GradeDistribution/index.jsx +++ b/services/frontend/src/components/PopulationCourseStats/GradeDistribution/index.jsx @@ -12,6 +12,7 @@ import { CourseFilterToggle } from '@/components/PopulationCourseStats/CourseFil import { ModuleCourseToggle } from '@/components/PopulationCourseStats/ModuleCourseToggle' import { NorthEastIcon, KeyboardArrowRightIcon } from '@/theme' import { range } from '@oodikone/shared/util' +import { HiddenCourseAlert } from '@/components/HiddenCourseAlert' const mapCourseData = course => course.courses @@ -182,6 +183,7 @@ export const GradeDistribution = ({ {courseTableMode === 'all' && ( )} + {courseTableMode === 'curriculum' ? : null} } /> diff --git a/services/frontend/src/components/PopulationCourseStats/PassFailEnrollments/index.tsx b/services/frontend/src/components/PopulationCourseStats/PassFailEnrollments/index.tsx index 62cef39db..69088681d 100644 --- a/services/frontend/src/components/PopulationCourseStats/PassFailEnrollments/index.tsx +++ b/services/frontend/src/components/PopulationCourseStats/PassFailEnrollments/index.tsx @@ -14,6 +14,7 @@ import { ModuleCourseToggle } from '@/components/PopulationCourseStats/ModuleCou import { NorthEastIcon, KeyboardArrowRightIcon } from '@/theme' import { CourseModule, UnionOfFilteredModuleCourse } from '@/util/coursesOfPopulation' import { Unarray } from '@oodikone/shared/types' +import { HiddenCourseAlert } from '@/components/HiddenCourseAlert' const columnHelper = createColumnHelper>() @@ -248,6 +249,7 @@ export const PassFailEnrollments = ({ setShowModules !== undefined && ( // Check if optional fields are set )} + {courseTableMode === 'curriculum' ? : null} } /> diff --git a/services/frontend/src/components/PopulationCourseStats/PassingSemesters/index.jsx b/services/frontend/src/components/PopulationCourseStats/PassingSemesters/index.jsx index 5dc8f3772..3431b5b93 100644 --- a/services/frontend/src/components/PopulationCourseStats/PassingSemesters/index.jsx +++ b/services/frontend/src/components/PopulationCourseStats/PassingSemesters/index.jsx @@ -13,6 +13,7 @@ import { CourseFilterToggle } from '@/components/PopulationCourseStats/CourseFil import { ModuleCourseToggle } from '@/components/PopulationCourseStats/ModuleCourseToggle' import { NorthEastIcon, KeyboardArrowRightIcon } from '@/theme' import { range } from '@oodikone/shared/util' +import { HiddenCourseAlert } from '@/components/HiddenCourseAlert' const columnHelper = createColumnHelper() @@ -183,12 +184,13 @@ export const PassingSemesters = ({ onlyIamRights, courseStatistics, courseTableM toolbarContent={ <> - {courseTableMode === 'all' && ( )} + {courseTableMode === 'curriculum' ? : null} } />