diff --git a/app/localization/translated/be.json b/app/localization/translated/be.json index d763f3bd8f..e1d9c6ddcf 100644 --- a/app/localization/translated/be.json +++ b/app/localization/translated/be.json @@ -1133,8 +1133,8 @@ "LaunchLevelEntities.launchNumberEntityHint": "Гэты фільтр прымае толькі лічбы.", "LaunchLevelEntities.launchNumberPlaceholder": "Увядзіце нумар", "LaunchLevelEntities.ownerName.placeholder": "Увядзіце імя карыстальніка", - "LaunchMergeModal.launchDescriptionHint": "Description should have size not more than 1024 symbols.", - "LaunchMergeModal.launchNameHint": "Launch name should have size from 1 to 256.", + "LaunchMergeModal.launchDescriptionHint": "Апісанне павінна мець памер не больш за 2048 знакаў", + "LaunchMergeModal.launchNameHint": "Назва запуску павінна мець памер ад 1 да 256", "LaunchStatistics.noDataMessage": "Няма запускаў", "LaunchStatisticsControls.ContentFieldsValidationError": "Абярыце па меншай меры адзін элемент", "LaunchStatisticsControls.CriteriaFieldLabel": "Крытэрыі для віджэта", diff --git a/app/localization/translated/es.json b/app/localization/translated/es.json index f8c8b7b04e..db66b0bea4 100644 --- a/app/localization/translated/es.json +++ b/app/localization/translated/es.json @@ -1133,7 +1133,7 @@ "LaunchLevelEntities.launchNumberEntityHint": "Este filtro solo acepta números", "LaunchLevelEntities.launchNumberPlaceholder": "Ingrese el número", "LaunchLevelEntities.ownerName.placeholder": "Ingrese el nombre de usuario", - "LaunchMergeModal.launchDescriptionHint": "La descripción debe tener como máximo 1024 símbolos.", + "LaunchMergeModal.launchDescriptionHint": "La descripción debe tener como máximo 2048 símbolos.", "LaunchMergeModal.launchNameHint": "El nombre de la ejecución debe tener entre 1 y 256 caracteres.", "LaunchStatistics.noDataMessage": "No hay ejecuciones", "LaunchStatisticsControls.ContentFieldsValidationError": "Debe seleccionar al menos un elemento", @@ -2220,4 +2220,4 @@ "usersGrid.roleNonAdmin": "No Admin", "usersGrid.type": "Tipo", "usersGrid.user": "Usuario" -} \ No newline at end of file +} diff --git a/app/localization/translated/ru.json b/app/localization/translated/ru.json index 7515d12e42..89a544d2de 100644 --- a/app/localization/translated/ru.json +++ b/app/localization/translated/ru.json @@ -1133,7 +1133,7 @@ "LaunchLevelEntities.launchNumberEntityHint": "Этот фильтр принимает только цифры.", "LaunchLevelEntities.launchNumberPlaceholder": "Введите номер", "LaunchLevelEntities.ownerName.placeholder": "Введите имя пользователя", - "LaunchMergeModal.launchDescriptionHint": "Description should have size not more than 1024 symbols.", + "LaunchMergeModal.launchDescriptionHint": "Описание должно иметь размер не более 2048 символов", "LaunchMergeModal.launchNameHint": "Имя запуска должно быть длиной от 1 до 256.", "LaunchStatistics.noDataMessage": "Нет запусков", "LaunchStatisticsControls.ContentFieldsValidationError": "Необходимо выбрать минимум один элемент", diff --git a/app/localization/translated/uk.json b/app/localization/translated/uk.json index 852a002a4a..1245114387 100644 --- a/app/localization/translated/uk.json +++ b/app/localization/translated/uk.json @@ -1133,8 +1133,8 @@ "LaunchLevelEntities.launchNumberEntityHint": "Цей фільтр приймає тільки цифри.", "LaunchLevelEntities.launchNumberPlaceholder": "Введіть номер", "LaunchLevelEntities.ownerName.placeholder": "Введіть ім’я користувача", - "LaunchMergeModal.launchDescriptionHint": "Description should have size not more than 1024 symbols.", - "LaunchMergeModal.launchNameHint": "Launch name should have size from 1 to 256.", + "LaunchMergeModal.launchDescriptionHint": "Опис повинен мати розмір не більше 2048 символів", + "LaunchMergeModal.launchNameHint": "Назва запуску повинна мати розмір від 1 до 256", "LaunchStatistics.noDataMessage": "Запусків Немає", "LaunchStatisticsControls.ContentFieldsValidationError": "Потрібно вибрати принаймні один елемент", "LaunchStatisticsControls.CriteriaFieldLabel": "Критерії для віджету", diff --git a/app/localization/translated/zh.json b/app/localization/translated/zh.json index a7c2027081..871395b4e2 100644 --- a/app/localization/translated/zh.json +++ b/app/localization/translated/zh.json @@ -1133,7 +1133,7 @@ "LaunchLevelEntities.launchNumberEntityHint": "此过滤器仅接受数字", "LaunchLevelEntities.launchNumberPlaceholder": "请输入编号", "LaunchLevelEntities.ownerName.placeholder": "请输入所有者姓名", - "LaunchMergeModal.launchDescriptionHint": "描述文本的长度应不超过1024个字符", + "LaunchMergeModal.launchDescriptionHint": "描述文本的长度应不超过2048个字符", "LaunchMergeModal.launchNameHint": "测试任务名字的取值范围是1~256。", "LaunchStatistics.noDataMessage": "没有运行测试任务", "LaunchStatisticsControls.ContentFieldsValidationError": "您必须至少选择一项测试项", @@ -2220,4 +2220,4 @@ "usersGrid.roleNonAdmin": "非管理", "usersGrid.type": "类型", "usersGrid.user": "登录" -} \ No newline at end of file +} diff --git a/app/src/common/utils/validation/validate.js b/app/src/common/utils/validation/validate.js index 4fed6cc6d0..02d8086714 100644 --- a/app/src/common/utils/validation/validate.js +++ b/app/src/common/utils/validation/validate.js @@ -39,7 +39,7 @@ export const userName = composeValidators([ ]); export const filterName = composeValidators([isNotEmpty, lengthRange(3, 128)]); export const launchName = composeValidators([isNotEmpty, maxLength(256)]); -export const launchDescription = maxLength(1024); +export const launchDescription = maxLength(2048); export const dashboardName = composeValidators([isNotEmpty, lengthRange(3, 128)]); export const createDashboardNameUniqueValidator = (dashboardItems, dashboardItem) => (name) => !dashboardItems.some((dashboard) => dashboard.name === name && dashboard.id !== dashboardItem.id); diff --git a/app/src/components/fields/fieldErrorHint/fieldErrorHint.jsx b/app/src/components/fields/fieldErrorHint/fieldErrorHint.jsx index 0a9a5f3d67..0cd87b61ad 100644 --- a/app/src/components/fields/fieldErrorHint/fieldErrorHint.jsx +++ b/app/src/components/fields/fieldErrorHint/fieldErrorHint.jsx @@ -68,7 +68,7 @@ const messages = defineMessages({ }, launchDescriptionHint: { id: 'LaunchMergeModal.launchDescriptionHint', - defaultMessage: 'Description should have size not more than 1024 symbols.', + defaultMessage: 'Description should have size not more than 2048 symbols.', }, dashboardNameHint: { id: 'AddEditDashboard.dashboardNameHint', diff --git a/app/src/pages/inside/launchesPage/modals/launchMergeModal/launchMergeModal.jsx b/app/src/pages/inside/launchesPage/modals/launchMergeModal/launchMergeModal.jsx index 033aec0c57..445fa1dfdd 100644 --- a/app/src/pages/inside/launchesPage/modals/launchMergeModal/launchMergeModal.jsx +++ b/app/src/pages/inside/launchesPage/modals/launchMergeModal/launchMergeModal.jsx @@ -335,7 +335,7 @@ export class LaunchMergeModal extends Component { label={intl.formatMessage(messages.launchDescriptionLabel)} labelWidth={FIELD_LABEL_WIDTH} > - +