Implemented LINKS and EMAILS sub-field fitering (#11984)
This PR introduces LINKS and EMAILS sub-field filtering. It's mainly about the implementation of secondaryLinks and additionalEmails sub-fields, which are treated like additionalPhones. There's also a refactor on the computeViewRecordGqlOperationFilter, a big file that becomes very difficult to read and maintain. This PR breaks it down into multiple smaller utils. There's still work to be done to clean it as it is a central part of the record filter module, this PR lays the foundation.
This commit is contained in:
@ -56,7 +56,7 @@ export const SETTINGS_COMPOSITE_FIELD_TYPE_CONFIGS = {
|
||||
label: 'Emails',
|
||||
Icon: IllustrationIconMail,
|
||||
subFields: ['primaryEmail', 'additionalEmails'],
|
||||
filterableSubFields: ['primaryEmail'],
|
||||
filterableSubFields: ['primaryEmail', 'additionalEmails'],
|
||||
labelBySubField: {
|
||||
primaryEmail: 'Primary Email',
|
||||
additionalEmails: 'Additional Emails',
|
||||
@ -81,7 +81,11 @@ export const SETTINGS_COMPOSITE_FIELD_TYPE_CONFIGS = {
|
||||
},
|
||||
category: 'Basic',
|
||||
subFields: ['primaryLinkUrl', 'primaryLinkLabel', 'secondaryLinks'],
|
||||
filterableSubFields: ['primaryLinkUrl', 'primaryLinkLabel'],
|
||||
filterableSubFields: [
|
||||
'primaryLinkUrl',
|
||||
'primaryLinkLabel',
|
||||
'secondaryLinks',
|
||||
],
|
||||
labelBySubField: {
|
||||
primaryLinkUrl: 'Link URL',
|
||||
primaryLinkLabel: 'Link Label',
|
||||
|
||||
Reference in New Issue
Block a user