fix: rewrite colors and box-model tasks to describe outcomes instead of answers #10

Merged
libretech merged 2 commits from 009-colors-boxmodel-tasks into main 2026-03-29 00:01:17 +01:00
Owner

Summary

  • Rewrites task descriptions in Colors (03-colors.json) and Box Model (01-box-model.json) modules to describe desired outcomes instead of giving copy-paste answers
  • Updates validations to accept multiple valid solutions (e.g., any warm color instead of only coral)
  • Applies the same changes across all localized lesson files (ar, de, es, pl, uk)
  • Follows the established pattern from the flexbox task rewrite (PR #5)
  • Adds spec, plan, and task documents for the issue

Related to #9

Changes

  • lessons/03-colors.json — Rewrote color task descriptions and expanded validations to accept multiple named colors
  • lessons/01-box-model.json — Rewrote box-model task descriptions to describe outcomes rather than dictate exact values
  • lessons/{ar,de,es,pl,uk}/01-box-model.json — Localized versions updated to match
  • specs/009-colors-boxmodel-tasks/ — Added spec, plan, and tasks documents

Test Plan

  • Verified lesson JSON files are valid and follow the module schema
  • Confirmed task descriptions no longer contain copy-paste answers
  • Checked that validations accept the intended range of valid solutions
## Summary - Rewrites task descriptions in Colors (03-colors.json) and Box Model (01-box-model.json) modules to describe desired outcomes instead of giving copy-paste answers - Updates validations to accept multiple valid solutions (e.g., any warm color instead of only `coral`) - Applies the same changes across all localized lesson files (ar, de, es, pl, uk) - Follows the established pattern from the flexbox task rewrite (PR #5) - Adds spec, plan, and task documents for the issue Related to #9 ## Changes - `lessons/03-colors.json` — Rewrote color task descriptions and expanded validations to accept multiple named colors - `lessons/01-box-model.json` — Rewrote box-model task descriptions to describe outcomes rather than dictate exact values - `lessons/{ar,de,es,pl,uk}/01-box-model.json` — Localized versions updated to match - `specs/009-colors-boxmodel-tasks/` — Added spec, plan, and tasks documents ## Test Plan - Verified lesson JSON files are valid and follow the module schema - Confirmed task descriptions no longer contain copy-paste answers - Checked that validations accept the intended range of valid solutions
libretech added 2 commits 2026-03-28 23:58:19 +01:00
Rewrite task text in Colors (4 lessons) and Box Model (8 lessons x 6
locales) to describe visual outcomes instead of giving copy-paste CSS
answers. Colors validations changed from property_value to regex
accepting multiple valid named colors per lesson.
libretech merged commit 00e9bd18e5 into main 2026-03-29 00:01:17 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: public/code-crispies#10
No description provided.