-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: pagination for get transaction history (#1343)
Fixes: * #1346 * #1317 * partially #883 Description -- Since tari-project/tari#6733 is merged, we can now implement pagination for infinite scrolling. Wallets with extensive transaction history can now open `latest wins` tab without performance issues. Changes -- * Infinite scrolling in the "latest wins" tab * Filter only `COINBASE_UNCONFIRMED` and `COINBASE_CONFIRMED` transactions(blocks wins). Rename methods from `get_transaction_history` to `get_coinbase_transactions` to reflect changes. * `get_coinbase_transactions` handles pagination - we define `continuation` and `limit`(can be ommitted to fetch all at once) * We fetch already ordered transactions, we don't need to sort it again * Refresh the data everytime when either we open "recent wins" tab or new block is mined * Split `Wallet` component into `WalletMarkup` and `History` to improve performance(reduce rerenders) Testing -- Just play with the "recent wins" tab --------- Co-authored-by: Brian Pearce <[email protected]>
- Loading branch information
Showing
16 changed files
with
286 additions
and
183 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.