From 00897682ecfe2f6b60e545ee9660c493a7f25750 Mon Sep 17 00:00:00 2001 From: Quantum Explorer Date: Fri, 17 Jul 2026 04:04:09 +0700 Subject: [PATCH] fix(ui): register the ported explorer models in loadCounts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The DashPay / asset-lock / masternode / shielded rows added in #832 read their badge from the counts dictionary, but loadCounts() was never taught about their models — every new row showed 0 while its drill-in @Query list rendered the real records (QA: "Contact Requests 0" outside, 4 rows inside). Count all fifteen ported models. Co-Authored-By: Claude Fable 5 --- .../StorageExplorer/StorageExplorerView.swift | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/DashWallet/Sources/UI/Menu/Tools/StorageExplorer/StorageExplorerView.swift b/DashWallet/Sources/UI/Menu/Tools/StorageExplorer/StorageExplorerView.swift index 9ec22549a..0ed9882a3 100644 --- a/DashWallet/Sources/UI/Menu/Tools/StorageExplorer/StorageExplorerView.swift +++ b/DashWallet/Sources/UI/Menu/Tools/StorageExplorer/StorageExplorerView.swift @@ -169,6 +169,24 @@ struct StorageExplorerView: View { count(PersistentTransaction.self) count(PersistentTxo.self) count(PersistentWalletManagerMetadata.self) + // DashPay family + asset locks / masternodes / shielded (the + // ported list views) — a row whose model isn't counted here + // shows a misleading 0 next to a non-empty list. + count(PersistentDPNSName.self) + count(PersistentDashpayProfile.self) + count(PersistentDashpayContactProfile.self) + count(PersistentDashpayContactRequest.self) + count(PersistentDashpayPayment.self) + count(PersistentInvitation.self) + count(PersistentDashpayIgnoredSender.self) + count(PersistentPendingInput.self) + count(PersistentAssetLock.self) + count(PersistentMasternode.self) + count(PersistentShieldedNote.self) + count(PersistentShieldedOutgoingNote.self) + count(PersistentShieldedActivity.self) + count(PersistentShieldedSyncState.self) + count(PersistentShieldedViewingKey.self) // Core and Platform address rows live in separate models now // (PersistentCoreAddress vs PersistentPlatformAddress), so // counting them is a plain `fetchCount` per model.