mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 14:55:23 +02:00
Implement Excel-style stock filtering with Smart Filters and Range support
This commit is contained in:
@@ -15,6 +15,7 @@ interface FilterBarProps {
|
||||
sku: string[];
|
||||
title: string[];
|
||||
week: string[];
|
||||
stock: string[];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -79,6 +80,14 @@ const FilterBar: React.FC<FilterBarProps> = ({ filters, onFilterChange, options
|
||||
onChange={(v) => onFilterChange('asin', v)}
|
||||
className="flex-1"
|
||||
/>
|
||||
<MultiSelectDropdown
|
||||
label="Stock"
|
||||
selected={filters.stock}
|
||||
options={options.stock}
|
||||
onChange={(v) => onFilterChange('stock', v)}
|
||||
className="flex-1"
|
||||
enableRangeSelect={true}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user