From 394801e194031d63dd3adf342489271bcf2afb74 Mon Sep 17 00:00:00 2001 From: variablefate Date: Mon, 20 Apr 2026 10:39:30 -0700 Subject: [PATCH] Restore driver-share Add-to-RoadFlare button with roadflared: scheme On /share/d/, render a primary CTA that deep-links into RoadFlare iOS via roadflared:?name=. Button stays hidden on rider shares so this change only affects the driver-share flow. Blocked on: roadflare-ios registering the roadflared: URL scheme and handling incoming npubs (variablefate/roadflare-ios#64). Keep this PR as draft until the matching App Store build ships, then mark ready and merge. Co-Authored-By: Claude Opus 4.7 (1M context) --- 404.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/404.html b/404.html index 25b6bfb..80fe0d2 100644 --- a/404.html +++ b/404.html @@ -338,6 +338,7 @@
+
App Store Google Play @@ -995,6 +996,15 @@ }).catch(() => {}); }); + // Driver deep link: roadflared:[?name=...] — handled by RoadFlare iOS + if (isDriver) { + const driverBtn = document.getElementById('add-driver-btn'); + const realName = profile.display_name || profile.name || ''; + const nameParam = realName ? '?name=' + encodeURIComponent(realName) : ''; + driverBtn.href = 'roadflared:' + npub + nameParam; + driverBtn.hidden = false; + } + // Google Play placeholder (Android still in development) document.getElementById('playstore-btn').href = '#'; document.getElementById('playstore-btn').textContent = 'Google Play (coming soon)';