mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
13 useState fields -> 11 FilterDef entries + useFilters. Notable pieces: - the deep-link-follow useEffect is gone entirely — controls.values reads live off the URL every render, so a link opened while the page is already mounted (the header document-review alarm) just works, and every filter auto-pins its own pill once it has a value (FilterBar's secondary/pinned split), so a deep link can never land behind "More filters" hidden. Confirmed the encoding stays back-compatible with the existing ?statuses=A,B&tradeDirection=IMPORT links via url.test.ts. - "Paid, not allocated" (a checkbox that overrides the payment-status filter) became a boolean FilterDef with a custom toParams — ordered after paymentStatus in the defs array so its toParams wins on merge, matching the original override semantics exactly. - booking kind and status stay pinned pills (always visible, matching the old primary row); direction/freight/payment/ownership/yards/dates are secondary (behind "More filters", matching the old advanced collapse).