Display field for aggregates
Auto-generated from the source archive. Do not edit by hand — rerun
catalyst-changelog-syncinstead.
What changed
Section titled “What changed”- New
front.displayFieldattribute names which property holds the human-readable label. Defaults to'name'. Used by list delete toasts and FK column accessors. - New
front.templateDisplayFieldattribute composes multi-field labels via{fieldName}interpolation, e.g.'{code} - {name}'. Falls back todisplayFieldwhen unset. - FK column accessors stop hardcoding
target.name— they resolve the target’sdisplayFieldcross-schema, so an FK to an aggregate displaying byemailnow readstarget.email.
Why it matters
Section titled “Why it matters”For aggregates without a name property — iam/account displays by email, for example — the generated list and FK columns no longer fail with TS2339 property 'name' does not exist. Just declare front.displayField: email in the YAML and regenerate. Aggregates that do have a name and don’t declare anything emit byte-identical code, so the upgrade is zero-risk for the common case. The templateDisplayField opens the door to composite labels ('{code} - {name}') for aggregates whose identity is not a single field. The cross-repo aurora-1.4.json schema bumps to register both new attributes so YAML validation also picks them up.