ID:WORK-115Status:ready
Migrate community package postTransform uses to declarative config
With WORK-110 through WORK-114 complete, convert the 5 postTransform uses identified in SPEC-033 to their declarative equivalents. Validate identical HTML output before and after each migration.
Priority:mediumComplexity:moderateMilestone:v1.0.0Source:SPEC-033
Acceptance Criteria
- Beat rune (
runes/storytelling/src/config.ts) —postTransformreplaced withvalueMap/mapTargeton the status modifier - ComparisonRow rune (
runes/marketing/src/config.ts) —postTransformreplaced withvalueMap/mapTarget - Testimonial rune (
runes/marketing/src/config.ts) —postTransformreplaced withrepeaton structure entry for star ratings refrakt inspectoutput is identical before and after for each migrated rune- All existing tests pass
- CSS coverage tests pass (no selector regressions)
- The 4 remaining
postTransformuses (genuinely complex cases) are untouched
Approach
- For each rune, capture the current
refrakt inspectoutput as a baseline - Replace the
postTransformwith the equivalent declarative config - Compare inspect output to confirm identical HTML
- Run full test suite after each migration
References
- Structure Slots and Declarative Flexibility (Validation section)
- Add value mapping to modifier config (value mapping — enables Beat, ComparisonRow migration)
- Add repeated element generation to structure entries (repeated elements — enables Testimonial migration)
Relationships
Related
ID:WORK-110Status:done0/7
Add value mapping to modifier config
Priority:highComplexity:simpleMilestone:v1.0.0
ID:WORK-114Status:done0/11
Implement element projection (hide, group, relocate)
Priority:mediumComplexity:complexMilestone:v1.0.0
ID:WORK-113Status:done0/8
Add repeated element generation to structure entries
Priority:mediumComplexity:moderateMilestone:v1.0.0