Conversation
|
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 You can disable this status message by setting the 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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
to addresses and show user addresses first
0045e72 to
eba06db
Compare
eba06db to
a530f5c
Compare
|
Visit the preview URL for this PR (updated for commit 294f48a): https://walletrc--pull-2787-merge-ampts5lz.web.app (expires Thu, 26 Jun 2025 12:37:41 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: f66a4ff03faa546f12f0ae5a841bd9eff2714dcc |
There was a problem hiding this comment.
Pull Request Overview
This PR enhances transaction history handling by removing the sender from the to list and prioritizing wallet addresses for display. Key changes include:
- Implemented
sanitizeextension to filter and sort recipients. - Updated the BLoC to apply
sanitizebefore emitting transaction lists. - Refactored the transaction list item to a dedicated
_TransactionAddresswidget and added comprehensive tests.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| lib/shared/utils/extensions/transaction_extensions.dart | Added sanitize method to remove sender and sort recipients. |
| lib/bloc/transaction_history/transaction_history_bloc.dart | Applied sanitize to historical and live transaction streams. |
| lib/views/wallet/coin_details/transactions/transaction_list_item.dart | Extracted _TransactionAddress widget for address rendering. |
| test_units/tests/utils/transaction_history/sanitize_transaction_test.dart | New unit tests covering sanitize logic edge cases. |
| test_units/main.dart | Registered the new sanitize transaction tests. |
Comments suppressed due to low confidence (1)
lib/shared/utils/extensions/transaction_extensions.dart:9
- The doc comment states that it returns the original transaction when there are no recipients, but the implementation always returns a new copy via
copyWith. Update the documentation to match the actual behavior or adjust the code if you intend to preserve the original instance.
/// If the transaction has no recipients, it returns the original transaction.
smk762
left a comment
There was a problem hiding this comment.
Related issue added #2801
I note your PR comment states can be "confirmed" without a specific date and time which though not ideal, is acceptable temporarily. More importantly though, the block height and conf count is inconceivable and must be resolved.
to addresses and show user addresses firstto (recipient) list
@smk762 since this is tied to a |
smk762
left a comment
There was a problem hiding this comment.
Related issue added #2801
I note your PR comment statescan be "confirmed" without a specific date and timewhich though not ideal, is acceptable temporarily. More importantly though, the block height and conf count is inconceivable and must be resolved.@smk762 since this is tied to a
p0issue (#2702), is not a regression, and will require API changes, I'd suggest considering approving it and opening an issue for the bug. When it is patched in KDF it should only require the GUI to update KDF.
Related issue added #2801
Issue is present and I see some work towards a resolution is underway in a different PR so ✔️

Fixes #2702
toaddress list (emulating desktop wallet logic)Examples
The following examples reproduced a bug similar to the one reported. This was done by requesting DOC/MARTY funds from the faucet. The UTXO sent back to the sender address would occasionally appear first in the
tolist and be displayed as the primary address in the UI.DOC example from faucet
Details:
Before
After
Marty example from faucet
Details:
Before
After
Steps to reproduce on app.komodoplatform.com