Repository navigation
feat(wallet): multi-select transaction filter with Rewards and Shielded categories - #793
Merged
QuantumExplorer merged 3 commits intoJul 9, 2026
Conversation
…ed categories The home screen filter becomes multi-select checkboxes with an "Only" shortcut per row; the All row checks every box, and a fully checked selection shows everything (including internal transfers and CoinJoin mixing groups). Union semantics otherwise: a tx shows when it matches any checked category. - Rewards row (coinbase txs — the predicate already existed but was never surfaced) appears only when the wallet has ever earned a masternode/mining reward, computed from the unfiltered history on each reload and unlocked live when a coinbase arrives mid-session. - Shielded sent classifies via the existing isShieldedTransfer (to-Shielded funding tx). - Shielded received needs new plumbing: the SDK's shieldedWithdraw returns no txid, so ShieldedWithdrawalStore records the destination Core address at withdraw time (also on the may-be-on-chain shieldedSpendUnconfirmed error) and an incoming tx paying a recorded address classifies as Shielded received. Per-wallet UserDefaults, mirroring CoinJoinWithdrawalStore, with the same wallet-remove and full-wipe hooks. - Drops the unused ObjC TransactionFilterDialogPresenter and the single-select HomeTxDisplayMode. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
…de/transactions-filter-rewards-9811b7 # Conflicts: # DashWallet/Sources/UI/Home/Views/HomeViewModel.swift
Matches any masternode special transaction (provider registration, update registrar/service, revocation) via the SDK's typed discriminant. Like Rewards, the row is offered only when the wallet has ever had such a transaction, and masternode txs are carved out of Sent/Received into their own exclusive category. Co-Authored-By: Claude Fable 5 <[email protected]>
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.
What
Reworks the home-screen transaction filter (All / Sent / Received / Gift card) into multi-select checkboxes, and adds three new categories: Rewards, Shielded sent, and Shielded received.
Each row has a checkbox plus an Only button that narrows the selection to just that category. Tapping All checks every box. The sheet stays open while toggling and the list filters live; the last checked box can't be unchecked, so the filter never goes empty.
Semantics
Rewards
The
.rewardspredicate existed inHomeTxDisplayModebut was never surfaced in the dialog. The row now appears only when the wallet has ever had a masternode/mining reward: each full reload scans the unfiltered history for a coinbase tx (hasRewardsHistory), and a coinbase arriving incrementally unlocks the row without waiting for a reload.Shielded categories
isShieldedTransferclassification (L1 funding tx of a to-Shielded transfer).ShieldedWithdrawalStore: the SDK'sshieldedWithdrawis opaque (no txid returned), soShieldedTransferCoordinator.performWithdrawrecords the destination Core address (on success and on the may-already-be-on-chainshieldedSpendUnconfirmederror), and an incoming tx paying a recorded address classifies as Shielded received. Receive addresses are single-use in practice, so address tagging is reliable. Store mirrorsCoinJoinWithdrawalStore(per-wallet UserDefaults, NSLock cache) with the same remove/wipe hooks inSwiftDashSDKWalletWiper.Masternode category
A Masternode row matches any masternode special transaction (provider registration, update registrar/service, revocation) via the SDK's typed discriminant. Like Rewards, it appears only when the wallet has ever had such a transaction, and masternode txs are carved out of Sent/Received into their own exclusive category.
Notes
TransactionFilterDialogPresenterand the single-selectHomeTxDisplayMode.Verification
dashpayscheme build (iphonesimulator,ARCHS=arm64).🤖 Generated with Claude Code