Skip to content

Display field for aggregates

Auto-generated from the source archive. Do not edit by hand — rerun catalyst-changelog-sync instead.

  • New front.displayField attribute names which property holds the human-readable label. Defaults to 'name'. Used by list delete toasts and FK column accessors.
  • New front.templateDisplayField attribute composes multi-field labels via {fieldName} interpolation, e.g. '{code} - {name}'. Falls back to displayField when unset.
  • FK column accessors stop hardcoding target.name — they resolve the target’s displayField cross-schema, so an FK to an aggregate displaying by email now reads target.email.

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.


View original proposal