-
-
Notifications
You must be signed in to change notification settings - Fork 1.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: Create Permit Simulation #12606
base: main
Are you sure you want to change the base?
Conversation
todo: - metrics - precision tooltip - tests - styles: - right align row values - hide
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. |
todo: - fix rerender issue - fix removeEventListener detached console error
Bitrise✅✅✅ Commit hash: 79a4003 Note
|
Bitrise❌❌❌ Commit hash: 8577591 Note
Tip
|
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.
Since the ButtonPill is not an official DS component, can you move it to components-temp?
Also can you attach the design for this to the PR
app/component-library/components/Buttons/ButtonPill/ButtonPill.styles.ts
Outdated
Show resolved
Hide resolved
got it, thanks @brianacnguyen! moved 2bdb950 copied designs from the related issue to this ticket |
}); | ||
}; | ||
|
||
export default styleSheet; |
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.
It will be nicer to create separate PR for this component and also possibly addd storybook.
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.
thanks for the review @jpuri!
yeah, I agree. In retrospect, having a tree trunk branch for this feature would have been nice since it requires much more than I anticipated initially. This PR is my first mobile feat PR, so I didn't expect to need all of these dependencies
good idea to add a storybook page. I created a separate issue ticket for this + related unit tests
#12910
} | ||
} | ||
/> | ||
`; |
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.
We are avoiding snapshot testing now in mobile re-design effort.
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.
Sgtm! I was mimicking the existing DS ButtonIcon component. It isn't too bad at this lower-level component, unlike a parent component to have the snapshot.
I created a separate issue to handle this suggestion #12910
truncatedCharLimit: TRUNCATED_NAME_CHAR_LIMIT, | ||
truncatedStartChars: TRUNCATED_ADDRESS_START_CHARS, | ||
truncatedEndChars: TRUNCATED_ADDRESS_END_CHARS, | ||
skipCharacterInEnd: false, |
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.
NIT: unit test coverage for new added condition.
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.
added tests for shortenString with new param 5852d87
@@ -0,0 +1,55 @@ | |||
import { ApprovalRequest } from '@metamask/approval-controller'; |
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.
Unit test coverage for new util methods will be very useful.
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.
updated 1ffe22e
Bitrise✅✅✅ Commit hash: 5852d87 Note
|
Quality Gate passedIssues Measures |
Description
Creates Permit Simulation UI to be shown on V3 and V4 signTypedData confirmations. Signature Decoding logic to be added following this PR.
Add
file
Update
Designs
Simulations MVP https://www.figma.com/design/8DrinrQI4hs76Grm2F34xK/Simulations-MVP?node-id=1283-18713&node-type=canvas&t=FbRsIUjxMDxC3Get-0
Confirmations Redesign V5 https://www.figma.com/design/wcXUl6AH5KNFwKdAIv49kh/Confirmation-redesign-V5?node-id=4157-7776&node-type=canvas&m=dev
Related issues
Fixes: #12432
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist