-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default address country 🗺️ & Phone prefix ☎️ #8614
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
packages/twenty-front/src/modules/object-metadata/utils/formatFieldMetadataItemInput.ts
Outdated
Show resolved
Hide resolved
...es/settings/data-model/fields/forms/address/components/SettingsDataModelFieldAddressForm.tsx
Outdated
Show resolved
Hide resolved
...ules/settings/data-model/fields/forms/phones/components/SettingsDataModelFieldPhonesForm.tsx
Outdated
Show resolved
Hide resolved
...es/twenty-front/src/modules/settings/data-model/fields/preview/hooks/useFieldPreviewValue.ts
Show resolved
Hide resolved
...twenty-front/src/modules/object-record/record-field/utils/computeDraftValueFromFieldValue.ts
Show resolved
Hide resolved
charlesBochet
approved these changes
Nov 26, 2024
Left to be done :
|
...ront/src/modules/object-record/record-field/meta-types/input/components/PhonesFieldInput.tsx
Outdated
Show resolved
Hide resolved
...ront/src/modules/object-record/record-field/meta-types/input/components/PhonesFieldInput.tsx
Outdated
Show resolved
Hide resolved
charlesBochet
approved these changes
Dec 2, 2024
Thanks @guillim for your contribution! |
guillim
added a commit
that referenced
this pull request
Dec 5, 2024
Fixes #8838 1. Summary It seems [this PR](#8614) caused the issue. We added a plus sign on front-end when the [callingCode](https://github.com/twentyhq/twenty/blob/c735026f6c4f011e82e80713f1554b5cdb4fda5b/packages/twenty-front/src/modules/ui/field/display/components/PhonesDisplay.tsx#L70) retrieved from back-end already has a plus sign. 2. Solution @guillim Please let me know if I missed a case where the plus sign is not there for the `callingCode`. If so, I think we should check whether or not `callingCode` has a leading plus sign on front-end before adding it. For now, I just removed the code that appends a plus sign on front-end. 3. Screenshots ![localhost_3001_objects_people_view=f4aee583-9d0c-4961-a6e1-fd66bc51dfd5](https://github.com/user-attachments/assets/9fe8b361-47b9-4e3f-82b7-570713cf430c) --------- Co-authored-by: guillim <[email protected]> Co-authored-by: Guillim <[email protected]> Co-authored-by: Weiko <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Default address 🗺️ country & Phone ☎️ country
We add the ability to add a Default address country and a default Phone country for fields in the Data model.
fix #8081