Commit 1937f9a
authored
chore(3663): removing the isMultichainVersion1Enabled feature flag, and corresponding dead code (#12831)
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->
## **Description**
- Step 1 **(done)**: remove code that ran in the feature flag OFF
scenario, confirm stuff runs as expected (manually and e2e)
- Step 2 **(done)**: remove any left over checks on the feature flags,
for examples checks that used only feature flag ON to render something
specific to that scenario
- Step 3 **(done)**: address unit test snapshots tests failing, all the
while using these snapshots to ensure expected behavior is maintained,
comparing a test that runs with FF OFF, to the existing snapshot on
main, this test should pass since FF OFF is the default, this a
baseline. Next, compare the snapshot generated from a FF ON test running
on the code with feature flag, to the snapshot generated once all the
dead code and feature flag code is removed, that test should pass since
FF ON becomes the default behavior once feature flag and dead code is
removed.
- Step 4 **(done)**: address unit tests that fail on things other than
snapshots, find out why they are failing
- Step 5 **(done)**: added coverage on new code (Sonar)
<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
3. What is the improvement/solution?
-->
## **Related issues**
Contributes to:
https://github.com/MetaMask/MetaMask-planning/issues/3663
## **Manual testing steps**
1. Go to the in app browser and test-dapp
2. Connect to it
3. Click the top header in the in-app browser, confirm the expected
permissions as displaying.
## **Screenshots/Recordings**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
### **Before**
It's a refactoring, to the user it looks the same before and after.
### **After**
<!-- [screenshots/recordings] -->
## **Pre-merge author checklist**
- [ ] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.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-mobile/blob/main/.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.1 parent 9feefd3 commit 1937f9a
File tree
31 files changed
+1703
-2135
lines changed- app
- components
- Approvals/SwitchChainApproval
- UI
- NetworkModal/__snapshots__
- NetworkVerificationInfo
- __snapshots__
- Ramp/Views/NetworkSwitcher/__snapshots__
- SwitchCustomNetwork
- __snapshots__
- Views
- AccountConnect
- AccountConnectMultiSelector
- __snapshots__
- AccountPermissions
- AccountPermissionsConfirmRevokeAll
- __snapshots__
- AccountPermissionsConnected
- NetworkPermissionsConnected
- __snapshots__
- BrowserTab
- NetworkConnect/NetworkConnectMultiSelector
- Settings
- PermissionsSettings
- util/networks
31 files changed
+1703
-2135
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| |||
Lines changed: 24 additions & 45 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
| 341 | + | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
| 349 | + | |
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
366 | 366 | | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
| 367 | + | |
384 | 368 | | |
385 | 369 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
393 | 373 | | |
394 | 374 | | |
395 | 375 | | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
408 | 387 | | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
413 | 392 | | |
414 | 393 | | |
415 | 394 | | |
| |||
Lines changed: 0 additions & 133 deletions
This file was deleted.
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
98 | 104 | | |
99 | 105 | | |
100 | 106 | | |
| |||
0 commit comments