Skip to content

Pull localization from transifex - #25

Merged
QuantumExplorer merged 1 commit into
developfrom
fix/update-localization
Dec 12, 2018
Merged

QuantumExplorer merged 1 commit into
developfrom
fix/update-localization

Conversation

@podkovyrin

Copy link
Copy Markdown
Contributor

No description provided.

(cherry picked from commit 0b54d5c9a8a1bc5dfbb0b047405d8ea0146e8f0a)
@QuantumExplorer
QuantumExplorer merged commit b99dbca into develop Dec 12, 2018
@podkovyrin
podkovyrin deleted the fix/update-localization branch December 22, 2018 21:26
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]>
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.

2 participants