Repository navigation
feat(web): lead with the wallet on testnet - #655
Conversation
Released wallets now answer App Connect v2 on testnet: DashPay for Android 11.9.2 (its testnet build) and Dash Wallet for iOS 9.1.4. A sign-in from the released Android testnet build was checked end to end, including a write with the granted key. So the sign-in sheet leads with the wallet on testnet as on mainnet wherever v2 is on offer, the #591 copy goes, and the request screen names the wallets and links the Android testnet build. Creating an identity stays the first option for newcomers. Also: an exhaustive switch over sign-in methods. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 49 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
… key An App Connect v2 request asks for no encryption key, but the scan note said an approval hands it over and told the user to replace it after an untrusted scan. That line now shows only under the older code. Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta
left a comment
There was a problem hiding this comment.
Verdict: changes requested
One copy overclaim needs fixing before merge: on testnet the request screen tells iPhone users their wallet works. Everything else holds up. walletSignInReady, the v2 scan note, the never default and the e2e edits are correct.
What I verified (head 82cd591)
- Android 11.9.2 (
v11.9.2,DashConnectUri.kt):v=1throwsLEGACY_KEY_REQUEST_ERRORand onlyv=2is parsed, so "Android answers only the newer code" is true.Constants.javaturnsSUPPORTS_CONNECTon for all three networks. The v11.9.2 release shipsdashpay-wallet-11.9.2-testnet.apkand is marked Latest. The 12.0.2 pre-release also ships a-testnet.apk(dash-wallet-12.0.2-testnet.apk), so thereleases/latestlink and the-testnet.apkwording will still hold when 12.x is promoted. - iOS v9.1.4 release notes: "pin testnet to Platform protocol 14" (#1222), plus App Connect v2 (#1204/#1210). The release has no assets.
lib/auth/app-connect-v2.ts: a v2 request asks for no encryption key, and line 285 refuses a grant that carries one. SowithEncryption={v2 === undefined}and the rewordedScanOnlyHereare correct. The v1/register path keeps both lines, and the new test covers both cases.walletSignInReady: devnet is unchanged. When v2 isn't offered on testnet (NETWORKS.testnet.v2 === null, a protocol below 14, or a failed or timed-out chain-clock read),v2is false and the tile drops back to last place, muted, with the "Not available yet" badge. Theneverdefault typechecks.- e2e:
wallet-login.spec.tsandwallet-login-v2.spec.tsboth skip in the read-only job (they needE2E_WRITE, or skip on testnet). The only read-only spec that clickstile-wallet(signin-resilience.spec.ts:124) finds it by test id, not by position. The read-only testnet Playwright job passed on this head. - Locally: the 6 named vitest files pass (111 tests), and
tsc --noEmitandpnpm lint:copyare clean.
Findings
-
forge-web/components/auth/wallet-connect-flow.tsx:831-839, should fix (overclaim). The v2WalletSupportNotenames "Dash Wallet for iOS 9.1.4 or later" on every network, testnet included. On testnet it then adds "use DashPay's testnet build: for Android, the -testnet.apk…" and says nothing about iOS. An iPhone user on the testnet site reads that as "iOS 9.1.4 works here". It hasn't been verified: wallet-primary.md (the compatibility table and "Getting a wallet that works on testnet") says the iOS release has no downloadable build and that whether a store build can switch to testnet is unverified. Phase 2 item 4 says the copy "names iOS only once a route to testnet on iOS is verified". The emulator evidence covers Android only. Concrete case: an iPhone user installs the store app, can't reach testnet (or can't find a 9.1.4 build at all), and the sheet's Recommended option is a dead end. Fix: on testnet, name only DashPay for Android 11.9.2+ (testnet APK), and keep the iOS clause for mainnet, or add "iOS on testnet: not verified yet". TheWalletSupportNoteJSDoc (around line 822) and thewalletSignInReadycomment make the same claim and should match. -
forge-web/components/login-modal.tsx:374, minor. The testnet copy for when v2 isn't offered says "Released Dash wallets answer only App Connect, which can't be offered here right now." That conflicts with the v1 note the same tile opens (wallet-connect-flow.tsx:856: "Only Dash Wallet for iOS 9.1.4 answers this older code, on testnet"). The tile is still clickable and leads into that v1 flow. "App Connect" without "v2" also reads as covering both protocols. Suggest: "Released wallets need App Connect v2, which can't be offered here right now. Use another option for now." (or point iOS 9.1.4 users at the older code, if that route is kept). -
forge-web/components/auth/wallet-connect-flow.tsx:856, nit. The v1 note is accurate about the source code, but it also points users at an iOS testnet route nobody has verified. It's a smaller concern than #1 because only someone who chose "Show the older code" sees it. Consider "(not verified on testnet)". -
forge-web/components/login-modal.tsx:340withuseWalletAvailability, nit, already true on mainnet. The sheet's "v2 offered" check runs onlyappConnectV2Available(deployment plus protocol ≥ 14).AuthController.checkGroupruns later, inside the flow. If the group check refuses (a deployment misconfiguration), the tile has already said "Recommended… DashPay testnet build", and the flow drops to v1, which Android 11.9.2 refuses. That's unlikely with the current testnet deployment, and mainnet has always behaved this way, so I'm noting it without asking for a change. -
forge-web/components/auth/wallet-connect-flow.tsx:835, nit (a11y/consistency). The new link usesclassName="underline", so it inherits the greytext-anvil-500text. Other in-sheet links usetext-forge-700 … dark:text-forge-400. Grey 12px text that differs from its neighbours only by an underline is a weak link cue. It also opens in a new tab with no indication. Therel="noreferrer"is fine, since noreferrer implies noopener. -
Note, not blocking. wallet-primary.md open question 3 recommends keeping in-page create as the testnet newcomer's first option "until a testnet DashPay is easy to get" (today that means sideloading an APK). This PR moves the Recommended badge from create to the wallet on testnet. Create still leads its "New to Dash?" group, which matches item 4 ("lead with the wallet on testnet too"), so it's an owner-level trade-off rather than a defect. A newcomer without the sideloaded APK now sees a Recommended option they can't use straight away.
Fixing #1 (and ideally #2) would make this an approve from me.
🤖 Posted autonomously by Claude (claude-opus-5-5) on behalf of pasta.
…ded on testnet Review of #655: iOS has no verified route to testnet, so testnet copy names only DashPay for Android's testnet build, and the older-code note no longer points at iOS. On testnet the wallet leads but the Recommended badge stays on creating an identity, since DashPay's testnet build is a sideloaded APK (wallet-primary.md, decision 3). The new-tab link looks like the sheet's other links and says it opens a new tab. Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta
left a comment
There was a problem hiding this comment.
Verdict: approve
I re-checked e313726 against review 6013646241. Every point is fixed, and the change adds no new overclaim. The only leftovers are stale comments and docs, listed below as non-blocking.
Earlier findings, checked against git diff 82cd5916 e313726b
- Fixed. On testnet, the v2
WalletSupportNotenames only "DashPay for Android 11.9.2 or later" and its-testnet.apk. iOS 9.1.4 now appears only in the mainnet branch. The JSDoc (wallet-connect-flow.tsx:821), the file header and thewalletSignInReadycomment (app-connect.ts:469) now say that only Android's testnet build is verified on testnet, and that iOS has no verified route there. - Fixed. The not-on-offer testnet tile now reads "DashPay for Android answers only App Connect v2, which can't be offered here right now." That agrees with the v1 note the tile opens, and it says "v2".
- Fixed. The v1 note now says "DashPay for Android 11.9.2 and later refuse this older code… A wallet that still answers it… approves each Forge contract separately." It names no iOS testnet route.
- Fixed. The link uses
text-forge-700 underline dark:text-forge-400, like the other in-sheet links, and its text ends "(opens in a new tab)". - Resolved the way the design doc recommends.
walletRecommended = leads && network !== 'testnet'. On testnet the wallet leads without a badge and Create keeps Recommended. On mainnet with v2 the wallet still leads and is badged. On devnet, or without v2, Create is recommended and the wallet sits last. While a creation is unfinished, nothing is badged.
Other checks on the whole PR diff vs origin/master
sign-in-methods.test.tscovers testnet+v2 (lead:wallet,new:create*), testnet without v2, devnet+v2 (same as without v2), mainnet ± v2 (lead:wallet*/new:create*), creating on testnet and on mainnet+v2, and no answer source.login-modal.test.tsx: both v2 sheet tests now expect the Create badge, with no wallet badge. The first test forceswalletReady = trueon a testnet build, and its comment points to the mainnet case insign-in-methods.test.ts.- e2e:
/refuse this older code/imatches the new v1 note ("…11.9.2 and later refuse this older code…"). Neither wallet spec runs in the read-only testnet job. - I grepped
forge-web/{app,components,lib}for iOS, iPhone and #591. Nothing user-facing still claims iOS works on testnet. The only iOS strings left in the copy are the mainnet v2 note and the devnet "internal iOS build" copy, which this PR doesn't change. - The "after" screenshots in the PR body (
after2-*) match this head: the wallet leads with no badge, Create is Recommended, and the request screen shows the Android-only testnet note and the orange "(opens in a new tab)" link. - Locally on e313726:
pnpm install --frozen-lockfilepasses, and the 6 named vitest files pass (111 tests).tsc --noEmitandpnpm lint:copy: both clean. - Required checks on e313726:
web,mint-identityandplaywright (read-only, testnet)pass.rust build + testis skipped (no Rust changes).
Non-blocking nits / follow-ups
forge-web/lib/auth/sign-in-methods.ts:33: thewalletLeadsJSDoc still says "Whether the wallet tile leads (and is recommended)".login-modal.tsx:14-15likewise says the wallet "leads (and is the one recommended) where … App Connect v2 on mainnet or testnet". Both are stale for testnet now that the badge stays on Create there.- PR body: the "Changes" list still says "The older-code note now says only iOS 9.1.4 answers v1, and only on testnet". After e313726 the note no longer says that.
docs/guides/identity-and-keys.md("Signing in with the Dash Wallet app: what works today", around line 264) still describes the dev-build/#591 state and says Android is "not yet tried" on testnet. This PR didn't introduce that, but the product now contradicts it, so it's worth a docs follow-up.
🤖 Posted autonomously by Claude (claude-opus-5-5) on behalf of pasta.
On testnet the sign-in sheet still lists the wallet last, under "Not available yet", and says released wallets can't answer (issue #591). That is no longer true. DashPay for Android 11.9.2 (its testnet build, a release asset) and Dash Wallet for iOS 9.1.4 both answer App Connect v2 at protocol 14, which testnet runs. This is Phase 2, item 4 of
docs/design/wallet-primary.md(#652).Checked end to end with a released wallet. I installed
dashpay-wallet-11.9.2-testnet.apkon an Android emulator and restored a QA identity. Forge's testnet build showed the v2 request, the wallet approved it, and Forge accepted the key. That key is #6: AUTHENTICATION/HIGH, bound to the Forge group, with 0.05 DASH and 90 days, exactly as proposed. It then starred a repo, which landed in about 4.5 s. Screenshots are below.Changes:
walletSignInReadynow returns true on testnet as well as mainnet wherever v2 is on offer. Devnets are unchanged, since released wallets carry no devnet settings.ScanOnlyHere) no longer says an approval hands over the encryption key, or tells the user to replace it after an untrusted scan. A v2 request asks for no encryption key, so that line now shows only under the older code.walletSignInSupported(v1, testnet only) only the comment changes. Its old comment was wrong.switchover sign-in methods now ends in an exhaustiveneverdefault, and a misleading test title is fixed.Before / after (testnet build, desktop):
Mobile:
Released wallet, emulator:
Known wallet-side rough edge (not Forge): a deep link that arrives while a freshly restored wallet is still syncing fails with "Connection records unavailable" (
AppConnectSession.identityId: "Identity unavailable"), and the request is dropped. Opening the link again after the sync finishes works.Tests:
sign-in-methods,login-modal,login-modal-guided,wallet-connect-flowandwallet-protocolpass (103 tests).tsc, eslint and copy-lint are clean.Nothing is removed: every other sign-in method stays where it was.
🤖 Generated with Claude Code