Implement faculty page redirect and enhance course management features. Added a redirect for the faculty page to an external URL. Updated course data structure to include new fields for poster and brochure images, and introduced tagging functionality for courses. Enhanced admin course filters to support tag-based filtering and improved course form for tag management. Updated navigation links to reflect changes in course and faculty structure.

This commit is contained in:
smhk1376 committed 2026-10-02 14:20:58 +03:30
1 parent 0e2fcaacdd
commit ab7fcd41d8
22 files changed
+544 -167

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
-- Add poster and brochure image URLs to courses table.
ALTER TABLE courses
ADD COLUMN IF NOT EXISTS poster_image_url TEXT NULL,
ADD COLUMN IF NOT EXISTS brochure_image_url TEXT NULL;
+2
View File
@@ -0,0 +1,2 @@
-- Add tags column to courses table
ALTER TABLE courses ADD COLUMN IF NOT EXISTS tags TEXT[] NOT NULL DEFAULT '{}';
+1 -1
View File
@@ -83,7 +83,7 @@ async function main() {
await upsert("courses", courses.map(courseToRow), [
"id", "slug", "title", "summary", "category", "duration_hours", "format", "price",
"registration_url", "image_url", "seo_description", "published",
"registration_url", "poster_image_url", "brochure_image_url", "image_url", "seo_description", "published",
]);
const courseIds = courses.map((c) => c.id);
await client.query(