Detect and track UI customizations on Personal Sign Requests#16222
Merged
digiwand merged 29 commits intoMetaMask:developfrom Feb 8, 2023
spruceid:feat/add-siwe-event
Merged
Detect and track UI customizations on Personal Sign Requests#16222digiwand merged 29 commits intoMetaMask:developfrom spruceid:feat/add-siwe-event
digiwand merged 29 commits intoMetaMask:developfrom
spruceid:feat/add-siwe-event
Conversation
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. |
brad-decker
previously approved these changes
Oct 19, 2022
jpuri
previously approved these changes
Oct 25, 2022
Contributor
|
@skgbafa Could you rebase and push this again and i'll approve after tests pass? |
brad-decker
previously approved these changes
Nov 14, 2022
Contributor
|
looks like the unit test failure is legit. Could you check it out @skgbafa |
Contributor
|
The issue here #15155 (comment) includes |
digiwand
reviewed
Jan 13, 2023
2 tasks
digiwand
reviewed
Feb 6, 2023
digiwand
reviewed
Feb 6, 2023
| METAMETRIC_KEY_OPTIONS[METAMETRIC_KEY.UI_CUSTOMIZATIONS].SIWE, | ||
| ]; | ||
| } | ||
| } |
Contributor
There was a problem hiding this comment.
thinking we could abstract quite a few lines from the custom middleware and next callbacks such that the logic could be easier to read and manage, but this isn't a blocker
Contributor
There was a problem hiding this comment.
Yep above 2 blocks of code are exactly similar.
digiwand
previously approved these changes
Feb 6, 2023
Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
digiwand
approved these changes
Feb 8, 2023
jpuri
approved these changes
Feb 8, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation
This PR addresses Issue 15155 and detects if the SIWE view was enabled for the personal sign message.
More Information
Below are examples of the updated event data of a personal sign messages that do and don't conform to SIWE
SIWE Personal Sign
Non-SIWE Personal Sign
Note: In testing the non-siwe personal sign, subsequent legacy metric calls were found, for approve and reject
Manual Testing Steps
i. A normal SIWE message (Request/Approve/Reject)
ii. Personal Sign (Request/Approve/Reject)