19 lines
879 B
Markdown
19 lines
879 B
Markdown
---
|
|
quick_id: 261007-qgx
|
|
status: complete
|
|
commits: [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.
|