Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Modules/Academic/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
{
Expand Down
15 changes: 15 additions & 0 deletions src/ui/nav/navigation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ describe("buildNavGroups", () => {
"Registration",
"Course Changes",
"Student Records",
"Courses Roll List",
"Calendar & Feedback",
"Fee Structure",
]);
Expand All @@ -95,6 +96,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(
Expand Down
Loading