From 2c7ef9b0a4ca46e56e06a5f409dbbf05c545fb2f Mon Sep 17 00:00:00 2001 From: Akansha Sakhre Date: Tue, 11 Feb 2025 07:29:23 +0530 Subject: [PATCH 1/3] updated the version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 39ea07af0..0c3fcbf00 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "glific-frontend", - "version": "6.2.4", + "version": "6.2.5", "private": true, "type": "module", "dependencies": { From 2987f2cae566318fed2450a72095dd54a98f04f7 Mon Sep 17 00:00:00 2001 From: Akansha Sakhre Date: Thu, 13 Feb 2025 06:37:48 +0530 Subject: [PATCH 2/3] increased validation limits --- .../Organization/Onboarding/Steps/PaymentDetails.tsx | 8 +++++--- .../Onboarding/Steps/PlatformDetails.tsx | 2 +- .../Onboarding/Steps/SigningAuthority.tsx | 12 ++++++------ src/i18n/en/en.json | 5 +++-- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/src/containers/Organization/Onboarding/Steps/PaymentDetails.tsx b/src/containers/Organization/Onboarding/Steps/PaymentDetails.tsx index 80512c1ef..a87c11cf2 100644 --- a/src/containers/Organization/Onboarding/Steps/PaymentDetails.tsx +++ b/src/containers/Organization/Onboarding/Steps/PaymentDetails.tsx @@ -27,11 +27,13 @@ export const PaymentDetails = ({ handleStepChange, saveData }: FormStepProps) => const FormSchema = Yup.object().shape({ firstName: Yup.string() .required(t('First name is required.')) - .max(25, t('Please enter not more than 25 characters')), - lastName: Yup.string().required(t('Last name is required.')).max(25, t('Please enter not more than 25 characters')), + .max(100, t('Please enter not more than 100 characters')), + lastName: Yup.string() + .required(t('Last name is required.')) + .max(100, t('Please enter not more than 100 characters')), designation: Yup.string() .required(t('Designation is required.')) - .max(25, t('Please enter not more than 25 characters')), + .max(100, t('Please enter not more than 100 characters')), phone: Yup.string().required(t('Phone number is required.')).min(7, t('Enter a valid phone number.')), email: Yup.string().required(t('Email is required.')).email(t('Enter a valid email.')), }); diff --git a/src/containers/Organization/Onboarding/Steps/PlatformDetails.tsx b/src/containers/Organization/Onboarding/Steps/PlatformDetails.tsx index 8c32fc5b9..294c11578 100644 --- a/src/containers/Organization/Onboarding/Steps/PlatformDetails.tsx +++ b/src/containers/Organization/Onboarding/Steps/PlatformDetails.tsx @@ -26,7 +26,7 @@ export const PlatformDetails = ({ handleStepChange, saveData }: FormStepProps) = const [loading, setLoading] = useState(false); const FormSchema = Yup.object().shape({ - name: Yup.string().required(t('Name is required.')), + name: Yup.string().required(t('Name is required.')).max(250, t('Name cannot be more than 250 characters.')), app_name: Yup.string().required(t('App name is required.')), api_key: Yup.string().required(t('API key is required.')), shortcode: Yup.string() diff --git a/src/containers/Organization/Onboarding/Steps/SigningAuthority.tsx b/src/containers/Organization/Onboarding/Steps/SigningAuthority.tsx index 6d6c60d61..e69201f4e 100644 --- a/src/containers/Organization/Onboarding/Steps/SigningAuthority.tsx +++ b/src/containers/Organization/Onboarding/Steps/SigningAuthority.tsx @@ -36,23 +36,23 @@ export const SigningAuthority = ({ handleStepChange, openReachOutToUs, saveData const FormSchema = Yup.object().shape({ submitterFirstName: Yup.string() .required(t('First name is required.')) - .max(25, t('Please enter not more than 25 characters')), + .max(100, t('Please enter not more than 100 characters')), submitterLastName: Yup.string() .required(t('Last name is required.')) - .max(25, t('Please enter not more than 25 characters')), + .max(100, t('Please enter not more than 100 characters')), submitterEmail: Yup.string().required(t('Email is required.')).email(t('Enter a valid email.')), submitterDesignation: Yup.string() .required('Designation is required.') - .max(25, t('Please enter not more than 25 characters')), + .max(100, t('Please enter not more than 100 characters')), signingAuthorityFirstName: Yup.string() .required(t('First name is required.')) - .max(25, t('Please enter not more than 25 characters')), + .max(100, t('Please enter not more than 100 characters')), signingAuthorityLastName: Yup.string() .required(t('Last name is required.')) - .max(25, t('Please enter not more than 25 characters')), + .max(100, t('Please enter not more than 100 characters')), signingAuthorityDesignation: Yup.string() .required('Designation is required.') - .max(25, t('Please enter not more than 25 characters')), + .max(100, t('Please enter not more than 100 characters')), signingAuthorityEmail: Yup.string().required(t('Email is required.')).email('Enter a valid email.'), permissions: Yup.object({ terms_agreed: Yup.boolean() diff --git a/src/i18n/en/en.json b/src/i18n/en/en.json index 45048b208..15e2641d2 100644 --- a/src/i18n/en/en.json +++ b/src/i18n/en/en.json @@ -485,7 +485,7 @@ "Registered address is required.": "Registered address is required.", "Address should not exceed 300 characters": "Address should not exceed 300 characters", "Current address is required.": "Current address is required.", - "Please enter not more than 25 characters": "Please enter not more than 25 characters", + "Please enter not more than 100 characters": "Please enter not more than 100 characters", "Designation is required.": "Designation is required.", "Phone number is required.": "Phone number is required.", "Enter a valid email.": "Enter a valid email.", @@ -531,5 +531,6 @@ "First name is required.": "First Name is required.", "Last name is required.": "Last name is required.", "Failed": "Failed", - "Members": "Members" + "Members": "Members", + "Name cannot be more than 250 characters.": "Name cannot be more than 250 characters." } From fd11dc8c245d56992392d5fbc970508a22684930 Mon Sep 17 00:00:00 2001 From: Akansha Sakhre Date: Thu, 13 Feb 2025 08:13:13 +0530 Subject: [PATCH 3/3] updated the version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0c3fcbf00..8f04ea7d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "glific-frontend", - "version": "6.2.5", + "version": "6.2.6", "private": true, "type": "module", "dependencies": {