Skip to content
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

Update address component on transaction data screen #15888

Merged

Conversation

amerkadicE
Copy link
Contributor

@amerkadicE amerkadicE commented Sep 20, 2022

Explanation

This pull request will update the current logic for a recipient address on the transaction data screen.
Now it will show

  1. If the address exists in the user account list, then the account name is displayed
  2. If the address exists in the user address book (contacts), then their nickname is displayed
  3. If the address exists in the contract metadata list, then the contract's name is displayed
  4. If conditionals from before are not met, it will show the user address.

Also, clicking on this component opens the 'add/edit nickname' popup or this tooltip if it's one of the user's accounts.

After checking the code, we found out that this PR will also update the logic on the recipient address when sending funds as shown in screenshot below.

More Information

Fixes #15780

Screenshots/Screencaps

Before

image

After

image

image

Send screen
image

Manual Testing Steps

Pre-Merge Checklist

  • PR template is filled out
  • IF this PR fixes a bug, a test that would have caught the bug has been added
  • PR is linked to the appropriate GitHub issue
  • PR has been added to the appropriate release Milestone

+ If there are functional changes:

  • Manual testing complete & passed
  • "Extension QA Board" label has been applied

@github-actions
Copy link
Contributor

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.

@metamaskbot
Copy link
Collaborator

Builds ready [36914f0]
Page Load Metrics (1324 ± 68 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint902441113216
domContentLoaded11681721131614469
load11681721132414168
domInteractive11681720131614469

highlights:

storybook

@amerkadicE amerkadicE force-pushed the update-address-component-on-transaction-data-screen branch from 36914f0 to 41174c7 Compare September 22, 2022 11:21
@amerkadicE amerkadicE force-pushed the update-address-component-on-transaction-data-screen branch from 41174c7 to 9ce516c Compare September 22, 2022 11:23
@metamaskbot
Copy link
Collaborator

Builds ready [9ce516c]
Page Load Metrics (1360 ± 47 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint911272167254122
domContentLoaded1214155113459144
load1214155113609847
domInteractive1214155113459144

highlights:

storybook

@metamaskbot
Copy link
Collaborator

Builds ready [678bdad]
Page Load Metrics (1261 ± 42 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint851310227349168
domContentLoaded1135144012528139
load1135146812618842
domInteractive1135144012528139

highlights:

storybook

@mirjanaKukic
Copy link
Contributor

Verified by QA

@amerkadicE amerkadicE marked this pull request as ready for review September 27, 2022 06:33
@amerkadicE amerkadicE requested a review from a team as a code owner September 27, 2022 06:33
@amerkadicE amerkadicE requested a review from mcmire September 27, 2022 06:33
@metamaskbot
Copy link
Collaborator

Builds ready [74bd53f]
Page Load Metrics (2271 ± 74 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint952307416737354
domContentLoaded18362517223915675
load19412646227115374
domInteractive18362517223915675

highlights:

storybook

@amerkadicE amerkadicE merged commit d4ffc3a into develop Nov 8, 2022
@amerkadicE amerkadicE deleted the update-address-component-on-transaction-data-screen branch November 8, 2022 08:34
@github-actions github-actions bot locked and limited conversation to collaborators Nov 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update the address component
5 participants