Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch-only collectibles should not be included on the main wallet page by default #20735 #20761

Merged

Conversation

mmilad75
Copy link
Contributor

This PR removes the watch-only collectibles from the list of collectibles in the wallet home screen.

I renamed :wallet/request-collectibles-for-all-accounts event to :wallet/request-collectibles-for-owned-accounts and :wallet/all-collectibles-list to :wallet/owned-collectibles-list. They were only used in the wallet home page, so it was secure to rename it.

I could've created a new event to handle all owned collectibles, but it the :wallet/all-collectibles-list was not used any where else so it would become an unused code.

fixes #20735

Copy link
Contributor

@ulisesmac ulisesmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @mmilad75 !

Thank you, the PR looks great 💯

Is removing the collectibles a design decision? 🤔

@status-im-auto
Copy link
Member

status-im-auto commented Jul 15, 2024

Jenkins Builds

Click to see older builds (24)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ c99e7a5 #1 2024-07-15 18:09:31 ~4 min tests 📄log
✔️ c99e7a5 #1 2024-07-15 18:12:48 ~7 min android-e2e 🤖apk 📲
✔️ c99e7a5 #1 2024-07-15 18:12:52 ~7 min android 🤖apk 📲
✔️ c99e7a5 #1 2024-07-15 18:14:05 ~9 min ios 📱ipa 📲
✔️ 63d007f #2 2024-07-16 13:55:17 ~5 min tests 📄log
✔️ 63d007f #2 2024-07-16 13:57:33 ~8 min android-e2e 🤖apk 📲
✔️ 63d007f #2 2024-07-16 13:57:40 ~8 min android 🤖apk 📲
✔️ 63d007f #2 2024-07-16 13:58:24 ~9 min ios 📱ipa 📲
✔️ f090cc5 #3 2024-07-17 08:52:27 ~3 min tests 📄log
✔️ f090cc5 #3 2024-07-17 08:56:09 ~7 min android-e2e 🤖apk 📲
✔️ f090cc5 #3 2024-07-17 08:56:10 ~7 min android 🤖apk 📲
✔️ f090cc5 #3 2024-07-17 08:57:29 ~9 min ios 📱ipa 📲
✔️ ad77d15 #4 2024-07-17 17:05:53 ~4 min tests 📄log
✔️ ad77d15 #4 2024-07-17 17:09:03 ~7 min android-e2e 🤖apk 📲
✔️ ad77d15 #4 2024-07-17 17:09:08 ~7 min android 🤖apk 📲
✔️ ad77d15 #4 2024-07-17 17:10:31 ~8 min ios 📱ipa 📲
✔️ 5391465 #6 2024-07-19 17:26:25 ~4 min tests 📄log
✔️ 5391465 #6 2024-07-19 17:28:18 ~6 min android-e2e 🤖apk 📲
✔️ 5391465 #6 2024-07-19 17:29:38 ~7 min android 🤖apk 📲
✔️ 5391465 #6 2024-07-19 17:30:56 ~9 min ios 📱ipa 📲
✔️ ebcd163 #7 2024-07-22 12:41:05 ~6 min android 🤖apk 📲
✔️ ebcd163 #7 2024-07-22 12:41:38 ~7 min tests 📄log
✔️ ebcd163 #7 2024-07-22 12:43:07 ~8 min android-e2e 🤖apk 📲
✔️ ebcd163 #7 2024-07-22 12:45:13 ~10 min ios 📱ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 9cb9102 #8 2024-07-22 14:23:25 ~11 min ios 📱ipa 📲
✔️ 9cb9102 #8 2024-07-22 14:26:48 ~15 min tests 📄log
✔️ 9cb9102 #8 2024-07-22 14:27:57 ~16 min android-e2e 🤖apk 📲
✔️ 9cb9102 #8 2024-07-22 14:28:47 ~17 min android 🤖apk 📲
✔️ 65787e3 #9 2024-07-23 12:24:11 ~4 min tests 📄log
✔️ 65787e3 #9 2024-07-23 12:26:36 ~6 min android 🤖apk 📲
✔️ 65787e3 #9 2024-07-23 12:27:57 ~8 min android-e2e 🤖apk 📲
✔️ 65787e3 #9 2024-07-23 12:30:05 ~10 min ios 📱ipa 📲

@VolodLytvynenko
Copy link
Contributor

Is removing the collectibles a design decision? 🤔

hi @ulisesmac Once, the inclusion of watch-only account assets on the overall wallet page was discussed here. After that, @qoqobolo discussed with the design team (in Montenegro, if I am not mistaken) before issue creation, and they agreed that by default, the assets of watch-only accounts should not be included in the overall wallet.

@VolodLytvynenko VolodLytvynenko self-assigned this Jul 17, 2024
@VolodLytvynenko
Copy link
Contributor

Hi @mmilad75 thank you for PR. take a look found issues:

PR_ISSUE 1: Collectibles are not shown when a watch-only account with collectibles is opened

Steps:

  1. Add a watch-only account with available collectibles (example: 0xFC6327a092f6232e158a0Dd1d6d967a2e1c65cD5).
  2. Open the current account.
  3. Go to the collectibles tab.

Actual result:

No collectibles are shown for watch only account when current account is opened

saved.mp4

Expected result:

Collectibles should be shown which belongs to the watch only account when the current account is opened.

@VolodLytvynenko
Copy link
Contributor

PR_ISSUE 2: Count of Multi-Collectibles from Watch-Only Account is combined with Regular account

Steps:

  1. Recover a user that has multi-collectibles.
  2. Add a watch-only account that has the same multi-collectible.
  3. Check the collectibles displayed on the wallet overview page.

Actual result:

The count of collectibles from the watch-only account is combined with the collectibles of the regular account on the wallet overview page.

watchonlycombined.mp4

Expected result:

The count of collectibles from the watch-only account should not be combined with the collectibles of the regular account on the wallet overview page.

OS:

IOS, Android

Devices:

  • Pixel 7a, Android 13
  • iPhone 11 Pro Max, IOS 17

@mmilad75 mmilad75 force-pushed the milad/20735-remove-watch-only-collectibles-on-main-wallet branch from f090cc5 to ad77d15 Compare July 17, 2024 17:01
@mmilad75
Copy link
Contributor Author

@VolodLytvynenko Hi Volodymyr. Thanks for testing. The issues are fixed now. Please check again

@status-im-auto
Copy link
Member

71% of end-end tests have passed

Total executed tests: 7
Failed tests: 1
Expected to fail tests: 1
Passed tests: 5
IDs of failed tests: 727229 
IDs of expected to fail tests: 727232 

Failed tests (1)

Click to expand
  • Rerun failed tests

  • Class TestWalletMultipleDevice:

    1. test_wallet_send_eth, id: 727229

    Device 2: Find `Text` by `xpath`: `//android.view.ViewGroup[@content-desc='container']/android.widget.TextView[@text='Ether']/../android.widget.TextView[3]`
    Device 2: `Text` is `0.00889 ETH`

    critical/test_wallet.py:156: in test_wallet_send_eth
        self.errors.verify_no_errors()
    base_test_case.py:191: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Sender balance is not updated on Etherscan, it is 0.4906 but expected to be 0.4907
    



    Expected to fail tests (1)

    Click to expand

    Class TestWalletOneDevice:

    1. test_wallet_add_remove_watch_only_account, id: 727232

    Device 1: Find EditBox by accessibility id: add-address-to-watch
    Device 1: Type 0x8d2413447ff297d30bdc475f6d5cb00254685aae to EditBox

    critical/test_wallet.py:249: in test_wallet_add_remove_watch_only_account
        self.wallet_view.add_watch_only_account(address=address_to_watch, account_name=new_account_name)
    ../views/wallet_view.py:163: in add_watch_only_account
        self.account_has_activity_label.wait_for_visibility_of_element()
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 1: Text by accessibility id:`account-has-activity` is not found on the screen after wait_for_visibility_of_element 
    

    [[Missing networks in account address, https://github.com//issues/20166]]

    Device sessions

    Passed tests (5)

    Click to expand

    Class TestWalletOneDevice:

    1. test_wallet_add_remove_regular_account, id: 727231
    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133
    Device sessions

    2. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    Class TestWalletMultipleDevice:

    1. test_wallet_send_asset_from_drawer, id: 727230

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    @status-im-auto
    Copy link
    Member

    86% of end-end tests have passed

    Total executed tests: 7
    Failed tests: 0
    Expected to fail tests: 1
    Passed tests: 6
    
    IDs of expected to fail tests: 727232 
    

    Expected to fail tests (1)

    Click to expand

    Class TestWalletOneDevice:

    1. test_wallet_add_remove_watch_only_account, id: 727232

    Device 1: Find `EditBox` by `accessibility id`: `add-address-to-watch`
    Device 1: Type `0x8d2413447ff297d30bdc475f6d5cb00254685aae` to `EditBox`

    critical/test_wallet.py:249: in test_wallet_add_remove_watch_only_account
        self.wallet_view.add_watch_only_account(address=address_to_watch, account_name=new_account_name)
    ../views/wallet_view.py:163: in add_watch_only_account
        self.account_has_activity_label.wait_for_visibility_of_element()
    ../views/base_element.py:147: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 1: Text by accessibility id:`account-has-activity` is not found on the screen after wait_for_visibility_of_element 
    

    [[Missing networks in account address, https://github.com//issues/20166]]

    Device sessions

    Passed tests (6)

    Click to expand

    Class TestWalletOneDevice:

    1. test_wallet_add_remove_regular_account, id: 727231
    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133
    Device sessions

    2. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    Class TestWalletMultipleDevice:

    1. test_wallet_send_asset_from_drawer, id: 727230
    2. test_wallet_send_eth, id: 727229

    @VolodLytvynenko
    Copy link
    Contributor

    Hi @mmilad75 issues are fixed. PR is ready to be merged. Thank you for your work!

    @mmilad75 mmilad75 merged commit 89bb3ea into develop Jul 23, 2024
    6 checks passed
    @mmilad75 mmilad75 deleted the milad/20735-remove-watch-only-collectibles-on-main-wallet branch July 23, 2024 12:45
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    Status: DONE
    Development

    Successfully merging this pull request may close these issues.

    Watch-only collectibles should not be included on the main wallet page by default
    5 participants