mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:03:39 +00:00
Activity: advanced filters, edited request labels, and used-address requests #817
No reviewers
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!817
Loading…
Reference in a new issue
No description provided.
Delete branch "advanced-activity-filters"
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?
This PR closes three related gaps in the Activity page. The list filters now reach parity with the Qt Widgets transaction view and payment request labels and used-address requests behave correctly. Fixes #707. Fixes #725. Fixes #726.
Added unit, QML and functional tests.
Can you go ahead and make the title and top padding align with Send/Receive?
Could this mark every pending request for the address as used before removing it from
m_pending_request_addresses?Bitcoin Core explicitly supports multiple receive requests for one address. With two pending rows,
findPendingRequestIndex()returns one, this function setsisUsedAddressRequestonly on that row, and then removes the address from pending tracking. The other row therefore stays purple/pending and remains visible in the default Activity list for the rest of the session. After a reload,addPendingReceiveRequests()sees the real transaction and marks both rows as used, so the live and reloaded states disagree.I reproduced this by extending
paidPendingRequestBecomesUsedAddressRequestLive()with two requests for the same address; the second request failed theIsUsedAddressRequestRoleassertion.Suggested fix: capture the address, iterate
m_transactions, setisUsedAddressRequeston every pending request with that address, emitdataChangedfor each affected row (includingIsUsedAddressRequestRoleandDateTimeRoleif roles are specified), then remove the address fromm_pending_request_addressesonce. Please add a two-request regression test that asserts both requests are used and hidden by the default proxy after the payment arrives. This also addresses the duplicate-request case raised in the original PR #708 review.Partial review till
qml: add minimum amount and custom date range Activity filters7daae41acce2093cbb22037acd894e6fdd48f290Will complete the rest tomorrow.
In qml: add minimum amount and custom date range Activity filters
Codex notes that the range-chips & day cells use a different locale than what we use in Month & days heading.
Each of the two calls will call
Could we do it one go? Should we also do some validations like
These could be made read-only
In
qml: add Other type and Last month filters to Activity-I'm unsure if we really need
Last monthand not clear how it differs fromThis monthwhen I see it in the menu.IIUC, these are adjacent, non-overlapping ranges. So on August 26:
Searching for something in July when you're in Aug doesn't deserve a top-level spot IMO. We can drop this since we have the custom range picker.
Also it's easier to read when all the options have the
Thisprefix. Throwing aLast Xin between is odd.ACK 5e89ae25c7dc8ac8a2f7f960d8816894530f0d3e
Some minor issues for follow up:
Please rebase.
ACK
e473174ea8Reviewed the rebase and both fixes. Keyboard accessibility can follow separately.
https://github.com/bitcoin-core/gui-qml/actions/runs/34518133156/job/103008632780?pr=817:
I think #872 broke the
qt6branch. https://github.com/bitcoin-core/gui-qml/pull/876 has the fix for it (and it's ready to merge if ACK'ed).Will rebase again once fix is in.