Select Field Input Menu scrollable and add Select Field in Filter and Sort (#3656)
* - fix Select Option Menu scrollable and added search - add select field in filter and sort operation * Fix lint * Fix post merge * Fix select filter * Fix * Remove duplicated search input * fix turn object into query * Rename search inputs * Remove debounced for options * Simplify option filter * Rename option to MenuItemSelectTag * Fix test * Infer type from field metadata item --------- Co-authored-by: Charles Bochet <charles@twenty.com> Co-authored-by: Thomas Trompette <thomast@twenty.com>
This commit is contained in:
@ -18,6 +18,7 @@ export const formatFieldMetadataItemsAsFilterDefinitions = ({
|
||||
FieldMetadataType.Link,
|
||||
FieldMetadataType.FullName,
|
||||
FieldMetadataType.Relation,
|
||||
FieldMetadataType.Select,
|
||||
FieldMetadataType.Currency,
|
||||
].includes(field.type)
|
||||
) {
|
||||
@ -67,5 +68,7 @@ export const formatFieldMetadataItemAsFilterDefinition = ({
|
||||
? 'TEXT'
|
||||
: field.type === FieldMetadataType.Relation
|
||||
? 'RELATION'
|
||||
: 'TEXT',
|
||||
: field.type === FieldMetadataType.Select
|
||||
? 'SELECT'
|
||||
: 'TEXT',
|
||||
});
|
||||
|
||||
@ -15,6 +15,7 @@ export const formatFieldMetadataItemsAsSortDefinitions = ({
|
||||
FieldMetadataType.Number,
|
||||
FieldMetadataType.Text,
|
||||
FieldMetadataType.Boolean,
|
||||
FieldMetadataType.Select,
|
||||
].includes(field.type)
|
||||
) {
|
||||
return acc;
|
||||
|
||||
Reference in New Issue
Block a user