feat(wallet): unified recent activity on the wallet screen - #1215
Closed
bmc08gt wants to merge 1 commit into
Closed
Conversation
Add a cross-token "Recent" activity preview to the wallet, backed by a new
:shared:transaction-history presentation layer.
- Presentation: ActivityFeedCoordinator + TransactionItemMapper produce
presentation-ready TransactionListItem (avatar, signed amount, type-aware
title); ActivityFeedRow renders the row.
- Titles: "Tipped X" / "Received Tip From X" (counterparty), "Purchased/Sold
<token>" (token name), and "Added Money" for USDF buys. Server {0}
placeholders still take precedence.
- Wallet shows a bounded preview (last 3) held in WalletViewModel.State via a
non-paged recentTransactions(limit); the paged recentTransactions() is
retained for the future full-history dive-in.
- Counterparty profiles resolve from the user_profiles cache, with an async
resolve-on-miss and resolve-on-fetch back-fill (in-flight de-duped); tokens
resolve cache-only via TokenMetadataProvider.observeTokenCache() to avoid
per-item network churn in the paging transform.
- observeProfiles()/observeRecent() react to the DB via a new
FlipcashDatabase.observeInstance() signal instead of capturing a null
per-user DB at singleton-construction time.
- Persist raw text + textSubstitutions on messages (DB 26->27); MessageDao
gains observeRecent(limit).
- Fix a duplicate-key LazyColumn freeze: row key is the full message id hex
(ID.uuid is null for non-16-byte ids, collapsing every row to key "null").
- TokenCardStack collapses into the deck then scrolls off with the list
(scroll read in the placement phase to avoid re-measuring the cards).
- Rename BalanceViewModel -> WalletViewModel; extract shared
UserProfileDomainMappers; gate scanner decor behind the NewUi flag.
bmc08gt
changed the base branch from
refactor/transaction-history-consolidation
to
chore/deprecate-activityfeed
August 11, 2026 19:55
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a cross-token Recent activity preview to the wallet, backed by the new
:shared:transaction-historypresentation layer.ActivityFeedCoordinator+TransactionItemMapperproduce presentation-readyTransactionListItem(avatar, signed amount, type-aware title);ActivityFeedRowrenders it.{0}placeholders still take precedence.WalletViewModel.Statevia a non-pagedrecentTransactions(limit); the pagedrecentTransactions()is retained for the future full-history dive-in.user_profilescache with async resolve-on-miss + resolve-on-fetch back-fill (in-flight de-duped); tokens resolve cache-only viaTokenMetadataProvider.observeTokenCache()to avoid per-item network churn in the paging transform.observeProfiles()/observeRecent()react to a newFlipcashDatabase.observeInstance()signal instead of capturing a null per-user DB at singleton construction.text+textSubstitutionson messages (DB 26→27);MessageDao.observeRecent(limit).ID.uuidis null for non-16-byte ids, which collapsed every row to key"null"and wedged the LazyColumn under the shared-transition lookahead).TokenCardStackcollapses into the deck then scrolls off with the list (scroll read in the placement phase to avoid re-measuring the cards).BalanceViewModel→WalletViewModel; extract sharedUserProfileDomainMappers; gate scanner decor behind theNewUiflag.Test Plan
:shared:transaction-historyunit tests pass (title/avatar mapping incl. Added Money, received-tip, bought/sold):features:balance+:shared:persistence:sourcesunit tests pass