-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
fix: contact names should not allow duplication #28249
fix: contact names should not allow duplication #28249
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
I have read the CLA Document and I hereby sign the CLA |
efd4d8f
to
16e2f38
Compare
Builds ready [66945ee]
Page Load Metrics (1904 ± 39 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some questions before I can approve. can you please clarify?
ui/pages/settings/contact-list-tab/add-contact/add-contact.component.js
Outdated
Show resolved
Hide resolved
…names-should-not-allow-duplication
…ernalAccounts prop
Builds ready [f1351c6]
Page Load Metrics (1925 ± 115 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed minor confirmations ownership changes .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
60d7635
109530a
to
b73e844
Compare
Builds ready [e8b47de]
Page Load Metrics (2077 ± 99 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
Builds ready [5d7fcc6]
Page Load Metrics (2282 ± 96 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
This fix prevents users from having duplicate names in their contact list. A warning banner is now displayed in the contact list when duplicates are found. All duplicate contacts will also have a warning icon next to them to help users better identify duplicates.
What is considered a duplicate contact?
A duplicate is a contact with a different address but same name as another contact or account.
Related issues
Fixes:
Manual testing steps
Adding a duplicate contact
username
input and the submit button will be disabled.Viewing duplicate contact warning banner
ui/components/app/contact-list/contact-list.component.js
138
({hasDuplicateContacts ? this.renderDuplicateContactWarning() : null}
changehasDuplicateContacts
totrue
to display the banner.Screenshots/Recordings
Before
duplicate-contact-fix-before-demo.mov
After
duplicate-contact-fix-after-demo.mov
Pre-merge author checklist
Pre-merge reviewer checklist