Repository navigation
fix(jollity-app): hand off to Humanity on the build's network, by link on dot.li - #58
Closed
johnthecat wants to merge 1 commit into
Closed
johnthecat wants to merge 1 commit into
johnthecat wants to merge 1 commit into
Conversation
…k on dot.li The Humanity hand-off took its TLD from the last label of the page's hostname. dot.li serves the game from dim2.app.paseo.li, so the target came out as peopl.li, a name that does not exist. The target is now personhoodProduct() of @jollity/protocol, peopl.<tld> of the network the build is for, as every other read of Humanity's name does. A phone browser on dot.li also got the Pocket card link, which dot.li opens as a blank tab, because the choice was made by the user agent's OS. The host's own name from system.info() now comes first: "Polkadot Web" always gets the product link, which dot.li's navigateTo opens in the same tab. Closes #56
|
dim2-pr58-sandbox00 · logs
No Paseo preview: add the deploy-paseo label to deploy one. |
Author
|
Sorry, slopus decided to fix it for some reason instead of simple triage. I personally don't a fix, so closing it |
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.
The "Go to Humanity" hand-off took its TLD from the last label of the page's hostname. dot.li serves the game from
dim2.app.paseo.li, so the target came out aspeopl.li, a name that does not exist. The target is nowpersonhoodProduct()of@jollity/protocol:peopl.<tld>of the network the build is for, as the storage read and the chat already do.currentTld,GATEWAY_TLDand the hostname reasoning are gone.On a phone browser dot.li also got
polkadotapp://pocket/open?product=…, which it opens as a blank tab, because the card-or-product choice went by the user agent's OS. The choice now asks the host first, through the existingreadHostInfo()doorway: a host that names itself "Polkadot Web" (dot.li) always getshttps://peopl.<tld>, which itsnavigateToopens in the same tab. Other hosts keep the OS rule.Tests cover dot.li on a desktop and a phone (
dim2.app.paseo.li, host "Polkadot Web"), and the existing cases now assert the exactpeopl.paseotargets.Closes #56