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

fix: Add origin pill to wallet_addEthereumChain confirmation #29317

Merged
merged 4 commits into from
Dec 19, 2024

Conversation

pedronfigueiredo
Copy link
Contributor

@pedronfigueiredo pedronfigueiredo commented Dec 18, 2024

Description

Adds Origin Pill component and references it on the confirmation template.

Open in GitHub Codespaces

Related issues

Fixes: #26656

Manual testing steps

  1. Go to the test dApp
  2. Add a custom chain

Screenshots/Recordings

Before

After

Screenshot 2024-12-18 at 12 08 31 Screenshot 2024-12-18 at 11 58 38

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@pedronfigueiredo pedronfigueiredo added the team-confirmations Push issues to confirmations team label Dec 18, 2024
@pedronfigueiredo pedronfigueiredo self-assigned this Dec 18, 2024
@pedronfigueiredo pedronfigueiredo requested a review from a team as a code owner December 18, 2024 12:09
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.

@pedronfigueiredo pedronfigueiredo changed the title Add origin pill to wallet_addEthereumChain confirmation fix: Add origin pill to wallet_addEthereumChain confirmation Dec 18, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [42229a6]
Page Load Metrics (1686 ± 47 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint21018631540432207
domContentLoaded14851829166710148
load1497184016869747
domInteractive24190534321
backgroundConnect878242210
firstReactRender1693562612
getState4599126
initialActions01000
loadScripts1081134912269244
setupStore65314157
uiStartup17662392194214771
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 1.85 KiB (0.02%)
  • common: 100 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [d61e63f]
Page Load Metrics (1763 ± 99 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint24620911603482231
domContentLoaded14502079173620096
load14562094176320799
domInteractive27108502311
backgroundConnect8137303718
firstReactRender16101563115
getState493172311
initialActions01000
loadScripts10071525127115675
setupStore776212211
uiStartup164628262122296142
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 1.85 KiB (0.02%)
  • common: 100 Bytes (0.00%)

@@ -86,6 +87,7 @@ export const safeComponentList = {
Typography,
SmartTransactionStatusPage,
UrlIcon,
OriginPill,
Copy link
Member

Choose a reason for hiding this comment

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

You can see the moment we lost our beautiful alphabetical order 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reordered!

Copy link
Member

Choose a reason for hiding this comment

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

Does this not already exist elsewhere that we can reuse, or is it part of another component?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This does not exist in this configuration. UrlIcon with a Text component exists elsewhere but it's not wrapped in its own component and has been deprecated.

Copy link
Member

Choose a reason for hiding this comment

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

TypeScript for all new components?

store,
);

expect(container).toMatchSnapshot();
Copy link
Member

Choose a reason for hiding this comment

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

Did we say we were going to avoid adding new snapshot tests?

Could we verify just the text itself for example?

matthewwalsh0
matthewwalsh0 previously approved these changes Dec 19, 2024
);
}

OriginPill.propTypes = {
Copy link
Member

@matthewwalsh0 matthewwalsh0 Dec 19, 2024

Choose a reason for hiding this comment

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

This is only needed for JS components so can be removed.

@metamaskbot
Copy link
Collaborator

Builds ready [22f0e33]
Page Load Metrics (1665 ± 94 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14302109167219091
domContentLoaded13882086165219292
load13962103166519594
domInteractive22170443617
backgroundConnect99417199
firstReactRender1677442512
getState55813157
initialActions01000
loadScripts9941558121916981
setupStore65918199
uiStartup163924061913211101
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 1.86 KiB (0.02%)
  • common: 100 Bytes (0.00%)

jpuri
jpuri previously approved these changes Dec 19, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [fa1ac36]
Page Load Metrics (1648 ± 86 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14122059165517383
domContentLoaded14032046162417283
load14142063164818086
domInteractive2195352010
backgroundConnect96427199
firstReactRender1582362412
getState56316168
initialActions01000
loadScripts10121594121514168
setupStore66013157
uiStartup157826731880259124
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 1.68 KiB (0.02%)
  • common: 100 Bytes (0.00%)

@pedronfigueiredo pedronfigueiredo added this pull request to the merge queue Dec 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 19, 2024
@pedronfigueiredo pedronfigueiredo added this pull request to the merge queue Dec 19, 2024
Merged via the queue into main with commit 09d4136 Dec 19, 2024
77 checks passed
@pedronfigueiredo pedronfigueiredo deleted the pnf/26656 branch December 19, 2024 16:52
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2024
@metamaskbot metamaskbot added the release-12.11.0 Issue or pull request that will be included in release 12.11.0 label Dec 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.11.0 Issue or pull request that will be included in release 12.11.0 team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Lack of origin display on wallet_addEthereumChain
4 participants