Problem
In Edit View Config β Columns & Filters β Sort, clicking "Add sort" produces an empty row with no field picker or order dropdown. Users cannot configure default sort at all.
Cause
ListViewSchema.sort is defined as a union wrapping both a legacy string form and the canonical array form. The array definition ends up inside an anyOf branch, but the ObjectUI SchemaForm repeater only reads schema.items at the top level β it finds undefined and renders zero sub-fields.
Suggested fix
Drop the legacy string variant and use the canonical z.array(z.object({ field, order })) directly. The string form was already deprecated in #3373 and its removal was deferred to a separate cycle.
Related
Problem
In Edit View Config β Columns & Filters β Sort, clicking "Add sort" produces an empty row with no field picker or order dropdown. Users cannot configure default sort at all.
Cause
ListViewSchema.sortis defined as a union wrapping both a legacy string form and the canonical array form. The array definition ends up inside ananyOfbranch, but the ObjectUI SchemaForm repeater only readsschema.itemsat the top level β it findsundefinedand renders zero sub-fields.Suggested fix
Drop the legacy string variant and use the canonical
z.array(z.object({ field, order }))directly. The string form was already deprecated in #3373 and its removal was deferred to a separate cycle.Related
anyOfas fallback) but the spec fix is the true root cause