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

feat(wallet)_: Show buy and receive CTAs on zero balance #21690

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

smohamedjavid
Copy link
Member

@smohamedjavid smohamedjavid commented Nov 26, 2024

fixes #21683

Summary

This PR

  • adds wallet-card component
  • adds Buy and Receive CTAs above the assets list in the wallet home if the balance is zero
Buy.and.Receive.CTAs.mp4

Platforms

  • Android
  • iOS

Steps to test

  • Open Status
  • Create a new status profile
  • Verify the Buy and Receive CTAs are shown
  • Verify on tap of Buy, the Buy bottom sheet opens
  • Verify on tap of Receive, the shell share screen with default account QR opens

status: ready

@status-im-auto
Copy link
Member

status-im-auto commented Nov 26, 2024

Jenkins Builds

Click to see older builds (16)
Commit #️⃣ Finished (UTC) Duration Platform Result
3bf84b5 #2 2024-11-26 20:30:09 ~2 min tests 📄log
✔️ 3bf84b5 #2 2024-11-26 20:35:49 ~8 min android-e2e 🤖apk 📲
✔️ 3bf84b5 #2 2024-11-26 20:36:22 ~8 min android 🤖apk 📲
✔️ 3bf84b5 #2 2024-11-26 20:36:38 ~8 min ios 📱ipa 📲
✔️ 47335c7 #3 2024-11-26 20:43:20 ~4 min tests 📄log
✔️ 47335c7 #3 2024-11-26 20:45:56 ~7 min android-e2e 🤖apk 📲
✔️ 47335c7 #3 2024-11-26 20:46:04 ~7 min android 🤖apk 📲
✔️ 47335c7 #3 2024-11-26 20:47:42 ~8 min ios 📱ipa 📲
✔️ ebdc715 #4 2024-11-27 09:45:31 ~4 min tests 📄log
✔️ ebdc715 #4 2024-11-27 09:47:22 ~6 min android-e2e 🤖apk 📲
✔️ ebdc715 #4 2024-11-27 09:49:15 ~8 min android 🤖apk 📲
✔️ ebdc715 #4 2024-11-27 09:49:36 ~8 min ios 📱ipa 📲
✔️ a2610e8 #5 2024-11-28 09:32:53 ~4 min tests 📄log
✔️ a2610e8 #5 2024-11-28 09:35:43 ~7 min android 🤖apk 📲
✔️ a2610e8 #5 2024-11-28 09:36:34 ~8 min android-e2e 🤖apk 📲
✔️ a2610e8 #5 2024-11-28 09:37:57 ~9 min ios 📱ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ ad78329 #6 2024-11-29 09:00:14 ~4 min tests 📄log
✔️ ad78329 #6 2024-11-29 09:02:13 ~6 min android 🤖apk 📲
✔️ ad78329 #6 2024-11-29 09:03:14 ~7 min android-e2e 🤖apk 📲
✔️ ad78329 #6 2024-11-29 09:04:12 ~8 min ios 📱ipa 📲
✔️ b10a727 #7 2024-11-29 18:28:30 ~4 min tests 📄log
✔️ b10a727 #7 2024-11-29 18:29:59 ~6 min android-e2e 🤖apk 📲
✔️ b10a727 #7 2024-11-29 18:30:37 ~7 min android 🤖apk 📲
✔️ b10a727 #7 2024-11-29 18:32:21 ~8 min ios 📱ipa 📲

Copy link
Contributor

@shivekkhurana shivekkhurana left a comment

Choose a reason for hiding this comment

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

Except for the schema location, everything else looks good

Thanks ))

@shivekkhurana
Copy link
Contributor

The zero balance issues has a separate PR here: #21697

@smohamedjavid
Copy link
Member Author

The zero balance issues has a separate PR here: #21697

Great! I will remove that fix from this PR

@shivekkhurana shivekkhurana added the wallet-core Issues for mobile wallet team label Nov 28, 2024
@shivekkhurana shivekkhurana added this to the 2.32.0 milestone Nov 28, 2024
Copy link
Member

@clauxx clauxx left a comment

Choose a reason for hiding this comment

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

Looks great!

@status-im-auto
Copy link
Member

88% of end-end tests have passed

Total executed tests: 8
Failed tests: 0
Expected to fail tests: 1
Passed tests: 7
IDs of expected to fail tests: 702843 

Expected to fail tests (1)

Click to expand

Class TestCommunityMultipleDeviceMerged:

1. test_community_message_edit, id: 702843
Test is not run, e2e blocker  

[[reason: [NOTRUN] Skipped due to waku issue on staging fleet]]

Passed tests (7)

Click to expand

Class TestCommunityOneDeviceMerged:

1. test_community_copy_and_paste_message_in_chat_input, id: 702742
Device sessions

2. test_restore_multiaccount_with_waku_backup_remove_profile_switch, id: 703133
Device sessions

Class TestOneToOneChatMultipleSharedDevicesNewUi:

1. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
Device sessions

Class TestWalletOneDevice:

1. test_wallet_add_remove_regular_account, id: 727231
2. test_wallet_balance_mainnet, id: 740490

Class TestWalletMultipleDevice:

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

@shivekkhurana
Copy link
Contributor

@smohamedjavid

There are some changes to the copy:
image

Copy link
Contributor

@shivekkhurana shivekkhurana left a comment

Choose a reason for hiding this comment

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

The copy changed, I have added a screenshot and the figma file is also updated.

@smohamedjavid
Copy link
Member Author

@shivekkhurana - Updated the copy and also the video in the PR description 🙏

@status-im-auto
Copy link
Member

75% of end-end tests have passed

Total executed tests: 8
Failed tests: 1
Expected to fail tests: 1
Passed tests: 6
IDs of failed tests: 727230 
IDs of expected to fail tests: 702843 

Failed tests (1)

Click to expand
  • Rerun failed tests

  • Class TestWalletMultipleDevice:

    1. test_wallet_send_asset_from_drawer, id: 727230

    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.12969 ETH`

    critical/test_wallet.py:189: in test_wallet_send_asset_from_drawer
        self.errors.verify_no_errors()
    base_test_case.py:192: 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.3501 but expected to be 0.3502
    



    Expected to fail tests (1)

    Click to expand

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_message_edit, id: 702843

    Test is not run, e2e blocker  
    

    [[reason: [NOTRUN] Skipped due to waku issue on staging fleet]]

    Passed tests (6)

    Click to expand

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    Class TestWalletOneDevice:

    1. test_wallet_add_remove_regular_account, id: 727231
    2. test_wallet_balance_mainnet, id: 740490

    Class TestWalletMultipleDevice:

    1. test_wallet_send_eth, id: 727229

    Class TestCommunityOneDeviceMerged:

    1. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    2. test_restore_multiaccount_with_waku_backup_remove_profile_switch, id: 703133
    Device sessions

    @pavloburykh
    Copy link
    Contributor

    @smohamedjavid thanks for the PR. Ready for merge.

    @pavloburykh pavloburykh self-assigned this Nov 29, 2024
    @smohamedjavid smohamedjavid merged commit 52a8f8f into develop Nov 29, 2024
    5 checks passed
    @smohamedjavid smohamedjavid deleted the feat/cta-for-zero-balance branch November 29, 2024 18:33
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    request-manual-qa wallet-core Issues for mobile wallet team
    Projects
    Status: DONE
    Status: Done
    Development

    Successfully merging this pull request may close these issues.

    🪙 Add CTA to buy or receive crypto in an empty wallet
    8 participants