Skip to content

feat(inbox): Add inbox data layer and cache management#515

Open
yasin-ce wants to merge 8 commits intomultisig/04-misc-updatesfrom
multisig/05-data-models
Open

feat(inbox): Add inbox data layer and cache management#515
yasin-ce wants to merge 8 commits intomultisig/04-misc-updatesfrom
multisig/05-data-models

Conversation

@yasin-ce
Copy link
Copy Markdown
Collaborator

Summary

  • Reorganize asset inbox under inbox/asset package
  • Add unified InboxRepository and InboxCacheManager
  • Add InboxMessagesDTO and InboxSearchDTO models
  • Add HasInboxItemsForAddressUseCase for badge indicators
  • Add joint account inbox API service and mappers
  • Add unit tests for inbox repository

Test Plan

  • Verify inbox cache refreshes correctly
  • Verify inbox items are fetched for valid addresses
  • Run inbox-related unit tests

@yasin-ce yasin-ce self-assigned this Jan 20, 2026
@yasin-ce yasin-ce force-pushed the multisig/04-misc-updates branch from 6a84b56 to 8602ae8 Compare January 20, 2026 09:31
@yasin-ce yasin-ce force-pushed the multisig/05-data-models branch from 014714a to c3e316e Compare January 20, 2026 09:32
@yasin-ce yasin-ce force-pushed the multisig/04-misc-updates branch from 8602ae8 to cfd09c6 Compare January 20, 2026 09:47
@yasin-ce yasin-ce force-pushed the multisig/05-data-models branch from c3e316e to 6b1b4d5 Compare January 20, 2026 09:48
- Add inbox data models for joint account notifications
- Add sign request transaction list models
- Add participant signature DTOs
- Implement inbox cache manager for joint accounts
- Add inbox item mappers and transformers
@yasin-ce yasin-ce force-pushed the multisig/04-misc-updates branch from cfd09c6 to 252f8ea Compare January 20, 2026 13:49
@yasin-ce yasin-ce force-pushed the multisig/05-data-models branch from 6b1b4d5 to a997278 Compare January 20, 2026 13:49
Resolve merge conflicts:
- JointAccountRepository: combine new method signatures with inbox methods
- JointAccountRepositoryImpl: add inbox methods with new mapper names
- JointAccountModule: combine inbox service with new mapper imports
- DefaultAccountDetailAccountsItemProcessor: fix import path
- InboxSearchDTOMapper: update to use JointSignRequestMapper
- InboxMessagesDTO: update to use JointAccount and JointSignRequest
- Make data layer classes internal (InboxSearchDTOMapper, InboxApiService, data models)
Rename domain models to follow naming conventions:
- InboxSearchDTO -> InboxSearchInput
- InboxMessagesDTO -> InboxMessages
- AssetInboxDTO -> AssetInbox

Update all references in:
- JointAccountRepository and impl
- InboxRepository and impl
- InboxSearchDTOMapper (method names updated)
- InboxCacheManagerImpl
- HasInboxItemsForAddressUseCase
- InboxUseCases interfaces
- Test files
…dressUseCaseTest

Replace AssetInboxDTO/JointAccountDTO with AssetInbox/JointAccount to match
the actual domain model class names on this branch.
* multisig/04-misc-updates:
  Fix detekt issues without @Suppress
  Fix pre-existing detekt issues
  Use Go SDK for transaction signing and return signature directly
  fix: Address remaining PR #514 review comments
  fix: Address PR #514 review comments
  fix: Address PR #514 feedback
  docs: Add refactoring restrictions to prevent unwanted changes
- Rename InboxRepository to InboxInMemoryCache using InMemoryCacheProvider
- Remove @singleton from AssetInboxModule where cache is passed in constructor
- Use method references instead of lambdas in DI modules
- Rename InboxSearchDTOMapper to InboxSearchMapper (interface + Impl)
- Move getInboxMessages and deleteNotification from JointAccountRepository to InboxApiRepository
- Add rules to prevent these issues in future
yasin-ce added a commit that referenced this pull request Jan 23, 2026
…-support

* multisig/05-data-models:
  Address PR #515 comments for data models
  Fix detekt issues without @Suppress
  Fix pre-existing detekt issues
  Use Go SDK for transaction signing and return signature directly
  fix: Address remaining PR #514 review comments
  fix: Address PR #514 review comments
  fix: Address PR #514 feedback
  docs: Add refactoring restrictions to prevent unwanted changes
@yasin-ce yasin-ce requested a review from mitsinsar January 23, 2026 19:29
* multisig/04-misc-updates:
  fix: Remove redundant methods and use injected use cases
- Remove INJECTION_NAME from InboxApiRepository
- Remove @singleton from provideInboxApiRepository
- Remove InboxInMemoryCache interface and DefaultInboxInMemoryCache class
- Use InMemoryCachedObject<InboxMessages> directly with named qualifiers
- Update AssetInboxRepositoryImpl to use direct cache and flow
- Update tests to work with new structure
yasin-ce added a commit that referenced this pull request Jan 26, 2026
…-support

* multisig/05-data-models:
  fix: Address PR #515 review comments
  fix: Remove redundant methods and use injected use cases
yasin-ce added a commit that referenced this pull request Jan 26, 2026
* multisig/07-creation-flow:
  fix: Remove unused companion object from InboxLastOpenedTimeLocalSource
  fix: Address remaining PR #516 review comments
  fix: Address PR #516 review comments
  fix: Address PR #515 review comments
  fix: Remove redundant methods and use injected use cases
yasin-ce added a commit that referenced this pull request Jan 26, 2026
* multisig/08-inbox-pages:
  fix: Remove unused companion object from InboxLastOpenedTimeLocalSource
  fix: Address remaining PR #516 review comments
  fix: Address PR #516 review comments
  fix: Address PR #515 review comments
  fix: Remove redundant methods and use injected use cases
@mitsinsar mitsinsar mentioned this pull request Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants