Repos moved to public/ on Gitea: public/runner-image (CI image) and public/code-crispies (this repo). Updates workflow image refs, spec hyperlinks, README, and compose tags.
1.7 KiB
1.7 KiB
fix: remove answers from flexbox task descriptions (copy-paste score 95%)
Issue: public/code-crispies#3 State: open Author: libretech Labels: none Complexity: simple
Issue Body
Pedagogy audit: All 6 flexbox exercises give the exact CSS declaration in the task text. Students type without understanding. Rewrite tasks to describe the DESIRED OUTCOME instead of the exact code. Example: 'Add display: flex' → 'The navigation links stack vertically. Make them display side by side.' Accept multiple valid solutions in validations.
Current State
All 6 lessons in lessons/flexbox.json have task descriptions that include the exact CSS declaration students need to type:
| Lesson | Current Task (gives away answer) |
|---|---|
| flexbox-1 | "Add display: flex to .nav" |
| flexbox-2 | "Add gap: 1rem to space out..." |
| flexbox-3 | "setting justify-content: space-between on the nav" |
| flexbox-4 | "Center them vertically with align-items: center" |
| flexbox-5 | "Add flex-wrap: wrap to allow them to wrap" |
| flexbox-6 | "setting flex: 1 on .search" |
Validation error messages also give away answers (e.g., "Set display: flex").
Acceptance Criteria
- All 6 flexbox task descriptions rewritten to describe the desired visual outcome, not the exact CSS code
- Students cannot copy-paste from the task into the editor to pass
- Validation error messages updated to provide hints without revealing the exact declaration
- Where applicable, validations accept multiple valid CSS solutions (e.g.,
flex: 1andflex-grow: 1) - Existing tests continue to pass
- Lesson descriptions (which teach the concepts) remain unchanged