Repository navigation
Pull localization from transifex - #25
Merged
Merged
Conversation
(cherry picked from commit 0b54d5c9a8a1bc5dfbb0b047405d8ea0146e8f0a)
llbartekll
added a commit
that referenced
this pull request
May 25, 2026
Centralise DashPay current-user reads behind DWCurrentUserIdentityInfo and route profile writes through SwiftDashSDK. Row #17 stage A already surfaced SDK identities on the home-screen avatar + tap — this commit finishes the in-scope read sites (avatar render, profile display, invitation link, payment-side identity gate) and the profile editor's write path. Pre-existing DashSync identities (rare in this branch) keep working via fallbacks; full retirement lands with Row #25. New infrastructure (dashpay target): - DWCurrentUserIdentityInfo: @objc @mainactor lookup. Snapshot of (username, displayName, avatarURL, publicMessage, identityIdHex) invalidated on DWDashPayRegistrationStatusUpdated and DWIdentityRegistrationBridge.stateChangedNotification. Resolves PersistentIdentity from SwiftData, reads via wallet.managedIdentity(identityId:) → getDpnsNames() + getDashPayProfile(). Falls back to DWGlobalOptions.dashpayUsername for the post-register sync gap. - DWProfileUpdateCoordinator: async @mainactor write path with PIN gate, KeychainSigner, and create-vs-update verb flip on cache- mismatch error from the SDK. - DWProfileUpdateBridge: @objc completion-based facade. JPEG-encodes the cropped UIImage at quality 0.8 for DashPayProfileUpdate.avatarBytes. Migrated reads: - DWDPAvatarView: configureAsCurrentUser. Contact-side setBlockchainIdentity: kept for Row #18. - DWEditProfileAvatarView: setImageForCurrentUser. - DWCurrentUserProfileView: reloadFromCurrentUser. The legacy setBlockchainIdentity: setter now forwards to it. reloadAttributedData reads via a new DWCurrentUserTitleSubtitleAttributedString free function alongside the existing DSBlockchainIdentity+DWDisplayTitleSubtitle category. - DWEditProfileViewController: displayName / aboutMe / avatar URL all prefill from the helper. Drops the non-MOCK assertion that blockchainIdentity is non-nil. unsavedAvatarImage retains the cropped UIImage so the SDK write path can hand bytes downstream. - DWInvitationLinkBuilder: inviter profile fields from the helper. - DWDashPayModel.username: prefer helper, fall back to DashSync + DWGlobalOptions. - DWPayModel.refreshOptions: DashPay send-button gate via helper.hasIdentity. Migrated write: - DWDPUpdateProfileModel.updateWithDisplayName:aboutMe:avatarURLString:avatarImage: branches on wallet.defaultBlockchainIdentity. non-nil → legacy DashSync sign-and-publish. nil → DWProfileUpdateBridge. The new avatarImage parameter threads from RootEditProfileViewControllerDelegate through HomeViewController + MainMenuViewController's DelegateInternal. - SDKIdentityProfileSheet: optional onEditTapped callback drives a new Edit button. HomeViewController.profileAction chains into RootEditProfileViewController on the tap so SDK identities can edit their profile end-to-end now. Out of scope (Row #18 / Row #25 / future): - DWUserProfileHeaderView, InvitationBottomView, DWNotificationsProvider, DWDashPayContactsUpdater, DWDashPayContactsActions — contact-side rendering and contacts subsystem. - DWPaymentProcessor + DWPaymentOutput+DWView identity reads — pass DSBlockchainIdentity into deeper BIP-70 / friend-status machinery. - Contested-name voting (still bypassed since PR 3). Carveouts preserved untouched per user request: - MainMenuViewController FIXME: TEMPORARY debug edits - JoinDashPayViewModel.checkUsername - HomeViewModel.checkJoinDashPay Verified: dashpay scheme builds clean. End-to-end testnet verification pending; the read paths render via the helper's snapshot + SDWebImage URL load, and the write path calls into the existing SDK profile APIs proven by the SwiftExampleApp. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
llbartekll
added a commit
that referenced
this pull request
Jul 8, 2026
Migration doc row #25 (WalletEnvironment build-out: address validator, DSTransaction-courier retirement + txid-typed delegate chain, presence bridge + gate flip, existence-read repoint; sim smoke results + the open interactive smokes). Teardown plan: C1 progress (cats 2/5 done — remaining: 3⏸C10, 4, 6/C7, 7), C6 progress (A+B done, C/D/E open), §7 remaining-work line updated. CLAUDE.md mnemonic bullet names hasPersistedSDKWallet as the sanctioned presence reader. Co-Authored-By: Claude Fable 5 <[email protected]>
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.