Conversation
…nce, sanitize changelog
… escape, a11y, context menu
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
Milestone 3: adds a complete lesson and challenge system to WeCode. Users can follow guided lessons (files locked, checkpoints validated in real time) and attempt free-form challenges (files editable, pass/fail checkpoints). The existing IDE shell is reused via a React context provider — project mode is untouched.
Ships with 1 lesson ("La structure d'une page HTML", 5 checkpoints) and 1 challenge ("Crée une page simple", 3 checkpoints) as proof of concept.
What changed
User-facing
src/changelog.md.Internal
src/lessons/validation/): 16 rule types as a discriminated union, 6 implemented (element-exists, file-contains, file-not-contains, css-property, nesting, composite), pure functions testable under Node. Unimplemented types warn at runtime.src/lessons/data/with starter files, steps, paragraphs and checkpoint definitions.useLessonStore(Zustand): manages active lesson, checkpoint states, start/complete/reset/exit lifecycle. CallssyncVfsNowon start so the preview iframe loads immediately.useHomeStore(Zustand): tab routing for the Home rail.LessonProvider(React context): wraps IdeShell in lesson mode, wires VFS change events to the validation engine with 300 ms debounce, persists completion viamarkLessonCompleted.LessonDockrewritten to read from context (mock deleted). CSS matches the Claude Design handoff. Dock-head is a semantic<button>witharia-expanded.fileOpsLocked, Toolbar exits lesson, StatusBar shows progress, shortcuts work in lesson view (Ctrl+N blocked).