demox-labs / aleo-wallet-adapter

Modular TypeScript wallet adapters and components for Aleo applications.
MIT License
85 stars 43 forks source link

Improving WalletModal getStarted workflow #22

Closed julian-demox closed 4 months ago

julian-demox commented 4 months ago

Adding some state handling + bringing in some context variables to make the modal auto redirect using the adapter url once the user hits get started. The workflow prior to this sees the user click "Select Wallet" -> modal appears -> "Get Started" then have to make an extra click once the "Connect" button appeared in place of the "Select wallet".

This currently just redirects to the https://app.leo.app/ page which for mobile will open the home page and on chrome will prompt the user to download. On chrome, once the user downloads, the user will have to refresh and then when hitting "Select Wallet" again it will detect the Leo Wallet and the existing workflows take over from there.

Next step is to update the deeplinking logic to detect mobile. We want to imbed a different deeplink than what we have right now, but it has to be conditional as the mobile deeplink breaks the chrome experience.

evanmarshall commented 4 months ago

According to the mobile team, the links should look something like: https://app.leo.app/browser?url=https://google.com?q=foobar so we should pass in the current url as it as a uri parameter so the links opens in the wallet to that page. If the website is blacklisted, the mobile app should automatically handle redirecting to the correct page.