Skip to content

Commit e489990

Browse files
committed
chore(spec): regenerate docs, api-surface and export-origins for grouping orderBy (#25786)
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E1GNboWQRhh5vidwh2hxTY
1 parent d4a9b8f commit e489990

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

‎content/docs/references/ui/component.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ Sort field and direction pair
887887

888888
| Property | Type | Required | Description |
889889
| :--- | :--- | :--- | :--- |
890-
| **fields** | `{ field: string; order?: Enum<'asc' \| 'desc'>; collapsed?: boolean }[]` | ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy` |
890+
| **fields** | `{ field: string; order?: Enum<'asc' \| 'desc'>; orderBy?: string; collapsed?: boolean }[]` | ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy` |
891891

892892
### Nested Shape: `ObjectGridProps.aggregations[number]`
893893

@@ -1037,7 +1037,7 @@ View filter rule
10371037

10381038
| Property | Type | Required | Description |
10391039
| :--- | :--- | :--- | :--- |
1040-
| **fields** | `{ field: string; order?: Enum<'asc' \| 'desc'>; collapsed?: boolean }[]` | ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy` |
1040+
| **fields** | `{ field: string; order?: Enum<'asc' \| 'desc'>; orderBy?: string; collapsed?: boolean }[]` | ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy` |
10411041

10421042
### Nested Shape: `ObjectKanbanProps.conditionalFormatting[number]`
10431043

‎content/docs/references/ui/view.mdx‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -613,14 +613,15 @@ Record grouping configuration — SERVER-SIDE: the set of groups and every numbe
613613

614614
| Property | Type | Required | Description |
615615
| :--- | :--- | :--- | :--- |
616-
| **fields** | `{ field: string; order?: Enum<'asc' \| 'desc'>; collapsed?: boolean }[]` | ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy` |
616+
| **fields** | `{ field: string; order?: Enum<'asc' \| 'desc'>; orderBy?: string; collapsed?: boolean }[]` | ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy` |
617617

618618
### Nested Shape: `GroupingConfig.fields[number]`
619619

620620
| Property | Type | Required | Description |
621621
| :--- | :--- | :--- | :--- |
622622
| **field** | `string` | ✅ | Field name to group by — one `groupBy` column of the group header query; the header row carries its raw stored value (null for the empty group). NO leading or trailing whitespace: the name is compiled into the aggregate query verbatim, so a padded spelling buckets every row into one empty group instead of grouping them. |
623-
| **order** | `Enum<'asc' \| 'desc'>` | optional (default: `"asc"`) | Group sort order — applied by the consumer over the header rows (the aggregate query carries no orderBy) |
623+
| **order** | `Enum<'asc' \| 'desc'>` | optional (default: `"asc"`) | Group sort order — applied by the consumer over the header rows (the aggregate query itself sorts nothing): by the group key, or by the `orderBy` value each header row carries when `orderBy` is set |
624+
| **orderBy** | `string` | optional | Field whose value orders this level's groups, when that is not the grouping field — a field of the same object; default: the grouping field itself, so the groups order by their own key. The group header query then carries, per group, the smallest value of this field for `order: asc` and the largest for `desc` (each group sits where its first row would if the rows were sorted by this field), and the consumer sorts the header rows by it; a group with no value here sorts last in both directions, and equal values fall back to the group key. A numeric, temporal or boolean field: min/max over a string orders by collation, which differs between backends, so the server refuses it |
624625
| **collapsed** | `boolean` | optional (default: `false`) | Collapse groups by default (presentation only) |
625626

626627

@@ -633,7 +634,8 @@ Record grouping configuration — SERVER-SIDE: the set of groups and every numbe
633634
| Property | Type | Required | Description |
634635
| :--- | :--- | :--- | :--- |
635636
| **field** | `string` | ✅ | Field name to group by — one `groupBy` column of the group header query; the header row carries its raw stored value (null for the empty group). NO leading or trailing whitespace: the name is compiled into the aggregate query verbatim, so a padded spelling buckets every row into one empty group instead of grouping them. |
636-
| **order** | `Enum<'asc' \| 'desc'>` | optional (default: `"asc"`) | Group sort order — applied by the consumer over the header rows (the aggregate query carries no orderBy) |
637+
| **order** | `Enum<'asc' \| 'desc'>` | optional (default: `"asc"`) | Group sort order — applied by the consumer over the header rows (the aggregate query itself sorts nothing): by the group key, or by the `orderBy` value each header row carries when `orderBy` is set |
638+
| **orderBy** | `string` | optional | Field whose value orders this level's groups, when that is not the grouping field — a field of the same object; default: the grouping field itself, so the groups order by their own key. The group header query then carries, per group, the smallest value of this field for `order: asc` and the largest for `desc` (each group sits where its first row would if the rows were sorted by this field), and the consumer sorts the header rows by it; a group with no value here sorts last in both directions, and equal values fall back to the group key. A numeric, temporal or boolean field: min/max over a string orders by collation, which differs between backends, so the server refuses it |
637639
| **collapsed** | `boolean` | optional (default: `false`) | Collapse groups by default (presentation only) |
638640

639641

@@ -1018,7 +1020,7 @@ View filter rule
10181020

10191021
| Property | Type | Required | Description |
10201022
| :--- | :--- | :--- | :--- |
1021-
| **fields** | `{ field: string; order?: Enum<'asc' \| 'desc'>; collapsed?: boolean }[]` | ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy` |
1023+
| **fields** | `{ field: string; order?: Enum<'asc' \| 'desc'>; orderBy?: string; collapsed?: boolean }[]` | ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy` |
10221024

10231025
### Nested Shape: `ListView.rowColor`
10241026

@@ -1395,7 +1397,7 @@ View filter rule
13951397

13961398
| Property | Type | Required | Description |
13971399
| :--- | :--- | :--- | :--- |
1398-
| **fields** | `{ field: string; order?: Enum<'asc' \| 'desc'>; collapsed?: boolean }[]` | ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy` |
1400+
| **fields** | `{ field: string; order?: Enum<'asc' \| 'desc'>; orderBy?: string; collapsed?: boolean }[]` | ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy` |
13991401

14001402
### Nested Shape: `ObjectListView.rowColor`
14011403

‎packages/spec/api-surface/ui.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@
548548
"isRecordContextBlockType (function)",
549549
"isViewContainerShaped (function)",
550550
"listViewGroupKeyPredicate (function)",
551+
"listViewGroupOrderColumn (function)",
551552
"misplacedDefaultPageRefusal (function)",
552553
"navItemVisibleDataNeedsDataSource (function)",
553554
"normalizeFilterOperator (function)",

‎packages/spec/export-origins/ui.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@
533533
"isRecordContextBlockType": "src/ui/react-blocks.ts#isRecordContextBlockType (function)",
534534
"isViewContainerShaped": "src/ui/assembled-views.zod.ts#isViewContainerShaped (function)",
535535
"listViewGroupKeyPredicate": "src/ui/view-grouping-query.ts#listViewGroupKeyPredicate (function)",
536+
"listViewGroupOrderColumn": "src/ui/view-grouping-query.ts#listViewGroupOrderColumn (function)",
536537
"misplacedDefaultPageRefusal": "src/ui/default-record-page.ts#misplacedDefaultPageRefusal (function)",
537538
"navItemVisibleDataNeedsDataSource": "src/ui/app.zod.ts#navItemVisibleDataNeedsDataSource (function)",
538539
"normalizeFilterOperator": "src/ui/view.zod.ts#normalizeFilterOperator (function)",

0 commit comments

Comments
 (0)