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

feat: UI changes to show decoding data for permits #28342

Merged
merged 13 commits into from
Nov 15, 2024
Merged

Conversation

jpuri
Copy link
Contributor

@jpuri jpuri commented Nov 7, 2024

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

  1. Locally enable signature decoding using env variables
  2. Submit a permit on test dapp
  3. Check simulation section

Screenshots/Recordings

Screenshot 2024-11-07 at 3 07 29 PM

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.

@jpuri jpuri requested a review from a team as a code owner November 7, 2024 09:38
Copy link
Contributor

github-actions bot commented Nov 7, 2024

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 metamaskbot added the team-confirmations Push issues to confirmations team label Nov 7, 2024
(decodingData === undefined && decodingLoading !== true)
) {
return <DefaultSimulation />;
}
Copy link
Contributor Author

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.

@metamaskbot
Copy link
Collaborator

Builds ready [03b89d8]
Page Load Metrics (1875 ± 64 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint18221231723519249
domContentLoaded16582110185512861
load16662128187513464
domInteractive20135512914
backgroundConnect67022189
firstReactRender742841134220
getState563242311
initialActions01000
loadScripts11721555134410551
setupStore116319147
uiStartup18722372210614770
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 4.17 KiB (0.05%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [75026e4]
Page Load Metrics (1865 ± 79 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint16302260187216077
domContentLoaded15792242183316378
load15902268186516479
domInteractive257546136
backgroundConnect972322110
firstReactRender491991003416
getState584252311
initialActions01000
loadScripts11401666135412861
setupStore1182292411
uiStartup17802534211218689
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 4.17 KiB (0.05%)
  • common: 0 Bytes (0.00%)

@jpuri jpuri changed the base branch from develop to decoding_api_int November 11, 2024 06:25
@metamaskbot
Copy link
Collaborator

Builds ready [fbfdfa3]
Page Load Metrics (1650 ± 34 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1505181816627838
domContentLoaded1491176516196531
load1504181916507134
domInteractive226140136
backgroundConnect97132209
firstReactRender46202903216
getState55313136
initialActions01000
loadScripts1055131611896230
setupStore587152110
uiStartup1678202818559847
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.88 KiB (0.06%)
  • ui: 4.17 KiB (0.05%)
  • common: 0 Bytes (0.00%)

Base automatically changed from decoding_api_int to develop November 13, 2024 23:27
@HowardBraham HowardBraham requested review from a team as code owners November 13, 2024 23:27
@@ -0,0 +1,118 @@
import { Hex } from '@metamask/utils';
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 is old simulation implementation for permits

@metamaskbot
Copy link
Collaborator

Builds ready [3d75359]
Page Load Metrics (2002 ± 134 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint43423751902429206
domContentLoaded149523611979277133
load150323802002278134
domInteractive16128522814
backgroundConnect95922168
firstReactRender451741103215
getState44512115
initialActions01000
loadScripts108617931479229110
setupStore55816178
uiStartup168426382212303145
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 4.17 KiB (0.05%)
  • common: 0 Bytes (0.00%)

@jpuri jpuri enabled auto-merge November 14, 2024 04:39
Copy link
Member

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?

@jpuri jpuri added this pull request to the merge queue Nov 15, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [e7b4e61]
Page Load Metrics (1902 ± 59 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint17352126190011756
domContentLoaded17252081188011154
load17342130190212259
domInteractive208843147
backgroundConnect97324178
firstReactRender612971275225
getState46013157
initialActions01000
loadScripts1277157113899043
setupStore55715178
uiStartup19482667215817182
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 4.17 KiB (0.05%)
  • common: 0 Bytes (0.00%)

Merged via the queue into develop with commit 2367e4e Nov 15, 2024
77 checks passed
@jpuri jpuri deleted the decoding_ui_changes branch November 15, 2024 12:14
@github-actions github-actions bot locked and limited conversation to collaborators Nov 15, 2024
@metamaskbot metamaskbot added the release-12.8.0 Issue or pull request that will be included in release 12.8.0 label Nov 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.8.0 Issue or pull request that will be included in release 12.8.0 team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants