ID:WORK-081Status:donePriority:lowComplexity:trivial
Consolidate Character Transform to Single Code Path
Summary
The Character rune has two full createComponentRenderable calls in a hasSections / else branch, differing only in one property and one ref. Merge them into a single call using conditional spreading.
Acceptance Criteria
- Character transform has exactly one
createComponentRenderablecall - Conditional
hasSectionslogic uses spread syntax to vary properties/refs - Identity transform output is unchanged — all existing tests pass
Approach
- Identify the differing properties between the two branches
- Merge into a single call with
...(hasSections ? { key: value } : {}) - Run tests to verify output is identical
References
- SPEC-028 (Standard 5 — Minimize Transform Code Paths)