From 70919d184da3a16688c8fd52b71d896b58c98d80 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Sat, 1 Feb 2025 04:09:32 +0530 Subject: [PATCH] fix: Update min-length validation for the contact to support names with single characters (#10813) This PR updates the contact form validation to allow a minimum length of one character for the first name. Fixes https://linear.app/chatwoot/issue/CW-3993/update-the-validation-on-contact-form-to-support-just-one-character ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) ## How Has This Been Tested? https://github.com/user-attachments/assets/2b95af80-ee70-4f4b-8d0d-b01779db9d94 ## Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [ ] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules --- .../components-next/Contacts/ContactsForm/ContactsForm.vue | 4 ++-- .../Contacts/ContactsForm/CreateNewContactDialog.vue | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/javascript/dashboard/components-next/Contacts/ContactsForm/ContactsForm.vue b/app/javascript/dashboard/components-next/Contacts/ContactsForm/ContactsForm.vue index 3f3bffdf5..4afca6269 100644 --- a/app/javascript/dashboard/components-next/Contacts/ContactsForm/ContactsForm.vue +++ b/app/javascript/dashboard/components-next/Contacts/ContactsForm/ContactsForm.vue @@ -1,7 +1,7 @@