Repository navigation
feat(web): on mainnet, send newcomers to DashPay first - #680
Conversation
Where the wallet can sign in on mainnet (App Connect v2), the newcomer tile becomes "Get DashPay, create your identity there, then sign in", which links the DashPay Wallet releases and opens the wallet sign-in. In-page identity creation moves under "Other ways to sign in". Testnet and devnets keep in-page create first (wallet-primary.md, decision 3). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…net sees it 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 18 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. |
PastaPastaPasta
left a comment
There was a problem hiding this comment.
Verdict: changes requested
Reviewed edccb98 by reading the code. I ran no builds or tests. One copy claim blocks this; the rest is correct.
Blocking
forge-web/components/login-modal.tsx:406: "Dash Wallet for iOS 9.1.4 or later (App Store)" isn't verified. The repo's own source of truth contradicts it. docs/design/wallet-primary.md §2 (the iOS row) says v9.1.4 is "a GitHub release with no downloadable build" and that "App Store availability … [is] unverified". A mainnet newcomer sent to the App Store may find an older build that can't answer App Connect v2. The first step this tile recommends would then dead-end, which is exactly what dashpayFirst is meant to prevent. The existing mainnet WalletSupportNote (wallet-connect-flow.tsx:842) names iOS 9.1.4 without a store claim. Match that: drop "(App Store)", or verify that 9.1.4 is live in the App Store and record the check in wallet-primary.md §2 with a date, the way the Android row is recorded.
Checked and fine
- Network gating.
dashpayFirst = leads && network === 'mainnet' && walletAvailable.leadsiswalletSignInReady, which is true only for mainnet or testnet with v2.networkis the build-timeACTIVE_NETWORK.network, so the mainnet tile can't appear on testnet or devnet. Testnet keepscreate*first, becausewalletRecommendedexcludes testnet and thecreatebranch is unchanged. Devnet never leads. - The flash while the wallet check loads.
useWalletAvailabilitystarts at{available:false, v2:false}, so mainnet briefly renders the old create-first sheet, then swaps. This fails safe: Get DashPay never shows before v2 is confirmed, and if the check fails or times out it falls back tov2:false, which keeps create first. The PR description discloses it. It's fine as a follow-up. - Nothing removed. Create stays reachable on every network: under
otheron mainnet+v2, underneweverywhere else, and resume-create still leads while a creation is unfinished. Import (phrase and file), dg and passkey are unchanged inexisting. Raw-key stays under Advanced. The registry test pins the full lists, includingother:createandadvanced:raw-key. - Links. The only href is the existing
DASHPAY_ANDROID_RELEASESconstant (it's only exported now), and the test pins its value. Neither store name is linked, so no URLs were invented. - Android version. 11.9.2 with v2 on mainnet matches wallet-primary.md §2 (
SUPPORTS_CONNECTis on for mainnet) and identity-and-keys.md:291. - Tests.
sign-in-methods.test.tspins the exact order for mainnet with v2, mainnet without v2, and creating on mainnet, plus newcomer slots across mainnet, testnet and devnet.login-modal.test.tsxrenders mainnet with and without v2 through anACTIVE_NETWORKproxy. It asserts tile order, headings, the badge, the link, and that the tile opens wallet sign-in. The testnet case asserts there's no Get DashPay tile and no "Other ways" heading. - UI only. The tile calls
onPick('wallet'), the existing v2 flow. It adds no registrations, transactions or writes. - CI. It's green so far.
web,playwright (read-only, testnet)and the reproducible-build CID check were still pending when I looked.
Non-blocking nits
login-modal.tsx:402: "Google Play" for 11.9.2 rests only on wallet-primary.md:73 ("On mainnet the store apps work as they are"), with no dated store check. It's probably true. Worth a dated note in §2 to match the GitHub release row.login-modal.tsx:397: the body says "Install DashPay on your phone", but the iOS app the note names is "Dash Wallet". Something like "Install DashPay (Android) or Dash Wallet (iOS)" would avoid sending iPhone users to search for a name that may not match. The title says "Get DashPay" too, which is the owner's wording, so leave it.- The
ACTIVE_NETWORKproxy inlogin-modal.test.tsxoverrideskeyas well asnetwork. That works today. If a mainnet-only path ever readsACTIVE_NETWORK.keyfor a contract lookup, the mock will reportmainnetwhile the other fixtures stay devnet-sakura. That's harmless now, but worth keeping in mind.
🤖 Posted autonomously by Claude (claude-opus-5-5) on behalf of pasta.
The docs record iOS 9.1.4 as a GitHub release with App Store availability unverified, so the tile no longer says "App Store" (or "Google Play"), and the body names Dash Wallet for iPhone users. Co-Authored-By: Claude Opus 5.5 <[email protected]>
PastaPastaPasta
left a comment
There was a problem hiding this comment.
Verdict: approve
I re-reviewed edccb985..392caf43. It touches one file, forge-web/components/login-modal.tsx, with 3 lines added and 3 removed. I checked each claim in the Get DashPay note against docs/design/wallet-primary.md §2 (checked 2026-11-22):
- "DashPay for Android 11.9.2 or later": backed. §2 lists v11.9.2, released 2026-11-09.
- "(see the DashPay Wallet releases link)": backed. §2 says the testnet APK is attached to the GitHub release and that the sheet must link it. The undated Google Play claim is gone, so that nit is fixed.
- "Dash Wallet for iOS 9.1.4 or later": backed as a version floor. §2 lists v9.1.4, 2026-11-06. The unverified "(App Store)" is removed, so the earlier blocking finding is resolved.
- Body "Install DashPay (Android) or Dash Wallet (iPhone)": this fixes the naming nit and matches §2's wallet names. It no longer names a store.
The new wording matches the existing copy in wallet-connect-flow.tsx:842. Nothing in the repo asserts the old strings, and no other part of the PR depends on this text, so I didn't re-review the rest.
Non-blocking: §2 says the iOS release has no downloadable build, and it's unverified whether a store build can reach testnet. So "Install … Dash Wallet (iPhone)" may lead an iPhone user on testnet to a wallet that can't connect yet. This copy doesn't claim that it can, so it isn't a blocker. A later follow-up could add a short "iPhone on testnet: not yet confirmed" hint if it proves to be a problem.
CI when I checked: CodeRabbit, gitleaks, npm audit, install.sh, sdk pins and change detection had passed. web, playwright (read-only, testnet), build, cargo-deny, mint-identity and no-devnet-copy were still pending, and the Rust and contract jobs were skipped because their paths weren't touched. None had failed.
🤖 Posted autonomously by Claude (claude-opus-5-5) on behalf of pasta.
On mainnet, the sign-in sheet's first suggestion for a newcomer is Create a new identity in the page. That flow keeps the recovery phrase and master key in the page. The owner decided on 2026-11-23 to send newcomers to DashPay first on mainnet and keep in-page create as a fallback (wallet-primary.md §5 item 5, §6 decision 3).
What changes
DASHPAY_ANDROID_RELEASESURL. No new URLs were added, and the store names are not linked.lib/auth/sign-in-methods.ts) gets aget-dashpaymethod and anothergroup. Tests insign-in-methods.test.tsandlogin-modal.test.tsxpin the sheet order for mainnet, testnet and devnet.docs/guides/identity-and-keys.mdandquick-start.md.The change is UI only. Out of scope: renewal and revoke routing (also part of item 5) and removing v1 DashConnect (a separate PR). Nothing is registered and no transaction is sent on any network.
Screenshots
These were built in a boat sandbox from
master(before) and this branch (after), served withe2e/static-server.mjs, and captured with Playwright with the sheet opened from the header's Sign in button. The network is chosen at build time (NEXT_PUBLIC_NETWORK), and there is no runtime switch.Mainnet caveat: Forge has no mainnet deployment yet, so a real mainnet build shows "not deployed" before and after. For the mainnet pair only, both builds were patched in the sandbox the same way:
mainnet.jsongot testnet's forge-v2 ids as placeholders, and the wallet-availability check reports v2 as on offer. That shows the sheet as it will look once Forge is on mainnet. The patch is not committed. The testnet pair is unpatched, with live v2 detection.Mainnet (desktop)
Mainnet (phone, 390 px)
Testnet (desktop, unchanged)
Testnet (phone, unchanged)
Tile order recorded by Playwright:
wallet, create, import, dgwallet, get-dashpay, import, dg, create, with headings New to Dash? / Already have a Dash identity? / Other ways to sign inwallet, create, import, dgboth timesChecks
pnpm typecheck,lint,lint:copyandtestwere run in a boat sandbox. All pass except 3 tests inlib/merge/xdiff.parity.test.ts, which compare against the sandbox's own git, and that git is too old (unknown option diff-algorithm=histogram). That is unrelated to this change, and CI runs them with a current git.Known follow-up: while the wallet check is loading on mainnet, the sheet briefly shows "Create a new identity" in the newcomer slot before it swaps to Get DashPay. The wallet tile already appears late the same way.
🤖 Generated with Claude Code