mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Covers 6 pages at once: the shared FleetCrudPage<T> factory (TrainMasterDataPage, WagonsCrudPage, ContainersCrudPage, CargoesCrudPage, LocomotivesCrudPage) plus the standalone WagonTypesCrudPage. - FleetCrudPage gains an optional `statusOptions` prop; when passed it builds a Status enum FilterDef and swaps the old plain search Input for FilterBar + useFilters + applyClientFilters (client-bridge — these endpoints return bare arrays). Status option lists sourced from the actual entity/enum definitions, not guessed, and reused in each page's create/edit form Select instead of duplicating them. Column-header click-to-sort is untouched (separate mechanism). - WagonTypesCrudPage (hand-rolled, not on the factory) gets a boolean Active/Inactive filter the same way, replacing its search-text hack that string-matched "active"/"inactive" against the query.