Flow pages of “phone change flow from user profile“.
UML flows
Scenarios
Bottom sheet “starting prompt” is shown to user and he can either:
decide to continue
abort flow → this will terminate whole phone change flow
phone input screen is opened and app loads list of countries from CM (can trigger Err1) → code selector is populated
User edits fields and clicks continue → local validation is triggered (can trigger Err2)
App sends values to CM in phone change request (can trigger Err3)
App navigates to next step - SMS OTP input page
SMS OTP input page is opened and user waits for SMS to come
If SMS is not received, user can trigger new code (can trigger Err4)
User edits field and clicks continue (or automatically after last character filled)
App sends values to CM in verify-otp request (can trigger Err5)
Flow finishes
Back action - moves back to previous page without any confirmation prompt. (or closes bottom sheets when displayed)
Code | Description | Handle |
---|---|---|
Err1 | CM country catalog endpoint fails | TBD |
Err2 | Validation errors | Phone not valid - |
Err3 | CM change phone endpoint fails | TBD |
Err4 | CM resend sms otp endpoint fails | TBD |
Err5 | CM verify sms otp endpoint fails | TBD |
Elements
Tag | Description | Data |
---|---|---|
1 | Appbar | Localization key - |
2 | Title | Localization key - |
3 | Phone number field | Localization key - code - number - asset - mandatory |
4 | Action button | Localization key - Action - saves phone and navigates to SMS OTP check page |
Tag | Description | Data |
---|---|---|
1 | Appbar | Localization key - |
2 | Title | Localization key - |
3 | Description | Localization key - |
4 | SMS resend | Localization key - non action part - action part - |
5 | Action button | Localization key - Action - verifies phone number with SMS OTP code and ends the flow |
Starting prompt
Tag | Description | Data |
---|---|---|
1 | Title | Localization key - |
2 | Description | Localization key - |
3 | Positive action button | Localization key - Action - navigates to phone input page |
4 | Negative action button | Localization key - Action - terminates flow |
Attachments:
plantuml_1662665822209 (text/plain)
plantuml_1662665822209.svg (image/svg+xml)
image-20221128-104858.png (image/png)
image-20221025-200347.png (image/png)
image-20221025-194135.png (image/png)
image-20221024-193612.png (image/png)
image-20221024-193454.png (image/png)
image-20221024-190008.png (image/png)
image-20220913-135822.png (image/png)
image-20221025-191755.png (image/png)
plantuml_1662665822209.svg (image/svg+xml)
plantuml_1662665822209 (text/plain)
plantuml_1662665822209.png (image/png)
image-20221128-135128.png (image/png)
image-20221128-135207.png (image/png)
image-20221128-135721.png (image/png)
image-20221128-140707.png (image/png)