feat: complete platform operations roadmap
All checks were successful
CI / Validate frontend and API (push) Successful in 1m58s
CI / Build and publish Docker images (push) Successful in 22s

This commit is contained in:
Cauê Faleiros
2026-09-04 10:07:07 -03:00
parent 2c137529bc
commit 9b6fea4b81
19 changed files with 589 additions and 66 deletions

View File

@@ -66,7 +66,7 @@ const toCourse = (course: ApiCourse): Course => ({
title: course.title,
description: course.description,
category: course.category,
thumbnail: course.coverImageUrl || 'https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=800&q=80',
thumbnail: course.coverImageUrl || '/course-placeholder.svg',
instructor: course.instructor.name,
status: course.status === 'draft' ? 'draft' : 'published',
progress: course.progress,
@@ -186,6 +186,10 @@ export const deleteCourse = async (id: string): Promise<void> => {
await apiRequest(`/manage/courses/${id}`, { method: 'DELETE' });
};
export const duplicateCourse = async (id: string): Promise<void> => {
await apiRequest(`/manage/courses/${id}/duplicate`, { method: 'POST' });
};
type ApiComment = {
id: string;
courseId: string;