From 28f0fd79a7635d10831202350a476fc6e123e72a Mon Sep 17 00:00:00 2001 From: Patrick Mulligan Date: Wed, 1 Apr 2026 13:50:43 -0400 Subject: [PATCH] feat(ui): encode ShockWallet deep link URL in nprofile QR QR now encodes wallet.aiolabs.dev/sources/add?nprofile=... so scanning opens ShockWallet with the ATM's Lightning.Pub pre-filled, handling both new and existing users. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/machine/src/views/SupportView.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/apps/machine/src/views/SupportView.vue b/apps/machine/src/views/SupportView.vue index 3e8a8ef..25bc868 100644 --- a/apps/machine/src/views/SupportView.vue +++ b/apps/machine/src/views/SupportView.vue @@ -31,6 +31,12 @@ const lpNprofile = computed(() => { return nip19.nprofileEncode({ pubkey, relays }) }) +// Deep link URL: opens ShockWallet with this ATM's Lightning.Pub pre-filled +const shockwalletDeepLink = computed(() => { + if (!lpNprofile.value) return '' + return `https://wallet.aiolabs.dev/sources/add?nprofile=${encodeURIComponent(lpNprofile.value)}` +}) + interface SupportPage { id: string title: string @@ -324,13 +330,13 @@ function goBack() { - + -