errors.avatar = translate('onboarding.create_organization.avatar.error');
}
- if (name.length > 0 && (name.length < 2 || name.length > 64)) {
+ if (name.length > 300) {
errors.name = translate('onboarding.create_organization.display_name.error');
}
- if (key.length < 2 || key.length > 32 || !/^[a-z0-9][a-z0-9-]*[a-z0-9]$/.test(key)) {
+ if (key.length > 300 || !/^[a-z0-9][a-z0-9-]*[a-z0-9]?$/.test(key)) {
errors.key = translate('onboarding.create_organization.organization_name.error');
}
required={true}
touched={touched.key}
value={values.key}>
- {props => <input autoFocus={true} {...props} />}
+ {props => <input autoFocus={true} maxLength={300} {...props} />}
</OrganizationDetailsInput>
<div className="big-spacer-top">
<ResetButtonLink onClick={this.handleAdditionalClick}>
return organization ? (
<div className="boxed-group-actions display-flex-center">
<AlertSuccessIcon className="spacer-right" />
- <strong>{organization.key}</strong>
+ <strong className="text-limited">{organization.key}</strong>
</div>
) : null;
};
).resolves.toEqual({});
expect(
- instance.handleValidate({ avatar: '', description: '', name: '', key: '', url: '' })
+ instance.handleValidate({
+ avatar: '',
+ description: '',
+ name: '',
+ key: 'x'.repeat(301),
+ url: ''
+ })
).rejects.toEqual({ key: 'onboarding.create_organization.organization_name.error' });
expect(
instance.handleValidate({ avatar: 'bla', description: '', name: '', key: 'foo', url: '' })
).rejects.toEqual({ avatar: 'onboarding.create_organization.avatar.error' });
- expect(
- instance.handleValidate({ avatar: '', description: '', name: 'x', key: 'foo', url: '' })
- ).rejects.toEqual({ name: 'onboarding.create_organization.display_name.error' });
-
expect(
instance.handleValidate({
avatar: '',
description: '',
- name: 'x'.repeat(65),
+ name: 'x'.repeat(301),
key: 'foo',
url: ''
})
organization.description.description=Description of the organization.
organization.edit=Edit Organization
organization.key=Key
-organization.key.description=Key of the organization (2 to 32 characters). All chars must be lower-case letters (a to z), digits or dash (but dash can neither be trailing nor heading). When not specified, the key is computed from the name.
+organization.key.description=Key of the organization (up to 300 characters). All chars must be lower-case letters (a to z), digits or dash (but dash can neither be trailing nor heading). When not specified, the key is computed from the name.
organization.name=Name
-organization.name.description=Name of the organization (2 to 64 characters).
+organization.name.description=Name of the organization (up to 300 characters).
organization.updated=Organization details have been updated.
organization.url=Url
organization.url.description=Url of the homepage of the organization.
onboarding.create_organization.page.header=Create Organization
onboarding.create_organization.page.description=An organization is a space where a team or a whole company can collaborate accross many projects.{break}To analyze a private project you must subscribe your organization to a paid plan. From {price} a month. {more}
onboarding.create_organization.organization_name=Organization Name
-onboarding.create_organization.organization_name.description=2 to 32 characters. All chars must be lower-case letters (a to z), digits or dash (but dash can neither be trailing nor heading). The display name can be specified in the additional info.
+onboarding.create_organization.organization_name.description=Up to 300 characters. All chars must be lower-case letters (a to z), digits or dash (but dash can neither be trailing nor heading). The display name can be specified in the additional info.
onboarding.create_organization.organization_name.error=The provided value doesn't match the expected format.
onboarding.create_organization.organization_name.taken=This name is already taken.
onboarding.create_organization.add_additional_info=Add additional info
onboarding.create_organization.hide_additional_info=Hide additional info
onboarding.create_organization.display_name=Display Name
-onboarding.create_organization.display_name.description=2 to 64 characters
+onboarding.create_organization.display_name.description=Up to 300 characters
onboarding.create_organization.display_name.error=The provided value doesn't match the expected format.
onboarding.create_organization.avatar=Avatar
onboarding.create_organization.avatar.description=Url of a small image that represents the organization (preferably 30px height).