Add rich HTML course lead/body and refresh AI course media from delivery v2.
Deploy edu.mstaut.ir / deploy (push) Has been cancelled

Course detail pages can show sanitized HTML ad copy under the hero and a structured body; posters and brochures are updated for both AI workshops.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
smhk1376andCursor committed 2026-10-20 00:54:30 +03:30
1 parent afd2b3333c
commit bd2cfa5a26
26 files changed
+801 -30

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
-- Rich HTML fields for course detail: ad lead under hero title + main body.
ALTER TABLE courses
ADD COLUMN IF NOT EXISTS lead_html TEXT NOT NULL DEFAULT '',
ADD COLUMN IF NOT EXISTS body_html TEXT NOT NULL DEFAULT '';
+2 -1
View File
@@ -121,7 +121,8 @@ async function main() {
await upsert("courses", courses.map(courseToRow), [
"id", "slug", "title", "summary", "duration_hours", "format", "price",
"registration_url", "poster_image_url", "brochure_image_url", "image_url", "seo_description", "published",
"registration_url", "poster_image_url", "brochure_image_url", "image_url",
"lead_html", "body_html", "seo_description", "published",
]);
const courseIds = courses.map((c) => c.id);
await client.query(