Commit Graph

7 Commits

Author SHA1 Message Date
Antigravity AI 6850b350f7 fix: repair 20 modules' quiz format and IDs, patch Dockerfile for npm ci inside build 2026-06-28 16:02:38 +08:00
Antigravity AI 53ab375153 feat(learn): add 3 micro-learning courses — Adhkar, 99 Names, Islamic Manners
- 3 new courses with 5 modules each (15 modules, 60 quiz questions)
- Daily Adhkar & Du'as — morning/evening/sleeping/travel remembrances
- 99 Names of Allah (Part 1) — 10 names across 5 modules
- Islamic Manners (Adab) — salam, eating, speaking, mosque, parents
- All modules include TTS audio (edge-tts, en-US-AriaNeural)
- Updated total catalog: 10 courses, 47 modules
2026-06-28 15:11:48 +08:00
wmj2024 eb3a0645df feat(learn): add audio paths for all courses, convert TTS to MP3, fix generator script
- Add audioPath for 3 legacy courses (Basics of Prayer, Understanding Fiqh, Quranic Arabic)
- Convert new course TTS from M4A to MP3 for consistency
- Fix generate-tts-local.js ext replacement bug (works with .mp3 now)
- All 7 courses now have 32 MP3 modules total (~74MB)
- Build passes (0 errors, 0 warnings)
2026-06-28 11:52:37 +08:00
wmj2024 90e0086cf1 feat(learn): add 3 new courses — Ramadan Fasting, Zakat, Hajj & Umrah
- 15 new modules with 2000-3000 char markdown content
- 1 quiz question per module with explanation
- audioPath set to .m4a for all 15 modules (TTS-ready)
- Added local TTS generation script (scripts/generate-tts-local.js)
- Added .gitignore for generated audio files
- Total: 7 courses, 32 modules in seed-learn.json

Note: Audio files are generated locally via generate-tts-local.js.
They are excluded from git (see .gitignore) due to large binary size.
For production MP3s, use Azure/ElevenLabs via Gitea's generate-audio.py.
2026-06-28 11:52:35 +08:00
Antigravity AI 577dcc4fc0 fix: PR review fixes — restore viewport export, revert schema to PostgreSQL, merge 4 courses, strip content frontmatter 2026-06-28 11:52:35 +08:00
wmj2024 81bf6af044 feat(learn): align seed data with Hermes schema and port Gitea content
- Port full markdown lesson content from Gitea (courses/daily-fiqh-beginner)
  into seed-learn.json module content fields
- Fix quizData format: wrap questions in {questions: [...]} object to match
  LessonReaderPage parseQuizData() expectations
- Add quiz explanations from Gitea quiz.json
- Generate TTS audio for all 5 modules using Edge TTS (en-US-AriaNeural)
- Store audio files in public/audio/learn/daily-fiqh-beginner/
- Add audioPath references pointing to /audio/learn/... MP3s

Closes next steps from HERMES_INSTRUCTIONS.md content + audio gap.
2026-06-28 11:52:35 +08:00
wmj2024 fc4ed81e7c fix: align learn schema with existing LearnCourse/LearnModule models
- Remove duplicate Course/Module models (GitHub main already has LearnCourse/LearnModule)
- Add seed-learn.json with Daily Fiqh for Beginners (5 modules)
- Add seed-learn.js using prisma.learnCourse / prisma.learnModule
- Seed includes quizData, keyTakeaway, duration, giteaPath
- Matches existing API routes: /api/learn/courses, /api/learn/tts, /api/learn/progress

TODO:
- Add markdown content to modules (currently content field is null)
- Generate TTS audio files for listen toggle
- Add intermediate/advanced courses
2026-06-28 04:35:08 +08:00