Skip to content

feat(web): lead with the wallet on testnet - #655

Merged
PastaPastaPasta merged 3 commits into
masterfrom
feat/wallet-first-testnet
Nov 22, 2026
Merged

PastaPastaPasta merged 3 commits into
masterfrom
feat/wallet-first-testnet

Conversation

@PastaPastaPasta

@PastaPastaPasta PastaPastaPasta commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

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.apk on 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:

  • walletSignInReady now returns true on testnet as well as mainnet wherever v2 is on offer. Devnets are unchanged, since released wallets carry no devnet settings.
  • On testnet the wallet tile leads and says to use DashPay's testnet build. The Recommended badge stays on Create, because that build is a sideloaded APK (decision 3 in the plan). On mainnet the wallet is the recommended tile. Where v2 isn't on offer, the tile still sits last, with copy that no longer cites D-L: Dash Wallet iOS can't complete a Forge sign-in on testnet (wallet pins protocol 13) #591.
  • The request screen names the wallets and versions. On testnet it names only DashPay for Android, the one wallet verified there, and links its testnet APK; iOS has no verified route to testnet. The older-code note now says only iOS 9.1.4 answers v1, and only on testnet.
  • The v2 request's scan note (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.
  • In walletSignInSupported (v1, testnet only) only the comment changes. Its old comment was wrong.
  • In the e2e specs, I updated the stale skip reason and one testnet regex. Neither spec runs in the read-only testnet job.
  • From refactor(web): one registry decides the sign-in sheet's methods and order #654's review: the switch over sign-in methods now ends in an exhaustive never default, and a misleading test title is fixed.

Before / after (testnet build, desktop):

Before After
before after
before request after request

Mobile:

Before After
before after

Released wallet, emulator:

Wallet approval Forge signed in Write with the granted key
approval signed in star

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-flow and wallet-protocol pass (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

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]>
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7240d475-b63d-493d-8d13-5d059b990f78
Commits

Reviewing files that changed from the base of the PR and between 2a865f3 and e313726.

Files selected for processing: 10

  • forge-web/components/auth/scan-warning.test.tsx
  • forge-web/components/auth/scan-warning.tsx
  • forge-web/components/auth/wallet-connect-flow.tsx
  • forge-web/components/login-modal.test.tsx
  • forge-web/components/login-modal.tsx
  • forge-web/e2e/wallet-login-v2.spec.ts
  • forge-web/e2e/wallet-login.spec.ts
  • forge-web/lib/auth/app-connect.ts
  • forge-web/lib/auth/sign-in-methods.test.ts
  • forge-web/lib/auth/sign-in-methods.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

… 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 PastaPastaPasta left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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=1 throws LEGACY_KEY_REQUEST_ERROR and only v=2 is parsed, so "Android answers only the newer code" is true. Constants.java turns SUPPORTS_CONNECT on for all three networks. The v11.9.2 release ships dashpay-wallet-11.9.2-testnet.apk and is marked Latest. The 12.0.2 pre-release also ships a -testnet.apk (dash-wallet-12.0.2-testnet.apk), so the releases/latest link and the -testnet.apk wording 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. So withEncryption={v2 === undefined} and the reworded ScanOnlyHere are 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), v2 is false and the tile drops back to last place, muted, with the "Not available yet" badge. The never default typechecks.
  • e2e: wallet-login.spec.ts and wallet-login-v2.spec.ts both skip in the read-only job (they need E2E_WRITE, or skip on testnet). The only read-only spec that clicks tile-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 --noEmit and pnpm lint:copy are clean.

Findings

  1. forge-web/components/auth/wallet-connect-flow.tsx:831-839, should fix (overclaim). The v2 WalletSupportNote names "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". The WalletSupportNote JSDoc (around line 822) and the walletSignInReady comment make the same claim and should match.

  2. 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).

  3. 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)".

  4. forge-web/components/login-modal.tsx:340 with useWalletAvailability, nit, already true on mainnet. The sheet's "v2 offered" check runs only appConnectV2Available (deployment plus protocol ≥ 14). AuthController.checkGroup runs 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.

  5. forge-web/components/auth/wallet-connect-flow.tsx:835, nit (a11y/consistency). The new link uses className="underline", so it inherits the grey text-anvil-500 text. Other in-sheet links use text-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. The rel="noreferrer" is fine, since noreferrer implies noopener.

  6. 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 PastaPastaPasta left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. Fixed. On testnet, the v2 WalletSupportNote names 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 the walletSignInReady comment (app-connect.ts:469) now say that only Android's testnet build is verified on testnet, and that iOS has no verified route there.
  2. 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".
  3. 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.
  4. 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)".
  5. 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.ts covers 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 forces walletReady = true on a testnet build, and its comment points to the mainnet case in sign-in-methods.test.ts.
  • e2e: /refuse this older code/i matches 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-lockfile passes, and the 6 named vitest files pass (111 tests). tsc --noEmit and pnpm lint:copy: both clean.
  • Required checks on e313726: web, mint-identity and playwright (read-only, testnet) pass. rust build + test is skipped (no Rust changes).

Non-blocking nits / follow-ups

  • forge-web/lib/auth/sign-in-methods.ts:33: the walletLeads JSDoc still says "Whether the wallet tile leads (and is recommended)". login-modal.tsx:14-15 likewise 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.

@PastaPastaPasta
PastaPastaPasta merged commit 2728289 into master Nov 22, 2026
20 checks passed
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.

1 participant