Add Admin management for Centers of Excellence, Faculty Directory, and GPA Calculator course & credit assignments

This commit is contained in:
Shanmuga Krishnan S M
2026-08-19 08:55:41 +05:30
parent 9a58b2a53e
commit 9a0c601955
4 changed files with 884 additions and 10 deletions

View File

@@ -75,8 +75,19 @@ export default function Faculty() {
searchParams.has('dept')
);
const activeFacultyList = useMemo(() => {
try {
const saved = localStorage.getItem('RIT_LOCAL_FACULTY');
if (saved) {
const parsed = JSON.parse(saved);
if (Array.isArray(parsed) && parsed.length > 0) return parsed;
}
} catch {}
return FACULTY_DATA;
}, []);
const filteredAndSortedFaculty = useMemo(() => {
const filtered = FACULTY_DATA.filter((f) => {
const filtered = activeFacultyList.filter((f) => {
const searchLower = searchFaculty.trim().toLowerCase();
const matchSearch =
(f.name && f.name.toLowerCase().includes(searchLower)) ||