Commit 581637f
authored
chore: Update card welcome splash screen (MetaMask#23706)
Update nav options
Update Signup
Update ConfirmEmail
Update ConfirmPhoneNumber
Update Address
Update VerifyIdentity
Update PersonalDetails
Update KYC success and failure
<!--
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**
Update card onboarding flow according to new design
[CARD-213](https://consensyssoftware.atlassian.net/browse/CARD-213)
[CARD-216](https://consensyssoftware.atlassian.net/browse/CARD-216)
[CARD-217](https://consensyssoftware.atlassian.net/browse/CARD-217)
[CARD-220](https://consensyssoftware.atlassian.net/browse/CARD-220)
Half of
[CARD-221](https://consensyssoftware.atlassian.net/browse/CARD-221)
since address search and autocompletion requires a new library
[CARD-222](https://consensyssoftware.atlassian.net/browse/CARD-222)
[CARD-223](https://consensyssoftware.atlassian.net/browse/CARD-223)
[CARD-224](https://consensyssoftware.atlassian.net/browse/CARD-224)
<!--
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?
2. What is the improvement/solution?
-->
## **Changelog**
<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`
If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`
(This helps the Release Engineer do their job more quickly and
accurately)
-->
CHANGELOG entry: Update card onboarding flow according to new design
## **Related issues**
Fixes:
## **Manual testing steps**
```gherkin
Feature: my feature name
Scenario: user [verb for user action]
Given [describe expected initial app state]
When user [verb for user action]
Then [describe expected outcome]
```
## **Screenshots/Recordings**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
### **Before**
<!-- [screenshots/recordings] -->
### **After**
<!-- [screenshots/recordings] -->
<img width="1179" height="2556" alt="Simulator Screenshot - E2E Test -
2025-12-05 at 14 10 51"
src="https://github.com/user-attachments/assets/843d0a66-ddc1-40d4-90ff-bdf530166cc9"
/>
<img width="1179" height="2556" alt="Simulator Screenshot - E2E Test -
2025-12-05 at 14 10 56"
src="https://github.com/user-attachments/assets/84705009-9737-4d12-a0bd-51cfe7fd6054"
/>
<img width="1179" height="2556" alt="Simulator Screenshot - E2E Test -
2025-12-05 at 14 12 07"
src="https://github.com/user-attachments/assets/945ed24a-1e8a-42b0-893f-2108afe392a2"
/>
<img width="1179" height="2556" alt="Simulator Screenshot - E2E Test -
2025-12-08 at 10 36 23"
src="https://github.com/user-attachments/assets/4ec93477-c5f2-42ad-96ee-bf945f6a2993"
/>
<img width="1179" height="2556" alt="Simulator Screenshot - E2E Test -
2025-12-05 at 14 15 16"
src="https://github.com/user-attachments/assets/f45008bd-08b7-48f1-968b-a8951cdaf5e2"
/>
<img width="1179" height="2556" alt="Simulator Screenshot - E2E Test -
2025-12-08 at 10 42 57"
src="https://github.com/user-attachments/assets/89b97c4c-dfc5-4efe-b28b-ff08f6624a38"
/>
<img width="1179" height="2556" alt="Simulator Screenshot - E2E Test -
2025-12-09 at 12 11 02"
src="https://github.com/user-attachments/assets/077d8ef5-96aa-4131-a441-f63ac565b8f5"
/>
<img width="1179" height="2556" alt="Simulator Screenshot - E2E Test -
2025-12-05 at 14 39 46"
src="https://github.com/user-attachments/assets/71cc5661-0c51-4720-a430-a0ac45e80bf2"
/>
<img width="1179" height="2556" alt="Simulator Screenshot - E2E Test -
2025-12-05 at 14 34 16"
src="https://github.com/user-attachments/assets/a2d3d7d2-0b2d-4fc6-b35a-b26ea1489773"
/>
<img width="1179" height="2556" alt="Simulator Screenshot - E2E Test -
2025-12-05 at 14 34 28"
src="https://github.com/user-attachments/assets/ffac8399-2485-4abc-b819-df2bed108dd0"
/>
<img width="1179" height="2556" alt="Simulator Screenshot - E2E Test -
2025-12-08 at 10 44 00"
src="https://github.com/user-attachments/assets/9133d701-76c4-4922-a6f9-3c08ea2b68af"
/>
<img width="1179" height="2556" alt="Simulator Screenshot - E2E Test -
2025-12-05 at 14 35 40"
src="https://github.com/user-attachments/assets/d4801d92-f63b-41b7-9ff8-b9709070d9cd"
/>
<img width="1179" height="2556" alt="Simulator Screenshot - E2E Test -
2025-12-05 at 14 35 50"
src="https://github.com/user-attachments/assets/23e81a3f-23e8-4daa-9709-4d10ccdae0f9"
/>
## **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.
## **Pre-merge reviewer checklist**
- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] 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.
[CARD-213]:
https://consensyssoftware.atlassian.net/browse/CARD-213?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[CARD-216]:
https://consensyssoftware.atlassian.net/browse/CARD-216?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[CARD-217]:
https://consensyssoftware.atlassian.net/browse/CARD-217?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[CARD-220]:
https://consensyssoftware.atlassian.net/browse/CARD-220?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[CARD-221]:
https://consensyssoftware.atlassian.net/browse/CARD-221?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[CARD-222]:
https://consensyssoftware.atlassian.net/browse/CARD-222?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[CARD-223]:
https://consensyssoftware.atlassian.net/browse/CARD-223?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[CARD-224]:
https://consensyssoftware.atlassian.net/browse/CARD-224?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Redesigns the Card onboarding and welcome experiences, updates
navigation flow and copy, modernizes form inputs/UX, and adds country
flag utility with comprehensive test updates.
>
> - **UI/UX**:
> - **Welcome Screen**: Rebuilt `CardWelcome` with responsive styles,
new imagery, CTA (“Apply now”), “Not now” to `Routes.WALLET.HOME`, and
metrics.
> - **OnboardingStep Layout**: Updated typography and removed legacy
mockup image; adjusted title/description styling.
> - **Screens**: Refreshed `VerifyIdentity`, `ValidatingKYC` (image,
description, close button), `KYCFailed` (image, close to Home), and
`Complete` (new content and confirm button).
> - **Navigation/Flow**:
> - Added `Routes.CARD.ONBOARDING.COMPLETE`; initial-route logic now
finishes at `COMPLETE` (removed mailing-step branching).
> - `ValidatingKYC` now resets to `COMPLETE` on success or `KYC_FAILED`
on reject; KYC modal close goes to `PERSONAL_DETAILS`.
> - Default nav options simplified (back-only), welcome header hidden;
new `PersonalDetailsNavigationOptions` back to `VERIFY_IDENTITY`.
> - **Forms/Inputs**:
> - `ConfirmEmail`/`ConfirmPhoneNumber`: replaced code cells with
`TextField`, numeric filtering, auto-submit on 6 digits, revised resend
UX (“Didn’t receive… Resend”).
> - `SetPhoneNumber`: country selector shows flag and `ISO-CC` value;
updated legal/copy.
> - `PhysicalAddress`: trimmed consents to e-sign only, added country
select (read-only), assumes same mailing, navigates to `VALIDATING_KYC`
when registered; action/errors moved below button.
> - `PersonalDetails` and `SignUp`: copy tweaks, validation improvements
(success icons, disabled logic, reset navigation on continue).
> - **Utilities**:
> - Added `countryCodeToFlag` helper with unit tests.
> - **i18n**:
> - Overhauled onboarding copy/labels/flows across locales.
> - **Tests**:
> - Broad updates to align with new UI, flows, metrics, and navigation;
added new tests for flags, resend behavior, and navigation resets.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
d314e6c. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 18963da commit 581637f
37 files changed
Lines changed: 2515 additions & 2357 deletions
File tree
- app
- components/UI/Card
- Views/CardWelcome
- components/Onboarding
- routes
- util
- images
- locales/languages
Lines changed: 106 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
5 | 40 | | |
6 | | - | |
| 41 | + | |
7 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
8 | 47 | | |
9 | | - | |
| 48 | + | |
10 | 49 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 50 | | |
| 51 | + | |
| 52 | + | |
17 | 53 | | |
18 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
19 | 63 | | |
| 64 | + | |
| 65 | + | |
20 | 66 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
24 | 113 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
28 | 118 | | |
29 | 119 | | |
30 | 120 | | |
| |||
Lines changed: 55 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
| |||
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
23 | 41 | | |
24 | 42 | | |
25 | 43 | | |
26 | 44 | | |
27 | 45 | | |
28 | 46 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 47 | + | |
| 48 | + | |
36 | 49 | | |
37 | 50 | | |
38 | 51 | | |
39 | 52 | | |
40 | 53 | | |
41 | | - | |
| 54 | + | |
42 | 55 | | |
43 | 56 | | |
44 | 57 | | |
| |||
57 | 70 | | |
58 | 71 | | |
59 | 72 | | |
| 73 | + | |
| 74 | + | |
60 | 75 | | |
61 | 76 | | |
62 | | - | |
| 77 | + | |
63 | 78 | | |
64 | 79 | | |
65 | 80 | | |
| |||
81 | 96 | | |
82 | 97 | | |
83 | 98 | | |
| 99 | + | |
84 | 100 | | |
85 | 101 | | |
86 | | - | |
| 102 | + | |
87 | 103 | | |
88 | 104 | | |
89 | 105 | | |
| |||
92 | 108 | | |
93 | 109 | | |
94 | 110 | | |
95 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
96 | 115 | | |
97 | 116 | | |
98 | | - | |
99 | | - | |
| 117 | + | |
| 118 | + | |
100 | 119 | | |
101 | 120 | | |
102 | 121 | | |
103 | 122 | | |
104 | 123 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 124 | + | |
| 125 | + | |
109 | 126 | | |
| 127 | + | |
110 | 128 | | |
| 129 | + | |
111 | 130 | | |
112 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
113 | 134 | | |
114 | 135 | | |
115 | 136 | | |
116 | 137 | | |
117 | 138 | | |
118 | 139 | | |
119 | | - | |
| 140 | + | |
120 | 141 | | |
121 | | - | |
122 | | - | |
| 142 | + | |
123 | 143 | | |
124 | 144 | | |
125 | 145 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
134 | 149 | | |
135 | 150 | | |
136 | 151 | | |
137 | 152 | | |
138 | 153 | | |
139 | 154 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
| 155 | + | |
144 | 156 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
150 | 160 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | 161 | | |
156 | 162 | | |
157 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
158 | 167 | | |
159 | 168 | | |
160 | 169 | | |
| |||
163 | 172 | | |
164 | 173 | | |
165 | 174 | | |
166 | | - | |
167 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
168 | 179 | | |
169 | 180 | | |
170 | 181 | | |
0 commit comments