Skip to content
This repository was archived by the owner on Aug 11, 2025. It is now read-only.

[BUG] Tags not visible when looking at transactions in the account listΒ #3640

@jayc1299

Description

@jayc1299

Please confirm the following

Describe the bug

When you set a tag for a transaction that tag is not visible in list of transactions for that account.

To Reproduce

  1. Create an expense (or an income) transaction on the home screen
  2. Assign it a tag
  3. Save the transaction
  4. Note the home screen nicely lists all tags at the bottom of the view
  5. Click accounts tab
  6. Click on the specific account to list all transactions for that account
  7. Tags is not present in any view

Expected behavior

I would expect tags to display consistently across all views, including the list of account transactions. Showing the tags in the list of transactions is very useful.

Screenshots

account_screen
home_screen

App version

v2024.09.29 (200) via Play Store

Smartphone

Pixel 6 - Android 14

Additional context

The views are actually fine and will show tags if presented, the problem is the tags aren't fetched from the DB.

The two views seem to fetch the tags from the database using different repositories. The working way on the home screen uses TransactionRepository.kt where the broken account page uses TransactionsViewModel -> TagRepository.

The code below from TransactionsViewModel doesn't return any tags:

history.value = ( accTrnsAct then { trnsWithDateDivsAct( LegacyTrnsWithDateDivsAct.Input( baseCurrency = baseCurrency.value, transactions = with(transactionMapper) { it.map { val tags = tagRepository.findByIds(it.tags).toImmutableLegacyTags() it.toEntity().toLegacyDomain(tags = tags) } } ) ) } )( AccTrnsAct.Input( accountId = initialAccount.id, range = range.toCloseTimeRange() ) ).toImmutableList()

Metadata

Metadata

Assignees

Labels

approvedApproved by the Ivy Wallet team. Ready for devbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions