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

+19 -2
View File
@@ -1,4 +1,4 @@
/** Shared SELECT fragment: course row + JSON arrays of categories/tags. */
/** Shared SELECT fragment: course row + JSON arrays of categories/tags/instructors. */
export const COURSE_WITH_TAXONOMY_SELECT = `
SELECT c.*,
COALESCE(
@@ -24,6 +24,23 @@ export const COURSE_WITH_TAXONOMY_SELECT = `
WHERE l.course_id = c.id
),
'[]'::json
) AS tags
) AS tags,
COALESCE(
(
SELECT json_agg(
json_build_object(
'id', f.id,
'name', f.name,
'title', f.title,
'profileUrl', f.profile_url
)
ORDER BY f.name ASC
)
FROM course_faculty_links l
JOIN faculty_members f ON f.id = l.faculty_id
WHERE l.course_id = c.id
),
'[]'::json
) AS instructors
FROM courses c
`;