Skip to content

Using NetworkAccountBalanceHeader component on SIWE screen#19361

Merged
NiranjanaBinoy merged 9 commits intodevelopfrom
siwe-network-account-balance-header
Jun 6, 2023
Merged

Using NetworkAccountBalanceHeader component on SIWE screen#19361
NiranjanaBinoy merged 9 commits intodevelopfrom
siwe-network-account-balance-header

Conversation

@NiranjanaBinoy
Copy link
Copy Markdown
Contributor

@NiranjanaBinoy NiranjanaBinoy commented May 31, 2023

Explanation

NetworkAccountBalanceHeader is now being shown on the SIWE screen.

Fixes #17812

Screenshots/Screencaps

Before

Screenshot 2023-05-31 at 4 32 40 PM

After

Screenshot 2023-05-31 at 4 30 12 PM

Manual Testing Steps

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

@NiranjanaBinoy NiranjanaBinoy self-assigned this May 31, 2023
@github-actions
Copy link
Copy Markdown
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.

@NiranjanaBinoy NiranjanaBinoy marked this pull request as ready for review May 31, 2023 20:34
@NiranjanaBinoy NiranjanaBinoy requested a review from a team as a code owner May 31, 2023 20:34
@NiranjanaBinoy NiranjanaBinoy requested review from digiwand and jpuri May 31, 2023 20:34
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [209ef2c]
Page Load Metrics (1560 ± 48 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint913031144421
domContentLoaded14001863155110249
load14001864156010048
domInteractive14001863155110249
Bundle size diffs
  • background: 0 bytes
  • ui: 3023 bytes
  • common: 0 bytes

Comment thread ui/hooks/useSignatureRequestHeaderData.js
@NiranjanaBinoy NiranjanaBinoy requested a review from jpuri June 1, 2023 21:40
@NiranjanaBinoy NiranjanaBinoy mentioned this pull request Jun 1, 2023
8 tasks

import NetworkAccountBalanceHeader from '../network-account-balance-header';

const SignatureRequestsCommonHeader = ({ txData }) => {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In this PR, I have updated and to use this new component. This can also be used in , which I will be updating in #19104 to reduce redundant work as I am refactoring the component to a functional component in that PR.

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [154394a]
Page Load Metrics (1581 ± 55 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint92135110126
domContentLoaded14411818155911053
load14411818158111455
domInteractive14411817155911053
Bundle size diffs
  • background: 0 bytes
  • ui: 2355 bytes
  • common: 0 bytes

Comment thread ui/components/app/signature-requests-common-header/index.js Outdated
jpuri
jpuri previously approved these changes Jun 2, 2023
Copy link
Copy Markdown
Contributor

@jpuri jpuri left a comment

Choose a reason for hiding this comment

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

Some small feedbacks, looks good otherwise 👍

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 2, 2023

Codecov Report

Merging #19361 (8a1aff9) into develop (5355000) will increase coverage by 0.01%.
The diff coverage is 88.00%.

@@             Coverage Diff             @@
##           develop   #19361      +/-   ##
===========================================
+ Coverage    69.98%   69.99%   +0.01%     
===========================================
  Files          959      960       +1     
  Lines        36790    36802      +12     
  Branches      9452     9452              
===========================================
+ Hits         25747    25759      +12     
  Misses       11043    11043              
Impacted Files Coverage Δ
...t-original/signature-request-original.component.js 52.69% <ø> (-1.77%) ⬇️
...t-original/signature-request-original.container.js 74.19% <ø> (-0.09%) ⬇️
...gnature-request-header/signature-request-header.js 87.50% <87.50%> (ø)
...p/signature-request-siwe/signature-request-siwe.js 65.12% <100.00%> (ø)

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [7d6c201]
Page Load Metrics (1715 ± 58 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1031881342713
domContentLoaded15281983169912158
load15511983171512158
domInteractive15281983169912158
Bundle size diffs
  • background: 0 bytes
  • ui: 2227 bytes
  • common: 0 bytes

@NiranjanaBinoy NiranjanaBinoy requested a review from segun June 5, 2023 12:56
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [8a1aff9]
Page Load Metrics (1744 ± 105 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint961581272010
domContentLoaded14882291171219292
load151324721744218105
domInteractive14882291171219292
Bundle size diffs
  • background: 0 bytes
  • ui: 2227 bytes
  • common: 0 bytes

@NiranjanaBinoy NiranjanaBinoy merged commit b5b3f67 into develop Jun 6, 2023
@NiranjanaBinoy NiranjanaBinoy deleted the siwe-network-account-balance-header branch June 6, 2023 13:53
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New header is not shown on SIWE screen

4 participants