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

Fix #28534 - Show correct swap value from asset details #28587

Closed
wants to merge 246 commits into from

Conversation

darkwing
Copy link
Contributor

@darkwing darkwing commented Nov 21, 2024

Description

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

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.

gambinish and others added 30 commits October 11, 2024 10:03
…om:MetaMask/metamask-extension into feat/mmassets-432_network-filter-extension
…om:MetaMask/metamask-extension into feat/mmassets-432_network-filter-extension
Copy link
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.

@gambinish gambinish mentioned this pull request Nov 21, 2024
7 tasks
github-merge-queue bot pushed a commit that referenced this pull request Nov 21, 2024
## **Description**

This consolidates the changes from a series of 3 Multichain Asset List
PRs that built on each other:

1. Product code (feature branch):
#28386
2. Unit tests: #28451
3. e2e tests: #28524

We created separate branches for rapid iteration and isolated testing.
The code is now cleaner and stable enough for review and merge into
develop, gated by the `PORTFOLIO_VIEW` feature flag.

We will introduce another PR to remove this feature flag when we are
ready to ship it.

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/28593?quickstart=1)

## **Related issues**

Fixes:
https://github.com/orgs/MetaMask/projects/85/views/35?pane=issue&itemId=82217837

## **Manual testing steps**

`PORTFOLIO_VIEW=1 yarn webpack --watch`

1. View tokens across all networks in one unified list.
2. Filter tokens by selected network
3. Crosschain navigation:
- Token detail pages update to display data from the appropriate
network.
- Send/Swap actions automatically adjust the selected network for user
convenience.
- Ensure that network switch is functional, and sends/swaps happen on
correct chain.
    
Known caveats:
1. POL native token market data not populating. Will be addressed here:
#28584 and
MetaMask/core#4952
2. Native token swapping on different network than selected network
swaps incorrect token:
#28587
3. Multichain token detection experimental draft:
#28380
    

## **Screenshots/Recordings**


https://github.com/user-attachments/assets/79e7fd2d-9908-4c7a-8134-089cbe6593cc


https://github.com/user-attachments/assets/dfb4a54f-a8ae-48a4-a9e7-50327f56054a

## **Pre-merge author checklist**

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **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.

---------

Co-authored-by: Jonathan Bursztyn <jonathan@bursztyn.io>
Co-authored-by: chloeYue <105063779+chloeYue@users.noreply.github.com>
Co-authored-by: seaona <54408225+seaona@users.noreply.github.com>
Co-authored-by: Monte Lai <monte.lai@consensys.net>
Co-authored-by: Charly Chevalier <charly.chevalier@consensys.net>
Co-authored-by: Pedro Figueiredo <pedro.figueiredo@consensys.net>
Co-authored-by: MetaMask Bot <metamaskbot@users.noreply.github.com>
Co-authored-by: NidhiKJha <menidhikjha@gmail.com>
Co-authored-by: sahar-fehri <sahar.fehri@consensys.net>
@gambinish gambinish changed the base branch from feat/mmassets-432_network-filter-extension--integration-balances to develop November 21, 2024 22:30
@gambinish
Copy link
Contributor

gambinish commented Nov 21, 2024

I am going to create a cherry pick of your commits to develop, and handle unit tests e2e there to avoid merge conflicts here. I tested this out and it seems to work well!

@gambinish gambinish closed this Nov 21, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Nov 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants