ID:WORK-115Status:readyPriority:mediumComplexity:moderateMilestone:v1.0.0
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.
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
- SPEC-033 (Validation section)
- WORK-110 (value mapping — enables Beat, ComparisonRow migration)
- WORK-113 (repeated elements — enables Testimonial migration)