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

fix(wallet)_: Send flow from saved address and QR scanner #21899

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

smohamedjavid
Copy link
Member

@smohamedjavid smohamedjavid commented Jan 8, 2025

fixes #21898

Summary

This PR:

  • fixes send flow from saved addresses
  • adds back send flow from general QR scanner
Single Account Multiple Accounts Entry from QR Scanner
Single.Account.mp4
Two.Accounts.mp4
QR.Scanner.mp4

Testing notes

A quick test of the send flow from the Wallet tab is appreciated

Platforms

  • Android
  • iOS

Steps to test

From Saved Addresses
  • Open Status
  • Navigate to Profile > Wallet > Saved Addresses
  • Add a new saved address if it is empty
  • Tap on any saved address and tap on Send to <SAVED_ADDRESS_NAME>
  • Verify the user is taken to the account selection (From) page if the user has more than one operable accounts
  • Verify the user is taken to the select asset page (default account) if the user has only one account
  • Verify the routes are generated after asset selection and can be sent successfully
From QR Scanner
  • Open Status
  • Tap on scanner icon ([-]) on the profile navigation header
  • Scan a valid address
  • Verify the user is taken to the account selection (From) page if the user has more than one operable accounts
  • Verify the user is taken to the select asset page (default account) if the user has only one account
  • Verify the routes are generated after asset selection and can be sent successfully

status: ready

@smohamedjavid smohamedjavid self-assigned this Jan 8, 2025
@status-im-auto
Copy link
Member

status-im-auto commented Jan 8, 2025

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 81e0a46 #1 2025-01-08 18:57:01 ~6 min tests 📄log
✔️ 81e0a46 #1 2025-01-08 19:00:20 ~9 min ios 📱ipa 📲
✔️ 81e0a46 #1 2025-01-08 19:00:35 ~9 min android-e2e 🤖apk 📲
✔️ 81e0a46 #1 2025-01-08 19:00:56 ~10 min android 🤖apk 📲

Comment on lines +151 to +155
(rf/reg-event-fx
:wallet/init-send-flow-for-address
(fn [_ [args]]
{:fx [[:dispatch [:wallet/clean-send-data]]
[:dispatch [:wallet/open-send-flow args]]]}))
Copy link
Member Author

Choose a reason for hiding this comment

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

We clean the send data before user goes into the flow. This ensure no data from any other flows is left and also to prevent any bugs.

Comment on lines +64 to +69
:header [quo/page-nav
{:type :no-title
:icon-name :i/close
:on-press events-helper/navigate-back
:margin-top (safe-area/get-top)
:background :blur}]}
Copy link
Member Author

Choose a reason for hiding this comment

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

We don't need account switcher on the from page

@smohamedjavid smohamedjavid modified the milestone: 2.33.0 Jan 8, 2025
@smohamedjavid smohamedjavid marked this pull request as ready for review January 8, 2025 19:21
@smohamedjavid smohamedjavid added request-manual-qa wallet-core Issues for mobile wallet team labels Jan 8, 2025
Copy link
Contributor

@mohsen-ghafouri mohsen-ghafouri left a comment

Choose a reason for hiding this comment

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

LGTM 🔥

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: REVIEW
Development

Successfully merging this pull request may close these issues.

Send flow is broken when it's started from Saved Addresses
3 participants