Basic import for select in CSV (#6047)

Enables basic support for Select import and field matching in CSV. 
It's not pretty! But it's better than what we had before.
We should iterate on that quickly

<img width="591" alt="Screenshot 2024-06-26 at 18 41 16"
src="https://github.com/twentyhq/twenty/assets/6399865/99f67f39-3f0f-4074-aac6-3200954be08a">
This commit is contained in:
Félix Malfait
2024-06-26 22:37:07 +02:00
committed by GitHub
parent 1eb9c582f3
commit 7b816e500c
5 changed files with 86 additions and 43 deletions

View File

@ -143,6 +143,10 @@ export const ValidationStep = <T extends string>({
(importColumn) =>
(importColumn.type === ColumnType.matched &&
importColumn.value === column.key) ||
(importColumn.type === ColumnType.matchedSelect &&
importColumn.value === column.key) ||
(importColumn.type === ColumnType.matchedSelectOptions &&
importColumn.value === column.key) ||
column.key === 'select-row',
).length > 0;