Custom object import csv (#3756)

* poc custom object import csv

* fix fullname

* lint

* add relation Ids, fix label full name, add simple test

* mock missing fields?

* - fix test

* validate uuid, fix key in column dropdown, don't save non set composite fields, allow only import relations where toRelationMetadata
This commit is contained in:
brendanlaschke
2024-02-06 16:22:39 +01:00
committed by GitHub
parent 0096e60489
commit 7b8fffc3b8
13 changed files with 241 additions and 663 deletions

View File

@ -129,9 +129,8 @@ export const MatchColumnSelect = ({
<DropdownMenuSeparator />
<DropdownMenuItemsContainer hasMaxHeight>
{options?.map((option) => (
<>
<React.Fragment key={option.label}>
<MenuItemSelect
key={option.label}
selected={value?.label === option.label}
onClick={() => handleChange(option)}
disabled={
@ -152,9 +151,11 @@ export const MatchColumnSelect = ({
/>,
document.body,
)}
</>
</React.Fragment>
))}
{options?.length === 0 && <MenuItem text="No result" />}
{options?.length === 0 && (
<MenuItem key="No result" text="No result" />
)}
</DropdownMenuItemsContainer>
</DropdownMenu>
</StyledFloatingDropdown>,