Add v1 polish: LessonDetail, light theme, renderItem, OG images, prerequisite graph#16
Merged
Merged
Conversation
…equisite graph LessonDetail: new React component renders lesson body + exercises + rubric light theme: 4th theme variant for LearningPath and ProgressTracker (indigo/pink/emerald) renderItem: render-prop on LearningPath and ProgressTracker for headless usage Lesson prerequisite graph: sequential prerequisiteIds[] on every Lesson; ProgressTracker locks lessons whose prerequisites are not yet effectively complete opengraph-image: dynamic ImageResponse for /roles/[slug] (warm) and /tools/[slug] (dark) LessonPreview in demo now renders real lesson content from generateLessonContent() DemoFlow updated with new roles (Sales, Customer Success, Finance) and tools (Windsurf, etc.) 33 core tests, 39 react tests — all passing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<LessonDetail />: new React component — renders lesson body (2 paragraphs), exercises (prompt + expected output + reviewer note), and rubric (excellent / acceptable / needs work). UsesgenerateLessonContent()internally. Supports all 4 themes.lighttheme: 4th theme variant forLearningPath,ProgressTracker, andLessonDetail— indigo/pink/emerald palette on white.renderItemrender-prop: added to bothLearningPathandProgressTracker. When provided, called per-lesson instead of<LessonCard>— enables fully custom lesson rendering without forking the components.prerequisiteIds: string[]added toLessonSchema.generateLearningPathwires sequential prerequisites (each lesson depends on the previous).ProgressTrackerusesisEffectiveDoneto lock lessons whose prerequisites aren't effectively complete — including cascade-locking on un-complete.ImageResponsefor/roles/[slug](warm paper background) and/tools/[slug](dark brand background). Edge runtime.LessonPreview: now renders real lesson content (title, body, first exercise, rubric hint) fromgenerateLessonContent()rather than static hardcoded text. Lesson shown reflects the user's role, tools, goal, and level choices.Test plan
🤖 Generated with Claude Code