Skip to content

feat(web): on mainnet, send newcomers to DashPay first - #680

Merged
PastaPastaPasta merged 3 commits into
masterfrom
feat/mainnet-create-dashpay-first
Nov 24, 2026
Merged

PastaPastaPasta merged 3 commits into
masterfrom
feat/mainnet-create-dashpay-first

Conversation

@PastaPastaPasta

Copy link
Copy Markdown
Owner

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

  • Mainnet, where the wallet can sign in (App Connect v2):
    • The "New to Dash?" tile is now Get DashPay, create your identity there, then sign in.
    • Its note names DashPay for Android 11.9.2+ and Dash Wallet for iOS 9.1.4+, and links the existing DASHPAY_ANDROID_RELEASES URL. No new URLs were added, and the store names are not linked.
    • Choosing the tile opens the wallet sign-in.
  • In-page create moves to a new Other ways to sign in group on mainnet. It is kept, not removed.
  • Mainnet without v2 keeps create first, so a newcomer's first step can't dead-end in a wallet that can't answer yet.
  • Testnet and devnets are unchanged: in-page create stays the newcomer's first, recommended option.
  • The registry (lib/auth/sign-in-methods.ts) gets a get-dashpay method and an other group. Tests in sign-in-methods.test.ts and login-modal.test.tsx pin the sheet order for mainnet, testnet and devnet.
  • CHANGELOG entry under [Unreleased], plus notes in docs/guides/identity-and-keys.md and quick-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 with e2e/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.json got 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)

Before After
before mainnet after mainnet

Mainnet (phone, 390 px)

Before After
before mainnet mobile after mainnet mobile

Testnet (desktop, unchanged)

Before After
before testnet after testnet

Testnet (phone, unchanged)

Before After
before testnet mobile after testnet mobile

Tile order recorded by Playwright:

  • mainnet before: wallet, create, import, dg
  • mainnet after: wallet, get-dashpay, import, dg, create, with headings New to Dash? / Already have a Dash identity? / Other ways to sign in
  • testnet: wallet, create, import, dg both times

Checks

pnpm typecheck, lint, lint:copy and test were run in a boat sandbox. All pass except 3 tests in lib/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

PastaPastaPasta and others added 2 commits November 24, 2026 06:24
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]>
@coderabbitai

coderabbitai Bot commented Nov 24, 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 18 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: 174f98d0-47bc-4e49-ad7e-153c87030556
Commits

Reviewing files that changed from the base of the PR and between b5917e6 and 392caf4.

Files selected for processing: 9

  • CHANGELOG.md
  • docs/design/wallet-primary.md
  • docs/guides/identity-and-keys.md
  • docs/guides/quick-start.md
  • forge-web/components/auth/wallet-connect-flow.tsx
  • forge-web/components/login-modal.test.tsx
  • forge-web/components/login-modal.tsx
  • 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

@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

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. leads is walletSignInReady, which is true only for mainnet or testnet with v2. network is the build-time ACTIVE_NETWORK.network, so the mainnet tile can't appear on testnet or devnet. Testnet keeps create* first, because walletRecommended excludes testnet and the create branch is unchanged. Devnet never leads.
  • The flash while the wallet check loads. useWalletAvailability starts 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 to v2: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 other on mainnet+v2, under new everywhere else, and resume-create still leads while a creation is unfinished. Import (phrase and file), dg and passkey are unchanged in existing. Raw-key stays under Advanced. The registry test pins the full lists, including other:create and advanced:raw-key.
  • Links. The only href is the existing DASHPAY_ANDROID_RELEASES constant (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_CONNECT is on for mainnet) and identity-and-keys.md:291.
  • Tests. sign-in-methods.test.ts pins 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.tsx renders mainnet with and without v2 through an ACTIVE_NETWORK proxy. 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_NETWORK proxy in login-modal.test.tsx overrides key as well as network. That works today. If a mainnet-only path ever reads ACTIVE_NETWORK.key for a contract lookup, the mock will report mainnet while 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 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-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.

@PastaPastaPasta
PastaPastaPasta merged commit a0b5ec9 into master Nov 24, 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