Skip to content

Commit 31cf8be

Browse files
committed
feat(metadata): add filterableFields property to JSON schemas for enhanced user filtering
1 parent 7ffe3d6 commit 31cf8be

4 files changed

Lines changed: 36 additions & 0 deletions

File tree

content/docs/references/ui/view.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ const result = CalendarConfig.parse(data);
176176
| **filter** | `any[]` | optional | Filter criteria (JSON Rules) |
177177
| **sort** | `string \| Object[]` | optional | |
178178
| **searchableFields** | `string[]` | optional | Fields enabled for search |
179+
| **filterableFields** | `string[]` | optional | Fields enabled for end-user filtering in the top bar |
179180
| **resizable** | `boolean` | optional | Enable column resizing |
180181
| **striped** | `boolean` | optional | Striped row styling |
181182
| **bordered** | `boolean` | optional | Show borders |

packages/spec/json-schema/api/GetUiViewResponse.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,13 @@
280280
},
281281
"description": "Fields enabled for search"
282282
},
283+
"filterableFields": {
284+
"type": "array",
285+
"items": {
286+
"type": "string"
287+
},
288+
"description": "Fields enabled for end-user filtering in the top bar"
289+
},
283290
"resizable": {
284291
"type": "boolean",
285292
"description": "Enable column resizing"
@@ -1079,6 +1086,13 @@
10791086
},
10801087
"description": "Fields enabled for search"
10811088
},
1089+
"filterableFields": {
1090+
"type": "array",
1091+
"items": {
1092+
"type": "string"
1093+
},
1094+
"description": "Fields enabled for end-user filtering in the top bar"
1095+
},
10821096
"resizable": {
10831097
"type": "boolean",
10841098
"description": "Enable column resizing"

packages/spec/json-schema/ui/ListView.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,13 @@
277277
},
278278
"description": "Fields enabled for search"
279279
},
280+
"filterableFields": {
281+
"type": "array",
282+
"items": {
283+
"type": "string"
284+
},
285+
"description": "Fields enabled for end-user filtering in the top bar"
286+
},
280287
"resizable": {
281288
"type": "boolean",
282289
"description": "Enable column resizing"

packages/spec/json-schema/ui/View.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,13 @@
280280
},
281281
"description": "Fields enabled for search"
282282
},
283+
"filterableFields": {
284+
"type": "array",
285+
"items": {
286+
"type": "string"
287+
},
288+
"description": "Fields enabled for end-user filtering in the top bar"
289+
},
283290
"resizable": {
284291
"type": "boolean",
285292
"description": "Enable column resizing"
@@ -1079,6 +1086,13 @@
10791086
},
10801087
"description": "Fields enabled for search"
10811088
},
1089+
"filterableFields": {
1090+
"type": "array",
1091+
"items": {
1092+
"type": "string"
1093+
},
1094+
"description": "Fields enabled for end-user filtering in the top bar"
1095+
},
10821096
"resizable": {
10831097
"type": "boolean",
10841098
"description": "Enable column resizing"

0 commit comments

Comments
 (0)