Skip to content

feat(dashpay): rebuild the invitation claim on SwiftDashSDK + restore merge-dropped l10n - #808

Merged
QuantumExplorer merged 5 commits into
swift-sdk-integrationfrom
claude/kind-kalam-004977
Jul 16, 2026
Merged

QuantumExplorer merged 5 commits into
swift-sdk-integrationfrom
claude/kind-kalam-004977

Conversation

@QuantumExplorer

Copy link
Copy Markdown
Member

What

One PR covering the invitation-claim rebuild and the localization repair, in three commits:

  1. l10n restore (×2) — the release-8.7.0 merge (1ca07eb) resolved en.lproj/Localizable.strings mostly to master's side, silently dropping ~200 integration-branch entries. Restored the 34 still-referenced keys (shielded Usernames feat(dashpay): join DashPay from the Shielded balance with readiness UX #801, log export feat(wallet): in-app diagnostic log export for beta feedback #802) and all 37 DashPay contacts/invitations strings (their call sites die with the old subsystem, but the entries preserve Transifex source + translations for this rework). SPV-diagnostics entries deliberately left to fix/birth-height-chain-resync, which rewords them.

  2. Invitation claim on SwiftDashSDK — resolves teardown item T1's accept arm as port (see INVITATIONS_REBUILD_PLAN.md for the full plan; create/history/reclaim follow in the next PR):

    • Link contract: DIP-13 dashpay://invite?du=…&assetlocktx=…&pk=…&islock=… — byte-compatible with Android's shipping implementation. DWInvitationLinkNormalizer also unwraps Android OneLink long-URLs (af_dp) and the legacy invitations.dashpay.io/applink form.
    • Distribution is paste/scan-first, zero third parties: install → "Have an invitation?" (Join DashPay dialog) → paste or QR-scan. Deep links (dashpay:// scheme now registered + existing applink entitlement) open the same redeem screen directly. No AppsFlyer, no hosted landing page, no bearer key transiting anyone's servers.
    • Claim path: DWIdentityRegistrationCoordinator.startClaimInvitation — a fourth funding source reusing the PIN gate, key pre-persist, DPNS register, phase adapter, and identity-resume semantics. The username form gains an invitation mode (voucher pays; no balance rule, no funding picker) and offers a post-claim contact request to the du inviter through the contacts service.
    • Deletions: the DashSync accept arm (verifyDeeplink, createUsername:invitation: invitation branch, DSIdentitiesManager friend-request, invitationSteps), the DWHomeModel deeplink passthrough, and the dead Firebase Dynamic Links handling in AppDelegate (the service was shut down in 2025 and silently ate universal links). Firebase/DynamicLinks pod unlink deferred to the pod-teardown pass.
    • DashUIKit retargeted import/final → master @ 046f0875 (matches release-8.7.0; the stale pin's tip stopped resolving).

Verification

  • Clean dashpay arm64-sim builds under both Xcode 26.3/Swift 6.2.4 and Xcode 26.6/Swift 6.3.3.
  • Fresh-wallet simulator smoke of the full invitee flow: menu entry → paste synthetic link → parse/preview ("Invitation from smoketester") → username form on a zero-balance wallet with live DPNS availability → PIN gate → real SDK claim against testnet DAPI → the SDK's typed "funding transaction not found" failure surfaced in the error alert.
  • dashpay:// scheme registration confirmed via the OS open-in-app prompt. (On multi-install QA sims the scheme collides with the SwiftExampleApp — re-verify the deep-link route on a single-install device.)

Companion changes (separate repos)

  • dashpay/platform fix/invitation-contested-tier-cap: raise MAX_INVITATION_DUFFS 0.05 → 0.25 DASH so iOS can create Android's contested-username tier (claim never enforced the cap). Needed for the create side, not this PR.
  • dashsync-iOS: one-line removal of the now-private <netinet6/in6.h> include in DSReachabilityManager.m — required to build any branch under the iOS 26.5 SDK.

🤖 Generated with Claude Code

QuantumExplorer and others added 3 commits July 16, 2026 06:06
The merge commit 1ca07eb resolved DashWallet/en.lproj/Localizable.strings
mostly to master's side, silently dropping 203 integration-branch entries.
English UI kept rendering via the NSLocalizedString key fallback, but the
Transifex source lost the strings.

This restores the 34 dropped entries that are still referenced by an exact
NSLocalizedString key in the current tree (shielded-DashPay Usernames
strings from #801, Log export strings from #802, and DashPay registration
strings), inserted in the file's case-insensitive key order with their
original comment blocks. The file stays UTF-8.

Deliberately not restored:
- 160 dropped keys with no remaining NSLocalizedString reference (their
  call sites no longer exist on this branch)
- the SPV-diagnostics entries from #804: fix/birth-height-chain-resync
  restores/rewords that screen's strings, and re-adding the old wordings
  here would only orphan them when that PR lands

Co-Authored-By: Claude Fable 5 <[email protected]>
Restores the 37 contacts- and invitations-flow entries that the
release-8.7.0 merge (1ca07eb) dropped from the en source file. Their
call sites were deleted when the contacts subsystem was rebuilt on
SwiftDashSDK (#787), but the flows are about to be redone now that
invitations live in the Dash SDK — keeping the entries preserves the
Transifex source (and existing translations) for that rework.

Selection rule: dropped keys whose last call site lived under
DashWallet/Sources/UI/DashPay/{Contacts,Notifications,Items,Profile}
or in a DWDP* contact view, as of the tree before the #787 rebuild.
Inserted in the file's case-insensitive key order with their original
comment blocks; file stays UTF-8.

Co-Authored-By: Claude Fable 5 <[email protected]>
Resolves teardown item T1's accept arm as PORT (INVITATIONS_REBUILD_PLAN.md
is the full plan; the create/history/reclaim side follows). Invitations are
DIP-13 vouchers, cross-platform-compatible with Android's shipping
implementation (dashpay://invite?du/assetlocktx/pk/islock).

Distribution is paste/scan-first with no third-party services: the invitee
installs the app, then redeems by QR scan or paste ("Have an invitation?"
in the Join DashPay dialog), or via a dashpay:// / applink deep link when
the app is already installed. No AppsFlyer, no hosted link infrastructure.

New:
- DWInvitationLinkNormalizer — canonicalizes dashpay://invite, legacy
  invitations.dashpay.io/applink, and Android OneLink long-URLs (af_dp
  unwrap; keys tried in Android's order) down to the URI the SDK parser
  accepts. Obj-C-visible for the AppDelegate routing gate.
- DWInvitationService — protocol-seamed facade: normalize, parse/preview,
  local-identity gate, post-claim contact request to the du inviter (DPNS
  resolve + SwiftDashSDKContactsService, which owns the PIN gate and the
  lazy DashPay-key upgrade).
- ClaimInvitationScreen (+ ClaimInvitationFlow push glue) — paste field,
  QR scan sheet (GenericQRScannerView), inviter preview, inline invalid /
  already-registered states.
- DWIdentityRegistrationCoordinator.startClaimInvitation — fourth funding
  path (.invitation): same PIN gate, key pre-persist, DPNS register, phase
  reporting and identity-resume semantics; the claim consumes the INVITER's
  asset lock via wallet.claimInvitation (no local PersistentAssetLock).
- CreateUsernameView(Model) invitation mode: voucher funds the registration,
  so the balance cost rule and funding-source picker don't apply; success
  offers the inviter contact request; failures surface the SDK's typed
  claim errors.

Rewired / deleted:
- AppDelegate: dead FIRDynamicLinks handling removed (service shut down in
  2025 — it silently swallowed universal links); invitation URLs route
  directly. dashpay:// added to CFBundleURLSchemes.
- DashSync accept arm deleted: DWDashPayModel verifyDeeplink /
  createUsername:invitation: invitation branch / inviter friend-request via
  DSIdentitiesManager / invitationSteps; DWHomeModel deeplink passthrough;
  protocol surface narrowed to createUsername:.
- DashUIKit package retargeted import/final → master @ 046f0875 (matches
  release-8.7.0; the stale pin's tip no longer resolves).

Verified: clean dashpay arm64-sim builds under Xcode 26.3/Swift 6.2.4 and
Xcode 26.6/Swift 6.3.3; fresh-wallet simulator smoke of the full invitee
flow — menu entry → paste → parse/preview ("Invitation from …") → username
form (zero balance, live DPNS availability) → PIN gate → SDK claim against
testnet DAPI → typed funding-tx-not-found failure surfaced. Companion
platform change (invitation cap 0.05 → 0.25 DASH for Android's contested
tier) rides separately in dashpay/platform.

Co-Authored-By: Claude Fable 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 16, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a9f36a4f-5851-418e-987f-b008627dee18

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/kind-kalam-004977

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

Comment @coderabbitai help to get the list of available commands.

@QuantumExplorer QuantumExplorer changed the title feat(invitations): rebuild the DashPay invitation claim on SwiftDashSDK + restore merge-dropped l10n feat(dashpay): rebuild the invitation claim on SwiftDashSDK + restore merge-dropped l10n Jul 16, 2026
QuantumExplorer and others added 2 commits July 16, 2026 10:32
…de/kind-kalam-004977

# Conflicts:
#	DashWallet/en.lproj/Localizable.strings
…plan

All 42 lproj files carry translations for the legacy claim-flow strings
(already-claimed / invalid-invitation / invited-by-share copy) — the
claim error mapping and the create-side share sheet must reuse those keys
instead of minting new copy. The 37 restored contacts/invitations keys
turn out to be English source only (no repo translations survive).

Co-Authored-By: Claude Fable 5 <[email protected]>
@QuantumExplorer
QuantumExplorer merged commit c4516bd into swift-sdk-integration Jul 16, 2026
1 check passed
@QuantumExplorer
QuantumExplorer deleted the claude/kind-kalam-004977 branch August 7, 2026 08:23
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