generated from freeCodeCamp/template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Summary
Chapters and Modules (v9 curriculum structures) only expose dashedName via API. They need human-readable name fields for consistency with other primitives.
Current State
| Primitive | Human-readable name |
|---|---|
| Superblock | ✅ name (PR #39) |
| Block | ✅ name |
| Challenge | ✅ title |
| Chapter | ❌ only dashedName |
| Module | ❌ only dashedName |
Expected Transformation
dashedName: "html" → name: "HTML"
dashedName: "basic-html" → name: "Basic HTML"
dashedName: "html-forms-and-tables" → name: "HTML Forms And Tables"
Implementation Checklist
Follow the Superblock pattern from PR #39:
- Add optional
nametoRawChapterandRawModuleinterfaces - Add required
nametoChapterDataandModuleDatainterfaces - Update
normalizeChapter()andnormalizeModule()to generate names viadashedNameToTitle() - Add
name: String!to GraphQLChapterandModuletypes - Regenerate types
Metadata
Metadata
Assignees
Labels
No labels