You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(spec): retire object-grid's legacy defaultSort fallback (#11805, ADR-0049)
Tombstone ObjectGridPropsSchema.defaultSort with retiredKey() — the legacy
single-sort second spelling of sort, read only when sort was absent (measured
at the .objectui-sha pin 190fbd01d, plugin-grid/src/ObjectGrid.tsx:1244-1246
and :2847). Register ui/ObjectGridProps:defaultSort in RETIRED_KEYS_BY_MAJOR[18],
add the D2 conversion object-grid-default-sort-removed (wrap-and-rename to
sort: [pair] when sort is absent; pure strip when sort is present) wired into
the step-18 chain, regenerate the authorable surface ([RETIRED] mark) and the
ui/component reference, and pin the refusal + no-materialize + surviving-sort
behaviour in component.test.ts. Changeset ships minor per the maintainer's
#11805 ruling (launch-window convention).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NDGG54XF5gbTLdQzCtnaVV
* merge origin/main (os-regen artifacts taken from main; regeneration follows)
* chore(spec): regenerate artifacts after merging origin/main (post-#12191)
gen:migration-registry (byte-identical — main's generated regions already
carried the #12191 semantic entries), rebuild restoring the
ui/ObjectGridProps:defaultSort [RETIRED] surface mark, gen:docs restoring the
retired reference row. Sibling entries and implementation bodies asserted
present (field-max/min-length semantic entries, object editMode, minLength).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NDGG54XF5gbTLdQzCtnaVV
---------
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: content/docs/references/ui/component.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -275,7 +275,7 @@ const result = AIChatWindowProps.parse(data);
275
275
|**filter**|`any`| optional | Base query filter (ObjectQL filter array/AST) — lowered to the wire `$filter`. THE key #7750 misspelled as plural |
276
276
|**defaultFilters**|`any`| optional | Legacy base-filter fallback, read only when `filter` is absent. Prefer `filter`|
277
277
|**sort**|`any`| optional | Initial sort (array of `{ field, order }`) |
278
-
|**defaultSort**|`any`| optional |Legacy single-sort fallback (`{ field, order }`), read only when `sort`is absent. Prefer `sort`|
278
+
|**defaultSort**|`never`| optional |[REMOVED]`object-grid` property `defaultSort` was removed in @objectstack/spec 17 (#11805, ADR-0049) — it was the legacy second spelling of `sort`: a single `{ field, order }` pair read only when `sort`was absent, so one intent had two spellings and a grid authoring both silently ignored this one. Rename the key to `sort` and wrap the value in an array (`defaultSort: { field, order }` becomes `sort: [{ field, order }]`); the pair itself is unchanged. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; apply them by hand.|
0 commit comments