21 Commits

Author SHA1 Message Date
979adb9d3d feat: phase1 platform upgrade with moderation, dev payments, admin panel and landing updates 2026-02-06 17:26:53 +00:00
4ca66ea896 feat: restore landing style and add separate courses/admin UX 2026-02-06 16:10:41 +00:00
3d488f22b7 your message 2026-02-06 14:53:52 +00:00
c809d049fe feat: certificate page for print, API certificate data, AI prompts for full lessons
- Certificate: page /certificate/[courseId] with print-friendly design, GET /certificates/:courseId/data
- Buttons 'Получить сертификат' open certificate page instead of data-URL
- AI: prompts for longer courses (more chapters/lessons), full detailed lesson content with examples (1000–1500+ words)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-06 11:32:58 +00:00
5241144bc5 feat: AI quiz generation per lesson + hide edit buttons for non-authors
- Generate unique quiz for each lesson using OpenRouter API
- Parse lesson content (TipTap JSON) and send to AI for question generation
- Cache quiz in database to avoid regeneration
- Hide Edit/Delete buttons if current user is not course author
- Add backendUser to auth context for proper authorization checks
- Show certificate button prominently when course is completed

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-06 11:04:37 +00:00
bed7e440c1 fix: useState hook error in catalog + add certificate download in learning page
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-06 10:55:24 +00:00
5ddb3db1ac feat: add certificates, groups, support system, and moderation
Backend changes:
- Add Certificate generation service with beautiful HTML templates
- Add CourseGroup, GroupMember, GroupMessage models for group collaboration
- Add Homework and HomeworkSubmission models with AI + teacher grading
- Add SupportTicket and TicketMessage models for help desk
- Add Moderation API for admin/moderator course approval workflow
- All new modules: CertificatesModule, GroupsModule, SupportModule, ModerationModule

Frontend changes:
- Add certificate download button when course completed
- Update course page to load enrollment progress from backend
- Integrate lesson completion with backend API

Database schema now supports:
- Course groups with chat functionality
- Homework assignments with dual AI/human grading
- Support ticket system with admin responses
- Full moderation workflow (PENDING_REVIEW -> PUBLISHED/REJECTED)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-06 10:50:04 +00:00
2ed65f5678 feat: add course catalog, enrollment, progress tracking, quizzes, and reviews
Backend changes:
- Add Enrollment and LessonProgress models to track user progress
- Add UserRole enum (USER, MODERATOR, ADMIN)
- Add course verification and moderation fields
- New CatalogModule: public course browsing, publishing, verification
- New EnrollmentModule: enroll, progress tracking, quiz submission, reviews
- Add quiz generation endpoint to LessonsController

Frontend changes:
- Redesign course viewer: proper course UI with lesson navigation, progress bar
- Add beautiful typography styles for course content (prose-course)
- Fix first-login bug with token exchange retry logic
- New pages: /catalog (public courses), /catalog/[id] (course details), /learning (enrollments)
- Add LessonQuiz component with scoring and results
- Update sidebar navigation: add Catalog and My Learning links
- Add publish/verify buttons in course editor
- Integrate enrollment progress tracking with backend

All courses now support: sequential progression, quiz tests, reviews, ratings,
author verification badges, and full marketplace publishing workflow.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-06 10:44:05 +00:00
af5f80c688 123 2026-02-06 12:35:32 +03:00
9e5e9ddca4 123 2026-02-06 02:55:46 +03:00
bbb453826b 123 2026-02-06 02:52:33 +03:00
7de2c33bfe 123
123
2026-02-06 02:50:44 +03:00
e15ca974fe 123 2026-02-06 02:46:55 +03:00
147d993a05 123 2026-02-06 02:43:00 +03:00
f9d26a41d1 123 2026-02-06 02:41:41 +03:00
ba2ff52394 123 2026-02-06 02:38:32 +03:00
d87d57ab3c 123 2026-02-06 02:36:02 +03:00
8f38e4bbac 123 2026-02-06 02:35:10 +03:00
8f32a138c8 123 2026-02-06 02:34:16 +03:00
34d158d496 123 2026-02-06 02:32:37 +03:00
b9d9b9ed17 project init 2026-02-06 02:17:59 +03:00