ID:WORK-059Status:done
Metadata Dimensions on StructureEntry
Priority:highComplexity:moderateMilestone:v0.9.0Source:SPEC-024
e900a90f262d7b4954888a129a9ea333007Add three semantic metadata fields to the StructureEntry interface: metaType, metaRank, and sentimentMap. The identity transform reads these from rune configs and emits data-meta-type, data-meta-rank, and data-meta-sentiment attributes on generated badge elements. This is the foundation that enables themes to style every metadata badge generically with ~18 CSS rules.
StructureEntry in packages/transform/src/types.ts gains metaType, metaRank, and sentimentMap optional fieldsdata-meta-type when metaType is present on a structure entry childdata-meta-rank when metaRank is presentsentimentMap, emitting data-meta-sentiment when a match existsrefrakt inspect output shows the new data attributes on badge elementspackages/transform/test/ verify metadata attribute emission for: status with sentiment, category without sentiment, temporal, quantity, tag, and id typesStructureEntry interface in packages/transform/src/types.ts with the three optional fieldspackages/transform/src/engine.ts, in the code path that processes structure entry children, add logic to: read metaType and emit data-meta-type, read metaRank and emit data-meta-rank, look up the current modifier value in sentimentMap and emit data-meta-sentiment if founddata-{modifier-name} attributes continue to be emitted as before — metadata attributes are additive