Enhance course management by adding 'featured' and 'sort_order' fields to the database schema and related components. Update course filtering and display logic to prioritize featured courses in the catalog. Modify admin interfaces for course creation and editing to include new fields, ensuring proper handling in both the frontend and backend. Update documentation to reflect these changes.
This commit is contained in:
1 parent
1641edfd01
commit
4b84409ed7
43 files changed
+703
-155
No files matched your search
+2
-1
@@ -122,7 +122,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",
|
||||
"lead_html", "body_html", "seo_description", "published",
|
||||
"lead_html", "body_html", "seo_description", "published", "featured",
|
||||
"sort_order",
|
||||
]);
|
||||
const courseIds = courses.map((c) => c.id);
|
||||
await client.query(
|
||||
|
||||
Reference in new issue
Block a user