Apply the public site UI checklist.

Align header, footer, brand, homepage course preview, faculty links, and the course catalog with the documented changes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
smhk1376andCursor committed 2026-10-16 14:05:33 +03:30
1 parent 8886aa8640
commit de800d27b1
139 files changed
+3311 -1547

No files matched your search

+17
View File
@@ -106,3 +106,20 @@ export async function setCourseTags(
);
}
}
/** Replace faculty (instructor) links for a course. */
export async function setCourseFaculty(
courseId: string,
facultyIds: string[],
): Promise<void> {
await query(`DELETE FROM course_faculty_links WHERE course_id = $1`, [
courseId,
]);
for (const facultyId of facultyIds) {
await query(
`INSERT INTO course_faculty_links (course_id, faculty_id)
VALUES ($1, $2) ON CONFLICT DO NOTHING`,
[courseId, facultyId],
);
}
}