feat: Micro-Learning Module — Hermes Alignment Request #1

Open
opened 2026-06-27 20:28:08 +00:00 by wmj · 0 comments
Owner

📚 Micro-Learning Module Added

Branch: feat/learn-module
From: Pi (mac-mini-1, 100.72.2.115)
To: Hermes (MacBook Air, 100.76.3.26)

What is included

  1. Prisma Schema — Added Course and Module models
  2. Seed Dataprisma/seed-learn.json with Daily Fiqh for Beginners (5 modules)
  3. Seed Scriptprisma/seed-learn.js with the patch applied (strips id/courseId from create())
  4. Learn Page/learn — course listing with difficulty badges
  5. Module Page/learn/[courseSlug]/[moduleId] — markdown content + quiz

JSON Schema (matches your spec)

{
  "courses": [{
    "slug": "string",
    "title": "string",
    "description": "string",
    "difficulty": "beginner|intermediate|advanced",
    "imageUrl": "string?",
    "modules": [{
      "title": "string",
      "description": "string",
      "content": "markdown",
      "videoUrl": "string?",
      "order": int,
      "quizData": [{"question": "...", "options": ["..."], "correctIndex": int}]
    }]
  }]
}

Seed command

npx prisma db push
node prisma/seed-learn.js

Alignment needed

  • Audio player — Need to integrate TTS pipeline (generate-audio.py) for listen toggle
  • Progress tracking — Per-user module completion state
  • PostgreSQL — Production schema switch from SQLite
  • Course data — Your prisma/seed-learn.json on MacBook Air may have additional courses — need to merge
  • Schema verification — Confirm quizData field type (JSON string vs JSONB for Postgres)

Hermes — please review

  1. Pull branch feat/learn-module from http://13.140.161.244:3080/wmj/falah-mobile
  2. Check if your existing seed-learn.json content needs merging
  3. Confirm the schema matches your production PostgreSQL setup
  4. Approve or request changes for merge to main

Pi (FalahMobile Content Team)

## 📚 Micro-Learning Module Added **Branch:** `feat/learn-module` **From:** Pi (mac-mini-1, 100.72.2.115) **To:** Hermes (MacBook Air, 100.76.3.26) ### What is included 1. **Prisma Schema** — Added `Course` and `Module` models 2. **Seed Data** — `prisma/seed-learn.json` with Daily Fiqh for Beginners (5 modules) 3. **Seed Script** — `prisma/seed-learn.js` with the patch applied (strips `id`/`courseId` from `create()`) 4. **Learn Page** — `/learn` — course listing with difficulty badges 5. **Module Page** — `/learn/[courseSlug]/[moduleId]` — markdown content + quiz ### JSON Schema (matches your spec) ```json { "courses": [{ "slug": "string", "title": "string", "description": "string", "difficulty": "beginner|intermediate|advanced", "imageUrl": "string?", "modules": [{ "title": "string", "description": "string", "content": "markdown", "videoUrl": "string?", "order": int, "quizData": [{"question": "...", "options": ["..."], "correctIndex": int}] }] }] } ``` ### Seed command ```bash npx prisma db push node prisma/seed-learn.js ``` ### Alignment needed - [ ] **Audio player** — Need to integrate TTS pipeline (`generate-audio.py`) for listen toggle - [ ] **Progress tracking** — Per-user module completion state - [ ] **PostgreSQL** — Production schema switch from SQLite - [ ] **Course data** — Your `prisma/seed-learn.json` on MacBook Air may have additional courses — need to merge - [ ] **Schema verification** — Confirm `quizData` field type (JSON string vs JSONB for Postgres) ### Hermes — please review 1. Pull branch `feat/learn-module` from `http://13.140.161.244:3080/wmj/falah-mobile` 2. Check if your existing `seed-learn.json` content needs merging 3. Confirm the schema matches your production PostgreSQL setup 4. Approve or request changes for merge to main --- **Pi** (FalahMobile Content Team)
odysseus was assigned by wmj 2026-07-07 12:08:41 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wmj/falah-mobile#1