Goal
On /share/r/<npub> (rider share), restore the "Add to RoadFlare" primary CTA with an href pointing at roadflarer:<npub>?name=<display-name>, so drivers tapping the button on a device with a compatible driver app installed open straight into the Add Rider flow.
Context
The "Add to RoadFlare" button was removed from 404.html (the SPA router for /share/d/<npub> and /share/r/<npub>) because its nostr:<npub> href didn't actually open any app. See the earlier removal PR for context.
We're restoring the button only on rider shares, using a custom scheme (roadflarer:) that a future driver-side iOS app (Drivestr iOS or similar) will claim. The rider-side roadflared: work is tracked separately.
Blocking on
- An App Store release of a compatible iOS driver app that registers the
roadflarer: URL scheme. None currently planned — this PR sits dormant until then.
Changes
404.html:
- Re-add an
<a> element with id="add-rider-btn", class btn btn-primary, initially hidden, label "Add to RoadFlare", placed above .store-buttons inside .actions.
- In
renderSharePage, when isDriver === false, set add-rider-btn.href = 'roadflarer:' + npub + (name ? '?name=' + encodeURIComponent(name) : '') and hidden = false.
How to merge
Keep this PR as a draft indefinitely. Mark ready and merge only once a compatible driver app with roadflarer: support is live on the App Store.
Goal
On
/share/r/<npub>(rider share), restore the "Add to RoadFlare" primary CTA with anhrefpointing atroadflarer:<npub>?name=<display-name>, so drivers tapping the button on a device with a compatible driver app installed open straight into the Add Rider flow.Context
The "Add to RoadFlare" button was removed from
404.html(the SPA router for/share/d/<npub>and/share/r/<npub>) because itsnostr:<npub>href didn't actually open any app. See the earlier removal PR for context.We're restoring the button only on rider shares, using a custom scheme (
roadflarer:) that a future driver-side iOS app (Drivestr iOS or similar) will claim. The rider-sideroadflared:work is tracked separately.Blocking on
roadflarer:URL scheme. None currently planned — this PR sits dormant until then.Changes
404.html:<a>element withid="add-rider-btn", classbtn btn-primary, initiallyhidden, label "Add to RoadFlare", placed above.store-buttonsinside.actions.renderSharePage, whenisDriver === false, setadd-rider-btn.href = 'roadflarer:' + npub + (name ? '?name=' + encodeURIComponent(name) : '')andhidden = false.How to merge
Keep this PR as a draft indefinitely. Mark ready and merge only once a compatible driver app with
roadflarer:support is live on the App Store.