eclipse-tractusx / portal-frontend

Portal Frontend
Apache License 2.0
4 stars 23 forks source link

Company Data Management UI - Input Field Validations #894

Open jjeroch opened 4 days ago

jjeroch commented 4 days ago

Description:

As part of our ongoing efforts to improve the user experience and data integrity in our Company Data Management UI, we need to implement input field validations. This will ensure that the data entered by users conforms to our expected formats and standards.

Task for Frontend Developer:

  1. Audit the Company Data Management UI and create a comprehensive list of all input fields present in the UI.
  2. Document each input field with a brief description of the data it collects.
  3. Submit the list to the Product Owner (PO) for review (within this ticket), to receive the specific validation requirements for each field.

Expected Outcome:

manojava-gk commented 2 days ago

Input fields with pattern used in portal

  1. Address title - removed
  2. Site name - /^(A-Za-zÀ-ÿ-,.'[A-Za-zÀ-ÿ-,.']{1,40} ?)[^ –]{1,40}$/
  3. Street - /^[A-ZÀ-ÿ0-9Śął](([ .'-]|. )?[A-Za-zÀ-ÿ0-9Śął]{1,40}){1,10}$/
  4. Postal code - /^[A-Z0-9-]{1,8}$/
  5. City - /^[A-ZÀ-ÿ0-9Śął](([ .'-]|. )?[A-Za-zÀ-ÿ0-9Śął]{1,40}){1,10}$/
  6. Country code - /^[A-Za-zÀ-ÿ]{2,3}$/
  7. Country identifier - /^[a-zA-Z\d\s]{18}$/