Commit 3453258
refactor: resolve activity redesign (MetaMask#35203)
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
## **Description**
Resolves `tmcuActivityRedesignEnabled` and
`tmcuTransactionsRedesignEnabled`.
Legacy-only selectors, components, fixtures, tests, and non-production
and unused implementation are removed.
**NOTE:** This PR focuses on removing *unused* code, the pre-redesign
Activity flow, including *assertions on unused code*. _New_ assertions
will be a separate PR.
## **Changelog**
CHANGELOG entry: null
## **Related issues**
Refs: TMCU-854, TMCU-864
## **Manual testing steps**
```gherkin
Feature: Activity redesign is the default experience
Scenario: user views activity and transaction details
Given a wallet with EVM and non-EVM activity, including bridge, Ramp, Perps, and Predict entries
When the user opens Activity and selects supported activity rows
Then the redesigned Activity list and Activity Details screens are shown
And Ramp sell and created-deposit actions retain their specialized destinations
```
## **Screenshots/Recordings**
N/A — this removes inactive legacy code while preserving the
already-launched redesign UI.
## **Pre-merge author checklist**
- [x] 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).
- [x] I've completed the PR template to the best of my ability
- [x] I've included tests if applicable
- [x] I've documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] 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.
#### Performance checks (if applicable)
- [x] I've tested on Android — N/A; no rendering behavior was added or
changed
- [x] I've tested with a power user scenario — N/A; no rendering
behavior was added or changed
- [x] I've instrumented key operations with Sentry traces for production
performance metrics — N/A; no new operation was introduced
For performance guidelines and tooling, see the [Performance
Guide](https://consensyssoftware.atlassian.net/wiki/spaces/TL1/pages/400085549067/Performance+Guide+for+Engineers).
## **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.
<!-- CURSOR_AGENT_PR_BODY_END -->
<div><a
href="https://cursor.com/agents/bc-756b7456-0030-40d4-9d9a-76e917a85f51?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a
href="https://cursor.com/background-agent?bcId=bc-756b7456-0030-40d4-9d9a-76e917a85f51&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div>
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>1 parent 4cacc88 commit 3453258
74 files changed
Lines changed: 490 additions & 9945 deletions
File tree
- app
- components
- UI
- Bridge/components/TransactionDetails
- Perps
- Views/PerpsTransactionsView
- components
- PerpsMarketTradesList
- PerpsRecentActivityList
- hooks
- utils
- Predict/hooks
- TokenDetails/hooks
- Transactions
- Views
- ActivityDetails
- ActivityList
- ActivityView
- selectors/featureFlags
- MultichainTransactionsView
- UnifiedTransactionsView
- helpers
- selectors
- featureFlagController/activityRedesign
- tests
- component-view
- presets
- renderers
- flows
- helpers
- analytics/expectations
- swap
- page-objects
- Transactions
- wallet
- smoke-appium
- confirmations
- pay
- send
- transactions
- predict
- ramps
- stake
- swap
- wallet
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 89 additions & 415 deletions
Large diffs are not rendered by default.
Lines changed: 225 additions & 513 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 82 | | |
87 | 83 | | |
88 | 84 | | |
| |||
335 | 331 | | |
336 | 332 | | |
337 | 333 | | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
| 334 | + | |
344 | 335 | | |
345 | 336 | | |
346 | 337 | | |
| |||
Lines changed: 0 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | 417 | | |
441 | 418 | | |
442 | 419 | | |
| |||
Lines changed: 2 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | | - | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
| |||
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 53 | | |
59 | 54 | | |
60 | 55 | | |
| |||
96 | 91 | | |
97 | 92 | | |
98 | 93 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 94 | + | |
105 | 95 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 96 | + | |
113 | 97 | | |
114 | 98 | | |
115 | 99 | | |
| |||
Lines changed: 0 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | 349 | | |
365 | 350 | | |
366 | 351 | | |
| |||
Lines changed: 2 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
| |||
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 46 | | |
52 | 47 | | |
53 | 48 | | |
| |||
75 | 70 | | |
76 | 71 | | |
77 | 72 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 73 | + | |
84 | 74 | | |
85 | 75 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 76 | + | |
93 | 77 | | |
94 | 78 | | |
95 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
65 | 64 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 65 | | |
76 | 66 | | |
77 | 67 | | |
| |||
103 | 93 | | |
104 | 94 | | |
105 | 95 | | |
106 | | - | |
107 | 96 | | |
108 | 97 | | |
109 | 98 | | |
| |||
219 | 208 | | |
220 | 209 | | |
221 | 210 | | |
222 | | - | |
223 | 211 | | |
224 | 212 | | |
225 | 213 | | |
| |||
242 | 230 | | |
243 | 231 | | |
244 | 232 | | |
245 | | - | |
246 | | - | |
| 233 | + | |
| 234 | + | |
247 | 235 | | |
248 | 236 | | |
249 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
395 | 394 | | |
396 | 395 | | |
397 | 396 | | |
398 | | - | |
399 | | - | |
400 | 397 | | |
401 | 398 | | |
402 | 399 | | |
| |||
Lines changed: 5 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 54 | + | |
60 | 55 | | |
61 | 56 | | |
62 | 57 | | |
| |||
71 | 66 | | |
72 | 67 | | |
73 | 68 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 69 | + | |
80 | 70 | | |
81 | 71 | | |
82 | 72 | | |
| |||
87 | 77 | | |
88 | 78 | | |
89 | 79 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | 80 | | |
107 | 81 | | |
108 | 82 | | |
| |||
117 | 91 | | |
118 | 92 | | |
119 | 93 | | |
120 | | - | |
| 94 | + | |
121 | 95 | | |
122 | 96 | | |
123 | 97 | | |
| |||
137 | 111 | | |
138 | 112 | | |
139 | 113 | | |
140 | | - | |
| 114 | + | |
141 | 115 | | |
142 | 116 | | |
143 | 117 | | |
| |||
157 | 131 | | |
158 | 132 | | |
159 | 133 | | |
160 | | - | |
| 134 | + | |
161 | 135 | | |
162 | 136 | | |
163 | 137 | | |
| |||
0 commit comments