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

Version v11.17.0 #24347

Closed
wants to merge 109 commits into from
Closed
Show file tree
Hide file tree
Changes from 151 commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
6c465bc
fix: network verification for collision network + local network (#23802)
salimtb Apr 25, 2024
d5dbf74
chore: adding design tokens eslint plugin `color-no-hex` rule (#24089)
georgewrmarshall Apr 25, 2024
8860a10
fix: Provider padding to address button in Receive modal (#24200)
darkwing Apr 25, 2024
f6728c8
feat: push notifications new controller (#23137)
matteoscurati Apr 26, 2024
0edd2da
fix: Remove snaps, add highlight to connection list (#24099)
jonybur Apr 26, 2024
a07d82f
Fix confirm page in extended view (#24211)
jpuri Apr 26, 2024
6eaca31
feat: Create info component for contract interactions (#24131)
pedronfigueiredo Apr 26, 2024
eeff513
fix: handle calldata tags in custom approvals (#23527)
horsefacts Apr 26, 2024
01d6cb9
feat: added e2e tests for connections page (#24161)
NidhiKJha Apr 26, 2024
38cdd1f
fix: hide installing Snaps from list (#24215)
FrederikBolding Apr 29, 2024
c7f4821
feat(23015): convert level 5 files for metamask-controller to ts (#23…
DDDDDanica Apr 29, 2024
50c4610
feat: single alert modal component and state alert (#23625)
vinistevam Apr 29, 2024
49416ad
fix: Update `user-operation-controller` version (#24237)
OGPoyraz Apr 29, 2024
74678b0
chore: add infra for e2e for confirmations redesign (#24240)
pnarayanaswamy Apr 29, 2024
bbb372f
chore: add e2e tests for rejection of signatures (#24077)
pnarayanaswamy Apr 29, 2024
4caa85f
test: Reorganize e2e tests repo part2 (#24238)
chloeYue Apr 29, 2024
50ef1c2
fix: fix e2e rm nft flakiness (#24291)
sahar-fehri Apr 29, 2024
de092fb
fix: getMinimumGasTotalInHexWei error when gasEstimateType === "fee_m…
digiwand Apr 29, 2024
9cd8c79
fix: UX: Multichain: Send flow: Fix "Internal JSON-RPC Error" when ed…
darkwing Apr 29, 2024
4f80914
build: don't apply snow to builds when `--snow=false` (#23234)
davidmurdoch Apr 29, 2024
8a0e455
fix: use transactionMeta for TransactionController events (#24003)
ccharly Apr 30, 2024
9c50ce2
fix: update to transaction-controller 28.1.1 to fix NFT mint simulati…
dbrans Apr 30, 2024
60f4c8b
fix: PW test for MMI (#24279)
zone-live Apr 30, 2024
d15626b
fix: checkbox background color (#24262)
georgewrmarshall Apr 30, 2024
9f8cf68
feat: add multiple alert component (#23664)
vinistevam May 1, 2024
9c83db2
fix: duplicate fee display for l2 networks (#24264)
jpuri May 1, 2024
8700083
refactor: :recycle: change the way we are handling some metamask noti…
matteoscurati May 1, 2024
e5ad8a2
test: [Snaps E2E Test] Create test for snaps UI images (#24298)
bowensanders May 1, 2024
4b543cd
ci: update cla-signature-bot (#24296)
davidmurdoch May 1, 2024
8638ba3
fix: Fix #24320: Prevent editing of safe-transfer-from transactions (…
darkwing May 1, 2024
2c45770
chore(deps): Bump phishing-controller to ^9.0.2 (#24311)
kanthesha May 1, 2024
9bf2c9e
Merge origin/develop into master-sync
danjm May 1, 2024
f2ec444
fix: reset streams on prerender only for affected browser versions (#…
jiexi May 1, 2024
7a2f85b
Merge pull request #24330 from MetaMask/master-sync
danjm May 1, 2024
945750d
chore: update `typescript` from `v5.3.3` to `v5.4.5` (#24297)
davidmurdoch May 1, 2024
b3ad52d
fix: Render avatar network in toast as the popup header (#24258)
NidhiKJha May 2, 2024
347cf27
fix: rewrite snaps metadata selector to fix re-rendering (#24344)
FrederikBolding May 2, 2024
f7e26d1
fix: remove extra header from confirmation pages in expanded view (#2…
jpuri May 2, 2024
249d85b
test: Request queuing e2e scenarios (#23769)
tmashuang May 2, 2024
8d4e334
Added QR code (#23428)
albertolive May 2, 2024
0452736
feat(24224): introduce flag to disable MV3 service worker keep alive …
DDDDDanica May 2, 2024
4feb825
chore: Make use of redesignedConfirmationsEnabled preference consiste…
jpuri May 2, 2024
9a7f82a
fix: "Transaction Finalized" metrics event on transaction confirmatio…
danjm May 2, 2024
4a1853c
Fix #24322 - Disable edits for all dapp initiated transactions (#24334)
darkwing May 2, 2024
c1e1c15
feat(): Add e2e tests for header component in signatures redesign (#2…
pedronfigueiredo May 3, 2024
d27a233
ci: fix `Validate Conventional Commit Title` action (#24356)
davidmurdoch May 3, 2024
2380a8d
fix: Reduce Dapp Viewed log events (#24118)
vthomas13 May 3, 2024
011b772
feat: Implement transaction details component (#24228)
pedronfigueiredo May 3, 2024
3005083
feat: allow seeding of the accounts in a permission request (#24082)
FrederikBolding May 3, 2024
cc509de
fix: currency displayed for user balance in re-designed confirmation …
jpuri May 3, 2024
2adf371
feat: Disable services with a Basic configuration toggle (#23456)
jonybur May 3, 2024
b58e2b7
fix: Optimism max gas missmatch (#24272)
jpuri May 3, 2024
397f0dc
fix: improvements in network connect and display (#24348)
jpuri May 4, 2024
08f4665
fix(syntax): remove double-declared variable (#24373)
legobeat May 4, 2024
70ab766
chore(ci): fix check-pr-tag job (#24193)
legobeat May 4, 2024
f54730b
chore(test): remove polyfill-crypto.getrandomvalues (#23145)
legobeat May 5, 2024
f2db014
chore: Bump address-book-controller to ^4.0.1 (#24205)
mcmire May 5, 2024
ba1e55b
fix: Ensure smart transaction modal is shown for users upgrading from…
danjm May 6, 2024
f2b6afd
fix: Remove Snaps Methods from 'methodsWithConfirmation' list used to…
adonesky1 May 6, 2024
44e29aa
feat: Signature Redesign update settings and title description copies…
digiwand May 6, 2024
f77eac5
fix: Move "SettingsUpdated" event into the "setSmartTransactionsOptIn…
dan437 May 7, 2024
f0ac9c0
feat: Add animation on the Smart Transaction status page (#24389)
dan437 May 7, 2024
cecb0f1
perf: disable fence linting in test builds (#24363)
FrederikBolding May 7, 2024
ff4dcfe
chore(deps): bump keyring controller to ^15.0.0 (#24199)
montelaidev May 7, 2024
e775193
refactor(preferences-controller): remove `syncIdentities` and `setAdd…
mikesposito May 7, 2024
ea7a537
feat: post-MVP updates for Smart Transactions (#24340)
dan437 May 7, 2024
291a642
fix: DAPP initiated swaps in MetaMask (#24382)
jpuri May 7, 2024
25c0795
fix: update `@metamask/selected-network-controller` version + add mig…
adonesky1 May 7, 2024
4519cac
feat: add Confirmation Signature Redesign ui_customization event prop…
digiwand May 7, 2024
39e7512
chore: bump assets controllers to latest (#24360)
sahar-fehri May 7, 2024
ab19789
fix: reset to native asset on account change (#24398)
bergeron May 8, 2024
a51eb93
feat: set useRequestQueue on by default (#24274)
NidhiKJha May 8, 2024
032a431
fix: gas fee editing in advance gas fee modals (#24387)
jpuri May 8, 2024
4dd9d52
feat: Add blockaid validation support for OPBNB network. (#24361)
jpuri May 8, 2024
603b1b5
fix: decimals and fiat conversion crashes in simulation (#24422)
dbrans May 8, 2024
86148a1
chore: Bump approval-controller to 6.0.1 (#24141)
mcmire May 8, 2024
943b513
fix: MMI typo fix (#24426)
zone-live May 8, 2024
73d4c59
chore: update mmi dependency to latest version (#24404)
zone-live May 8, 2024
b41022a
fix: apply patch for preinstalled Snaps (#24419)
FrederikBolding May 8, 2024
ed850ee
fix: Removing usage of driver.navigate before unlockWallet (#24436)
vthomas13 May 8, 2024
3beab7a
test: Basic Functionality Toggle - Follow-up (#24413)
vthomas13 May 8, 2024
06b6018
chore(test/e2e): Fix request-queueing/ui.spec.js (#24440)
danjm May 8, 2024
f1e1ed0
feat: Add metametrics event to switch modal confirmation (#24283)
jonybur May 8, 2024
11002eb
chore: removing deprecated unused site icon component from codebase (…
georgewrmarshall May 8, 2024
8db28c7
chore(ci): skip check-pr-tag job if not PR (#24379)
legobeat May 9, 2024
4dce340
feat: Removed multichain flag for v1 release (#24362)
NidhiKJha May 9, 2024
c2d9584
feat: add inline alert to confirm `AlertRow` component (#23719)
vinistevam May 9, 2024
bb0e051
feat: Update UI for the Smart Transactions Opt In modal (#24441)
dan437 May 9, 2024
d15001e
fix: fix a date in a test (#24467)
matteoscurati May 9, 2024
6813ea0
fix: Bump @metamask/smart-transactions-controller to v10.0.1 (#24461)
dan437 May 9, 2024
ee8d811
fix: reset to native asset on account change (#24421)
darkwing May 10, 2024
ad6a387
feat: enable signatures redesign new users (#24466)
cryptotavares May 10, 2024
4cb5d24
feat: support transaction specific gas fee estimates (#24222)
matthewwalsh0 May 10, 2024
e3037b7
feat: add multiple alert modal to `AlertRow` component (#23759)
vinistevam May 10, 2024
fa150dc
fix: Reset confirm redesign hasScrolledToBottom & feat: reset scroll …
digiwand May 10, 2024
3c2d792
feat: Confirmation Redesign "Confirm" button should be red when trans…
digiwand May 10, 2024
0fdfdac
fix: desktop build (#24478)
cryptotavares May 10, 2024
98d5ff2
feat: Throw when encountering unexpected RPC method hooks (#24357)
rekmarks May 10, 2024
56084ba
fix: Prevent legacy <UnconnectedAccountAlert/> component from display…
darkwing May 10, 2024
cfcbd1e
fix: Make ConnectAccountToast respect setting for multichain (#24474)
darkwing May 10, 2024
0fb3d6a
Updated the version
hjetpoluru May 10, 2024
9b9939e
Fixed lint
hjetpoluru May 10, 2024
ad346f4
Fixed lint
hjetpoluru May 10, 2024
3d5798d
cherry-pick: fix newline display in signature request content (#24553)
jpuri May 20, 2024
ae3a260
cherry-pick: fix confirmation page not loading if re-design is enable…
jpuri May 20, 2024
8024546
fix: (cherry-pick Version v11.17.0) Signature Redesign "ui_customizat…
digiwand May 20, 2024
f162192
fix: (cherry-pick Version v11.17.0) Fix confirmation redesign disable…
digiwand May 20, 2024
bd5f6ca
cherry-pick: fix redesign metrics (#24600)
pnarayanaswamy May 20, 2024
7d4dcd4
cherry-pick: bumps MMI packages (#24581) (#24630)
zone-live May 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
146 changes: 103 additions & 43 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ workflows:
- prep-build-multichain-test:
requires:
- prep-deps
- prep-build-confirmation-redesign-test:
requires:
- prep-deps
- prep-build-test-mv3:
requires:
- prep-deps
Expand Down Expand Up @@ -168,9 +171,15 @@ workflows:
- test-e2e-chrome-multichain:
requires:
- prep-build-multichain-test
- test-e2e-chrome-confirmation-redesign:
requires:
- prep-build-confirmation-redesign-test
- test-e2e-firefox:
requires:
- prep-build-test
- test-e2e-firefox-confirmation-redesign:
requires:
- prep-build-confirmation-redesign-test
- test-e2e-chrome-rpc:
requires:
- prep-build-test
Expand Down Expand Up @@ -283,6 +292,8 @@ workflows:
- test-e2e-chrome
- test-e2e-chrome-multichain
- test-e2e-chrome-multiple-providers
- test-e2e-chrome-confirmation-redesign
- test-e2e-firefox-confirmation-redesign
- test-e2e-firefox
- test-e2e-chrome-flask
- test-e2e-firefox-flask
Expand Down Expand Up @@ -396,54 +407,23 @@ jobs:
command: |
#!/bin/bash

# GitHub Personal Access Token for API Authentication
GITHUB_TOKEN="${GITHUB_TOKEN}"
BRANCH="${CIRCLE_BRANCH}"

# Fetch the PRs associated with the current branch and check the response
PR_RESPONSE=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" \
"https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pulls?state=open&head=${CIRCLE_PROJECT_USERNAME}:${BRANCH}")
echo "https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pulls?state=open&head=${CIRCLE_PROJECT_USERNAME}:${BRANCH}"

# Check if the response contains valid JSON
if ! echo "$PR_RESPONSE" | jq empty; then
echo "Failed to parse JSON response."
echo "$PR_RESPONSE"
exit 1
fi

# Check if we received an array of PRs
if ! echo "$PR_RESPONSE" | jq -e '. | type == "array"'; then
echo "$PR_RESPONSE"
echo "Expected an array of PRs, got something else."
exit 1
fi

# Check if the array of PRs is empty
PR_COUNT=$(echo "$PR_RESPONSE" | jq '. | length')

# If no PRs are found, exit gracefully
if [ "$PR_COUNT" -eq 0 ]; then
echo "No open PRs found. Exiting."
echo "false" > ./RUN_MMI_OPTIONAL
GH_LABEL=team-mmi
if [ -z "$CIRCLE_PULL_REQUESTS" ]; then
exit 0
fi

# Extract label names from the PR_RESPONSE
LABEL_NAMES=$(echo "$PR_RESPONSE" | jq -r '.[0].labels[].name')
echo $CIRCLE_PULL_REQUESTS | sed 's/,/\n/g'

echo "Labels found: $LABEL_NAMES"
# See if any associated PRs have matching label
HAS_MATCHING_PR=$(echo $CIRCLE_PULL_REQUESTS \
| sed -e 's#,#\n#g' -e 's#/github.com/#/api.github.com/repos/#g' -e 's#/pull/#/pulls/#g' \
| xargs -n1 curl -s \
| jq -s "map((.labels|map(select(.name==\"${GH_LABEL}\"))))|flatten|length > 0")

# Check if "team-mmi" label is present
if echo "$LABEL_NAMES" | grep -qw "team-mmi"; then
echo "team-mmi tag found."
# assign the RUN_MMI_OPTIONAL variable to true
echo "true" > ./RUN_MMI_OPTIONAL
else
echo "team-mmi tag not found."
# assign the RUN_MMI_OPTIONAL variable to false
echo "false" > ./RUN_MMI_OPTIONAL
fi
echo "${GH_LABEL} tag presence: ${HAS_MATCHING_PR}"

# assign the RUN_MMI_OPTIONAL variable
echo "${HAS_MATCHING_PR}" > ./RUN_MMI_OPTIONAL
- persist_to_workspace:
root: .
paths:
Expand Down Expand Up @@ -803,6 +783,27 @@ jobs:
- dist-test-multichain
- builds-test-multichain

prep-build-confirmation-redesign-test:
executor: node-browsers-medium-plus
steps:
- run: *shallow-git-clone
- attach_workspace:
at: .
- run:
name: Build extension for testing
command: ENABLE_CONFIRMATION_REDESIGN=1 yarn build:test
- run:
name: Move test build to 'dist-test' to avoid conflict with production build
command: mv ./dist ./dist-test-confirmations
- run:
name: Move test zips to 'builds-test' to avoid conflict with production build
command: mv ./builds ./builds-test-confirmations
- persist_to_workspace:
root: .
paths:
- dist-test-confirmations
- builds-test-confirmations

prep-build-storybook:
executor: node-browsers-medium-plus
steps:
Expand Down Expand Up @@ -991,6 +992,35 @@ jobs:
- store_test_results:
path: test/test-results/e2e

test-e2e-chrome-confirmation-redesign:
executor: node-browsers-medium-plus
parallelism: 20
steps:
- run: *shallow-git-clone
- attach_workspace:
at: .
- run:
name: Move test build to dist
command: mv ./dist-test-confirmations ./dist
- run:
name: Move test zips to builds
command: mv ./builds-test-confirmations ./builds
- run:
name: test:e2e:chrome-confirmation-redesign
command: |
if .circleci/scripts/test-run-e2e.sh
then
timeout 20m yarn test:e2e:chrome --retries 2
fi
no_output_timeout: 5m
environment:
ENABLE_CONFIRMATION_REDESIGN: 1
- store_artifacts:
path: test-artifacts
destination: test-artifacts
- store_test_results:
path: test/test-results/e2e

test-e2e-chrome-mv3:
executor: node-browsers-medium-plus
parallelism: 16
Expand Down Expand Up @@ -1260,6 +1290,36 @@ jobs:
- store_test_results:
path: test/test-results/e2e

test-e2e-firefox-confirmation-redesign:
executor: node-browsers-medium-plus
parallelism: 20
steps:
- run: *shallow-git-clone
- attach_workspace:
at: .
- run:
name: Move test build to dist
command: mv ./dist-test-confirmations ./dist
- run:
name: Move test zips to builds
command: mv ./builds-test-confirmations ./builds
- run:
name: test:e2e:firefox-confirmation-redesign
command: |
if .circleci/scripts/test-run-e2e.sh
then
timeout 20m yarn test:e2e:firefox --retries 2
fi
no_output_timeout: 5m
environment:
ENABLE_CONFIRMATION_REDESIGN: 1
- store_artifacts:
path: test-artifacts
destination: test-artifacts
- store_test_results:
path: test/test-results/e2e


benchmark:
executor: node-browsers-small
steps:
Expand Down
17 changes: 17 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ module.exports = {
ignorePatterns: readFileSync('.prettierignore', 'utf8').trim().split('\n'),
// eslint's parser, esprima, is not compatible with ESM, so use the babel parser instead
parser: '@babel/eslint-parser',
plugins: ['@metamask/design-tokens'],
rules: {
'@metamask/design-tokens/color-no-hex': 'warn',
},
overrides: [
/**
* == Modules ==
Expand Down Expand Up @@ -439,5 +443,18 @@ module.exports = {
],
},
},
/**
* Don't check for static hex values in .test, .spec or .stories files
*/
{
files: [
'**/*.test.{js,ts,tsx}',
'**/*.spec.{js,ts,tsx}',
'**/*.stories.{js,ts,tsx}',
],
rules: {
'@metamask/design-tokens/color-no-hex': 'off',
},
},
],
};
2 changes: 1 addition & 1 deletion .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
contents: write
steps:
- name: "CLA Signature Bot"
uses: MetaMask/cla-signature-bot@v3.0.2
uses: MetaMask/cla-signature-bot@v4.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-conventional-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
branches:
- develop
types: [opened, edited, reopened]
types: [opened, edited, reopened, synchronize]

jobs:
pr-title-linter:
Expand Down

This file was deleted.

Loading
Loading