mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 10:05:23 +02:00
feat(forecasting): support space and comma separated search terms in ForecastView
This commit is contained in:
@@ -392,7 +392,7 @@ const ForecastView: React.FC<ForecastViewProps> = ({ asinMetadata, vendorStockMa
|
||||
// Apply search filter
|
||||
if (searchQuery.trim()) {
|
||||
const terms = searchQuery
|
||||
.split(/[,;|\n]+/)
|
||||
.split(/[\s,;|\n]+/)
|
||||
.map(t => t.trim().toLowerCase())
|
||||
.filter(Boolean);
|
||||
if (terms.length > 0) {
|
||||
@@ -623,7 +623,7 @@ const ForecastView: React.FC<ForecastViewProps> = ({ asinMetadata, vendorStockMa
|
||||
type="text"
|
||||
value={searchQuery}
|
||||
onChange={e => setSearchQuery(e.target.value)}
|
||||
placeholder="Buscar por SKU, ASIN, o título... (separar varios con coma)"
|
||||
placeholder="Buscar por SKU, ASIN, o título... (separar varios con espacio o coma)"
|
||||
className="w-full bg-slate-800 border border-slate-700 rounded-lg px-3 py-1.5 text-sm text-white placeholder-slate-500 focus:outline-none focus:ring-1 focus:ring-indigo-500"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user