Forbid names above 63 characters to comply with pg identifier limit (#6095)
Fixes #6032. Pg has a char limit on identifiers (= table, columns, enum names) of 63 bytes. Let's limit the metadata names that will be converted to identifiers (objects names, fields names, relation names, enum values) to 63 chars. For the sake of simplicity in the FE we will limit the input length of labels. --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -145,6 +145,7 @@ const TextInputV2Component = (
|
||||
RightIcon,
|
||||
LeftIcon,
|
||||
autoComplete,
|
||||
maxLength,
|
||||
}: TextInputV2ComponentProps,
|
||||
// eslint-disable-next-line @nx/workspace-component-props-naming
|
||||
ref: ForwardedRef<HTMLInputElement>,
|
||||
@ -182,7 +183,15 @@ const TextInputV2Component = (
|
||||
onChange?.(event.target.value);
|
||||
}}
|
||||
onKeyDown={onKeyDown}
|
||||
{...{ autoFocus, disabled, placeholder, required, value, LeftIcon }}
|
||||
{...{
|
||||
autoFocus,
|
||||
disabled,
|
||||
placeholder,
|
||||
required,
|
||||
value,
|
||||
LeftIcon,
|
||||
maxLength,
|
||||
}}
|
||||
/>
|
||||
<StyledTrailingIconContainer>
|
||||
{error && (
|
||||
|
||||
Reference in New Issue
Block a user