diff --git a/src/components/logistics/LogisticsReadinessBoard.jsx b/src/components/logistics/LogisticsReadinessBoard.jsx index de399e3..589028f 100644 --- a/src/components/logistics/LogisticsReadinessBoard.jsx +++ b/src/components/logistics/LogisticsReadinessBoard.jsx @@ -255,7 +255,17 @@ const SortableSection = ({ statusValue, label, groups, isCollapsed, onToggle, on }; export const LogisticsReadinessBoard = ({ orderGroups = [], onSelectSet, statusOptions = ORDER_GROUP_DISPLAY_STATUS_OPTIONS, isLoading = false }) => { - const [filters, setFilters] = React.useState({ query: "", displayStatus: "all", city: "" }); + const FILTERS_KEY = 'logistics-board-filters'; + const [filters, setFilters] = React.useState(() => { + try { + const raw = localStorage.getItem(FILTERS_KEY); + if (raw) return { query: '', displayStatus: 'all', city: '', ...JSON.parse(raw) }; + } catch {} + return { query: '', displayStatus: 'all', city: '' }; + }); + React.useEffect(() => { + try { localStorage.setItem(FILTERS_KEY, JSON.stringify(filters)); } catch {} + }, [filters]); const [collapsedSections, setCollapsedSections] = React.useState(() => loadCollapsedSections()); const [sectionOrder, setSectionOrder] = React.useState(() => { const custom = loadCustomOrder();