Put delete button on step footer + add unique fields on upsert action (#15497)

<img width="491" height="823" alt="Capture d’écran 2025-10-31 à 14 54
38"
src="https://github.com/user-attachments/assets/8058a6a3-8a6c-4cdd-93d9-2af71208dc5a"
/>
This commit is contained in:
Thomas Trompette
2025-10-31 17:39:45 +01:00
committed by GitHub
parent d640b93096
commit 5f13e6fcf4
4 changed files with 65 additions and 10 deletions
@@ -10,6 +10,7 @@ import { SELECT_FIELD_INPUT_SELECTABLE_LIST_COMPONENT_INSTANCE_ID } from '@/obje
import { type FieldMultiSelectValue } from '@/object-record/record-field/ui/types/FieldMetadata';
import { MultiSelectDisplay } from '@/ui/field/display/components/MultiSelectDisplay';
import { MultiSelectInput } from '@/ui/field/input/components/MultiSelectInput';
import { InputHint } from '@/ui/input/components/InputHint';
import { InputLabel } from '@/ui/input/components/InputLabel';
import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';
import { OverlayContainer } from '@/ui/layout/overlay/components/OverlayContainer';
@@ -34,6 +35,7 @@ type FormMultiSelectFieldInputProps = {
readonly?: boolean;
placeholder?: string;
testId?: string;
hint?: string;
};
const StyledDisplayModeReadonlyContainer = styled.div`
@@ -82,6 +84,7 @@ export const FormMultiSelectFieldInput = ({
readonly,
placeholder,
testId,
hint,
}: FormMultiSelectFieldInputProps) => {
const instanceId = useId();
const theme = useTheme();
@@ -278,6 +281,7 @@ export const FormMultiSelectFieldInput = ({
/>
)}
</FormFieldInputRowContainer>
{hint ? <InputHint>{hint}</InputHint> : null}
</FormFieldInputContainer>
);
};