Convert Module 05 to interactive autograded workspace - #1
Open
IshmaelRogers wants to merge 2 commits into
Open
IshmaelRogers wants to merge 2 commits into
IshmaelRogers wants to merge 2 commits into
Conversation
Replace the LMS lesson markdown with a clone-implement-test starter workspace mirroring Module 04: one root toolchain (Vitest + jsdom + Testing Library, strict TypeScript) and 13 self-contained labs plus a capstone, each with a README brief, src/ starter (// TODOs), and tests/ spec. The tests are the spec; no answer keys are shipped. scripts/grade.mjs groups by exercise folder and gates on a project-wide strict type-check; the Autograde workflow reports the score on every push/PR. Verified: stubs score 31/94 (RED, exit 1); reference solutions score 94/94 (GREEN, exit 0, type-check clean).
Forge SWEXP — Module 05 autogradeScore: 31/94 tests (33%) · Strict type-check: ✅ clean
Keep going — open each exercise folder, implement the |
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.
What this does
Converts the Module 05 (Frontend Engineering — React/Next.js) course repo from LMS lesson markdown into a clone → implement →
npm teststarter workspace, following the approved Module 04 template.Structure
@testing-library/react/jest-dom/user-event, strict TypeScript (react-jsx,strict,noUncheckedIndexedAccess),vitest.setup.tsimporting jest-dom, andscripts/grade.mjsthat groups tests by exercise folder and gates on a project-wide strict type-check (tsc --noEmit -p tsconfig.json)..github/workflows/autograde.yml): runsnpm ci+npm run gradeon every push/PR, posts the score to the run summary, and comments it on PRs.README.md(brief),src/(starter with// TODOs), andtests/(the spec). No answer keys shipped.Exercises
labs/lab-00-setupBadge(tone union) +*.test-d.tslabs/lab-01-componentstoneFor,OrderCard,OrderList(data-driven, stable keys)labs/lab-02-statereducer+ derivedvisibleOrderslabs/lab-03-effectsdebounceReducer+useDebouncedValue(fake-timer cleanup)labs/lab-04-global-stateThemeProvider+ guardeduseTheme(throws outside provider)labs/lab-05-app-routerparseOrderParams+ navisActivemodellabs/lab-06-server-clientrenderLocationdecision + controlledStatusFilterleaflabs/lab-07-dataisOrderguard +getOrdersboundary fetch (injected fetch)labs/lab-08-design-systemButton(forwards native props) +*.test-d.tslabs/lab-09-formsvalidate+submitReducer+ accessibleOrderFormlabs/lab-10-responsivematches+useMediaQuery(matchMedia stub, cleanup)labs/lab-11-a11ynextFocusIndex+ accessibleIconButtonlabs/lab-12-performanceselectVisibleSorted+ memoizeduseVisibleSortedassignments/capstoneStatusBadgeRemoved the LMS content (
Lesson_*.md, guides, syllabus, flat lab/assignment briefs); keptresources/,.devcontainer/, and the submission templates.Verification
*.test.ts/.tsx+ type-level*.test-d.ts).node scripts/grade.mjs→ 31/94 (33%), exit 1 (RED).Notes on autogradability
Browser-/server-only deliverables (App Router file conventions, the rendered responsive/a11y passes, the manual keyboard walkthrough, Lighthouse/Profiler measurements) can't run headless, so each affected lab extracts its testable core (pure logic, a typed component/hook, or a decision model) for the autograder and routes the rest to the LMS engineering notebook via its README. Every lab — including the inherently app-centric ones (05, 06, 10, 11) — has a meaningful src + ≥1 test.