Connect - Relation on FE Importer (#13213)

Done : 
- Relation connect on FE Importer
- Remove templating on SpreadsheetMatchedColumn type
- Remove useless files on import
- Remove AvailableFieldsForImport type + Update SpreadsheetImportField
type and SpreadsheetImportFieldOption


To test : 
- Try import opportunities on Apple wk 
[using this
file](https://github.com/user-attachments/files/21233720/Test.import.-.opportunities-sample.csv)


closes : https://github.com/twentyhq/core-team-issues/issues/1090
This commit is contained in:
Etienne
2025-07-18 21:43:16 +02:00
committed by GitHub
parent ae04cc9e6c
commit cc71394863
90 changed files with 1615 additions and 1195 deletions

View File

@ -3,10 +3,10 @@ import uniqBy from 'lodash.uniqby';
import { MatchColumnsStepProps } from '@/spreadsheet-import/steps/components/MatchColumnsStep/MatchColumnsStep';
import { SpreadsheetMatchedOptions } from '@/spreadsheet-import/types/SpreadsheetMatchedOptions';
export const uniqueEntries = <T extends string>(
export const uniqueEntries = (
data: MatchColumnsStepProps['data'],
index: number,
): Partial<SpreadsheetMatchedOptions<T>>[] =>
): Partial<SpreadsheetMatchedOptions>[] =>
uniqBy(
data.map((row) => ({ entry: row[index] })),
'entry',