Column registry for the transfers list LiveView.
Operates on enriched transfer maps of shape:
%{uuid, number, status, status_label, source_location_uuid, source_location_name, destination_location_uuid, destination_location_name, inserted_at, shipped_at, received_at, note, lines_count}.
Summary
Functions
Ordered list of column metadata maps. Used by the picker modal.
Map %{id => meta} for fast lookup during a single render pass.
Filter input list to known column ids, preserving order.
Filter input list to known filterable column ids, preserving order.
Functions
@spec all_column_ids() :: [String.t()]
@spec available_columns() :: [map()]
Ordered list of column metadata maps. Used by the picker modal.
Map %{id => meta} for fast lookup during a single render pass.
@spec default_columns() :: [String.t()]
@spec scope() :: String.t()
Filter input list to known column ids, preserving order.
Filter input list to known filterable column ids, preserving order.