Support Emails and Phones in Spreadsheet import (#7312)

This is a fast follow on v0.30 release:
- removing phone (deprecated PHONE field type) search from command menu.
I could have replaced it by a phone (PHONES field type) search but as we
are about to release the new search in v0.31 it does not seem to worse
the investment
- supporting EMAILS and PHONES field types in spreadsheet import

Note: while working on Spreadsheet import I found the code quite complex
and with areas having duplicated code. It does not seem to be a high
priority as I was able to maintain it at a low cost but it's not a
peaceful code surface to navigate!
This commit is contained in:
Charles Bochet
2024-09-28 16:11:10 +02:00
committed by GitHub
parent e4959ad534
commit c2a8cd0a2f
5 changed files with 91 additions and 6 deletions

View File

@ -179,7 +179,6 @@ export const CommandMenu = () => {
'emails',
['primaryEmail'],
),
{ phone: { ilike: `%${commandMenuSearch}%` } },
])
: undefined,
limit: 3,