refactor: extract Send-specific functionality out of AssetPicker#26558
Merged
refactor: extract Send-specific functionality out of AssetPicker#26558
Conversation
3819a56 to
4430252
Compare
Collaborator
Builds ready [4430252]
Page Load Metrics (70 ± 17 ms)
Bundle size diffs
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #26558 +/- ##
===========================================
+ Coverage 70.08% 70.09% +0.01%
===========================================
Files 1413 1416 +3
Lines 49318 49352 +34
Branches 13780 13786 +6
===========================================
+ Hits 34562 34593 +31
- Misses 14756 14759 +3 ☔ View full report in Codecov by Sentry. |
4430252 to
5a0f942
Compare
Collaborator
Builds ready [5a0f942]
Page Load Metrics (1755 ± 70 ms)
Bundle size diffs
|
sahar-fehri
reviewed
Aug 29, 2024
ui/components/multichain/asset-picker-amount/asset-picker-modal/types.ts
Outdated
Show resolved
Hide resolved
Contributor
|
LGTM! Thank you 🙏 |
|
Collaborator
Builds ready [4dbfad9]
Page Load Metrics (1640 ± 48 ms)
Bundle size diffs
|
sahar-fehri
approved these changes
Aug 29, 2024
ejwessel
reviewed
Aug 29, 2024
ui/components/multichain/asset-picker-amount/asset-picker/asset-picker.tsx
Show resolved
Hide resolved
ejwessel
approved these changes
Aug 29, 2024
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.



Description
The goal of this PR is to make the AssetPicker component experience-agnostic so that it can be reused within other experiences.
Since the AssetPicker was initially built for the Swap+Send experience, most changes here are for moving send-specific logic out of the component, including:
assetprop, which contains the minimal required information about the selected assetRelated issues
Fixes: https://consensyssoftware.atlassian.net/browse/METABRIDGE-890
Manual testing steps
Screenshots/Recordings
Before -> After
Pre-merge author checklist
Pre-merge reviewer checklist