mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Activity: amount filter excludes request amounts and drifts after wallet updates #1095
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#1095
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Activity’s amount filter has two related inconsistencies: its available range can exclude the payment requests it filters, and a wallet update can change the displayed selection without changing the applied filter.
For the request-range case:
The slider now stops at 100,000 sats, below both requests. There is no selectable range that covers their amounts. The saved requests retain their correct values.
For the live-update case:
The popup shows 0–20,000,000 sats, but the applied maximum remains 10,250,000. Both the existing 16,000,000-sat transaction and the new payment remain hidden. Closing and reopening the popup restores the displayed limit to 10,250,000 without changing the results.
The same shared-slider mismatch also reproduces in View coins: a selected maximum of 7,503,906 sats is displayed as 9,000,000 after an incoming coin, while the 8,000,000- and 9,000,000-sat coins remain excluded.
The available bounds should cover the amounts of the rows being filtered. If amount filtering is intended to apply only to transactions, request rows should instead be explicitly exempt. The displayed handles, range label and applied filter should also remain consistent when wallet updates change the available bounds.
These inconsistencies originate in QML’s filtering and slider state.
updateAvailableMaxAmount()excludes pending requests, whilefilterAcceptsRow()applies amount bounds to them. Separately, the sharedRangeSliderbinds its handle values to the available endpoints, allowing a bounds update to move the displayed handles without the user-movement handlers updating the filter.The request-range case was reproduced on merged
qt6ateed1f426fcb6, macOS / Qt 6.9, using an isolated offscreen regtest profile. The live-update cases were reproduced in the native macOS GUI atd567e3eb2497; their relevant model and shared-slider source was checked unchanged ateed1f426fcb6, but those cases were not rerun in the latest pass.Related to #579 and #923. The inspected PR #990 head retains the request-bound inconsistency; its wallet refresh work does not fix these amount-filter states.