Repository navigation
feat(wallet): prepare 8.6.0 release - #777
Conversation
…sion to 8.6.0 - Replace storyboard-based Buy & Sell screen with SwiftUI view matching Figma designs - Add Maya as a new service in Buy & Sell portal with dedicated Maya portal screen - Group services into cards: Uphold+Coinbase, Topper with "Powered by Uphold" badge, Maya - Fix navigation: back chevron works for both modal dismiss and push pop - Present Buy & Sell portal full screen instead of sheet overlay - Add shortcut bar customization with banner and selection sheet - Add new shortcut icon SVG assets (ATM, Coinbase, CrowdNode, Topper, Uphold, etc.) - Bump version to 8.6.0 Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Replace invalid MAYA PBX object IDs with valid 24-char hex - Fix integer division in Color initializer (176/255 → 176.0/255.0) - Change infoButton from IUO to regular optional - Add geoblock check to Coinbase shortcut entry point - Add accessibility label and 44x44 hit target to banner dismiss button - Add comment explaining why MayaPortalViewController wrapper is needed (UIHostingController hides UIKit nav bar when pushed directly) Co-Authored-By: Claude Opus 4.6 <[email protected]>
Add operator spacing around division in BuySellPortalView and replace force-unwraps with safe optional chaining in BuySellPortalViewController. Co-Authored-By: Claude Opus 4.6 <[email protected]>
feat: Maya entry points, Buy & Sell portal redesign, v8.6.0
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Implement coin selection screen for Maya Protocol integration. Users can browse and search Maya-supported cryptocurrencies with live fiat prices fetched from Midgard API, with halted chain indicators. - Add MayaCryptoCurrency model with 19 hardcoded coins - Add MayaEndpoint (Moya) + MayaAPIService for pools and inbound addresses - Add SelectCoinView with search, loading, error, and halted toast states - Add CoinRowView with icon, name, ticker, and fiat price - Wire "Convert Dash" button in MayaPortalView to push coin selection - Bundle 15 coin icon PNGs from crypto-icons inventory - Add all files to both dashwallet and dashpay Xcode targets Co-Authored-By: Claude Opus 4.6 <[email protected]>
…t 2) Build the address entry screen where users enter/paste/scan the destination wallet address for the selected cryptocurrency. Includes a generic QR scanner since the existing Dash-only scanner rejects non-Dash addresses. Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Replace force-unwrapped URLs in MayaEndpoint with guard let + preconditionFailure - Pin Maya to end of service list after sorting in ServiceDataProvider - Use explicit label: parameter on Button to satisfy SwiftLint trailing closure rule - Remove halted coin UI/logic (Requirement 8 not yet implemented): remove inbound_addresses API call, halted toast, disabled/greyed coin states - Update MAYA.md: mark Req 1 as Implemented, update Req 2 status, fix coin count Co-Authored-By: Claude Opus 4.6 <[email protected]>
feat: Maya select destination coin (Requirement 1)
- Fix Maya sort order in ServiceDataProvider to keep Maya last - Wrap sensitive address/QR logging in #if DEBUG - Check pool.isAvailable before showing coins in SelectCoinViewModel - Implement two-step clipboard reveal matching Send screen pattern - Fix clipboard paste flash by matching hosting controller background color and animating the transition - Update MAYA.md Requirement 2 status to In Progress Co-Authored-By: Claude Opus 4.6 <[email protected]>
…to URI normalization Refactor GenericQRScannerController from 221-line UIKit to thin wrapper hosting new SwiftUI GenericQRScannerView + QRCaptureView UIViewRepresentable. Add 44x44pt hit target and accessibility label to QR scan button. Detect clipboard URLs and normalize crypto URIs (bitcoin:, ethereum:, etc.) by stripping scheme, chain ID, and query params in paste/scan paths. Co-Authored-By: Claude Opus 4.6 <[email protected]>
feat: Maya Enter Destination Address (Requirement 2)
…r Maya swaps Add exchange address sources to the Maya Enter Address screen so users can retrieve deposit addresses from their Uphold and Coinbase accounts. - Add AddressSourceView, MayaExchangeAddressProvider, and address source state management to EnterAddressViewModel - Uphold: fetch cards, create network-specific crypto addresses via API, with session caching and proper network key lookup - Coinbase: direct account lookup by currency code with account-list fallback, address creation via POST, session caching - Add login flows for both exchanges from the Enter Address screen - Re-check authorization after failed fetches to show "Log In" instead of "Not available" when sessions expire Fix Coinbase OAuth which migrated to new endpoints: - Auth URL: login.coinbase.com/oauth2/auth (was coinbase.com/oauth/authorize) - Token URL: login.coinbase.com/oauth2/token (was api.coinbase.com/oauth/token) - Redirect URI: dashwallet://brokers/coinbase/connect (was authhub://oauth-callback) - Token exchange encoding: application/x-www-form-urlencoded (was JSON) - Remove deprecated account and meta[send_limit_*] OAuth parameters Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Add chain-specific address validation with two levels: 1. Local regex validation (real-time) - validates format as user types: - BTC: Legacy Base58 (1.../3...) and Bech32 SegWit/Taproot (bc1q.../bc1p...) - ETH/ARB: 0x + 40 hex characters - KUJI: kujira1 + 38 bech32 characters - THOR: thor1 + 38 bech32 characters 2. Maya API validation (on Continue) - calls /mayachain/quote/swap to verify checksum and chain-level validity. Shows API error message on failure, or temp SUCCESS dialog on success. UI updates to match Figma MO-32 design: - Red border and light red background on invalid address field - Error message displayed below the input field - Continue button disabled for format-invalid addresses Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
feat: add Uphold/Coinbase address sources for Maya and fix Coinbase OAuth
- Remove force unwraps in CoinbaseUserAccountData.balanceFormatted, using guard/let with raw string fallback matching fiatBalanceFormatted - Return user-facing error on network failure in validateAddress instead of nil (which was incorrectly treated as valid) - Check HTTP status code in createUpholdCard before decoding response Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…efore deallocation AVCaptureMetadataOutput holds an unretained reference to its delegate. When the scanner dismisses, stopSession() stops the capture session asynchronously, but the Coordinator can be deallocated before the session fully stops. If a QR code is detected in that window, the callback fires on a dangling pointer, causing EXC_BAD_ACCESS. Fix: nil out the metadata output delegate in both stopSession() and deinit before the coordinator can be deallocated. Also remove the unnecessary DispatchQueue.main.async hop in the delegate callback (already dispatched on main), and replace force cast with guard. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
feat: validate destination address for Maya swaps (MO-32)
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…address selection
- MayaTransactionSuccessView: success state with icon, title, message - MayaTransactionFailureView: failure state with retry, cancel, and support actions - MayaFeeInfoSheet: bottom-sheet component explaining the Maya swap fee with a Learn more link and Got it dismiss button - All three views registered in both dashwallet and dashpay Xcode targets
…version-order-preview
Why: - reduce English fallbacks in the Maya conversion flow across supported locales What: - update Maya portal and conversion-related strings in 20 localization files - refresh labels such as Convert Dash, Contact Maya Support, Receive amount, Loading, and Log In Validation: - build/tests were not run because the staged diff only changes .strings files
HashEngineering
left a comment
There was a problem hiding this comment.
Looks fine. the individual PR's were reviewed previously
Why: - prevent the Maya service card from being appended twice in the Buy & Sell service list What: - return the already-sorted service items without concatenating mayaItems a second time Validation: - build/tests were not run because the staged diff is a one-line logic fix
|
@coderabbitai review |
✅ Action performedReview finished.
|
Why: - address follow-up issues around swap submission safety and asset catalog consistency What: - add a wallet-level guard to block starting a new swap while a previous swap is still unconfirmed - align navigationbar-info asset filenames with their expected 1x/2x/3x naming in the image set manifest Validation: - build/tests were not run in this session before committing
The merge-base changed after approval.
Why: - Backport Maya convert fixes and related UI polish onto the release branch without pulling in risky localization churn. What: - Fix coin-input gross-up and Max behavior on the Maya convert screen. - Polish Maya select coin, order preview, portal, loading spinner, and shortcut item UI. Validation: - Not run.
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
DashWallet/Sources/Models/Transactions/MayaSwapPendingGate.swift (1)
83-83: 💤 Low valueAdd emoji prefix to log statement per coding guidelines.
Coding guidelines recommend using emoji debug markers with DSLogger for easier log filtering (e.g.,
🔍for search,🔄for sync operations). Consider using an appropriate emoji prefix here.-DSLogger.log("MayaSwapPendingGate: IS-lock received for \(expected) — gate released") +DSLogger.log("🔄 MayaSwapPendingGate: IS-lock received for \(expected) — gate released")🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@DashWallet/Sources/Models/Transactions/MayaSwapPendingGate.swift` at line 83, The DSLogger.log statement that logs the IS-lock received message for the gate release is missing an emoji prefix required by coding guidelines. Add an appropriate emoji prefix (such as 🔄 for sync operations or ✅ for completion) to the beginning of the log message string in the DSLogger.log call to align with the project's debug logging conventions and enable easier log filtering.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@DashWallet/Sources/Models/Transactions/MayaSwapPendingGate.swift`:
- Around line 54-68: The observer property assignment in the register method
occurs after lock.unlock() is called, creating a race condition where
clearLocked() could be called from the notification handler before observer is
assigned. Move the entire observer registration code (the
NotificationCenter.default.addObserver call) inside the lock block, before
lock.unlock() is called, so that all mutations to the observer property are
atomic and protected by the same lock that clearLocked() expects to be held when
it accesses observer.
In `@DashWallet/Sources/UI/Maya/Convert/MayaConvertViewModel.swift`:
- Around line 261-267: In the applyQuoteError method, the ternary operator
evaluating the apiError condition currently returns the same localized string
for both the true and false branches (lines 264-267). This is a logic error—the
condition checks whether the apiError contains "not enough asset to pay for
fees" to provide a specific message, but the else branch should display a
different, more generic error message instead of duplicating the same one.
Update the else branch of the ternary operator to return a generic error message
(for example, the original apiError value or a generic "Conversion failed" type
message) rather than the identical "Amount too small to cover fees" string.
---
Nitpick comments:
In `@DashWallet/Sources/Models/Transactions/MayaSwapPendingGate.swift`:
- Line 83: The DSLogger.log statement that logs the IS-lock received message for
the gate release is missing an emoji prefix required by coding guidelines. Add
an appropriate emoji prefix (such as 🔄 for sync operations or ✅ for completion)
to the beginning of the log message string in the DSLogger.log call to align
with the project's debug logging conventions and enable easier log filtering.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 46f8434e-47b2-463e-bf45-9598134344e1
⛔ Files ignored due to path filters (3)
DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-info.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-info.imageset/[email protected]is excluded by!**/*.pngDashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-info.imageset/[email protected]is excluded by!**/*.png
📒 Files selected for processing (9)
DashWallet.xcodeproj/project.pbxprojDashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-info.imageset/Contents.jsonDashWallet/Sources/Models/Explore Dash/Services/DashSpend/DashSpendError.swiftDashWallet/Sources/Models/Transactions/MayaSwapPendingGate.swiftDashWallet/Sources/Models/Transactions/SendCoinsService.swiftDashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutItemView.swiftDashWallet/Sources/UI/Maya/Convert/Components/EnterAmountView.swiftDashWallet/Sources/UI/Maya/Convert/MayaConvertView.swiftDashWallet/Sources/UI/Maya/Convert/MayaConvertViewModel.swift
✅ Files skipped from review due to trivial changes (1)
- DashWallet/Resources/AppAssets.xcassets/Navigation bar/navigationbar-info.imageset/Contents.json
🚧 Files skipped from review as they are similar to previous changes (5)
- DashWallet/Sources/UI/Maya/Convert/Components/EnterAmountView.swift
- DashWallet/Sources/Models/Explore Dash/Services/DashSpend/DashSpendError.swift
- DashWallet/Sources/UI/Home/Views/Shortcuts/ShortcutItemView.swift
- DashWallet/Sources/Models/Transactions/SendCoinsService.swift
- DashWallet/Sources/UI/Maya/Convert/MayaConvertView.swift
There was a problem hiding this comment.
🧹 Nitpick comments (1)
DashWallet/Sources/Models/Maya/MayaCoinIconLoader.swift (1)
22-29: 💤 Low valueDoc comment is outdated after adding SwapKit CDN source.
The comment at lines 24-25 states icons are fetched from jsupa/crypto-icons, but the primary source is now the SwapKit CDN with jsupa as fallback. Consider updating to reflect the dual-source approach.
📝 Suggested doc update
/// Loads remote coin icons with a two-level cache: memory (`NSCache`) + disk (`URLCache`). /// -/// Icons are fetched from the jsupa/crypto-icons repository using the lowercased coin code, -/// matching the Android implementation. Disk-cached entries survive app restarts and are +/// Icons are fetched primarily from the SwapKit token-list CDN using the full asset identifier, +/// with jsupa/crypto-icons as a fallback using the lowercased coin code. Disk-cached entries survive app restarts and are /// served without re-downloading until the OS purges the cache.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@DashWallet/Sources/Models/Maya/MayaCoinIconLoader.swift` around lines 22 - 29, The documentation comment for the MayaCoinIconLoader class incorrectly states that icons are fetched from the jsupa/crypto-icons repository. Update the doc comment to accurately reflect the current dual-source approach where the SwapKit CDN is the primary source for fetching coin icons and jsupa/crypto-icons is used as a fallback. This ensures the documentation accurately describes the actual implementation behavior.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@DashWallet/Sources/Models/Maya/MayaCoinIconLoader.swift`:
- Around line 22-29: The documentation comment for the MayaCoinIconLoader class
incorrectly states that icons are fetched from the jsupa/crypto-icons
repository. Update the doc comment to accurately reflect the current dual-source
approach where the SwapKit CDN is the primary source for fetching coin icons and
jsupa/crypto-icons is used as a fallback. This ensures the documentation
accurately describes the actual implementation behavior.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 358844d9-0392-49be-b747-c5e41fe58b1e
📒 Files selected for processing (7)
DashWallet.xcodeproj/project.pbxprojDashWallet/Sources/Models/Maya/MayaCoinIconLoader.swiftDashWallet/Sources/Models/Transactions/MayaSwapPendingGate.swiftDashWallet/Sources/UI/Maya/Convert/Components/EnterAmountView.swiftDashWallet/Sources/UI/Maya/Convert/Components/MayaAmountView.swiftDashWallet/Sources/UI/Maya/Convert/MayaConvertView.swiftDashWallet/Sources/UI/Maya/Convert/MayaConvertViewModel.swift
🚧 Files skipped from review as they are similar to previous changes (4)
- DashWallet/Sources/UI/Maya/Convert/Components/EnterAmountView.swift
- DashWallet/Sources/UI/Maya/Convert/Components/MayaAmountView.swift
- DashWallet/Sources/Models/Transactions/MayaSwapPendingGate.swift
- DashWallet/Sources/UI/Maya/Convert/MayaConvertView.swift
The merge-base changed after approval.
The merge-base changed after approval.
feat(wallet): prepare 8.6.0 release
Issue being fixed or feature implemented
This PR merges the
8.6.0release branch intomaster.It bundles the approved changes for the
8.6.0iOS release into a single production-ready branch, including the new Maya conversion flow, shortcut bar improvements, PiggyCards translation updates, CrowdNode restrictions for this release, and the final release version/build updates.What was done?
8.6.0release work into a single branch for final delivery.8.6.0.How Has This Been Tested?
feat/release-8.6.0.Breaking Changes
None.
Checklist:
For repository code-owners and collaborators only
Summary by CodeRabbit
New Features
Bug Fixes
UI/UX Improvements