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: deeplinks for wallets #378

Merged
merged 3 commits into from
Jan 23, 2024
Merged

feat: deeplinks for wallets #378

merged 3 commits into from
Jan 23, 2024

Conversation

dni
Copy link
Contributor

@dni dni commented Dec 20, 2023

add links on SwapCreated and InvoiceSet on the QR code and as button.

its working for alby on browser for me i did not test bip21 yet.

closes #299

screenshot-1703075559

i replaced the copy bip21 for the open in wallet button, usually you don't really want to copy bip21 right? else we get a small ui issue because we have to less room to make it look good.

screenshot-1704406281

Copy link

vercel bot commented Dec 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
webapp ✅ Ready (Inspect) Visit Preview Jan 23, 2024 0:49am
webapp-mainnet ✅ Ready (Inspect) Visit Preview Jan 23, 2024 0:49am

Copy link
Member

@kilrau kilrau left a comment

Choose a reason for hiding this comment

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

Desktop:

  • For Reverse Swaps on Desktop I don't think it makes sense to have the "Open in Wallet" button. It opens Alby, which already has the Pay invoice via WebLN button. https://github.com/LN-Zap/zap-desktop is archived, I don't think there is any other popular desktop lightning wallets that could make use of that button.
  • For Normal Swaps, on my ubuntu system the handler couldn't find my Green wallet to open liquidnetwork:, I openen an issue on green side. For bitcoin mainchain the handler listed others
    image but then send dialogue and amounts couldn't be prefilled.

Summary: not very useful on Desktop, if you insist let's keep it for normal swaps only and we hope that Green & other wallets improve in future. I am also fine removing it completely for desktop.

Mobile:
Works beautifully in all wallets I tested. Everything prefilled as it should be, even in Green.

Copy link
Member

@kilrau kilrau left a comment

Choose a reason for hiding this comment

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

Reverse Swaps:

  • So now Pay invoice via WebLN only applies to Desktop, Open in Wallet only applies for Mobile. I think we should unify style! Blue button on top vs both yellow next to each other. Don't care which, but it should be the same. Scan QR Code on mobile is blue on top, same style as Pay invoice via WebLN on Desktop.
    image
    Screenshot from 2024-01-10 17-19-55

Normal Swaps:

  • Mobile is missing Copy Address now. Which is only acceptable if we add a copy symbol into the address filed so it's discoverable that the address can be copied by tapping on it. I just really don't like that there are 3 equally looking buttons on mobile and desktop doing different things.
    image
    image

The "blue button on top" style for Open in Wallet can work if you agree doing #444

@kilrau
Copy link
Member

kilrau commented Jan 11, 2024

Since we are now free to do #444, we can use this button style for "open in wallet" on mobile.
image

Base automatically changed from refactor-fetcher to main January 19, 2024 22:42
add links on SwapCreated and InvoiceSet on the QR code and as button

closes #299

change copy addres to copy bip21
@dni
Copy link
Contributor Author

dni commented Jan 23, 2024

closes #444

@kilrau kilrau linked an issue Jan 23, 2024 that may be closed by this pull request
@kilrau kilrau merged commit 2bde980 into main Jan 23, 2024
4 checks passed
@kilrau kilrau deleted the deeplink branch January 23, 2024 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove "Open Lockup Address" button from "send to" screen Mobile: Deep link lightning and chain wallets
3 participants