Skip to content

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
mainfrom
fix/humanity-target-network-tld
Closed

johnthecat wants to merge 1 commit into
mainfrom
fix/humanity-target-network-tld

Conversation

@johnthecat

Copy link
Copy Markdown

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 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 the storage read and the chat already do. currentTld, GATEWAY_TLD and 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 existing readHostInfo() doorway: a host that names itself "Polkadot Web" (dot.li) always gets https://peopl.<tld>, which its navigateTo opens 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 exact peopl.paseo targets.

Closes #56

…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
@johnthecat
johnthecat requested a review from a team as a code owner November 25, 2026 08:34
@github-actions

Copy link
Copy Markdown

dim2-pr58-sandbox00 · logs

Network Mobile / Desktop Web
Previewnet dim2-pr58-sandbox00.testnet https://dim2-pr58-sandbox00.testnet.li

No Paseo preview: add the deploy-paseo label to deploy one.

@johnthecat

Copy link
Copy Markdown
Author

Sorry, slopus decided to fix it for some reason instead of simple triage. I personally don't a fix, so closing it

@johnthecat johnthecat closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On dot.li the Go to Humanity hand-off opens peopl.li

1 participant