status-mobile
status-mobile copied to clipboard
[#20472] hide account switcher in send flow
fixes #20472
Important
This PR depends on the work done for:
- https://github.com/status-im/status-mobile/pull/20852
So please, do the testing after that PR is merged
Summary
This PR hides the account switcher while the user is sending a collectible from any entry point.
Demo for ERC-721 for any entry point:
https://github.com/user-attachments/assets/263b6d29-7d55-46bb-b21e-ba7a4901637c
Demo for ERC-1155 for any entry point:
https://github.com/user-attachments/assets/b52b5da6-c8a4-4b43-8ca4-3293ab40c840
Additionally, this PR solves an existing bug in develop where the user was unable to pick the collectible amount for ERC-1155 collectibles:
Develop:
https://github.com/user-attachments/assets/c279b31b-e173-4e9e-8c81-4c41ce83b8a4
This PR:
https://github.com/user-attachments/assets/58336a23-4b79-4d41-b597-fcc3c1cae4d0
Review notes
We should extend and improve the wizard mechanism, checking for something like "the user sending a collectible" has become a task hard to perform, since there are multiple flows depending on re-frame DB values. Depending on designs, we should design a new mechanism.
Testing notes
Please carefully test these flows to make sure nothing is broken, there are many possible cases, they were showed in the Demo videos, but there may be something forgotten.
Platforms
- Android
- iOS
Steps to test
- Open Status
- Please check the Demo videos and the issue description.
status: ready
Jenkins Builds
Click to see older builds (17)
| :grey_question: | Commit | :hash: | Finished (UTC) | Duration | Platform | Result |
|---|---|---|---|---|---|---|
| :x: | 6bfe2a17 | #1 | 2024-07-25 20:43:26 | ~3 min | tests |
:page_facing_up:log |
| :x: | d61fb491 | #2 | 2024-07-25 20:49:56 | ~3 min | tests |
:page_facing_up:log |
| :heavy_check_mark: | d61fb491 | #2 | 2024-07-25 20:54:30 | ~8 min | android-e2e |
:robot:apk :calling: |
| :heavy_check_mark: | d61fb491 | #2 | 2024-07-25 20:54:31 | ~8 min | android |
:robot:apk :calling: |
| :heavy_check_mark: | d61fb491 | #2 | 2024-07-25 20:56:21 | ~9 min | ios |
:iphone:ipa :calling: |
| :x: | bf290d15 | #3 | 2024-08-01 21:35:05 | ~3 min | tests |
:page_facing_up:log |
| :heavy_check_mark: | bf290d15 | #3 | 2024-08-01 21:38:36 | ~6 min | android-e2e |
:robot:apk :calling: |
| :heavy_check_mark: | bf290d15 | #3 | 2024-08-01 21:38:51 | ~6 min | android |
:robot:apk :calling: |
| :heavy_check_mark: | bf290d15 | #3 | 2024-08-01 21:47:29 | ~15 min | ios |
:iphone:ipa :calling: |
| :x: | 352c61d0 | #4 | 2024-08-28 14:56:42 | ~3 min | tests |
:page_facing_up:log |
| :heavy_check_mark: | 352c61d0 | #4 | 2024-08-28 15:00:34 | ~6 min | android |
:robot:apk :calling: |
| :heavy_check_mark: | 352c61d0 | #4 | 2024-08-28 15:01:18 | ~7 min | android-e2e |
:robot:apk :calling: |
| :x: | 352c61d0 | #4 | 2024-08-28 15:19:10 | ~25 min | ios |
:page_facing_up:log |
| :x: | 7901d3dc | #5 | 2024-09-04 13:26:48 | ~3 min | tests |
:page_facing_up:log |
| :heavy_check_mark: | 7901d3dc | #5 | 2024-09-04 13:30:21 | ~6 min | android-e2e |
:robot:apk :calling: |
| :heavy_check_mark: | 7901d3dc | #5 | 2024-09-04 13:31:25 | ~7 min | android |
:robot:apk :calling: |
| :heavy_check_mark: | 7901d3dc | #5 | 2024-09-04 13:40:07 | ~16 min | ios |
:iphone:ipa :calling: |
| :grey_question: | Commit | :hash: | Finished (UTC) | Duration | Platform | Result |
|---|---|---|---|---|---|---|
| :heavy_check_mark: | 98ab9581 | #6 | 2024-09-07 08:52:06 | ~6 min | android-e2e |
:robot:apk :calling: |
| :heavy_check_mark: | 98ab9581 | #6 | 2024-09-07 10:14:06 | ~11 min | ios |
:iphone:ipa :calling: |
| :heavy_check_mark: | 98ab9581 | #6 | 2024-09-07 10:49:09 | ~6 min | android |
:robot:apk :calling: |
| :heavy_check_mark: | 98ab9581 | #6 | 2024-09-07 11:05:44 | ~4 min | tests |
:page_facing_up:log |
| :heavy_check_mark: | a244dba1 | #7 | 2024-09-09 20:07:22 | ~4 min | tests |
:page_facing_up:log |
| :heavy_check_mark: | a244dba1 | #7 | 2024-09-09 20:09:20 | ~6 min | android-e2e |
:robot:apk :calling: |
| :heavy_check_mark: | a244dba1 | #7 | 2024-09-09 20:10:53 | ~7 min | android |
:robot:apk :calling: |
| :heavy_check_mark: | a244dba1 | #7 | 2024-09-09 20:14:58 | ~11 min | ios |
:iphone:ipa :calling: |
57% of end-end tests have passed
Total executed tests: 7
Failed tests: 3
Expected to fail tests: 0
Passed tests: 4
IDs of failed tests: 727230,702843,727229
Failed tests (3)
Click to expand
Class TestWalletMultipleDevice:
| 1. test_wallet_send_asset_from_drawer, id: 727230 |
|
| 2. test_wallet_send_eth, id: 727229 |
|
Class TestCommunityMultipleDeviceMerged:
| 1. test_community_message_edit, id: 702843 |
Device 1: Device 2: |
Passed tests (4)
Click to expand
Class TestOneToOneChatMultipleSharedDevicesNewUi:
| 1. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745 |
| Device sessions Device 1: Device 2: |
Class TestWalletOneDevice:
| 1. test_wallet_add_remove_regular_account, id: 727231 |
| Device sessions Device 1: |
Class TestCommunityOneDeviceMerged:
| 1. test_community_copy_and_paste_message_in_chat_input, id: 702742 |
| Device sessions Device 1: |
| 2. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133 |
| Device sessions Device 1: |
57% of end-end tests have passed
Total executed tests: 7
Failed tests: 3
Expected to fail tests: 0
Passed tests: 4
IDs of failed tests: 727230,727231,727229
Failed tests (3)
Click to expand
Class TestWalletOneDevice:
| 1. test_wallet_add_remove_regular_account, id: 727231 |
Device 1: |
Class TestWalletMultipleDevice:
| 1. test_wallet_send_asset_from_drawer, id: 727230 |
|
| 2. test_wallet_send_eth, id: 727229 |
|
Passed tests (4)
Click to expand
Class TestCommunityMultipleDeviceMerged:
| 1. test_community_message_edit, id: 702843 |
| Device sessions Device 1: Device 2: |
Class TestCommunityOneDeviceMerged:
| 1. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133 |
| Device sessions Device 1: |
| 2. test_community_copy_and_paste_message_in_chat_input, id: 702742 |
| Device sessions Device 1: |
Class TestOneToOneChatMultipleSharedDevicesNewUi:
| 1. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745 |
| Device sessions Device 1: Device 2: |
Hi @ulisesmac thank you for PR. Take a look at found issue
ISSUE 1: "Objects are not valid as a React child" Error Displayed When Attempting to Send Multi-Collectible
Steps:
- Select a multi-collectible.
- Go to the sending flow.
- Proceed with the sending process.
Actual result:
The error "Objects are not valid as a React child" is displayed
https://github.com/user-attachments/assets/c1b5af1d-b255-4162-ad08-376f64713c53
Expected result:
The user should be navigated to the multi-collectible sending screen without errors.
Devices:
- Pixel 7a, Android 13
- iPhone 11 Pro Max, IOS 17
Logs:
ISSUE 2: [IOS] Token value and max fee not updated on the routes generation page
Steps:
- Recover a user with tokens available on at least two networks.
- Go to the assets selection page.
- Select any asset (in my case I selected SNT with a total amount of 9).
- Proceed to the routes generation page.
- Change the selected token.
- Disable some networks in the "From" section.
Actual Result:
- The previous token's value is still displayed, even after selecting a different token.
- The max value still reflects the total amount across all available networks, despite network disabling.
https://github.com/user-attachments/assets/3069c557-eb3b-47e7-ad87-901c90e5cc8f
Expected Result:
The token value and max fee should update correctly based on the selected token and enabled/disabled networks.
Devices:
iPhone 11 Pro Max, iOS 17
Logs:
33% of end-end tests have passed
Total executed tests: 3
Failed tests: 2
Expected to fail tests: 0
Passed tests: 1
IDs of failed tests: 727230,727229
Failed tests (2)
Click to expand
Class TestWalletMultipleDevice:
| 1. test_wallet_send_asset_from_drawer, id: 727230 |
|
| 2. test_wallet_send_eth, id: 727229 |
|
Passed tests (1)
Click to expand
Class TestWalletOneDevice:
| 1. test_wallet_add_remove_regular_account, id: 727231 |
| Device sessions Device 1: |
@VolodLytvynenko
Thank you so much for testing this PR!
I've checked these issues and I'm able to replicate them on develop, so this PR isn't introducing them.
Do these issues block testing/merging this PR? OFC, I can investigate and solve them, but I'd prefer if they are created as separate issues.
cc: @shivekkhurana
Hi @ulisesmac, thank you for the update. That's strange -I couldn't reproduce the issue on the nightly build, possibly because it wasn't updated to the latest development yet. However, I can now reproduce it. Apologies for the confusion, the issues are not related to this PR. The PR can be merged