PhoenixKitWarehouse.Web.TransferIndexLive (PhoenixKitWarehouse v0.2.2)

Copy Markdown View Source

LiveView for the Transfers list page.

Admin-chrome pattern: use PhoenixKitWeb, :live_view, self-wrapping render/1 with LayoutWrapper.app_layout. Navigation via PhoenixKit.Utils.Routes.path/1.

enrich_transfers/1 resolves source_location_name/destination_location_name with a single batched StockLedger.list_warehouses/0 call (the warehouse pool is small) rather than looking up each transfer's locations individually — avoids N+1 queries as the transfer list grows.

Summary

Functions

on_mount(atom, params, session, socket)