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: adds disableGroupBy to fields admin props (#14017)
### What?
Adds a new `disableGroupBy` admin config property for fields to control
their visibility in the list view GroupBy dropdown.
### Why
Previously, the GroupByBuilder was incorrectly using `disableListFilter`
to determine which fields to show in the group-by dropdown.
### How
- Added new `disableGroupBy` property to the field admin config types.
- Updated `GroupByBuilder` to filter fields based on `disableGroupBy`
instead of `disableListFilter`
---
- To see the specific tasks where the Asana app for GitHub is being
used, see below:
- https://app.asana.com/0/0/1211511898438807
Copy file name to clipboardExpand all lines: docs/fields/overview.mdx
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -616,8 +616,9 @@ The following options are available:
616
616
|**`readOnly`**| Setting a field to `readOnly` has no effect on the API whatsoever but disables the admin component's editability to prevent editors from modifying the field's value. |
617
617
|**`disabled`**| If a field is `disabled`, it is completely omitted from the [Admin Panel](../admin/overview) entirely. |
618
618
|**`disableBulkEdit`**| Set `disableBulkEdit` to `true` to prevent fields from appearing in the select options when making edits for multiple documents. Defaults to `true` for UI fields. |
619
-
|**`disableListColumn`**| Set `disableListColumn` to `true` to prevent fields from appearing in the list view column selector. |
620
-
|**`disableListFilter`**| Set `disableListFilter` to `true` to prevent fields from appearing in the list view filter options. |
619
+
|**`disableGroupBy`**| Set `disableGroupBy` to `true` to prevent fields from appearing in the list view groupBy options. Defaults to `false`. |
620
+
|**`disableListColumn`**| Set `disableListColumn` to `true` to prevent fields from appearing in the list view column selector. Defaults to `false`. |
621
+
|**`disableListFilter`**| Set `disableListFilter` to `true` to prevent fields from appearing in the list view filter options. Defaults to `false`. |
621
622
|**`hidden`**| Will transform the field into a `hidden` input type. Its value will still submit with requests in the Admin Panel, but the field itself will not be visible to editors. |
|**`disableListColumn`**| If set to `true`, this image size will not be available as a selectable column in the collection list view. Defaults to `false`. |
214
-
|**`disableListFilter`**| If set to `true`, this image size will not be available as a filter option in the collection list view. Defaults to `false`. |
|**`disableGroupBy`**| If set to `true`, this image size will not be available as a selectable groupBy option in the collection list view. Defaults to `false`. |
215
+
|**`disableListColumn`**| If set to `true`, this image size will not be available as a selectable column in the collection list view. Defaults to `false`. |
216
+
|**`disableListFilter`**| If set to `true`, this image size will not be available as a filter option in the collection list view. Defaults to `false`. |
215
217
216
218
This is useful for hiding large or rarely used image sizes from the list view UI while still keeping them available in the API.
0 commit comments