3886 - Shortcut Sort/Filter (#3901)

Closes #3886

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
Kanav Arora
2024-04-04 04:13:44 +05:30
committed by GitHub
parent b65d82c274
commit bcf5268f7f
22 changed files with 473 additions and 63 deletions

View File

@ -53,10 +53,10 @@ export const formatFieldMetadataItemAsFilterDefinition = ({
field.toRelationMetadata?.fromObjectMetadata.namePlural,
relationObjectMetadataNameSingular:
field.toRelationMetadata?.fromObjectMetadata.nameSingular,
type: getFilterType(field.type),
type: getFilterTypeFromFieldType(field.type),
});
const getFilterType = (fieldType: FieldMetadataType) => {
export const getFilterTypeFromFieldType = (fieldType: FieldMetadataType) => {
switch (fieldType) {
case FieldMetadataType.DateTime:
return 'DATE_TIME';