From b7b96a50d7d6e336bbc10df7490cac254a72e522 Mon Sep 17 00:00:00 2001 From: Bhukya Keerthana Date: Mon, 5 Oct 2026 15:02:49 +0000 Subject: [PATCH 1/2] Add student access and rename courses roll list --- src/Modules/Academic/pages.js | 4 ++-- src/ui/nav/navigation.test.js | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/Modules/Academic/pages.js b/src/Modules/Academic/pages.js index c247824d0..416c41f1e 100644 --- a/src/Modules/Academic/pages.js +++ b/src/Modules/Academic/pages.js @@ -130,8 +130,8 @@ export const ACADEMIC_PAGES = [ slug: "generate-student-list", title: "Generate Student List", icon: "ListNumbers", - group: "Student Records", - roles: SCOPED_ADMIN_ROLES, + group: "Courses Roll List", + roles: [...SCOPED_ADMIN_ROLES, ...FACULTY_ROLES, ...STUDENT_ROLES], desktopOnly: true, }, { diff --git a/src/ui/nav/navigation.test.js b/src/ui/nav/navigation.test.js index 121f95788..afea13c08 100644 --- a/src/ui/nav/navigation.test.js +++ b/src/ui/nav/navigation.test.js @@ -95,6 +95,20 @@ describe("buildNavGroups", () => { expect(registration.links).toHaveLength(6); }); + it("shows generate student list for faculty in the academics sidebar", () => { + const groups = buildNavGroups({ + role: "Professor", + accessibleModules: ALL_MODULES, + }); + + const academics = groups.find((g) => g.section === "Academics"); + expect( + linksOf([academics]).some( + (link) => link.to === "/academics/generate-student-list", + ), + ).toBe(true); + }); + it("swaps the UG registration pipeline for the research one", () => { const slugsFor = (programmeType) => linksOf( From 646e26dbd7a34bef196692ea63d0a286f29af5b6 Mon Sep 17 00:00:00 2001 From: Vikrant Kumar Date: Tue, 6 Oct 2026 00:53:53 +0530 Subject: [PATCH 2/2] Update the acadadmin nav test for the Courses Roll List rename --- src/ui/nav/navigation.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/nav/navigation.test.js b/src/ui/nav/navigation.test.js index afea13c08..65af5fcba 100644 --- a/src/ui/nav/navigation.test.js +++ b/src/ui/nav/navigation.test.js @@ -71,6 +71,7 @@ describe("buildNavGroups", () => { "Registration", "Course Changes", "Student Records", + "Courses Roll List", "Calendar & Feedback", "Fee Structure", ]);