-
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
feat: UI changes to show decoding data for permits #28342
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. |
(decodingData === undefined && decodingLoading !== true) | ||
) { | ||
return <DefaultSimulation />; | ||
} |
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.
Here we display decoding api changes if present and fall back to old simulation implementation otherwise.
Builds ready [03b89d8]
Page Load Metrics (1875 ± 64 ms)
Bundle size diffs
|
Builds ready [75026e4]
Page Load Metrics (1865 ± 79 ms)
Bundle size diffs
|
…sion into decoding_api_int
…tension into decoding_ui_changes
Builds ready [fbfdfa3]
Page Load Metrics (1650 ± 34 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
@@ -0,0 +1,118 @@ | |||
import { Hex } from '@metamask/utils'; |
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.
This is old simulation implementation for permits
Builds ready [3d75359]
Page Load Metrics (2002 ± 134 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, would this be more explicit as offline-permit-simulation.tsx
?
Builds ready [e7b4e61]
Page Load Metrics (1902 ± 59 ms)
Bundle size diffs
|
Description
Changes in permit simulation component to show decoding api results if present. Changes will currently not be visible as signature controller update is not yet done.
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/3554
Manual testing steps
Screenshots/Recordings
Pre-merge author checklist
Pre-merge reviewer checklist