Files
summercms/.planning/quick/261007-qgx-admin-record-heading-uses-translatable-m/261007-qgx-SUMMARY.md

879 B

quick_id, status, commits
quick_id status commits
261007-qgx complete
a714bb4
b6b194e

Quick 261007-qgx: admin record heading uses translatable (mltext) fields

  • recordDisplayName(fields, values, enabledLocales) in admin/src/components/form/formState.ts: the first text or ML field in schema order names the record; an ML value reads the default (first enabled) locale, then the first non-empty locale, else '' (the generic message stays).
  • FormView and PreviewView both use it with schemaEnabledLocales(schema.meta); plain text behaviour is unchanged.
  • Tests: five helper cases in formState.test.ts; FormView and PreviewView cases for an mltext first field (heading and record crumb). Both view tests fail without the fix. Admin suite 1090/1090, go vet and go test ./... green.
  • Embedded admin shell rebuilt (modules/boardwalk/dist), shipped as v0.1.12.