Skip to content

feat(learning): introduce structured learning tracks and progress management - #16

Merged
ashishsinghbora merged 1 commit into
mainfrom
feat/learning-platform-mvp
Oct 30, 2026
Merged

ashishsinghbora merged 1 commit into
mainfrom
feat/learning-platform-mvp

Conversation

@ashishsinghbora

Copy link
Copy Markdown
Contributor

Summary

Implements Stage 4: Learning Platform MVP (Milestone 3) to deliver structured self-paced technical learning, hands-on terminal exercises, internal architecture deep-dives, and practical capstone assignments.

Closes #15

Architectural Invariants & Key Changes

  1. Database Schema & Migrations (drizzle/0007_learning_platform.sql):

    • learning_tracks: Published track metadata, prerequisites, objectives, difficulty, and order.
    • learning_modules: Structured sequential modules linked to tracks.
    • learning_lessons: Detailed lessons with markdown content and time estimates.
    • learning_enrollments: Tracks user enrollment, progress status (enrolled, in_progress, completed), and completion timestamps.
    • lesson_progress: Records per-student lesson completion state.
    • learning_assignments: Capstone assignments with acceptance criteria and submission types (github_pr, terminal_output, text_submission).
    • assignment_submissions: Submissions tracking student work, review status, and mentor feedback.
  2. Curriculum Pilot Content (src/lib/learning/content.ts):

    • Track 1: Linux Fundamentals and Administration (3 modules, 6 detailed lessons with practical POSIX shell exercises, permissions, processes, storage, SSH hardening, and systemd service capstone).
    • Track 2: Git and Professional Open-Source Development (3 modules, 6 detailed lessons covering Git DAG internals, branching, Conventional Commits, interactive rebasing, merge conflict resolution, code reviews, and GitHub Actions CI).
  3. Domain Service (src/lib/learning/service.ts):

    • Idempotent curriculum seeding (seedPilotCurriculum).
    • Track directory listing with completion percentages and lesson counts (listTracks).
    • Track syllabus retrieval (getTrackBySlug).
    • Interactive lesson viewer with sequential previous/next navigation (getLesson).
    • Enrollment and lesson completion toggling (enrollInTrack, toggleLessonProgress).
    • Assignment submission and validation (submitAssignment).
  4. REST APIs & UI:

    • GET /api/learn/tracks
    • POST /api/learn/enroll
    • POST /api/learn/lessons/[id]/progress
    • POST /api/learn/assignments/[id]/submit
    • Pages: /learn, /learn/[trackSlug], /learn/[trackSlug]/[lessonSlug]
    • Custom lightweight Markdown renderer (src/components/MarkdownRenderer.tsx)

Verification

  • Unit & Integration Tests: 94/94 tests passing across 21 test files (npm test).
  • Type Checking: Clean pass with zero errors (npm run typecheck).
  • Linting: Clean pass with zero errors/warnings (npm run lint).
  • Production Build: 23/23 routes compiled successfully (npm run build).

Copilot AI balanced review requested due to automatic review settings October 30, 2026 02:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@ashishsinghbora
ashishsinghbora merged commit 0a60833 into main Oct 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(learning): introduce structured learning tracks and progress management

2 participants