feat: add JavaScript learning section with starter lessons and sidebar section headers #8
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/impl-feature-20260328-200101-ecae"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implementation Result
Feature: JavaScript Learning Section + Sidebar Section Headers
Summary
Added a complete JavaScript learning section to Code Crispies with 3 lesson modules (11 lessons total) and visual section grouping headers in the sidebar navigation.
Changes Made
New Files (3)
lessons/50-js-variables.json- 4 lessons: Constants, Let Variables, Template Literals, Arrayslessons/51-js-dom.json- 4 lessons: querySelector, textContent, Inline Styles, classListlessons/52-js-events.json- 3 lessons: Click Events, Toggle Classes, Input EventsModified Files (17)
schemas/code-crispies-module-schema.json- Added "javascript" to mode enumsrc/config/sections.js- Added javascript section definition + getModuleSection mappingsrc/helpers/router.js- Added "javascript" to SECTIONS arraypackage.json/package-lock.json- Added @codemirror/lang-javascript dependencysrc/config/lessons.js- Imported JS modules, added to all 6 language stores (EN + 5 fallbacks)src/helpers/validator.js- Added validateJavaScriptCode() with contains/not_contains/regexsrc/impl/LessonEngine.js- Added JS mode to renderPreview() and renderExpectedPreview()src/impl/CodeEditor.js- Added javascript() language extension from @codemirror/lang-javascriptsrc/app.js- Added JS modeConfig, sectionContent, footer links, landing progresssrc/index.html- Added JS nav links (header + sidebar), landing page section card, removed JS from "Coming Soon"src/main.css- Added full JavaScript section theming (gold #d4a017) + sidebar-section-header stylessrc/helpers/renderer.js- Added section grouping headers in renderModuleList()tests/unit/sections.test.js- Updated to expect 5 sections, added JavaScript test casestests/unit/lessons.test.js- Added "javascript" to valid modes, JS module ID assertionstests/unit/validator.test.js- Added 6 JavaScript validation test casestests/unit/router.test.js- Added JavaScript section route parsing testTest Results
All 231 tests pass (3 pre-existing skips), 0 failures.
Commit
Branch:
feat/impl-feature-20260328-200101-ecae