Skip to content

Commit

Permalink
feat: Turn on PortfolioView (#28661)
Browse files Browse the repository at this point in the history
## **Description**

Sets `PORTFOLIO_VIEW` feature flag to `true`. Rather than fully removing
this, we are defaulting to true in case we need to roll the feature back
behind the feature flag.

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

## **Related issues**

Fixes:

## **Manual testing steps**

1. Go to this page...
2.
3.

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

## **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: Salim TOUBAL <[email protected]>
  • Loading branch information
gambinish and salimtb authored Nov 27, 2024
1 parent d457539 commit c0574f4
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 7 deletions.
2 changes: 1 addition & 1 deletion builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ env:
# Determines if feature flagged Chain permissions
- CHAIN_PERMISSIONS: ''
# Determines if Portfolio View UI should be shown
- PORTFOLIO_VIEW: ''
- PORTFOLIO_VIEW: 'true'
# Enables use of test gas fee flow to debug gas fee estimation
- TEST_GAS_FEE_FLOWS: false
# Temporary mechanism to enable security alerts API prior to release
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,11 @@
"redesignedTransactionsEnabled": "boolean",
"tokenSortConfig": "object",
"tokenNetworkFilter": {
"0x539": "boolean"
"0x1": "boolean",
"0x539": "boolean",
"0xaa36a7": "boolean",
"0xe705": "boolean",
"0xe708": "boolean"
},
"shouldShowAggregatedBalancePopover": "boolean"
},
Expand Down Expand Up @@ -323,7 +327,9 @@
"TokenListController": {
"tokenList": "object",
"tokensChainsCache": {
"0x539": "object"
"0x1": "object",
"0x539": "object",
"0xe708": "object"
},
"preventPollingOnNetworkRestart": false
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,14 @@
"showMultiRpcModal": "boolean",
"isRedesignedConfirmationsDeveloperEnabled": "boolean",
"tokenSortConfig": "object",
"tokenNetworkFilter": {
"0x1": "boolean",
"0x539": "boolean",
"0xaa36a7": "boolean",
"0xe705": "boolean",
"0xe708": "boolean"
},
"shouldShowAggregatedBalancePopover": "boolean",
"tokenNetworkFilter": { "0x539": "boolean" },
"redesignedConfirmationsEnabled": true,
"redesignedTransactionsEnabled": "boolean"
},
Expand Down Expand Up @@ -174,15 +180,19 @@
"gasEstimateType": "none",
"nonRPCGasFeeApisDisabled": "boolean",
"tokenList": "object",
"tokensChainsCache": { "0x539": "object" },
"tokensChainsCache": {
"0x1": "object",
"0x539": "object",
"0xe708": "object"
},
"tokenBalances": "object",
"preventPollingOnNetworkRestart": false,
"tokens": "object",
"ignoredTokens": "object",
"detectedTokens": "object",
"allTokens": {},
"allIgnoredTokens": {},
"allDetectedTokens": {},
"tokenBalances": "object",
"smartTransactionsState": {
"fees": {},
"feesByChainId": "object",
Expand Down
7 changes: 7 additions & 0 deletions test/e2e/tests/tokens/import-tokens.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ describe('Import flow', function () {
'[data-testid="token-list-loading-message"]',
);

await driver.assertElementNotPresent(
'[data-testid="token-list-loading-message"]',
);

await driver.clickElement('[data-testid="sort-by-networks"]');
await driver.clickElement('[data-testid="network-filter-current"]');

const expectedTokenListElementsAreFound =
await driver.elementCountBecomesN('.multichain-token-list-item', 4);
assert.equal(expectedTokenListElementsAreFound, true);
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/tests/tokens/token-details.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('Token Details', function () {

const openTokenDetails = async (driver: Driver) => {
await driver.clickElement('[data-testid="account-overview__asset-tab"]');
const [, tkn] = await driver.findElements(
const [, , tkn] = await driver.findElements(
'[data-testid="multichain-token-list-button"]',
);
await tkn.click();
Expand Down

0 comments on commit c0574f4

Please sign in to comment.