Repository navigation
Open tel:/sms: links with smshub (/handle + inbox ?compose=) - #173
Merged
Merged
Conversation
/handle?uri=<tel:|sms:...> is the protocol-handler target (navigator.registerProtocolHandler, and TronBrowser forwards clicks). An sms: link from a signed-in user with a line opens New Message prefilled (/inbox?compose=+1...&body=...); everyone else sees the number, 'Text from smshub' (via login), 'Call/Text from this device' (the original link, marked data-tron-native so TronBrowser leaves it to the OS), how to get a line, and a button that registers smshub.dev as the browser's tel/sms handler. Parser in lib/phone-uri.ts (RFC 3966/5724, sms://, smsto:, callto:) with tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ThreatCrush Security Scan1 finding(s) in the 7 file(s) this pull request changes. MEDIUM: 1
14 pre-existing finding(s) elsewhere in the repository — **HIGH**: 2 | **MEDIUM**: 4 | **LOW**: 8Not introduced by this pull request.
Snippets are redacted; ThreatCrush never prints matched credential material. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What: smshub.dev becomes the default handler for phone links.
/handle?uri=%stakestel:/sms:(alsosms://,smsto:,callto:). A signed-in user with a line, on an sms: link, goes straight to New Message prefilled. Otherwise it shows the number, Text from smshub (through login withnext), Call/Text from this device, how to get a line, and a button that runsnavigator.registerProtocolHandlerfor tel and sms./inbox?compose=+1…&body=…opens New Message prefilled (and survives the login redirect).lib/phone-uri.ts+ 10 tests. tsc clean, 430/430 tests.Companion: TronBrowser forwards tel:/sms: clicks to
/handle; footer 0.7.3 adds the Text link (profullstack/footer#43).🤖 Generated with Claude Code