-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
feat: display native values returned from decoding api #28374
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. |
…sion into decoding_api_int
…tension into decoding_ui_changes
…extension into decoded_token_display
Builds ready [8de0e98]
Page Load Metrics (1928 ± 95 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [81503b3]
Page Load Metrics (2800 ± 213 ms)
Bundle size diffs
|
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.
minor suggestion to remove the snapshot test. I think the snapshot tests have diminishing returns. With a minor change, there is a lot of change in this PR. I suggest we avoid snapshot tests for smaller, reusable components as they will be tested together in parent snapshots
); | ||
|
||
expect(await findByText('<0.000001')).toBeInTheDocument(); | ||
expect(container).toMatchSnapshot(); |
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.
Seeing how many snapshots were affected in this PR, I favor avoiding snapshots on smaller, reusable components. We can observe nuanced style changes from the parent component(s) that render these smaller components and test specific attributes such as text, behavior, or direct styles.
expect(container).toMatchSnapshot(); |
...ents/confirm/info/typed-sign/permit-simulation/native-value-display/native-value-display.tsx
Outdated
Show resolved
Hide resolved
...mations/components/confirm/info/typed-sign/permit-simulation/value-display/value-display.tsx
Outdated
Show resolved
Hide resolved
…it-simulation/native-value-display/native-value-display.tsx Co-authored-by: digiwand <20778143+digiwand@users.noreply.github.com>
…it-simulation/value-display/value-display.tsx Co-authored-by: digiwand <20778143+digiwand@users.noreply.github.com>
…xtension into native_value_display
Builds ready [455f4b0]
Page Load Metrics (2017 ± 74 ms)
Bundle size diffs
|
Builds ready [6a1b4b4]
Page Load Metrics (2030 ± 113 ms)
Bundle size diffs
|
Builds ready [266a002]
Page Load Metrics (1953 ± 62 ms)
Bundle size diffs
|
Description
display native values returned from decoding api
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/3617
Manual testing steps
Screenshots/Recordings
For NFT collection:

Pre-merge author checklist
Pre-merge reviewer checklist