Phone number field
Feature Spec
Add a phone number field such that:
-
Users can click/tap phone numbers in this field to call the number via their preferred phone app:
- IOS (https://nuxtjs.org/docs/2.x/concepts/server-side-rendering#ios-and-phone-numbers)
- Android
- Windows
- MacOS
- Linux
-
On mobile the phone entry specific entry keyboard is used when entering a number
-
The field only supports entering a single phone number, not a list, no surrounding text, however it can be empty.
-
The field only allows valid phone numbers
- The client side validation matches the server side exactly!
-
The field can be converted to text and the phone numbers just become raw text
-
A text field can be converted into a phone number, only valid phone numbers are kept, invalid text is thrown away.
-
You can filter by phone numbers using the existing filters:
- Is, Is Not
- Contains, Not Contains
- Empty, Not Empty
-
You can sort lexicographically (0->9, 9->0), including any extension on the front of the number
Future Ideas:
These are extensions I believe should not be part of this issue, but possibly done in the future if desired!
- Allow users to filter by country code / area code (only show me numbers in the UK etc)
- Fancier user input modal letting users search for a countries extension code in a dropdown when entering international numbers
- Support for setting a "locale" for a field enforcing all phone numbers are assumed to be from that nation
- Possibly use python-phonenumbers support for detection and display of the following phone number attributes
- Location (phonenumbers.parse("0431234567", "CH") ---> "Zurich")
- Would need to support localization to the users language
- The carrier (Vodaphone etc)
- A list of timezones the phone number potentially belongs to
- Location (phonenumbers.parse("0431234567", "CH") ---> "Zurich")