Files
sure/app/controllers/accounts_controller.rb
Bishal Shrestha 5ee3275f98 feat: show counterpart account in transfer transaction list row (#2643)
* Show counterpart account in transfer transaction list row

* feat: show transfer counterpart account with access and nil guards

* - Gate counterpart name behind accessible_accounts check.
- Add nested transfer includes to TransactionsController and
AccountsController to prevent N+1 queries.
- Use precomputed @accessible_account_ids Set for O(1) lookups.

* test: add view tests for transfer counterpart rendering

Cover outflow arrow, inflow arrow, and unmatched transfer fallback
using ActionView::TestCase following existing merged_badge pattern.

* Fix transfer eager loading for polymorphic entryables

* Keep accessible_account_ids as Array to fix mock test expectations
2026-07-30 01:11:56 +02:00

21 KiB