Skip to content

Consistent and transparent phone number handling in customer registration - #1806

Open
dmohns wants to merge 3 commits into
mainfrom
fix-phonenumber-handling-in-mod-address
Open

dmohns wants to merge 3 commits into
mainfrom
fix-phonenumber-handling-in-mod-address

Conversation

@dmohns

@dmohns dmohns commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Brief summary of the change made

This PR implements a range of tiny improvements which, together, should greatly increase the user experience w.r.t phone numbers. For now, this only affect customer modals, so customer registration + address modification modal.

  • Customer Address modification Modal no longer using SWAL for missing City but vee-validate

    Before:
    image

    After:
    image

  • Move PhoneNumber validation to backend. vue-tel-inputs validation mode="international" is too loose. It would allow certain inputs that the backend's validation rejects. For Address Modification modal, nn practise, this means when a phone number is invalid (for the backend) the modal would close and the error shows only in debug.

  • Additionally, exposing much more fine-grained validation from libphonenumber. For example a number like +49 1234567890 is valid for vue-tel-input but actually 123 is not valid is +49 libphonenumber raises this.

  • Stop using phone:INTERNATIONAL in favour of custom Validator.

  • Unify Error placement of vee-validate and backend validation errors. This is done via fieldErrors.js. As a future improvement could re-use this elsewhere

    Before:

    image

    After:

    image
  • Apply unified phone handling in all components

Are there any other side effects of this change that we should be aware of?

Describe how you tested your changes?

Pull Request checklist

Please confirm you have completed any of the necessary steps below.

  • Meaningful Pull Request title and description
  • Changes tested as described above
  • Added appropriate documentation for the change.
  • Created GitHub issues for any relevant followup/future enhancements if appropriate.

@dmohns dmohns changed the title Better, more consistent phone number handling Consistent and transparent phone number handling in customer registration Dec 3, 2026
@dmohns
dmohns marked this pull request as ready for review December 3, 2026 14:06
@dmohns
dmohns requested a review from beesaferoot December 3, 2026 14:10

@beesaferoot beesaferoot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks 🙏🏾

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants