-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Sentry] feat: network controller upgrade + network editing UI #26433
Merged
bergeron
merged 521 commits into
develop
from
brian/network-controller-v20-merging-in-v21
Sep 20, 2024
Merged
Changes from 250 commits
Commits
Show all changes
521 commits
Select commit
Hold shift + click to select a range
adb718f
convert `SecurityTab` to use the new network schema
bergeron 5a57505
convert `bridge/selectors.ts` to use the new network schema
bergeron 1b403bf
update mmi controller to maintain undefined check
bergeron 2801946
Fix migration to prefer selected network id on duplicated url
bergeron 83ebebf
Put e2e test state back on schema 74
bergeron c1f3d11
convert `PrivacySettings` to use the new network schema
bergeron b28ce66
convert `LoadingNetworkScreen` to use the new network schema
bergeron 7e09e7a
remove `getNetworkConfigurations` selector
bergeron ed42fd4
remove more old network ui from settings
bergeron a05ae68
remove unused reference to `getNetworkConfigurations`
bergeron 6e71f80
comment on `MultiRpcEditModal` about not using deprecated state
bergeron dd10297
lint `DropdownEditor`
bergeron b690a78
fix some unit tests
bergeron 6bc1714
fix: update the multi-rpc modal with the new state
salimtb c7f1bea
fix: fix add-custom-network.spec test
salimtb a07e934
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
salimtb f9e20fe
fix: fix popular network component error
salimtb 5dad8f8
fix: fix errors on network form
salimtb 3e17598
fix: add test-id on rpc editor component
salimtb 5383b12
fix: fix selector tests
salimtb 7e814c0
fix: fix test ui/ducks/bridge/selectors.test.ts
salimtb 626e346
fix: skip some test on add-ethereum-chain + add todo once the work is…
salimtb 6739050
fix: fix selector test
salimtb 62562fb
fix: fix test selected account component
salimtb 255f62e
fix: restore skipped tests
salimtb 61b2c14
fix: fix test address-copy-button
salimtb 3d14996
feat: call multiRpc migration modal
salimtb 821ad4c
fix typescript errors in `NetworkListItem`
bergeron 218301c
fix typescript errors in `NetworkListMenu`
bergeron 7b28e0c
update network form validation to allow testsnet symbols like 'Sepoli…
bergeron 2306d2a
fix: fix migration modal script
salimtb aa585ab
fix: execute migrations
salimtb fc75a82
Merge branch 'brian/network-controller-v20-merging-in-v21' of github.…
bergeron f7b5ae5
tweaks to add-ethereum-chain
bergeron e9e05b8
fix: remove migration
salimtb eede333
fix: remove migration + add select rpc url test
salimtb 487d6b3
fix: hide migration modal in case non conflicts
salimtb cb1109f
remove console.log
bergeron 80b671e
cleanup pr
bergeron 83de3c7
bump network controller to new preview release
bergeron 429a2fb
tweaks for add-ethereum-chain
bergeron c970a6d
lint
bergeron 4e23820
add back missing migration
bergeron 1036384
Update LavaMoat policies
metamaskbot 58d06d5
fix a request queuing e2e test
bergeron 7d09e93
fix: fix switch to active network error
salimtb f8825f3
fix: fix custom rpc history test
salimtb 5a86e85
make 'show test networks' toggle enabled when on test network
bergeron ef2ad36
move aurora deprecation button to use new network controller API
bergeron 46b36c0
fix: fix storybook tests
salimtb 2fbde59
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 255237d
Merge branch 'brian/network-controller-v20-merging-in-v21' of github.…
bergeron a7e17c1
Update LavaMoat policies
metamaskbot 58da3a6
fix trickier edge cases in migration
bergeron 465ebb9
Merge branch 'brian/network-controller-v20-merging-in-v21' of github.…
bergeron 2800b4b
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 1c8fb4c
merge https://github.com/MetaMask/metamask-extension/pull/26726
bergeron 2aa075f
migration fixes
bergeron 08d5025
Update LavaMoat policies
metamaskbot afd32f7
simplify multi rpc modal
bergeron cf03fc3
update add-ethereum-chain snapshot
bergeron 36fb7b6
Merge branch 'brian/network-controller-v20-merging-in-v21' of github.…
bergeron 7e782d2
update multi rpc modal unit test
bergeron d3d2e57
.
bergeron fe89d37
fix: fix multi rpc migration UI
salimtb e3fc53e
fix: make rpc name ellipsis
salimtb 7a85c44
minor todos
bergeron 385ee74
Merge branch 'brian/network-controller-v20-merging-in-v21' of github.…
bergeron c74802e
remove already implemented todo
bergeron 90057c0
add comments and remove debugging statements
bergeron 81fc8f7
add migration todo
bergeron 7daea5d
fix sentry e2e tests
bergeron 1e96ba9
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron f657f8f
remove e2e test for networks in settings page
bergeron 8e4b395
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 698c644
fix for `Cannot perform 'get' on a proxy that has been revoked`
bergeron 095768d
fix block explorer e2e tests
bergeron 03c9ac6
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 9e666dd
fix metamask-controller unit tests
bergeron 5126b66
fix: fix integration tests
salimtb 506cf36
fix: fix display network name on confirmation page
salimtb f55a84f
fix: fix linter
salimtb 749736a
feat: update migration modal title
salimtb a7592f6
migration: improve duplicate detection
bergeron ad32ff1
migration logic for selected network controller
bergeron eaf8ddb
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 26f8703
Update LavaMoat policies
metamaskbot a6d6c62
fix e2e test for adding network during onboarding
bergeron 73e3bde
fix e2e test for updating a network
bergeron 1e0880e
fix not sending rpc requests before onboarding
bergeron 67fca16
fix not sending rpc requests before onboarding
bergeron 8fb8ab3
fix backup / restore of network state
bergeron c594c37
fix a bunch of typescript errors
bergeron d99afa9
update `<AddRpcUrlModal />` snapshot
bergeron 948e139
`yarn verify-locales:fix`
bergeron 1416fa6
attempt to fix `ElementClickInterceptedError` only reproducing in CI
bergeron 4fb5d45
fix mmi build
bergeron b3a97da
fix QA report of token balances not updating on RPC switch
bergeron b1e0fa0
fix: add e2e tests for multi select rpc
salimtb af8d6b3
fix: remove only
salimtb d4d7d99
fix `wallet_switchEthereumChain` when network does not exist
bergeron 9672843
Merge branch 'brian/network-controller-v20-merging-in-v21' of github.…
bergeron e82c0be
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 0b38bd5
fix: add unit test for fix wallet_switchEthereumChain when network do…
salimtb d5aee22
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 96c51f9
fix: fix e2e test and add test id
salimtb 1069090
fix: fix linter
salimtb 00ac8a8
fix: move e2e tests to another PR
salimtb 0461159
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
salimtb e22af30
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
bergeron 583cb72
include `rpcUrl` in metric
bergeron e866694
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 9a888d5
update snapshot
bergeron 6b27fbd
Merge branch 'brian/network-controller-v20-merging-in-v21' of github.…
bergeron c161b70
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron e319334
Update LavaMoat policies
metamaskbot fb230f4
move from preview package to real published network controller
bergeron 0d4002d
Merge branch 'brian/network-controller-v20-merging-in-v21' of github.…
bergeron 3bde858
remove unused patch
bergeron 4c139c0
Update LavaMoat policies
metamaskbot e4766ff
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron e9814ac
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
bergeron b3b2e6c
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron d843376
fix confirmation unit test from develop merge
bergeron 5f8f50f
fix getAllEnabledNetworks selector
bergeron c069de7
fix getAllEnabledNetworks unit test
bergeron 07da268
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 49e8b3d
fix `wallet_addEthereumChain` unit test after develop merge
bergeron 450a503
fix react hook consistent order
bergeron 6ed4dce
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron ae608b2
`[Hex]` -> `Hex[]` in `NetworkOrderController`
bergeron 60b62b9
Implement respecting custom block explorer in notification
bergeron 3716b6c
use `TEST_CHAINS` constant in `NetworkOrderController`
bergeron 15ac698
refactor function chain into variable in `NetworkOrderController`
bergeron d440651
Don't initiate approval flow if the rpc + block explorer already exis…
bergeron a7dadf4
fix switch ethereum chain unit test
bergeron 2f64e87
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 6dc153b
add rpc modal - string length check unnecessary
bergeron 388e008
redo yarn.lock
bergeron 2a487f2
fix `getCurrentNetwork` selector to include rpc url for built-in infu…
bergeron 7b3d12b
fix nft storybook to use new network state
bergeron 70edd8c
fix sentry e2e tests
bergeron 6274306
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 358247d
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 5668fe4
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron bab2341
update migration to point domains to the default rpc endpoint
bergeron ebee7ce
ellipsis long network names in network menu
bergeron 8ed559d
remove storybook for deleted component
bergeron db211e2
Fix static code analysis typescript:S6443 - React state setter functi…
bergeron bdafe4f
see whether privacy snapshot changes are still needed
bergeron 1388914
patch https://github.com/MetaMask/core/pull/4679
bergeron 7529ef8
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron b1e2c65
make chain id required in `ConfirmDeleteNetwork`
bergeron 838529c
update `mock-state.json` to be more like product state
bergeron 702a3e2
make `network-list-item.test.tsx` mock state more like product state
bergeron d677059
Update LavaMoat policies
metamaskbot 1f04901
Merge branch 'brian/network-controller-v20-merging-in-v21' of github.…
bergeron c46638a
update `add-ethereum-chain` to use `currentChainIdForDomain` instead …
bergeron 5b01c2e
lint
bergeron 9dab651
remove unused hook
bergeron fe62f44
remove redundant css + tweaks to post upgrade multi rpc modal
bergeron ff9b2b7
update test snapshot
bergeron 75da0f3
remove unised import
bergeron a60226b
move dropdown-editor to ui/components
bergeron 1f4c3c8
give add rpc/block explorer modals their own css, instead of dependin…
bergeron 2c7cf17
update snapshot with new css class
bergeron d376823
fix usage of react testing library snapshot to work with modal
bergeron 1477ed2
give select rpc url its own css instead of relying on old network set…
bergeron 4740f76
fix select rpc url snapshot and unit tests to use new css class
bergeron f685416
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 0534ba7
simplify `NetworkDisplay` to how it was before, now that `getCurrentN…
bergeron ddb46c5
remove commented out code
bergeron 1fc2a81
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
bergeron 943be09
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
bergeron affb750
attempt to fix flaky e2e test with stale element
bergeron d69e1b8
Merge branch 'brian/network-controller-v20-merging-in-v21' of github.…
bergeron 2d18c86
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron f57dc52
experiment with performance via `createDeepEqualSelector`
bergeron 65fa687
experiment with performance via `createSelector`
bergeron ad8b239
temporarily remove re-runs for changed files to experiment
bergeron 77e8b0c
increase e2e timeout
bergeron c0f0a2e
Default RPCs: Autofocus Network, RPC, and Block Explorer form fields …
darkwing acae126
merge develop
bergeron 9ea5dbf
revert filterE2eChangedFiles experiment
bergeron aef9ad9
increase e2e timeout
bergeron 06bd21a
fix confirmation unit test after develop merge
bergeron 8b8e6ea
Merge branch 'develop' into brian/increase-e2e-timeout
bergeron ecf368c
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 554dbd9
Merge branch 'develop' into brian/increase-e2e-timeout
bergeron b615600
improve handling of migration edge case where selectedNetworkClientId…
bergeron 71d7f85
improve link from scam warning to network editor
bergeron c7dd1c6
incorporate PR 26323 into `network-list-menu`
bergeron 6e32f73
remove selected-network-controller patch and use release 18.0.1 instead
bergeron a48477e
fix typos in comments
bergeron 709b595
`yarn dedupe`
bergeron ed206a7
Update LavaMoat policies
metamaskbot de6461f
15 minutes, plus 3 minutes for every changed file, up to a maximum of…
HowardBraham 317514f
fix test-lint-shellcheck
HowardBraham a991b10
Merge branch 'develop' into brian/increase-e2e-timeout
bergeron 029095a
Merge branch 'brian/increase-e2e-timeout' into brian/network-controll…
bergeron 97104e2
fix block explorer mock in `build-quote.test.js`
bergeron 0a9d97f
undo changes from https://github.com/MetaMask/metamask-extension/pull…
bergeron d5da99d
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
bergeron 6c5dfdd
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
bergeron 8648ae0
use `cloneDeep` instead of spread operator
bergeron d90a359
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 1175992
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
bergeron acd0e28
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
bergeron ea8c8f2
add comment
bergeron 17375fa
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
bergeron d9bda85
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
bergeron a1f9578
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 4574bd2
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
bergeron 5301d55
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron cb2809f
Merge branch 'brian/network-controller-v20-merging-in-v21' of github.…
bergeron 6fd99eb
update nft unit test snapshot
bergeron e294209
update nft unit test snapshot
bergeron d75e942
add comment in migration
bergeron e1db1c3
update unit test mocks to not modify child state by reference
bergeron 66c729b
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
bergeron b1b0466
capture an exception if the network controller is not defined or not …
bergeron 294e9f0
capture an exception if the transaction controller is not defined or …
bergeron e057661
Merge branch 'brian/network-controller-v20-merging-in-v21' of github.…
bergeron 1cbd990
fix onboarding e2e tests after new validation added to migration
bergeron 74f01a3
improve handling of duplicate endpoints across chains
bergeron 0c40b3e
update comment in network stub
bergeron 5070138
remove eslint rule disable
bergeron 2908f06
remove unnecessary async in unit test
bergeron 396c47c
improve handling of case where selected network points to an invalid …
bergeron 3b9df92
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
bergeron b2ed30b
memoize `getNetworkConfigurationsByChainId`
bergeron 1b5623f
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron f8e317e
Merge branch 'brian/network-controller-v20-merging-in-v21' of github.…
bergeron ecaf414
make tie breaker fall back to custom network instead of infura
bergeron edb289e
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
bergeron 4c16c6c
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron 5baf8a2
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
bergeron f6c9ce7
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
bergeron 402a86d
Merge branch 'brian/network-controller-v20-merging-in-v21' of github.…
bergeron 1e55528
remove existing key from url
bergeron 4cb408c
fix return type of action
bergeron 63dbc1a
remove commented out code
bergeron 4cf9c89
Merge branch 'develop' of github.com:MetaMask/metamask-extension into…
bergeron cd0d24e
remove unused import
bergeron 7019816
add unit test clicking save button on network form
bergeron 6b91c98
Merge branch 'develop' into brian/network-controller-v20-merging-in-v21
bergeron 18e0533
increase code coverage further
bergeron 05f1449
Merge branch 'brian/network-controller-v20-merging-in-v21' of github.…
bergeron 7c909d4
unit test coverage for `updateNetwork`
bergeron 9107a7b
.
bergeron File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
Int the removed code there is a condition
&& chainId === 1
. Why is that condition not needed any more?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.
The built in infura network configurations are now in state, where they were not before. Therefore you don't need a special condition to call:
Since the infura/mainnet network client id now lives in networkConfigurationsByChainId as a regular network.
That said, I don't know how to test mmi properly.
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.
@bergeron I can test this in mmi. Do you have the steps on how to test it manually?
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.
I'm not sure how to test MMI, or how it handles custom networks. But the PR description describes the main flows under
Manual testing steps
.