From 7ec8e7759a0d93a2eac7318023cb66c206b73f7d Mon Sep 17 00:00:00 2001 From: variablefate Date: Mon, 20 Apr 2026 10:39:56 -0700 Subject: [PATCH] Restore rider-share Add-to-RoadFlare button with roadflarer: scheme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On /share/r/, render a primary CTA that deep-links via roadflarer:?name=, intended to be handled by a future iOS driver app. Button stays hidden on driver shares. Blocked on: an iOS driver app (e.g. Drivestr iOS) shipping to the App Store with roadflarer: URL scheme support. Keep this PR as draft indefinitely — mark ready and merge only once such an app is live. 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..1e85036 100644 --- a/404.html +++ b/404.html @@ -338,6 +338,7 @@
+
App Store Google Play @@ -995,6 +996,15 @@ }).catch(() => {}); }); + // Rider deep link: roadflarer:[?name=...] — handled by a future driver app + if (!isDriver) { + const riderBtn = document.getElementById('add-rider-btn'); + const realName = profile.display_name || profile.name || ''; + const nameParam = realName ? '?name=' + encodeURIComponent(realName) : ''; + riderBtn.href = 'roadflarer:' + npub + nameParam; + riderBtn.hidden = false; + } + // Google Play placeholder (Android still in development) document.getElementById('playstore-btn').href = '#'; document.getElementById('playstore-btn').textContent = 'Google Play (coming soon)';