From cc227456f4fada4fc8338b46c4d1e53dd4c94d3d Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Thu, 18 Jun 2026 09:19:14 +0200 Subject: [PATCH] feat(forecasting): support space and comma separated search terms in ForecastView --- components/ForecastView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ForecastView.tsx b/components/ForecastView.tsx index 42ebc7e..48bc30b 100644 --- a/components/ForecastView.tsx +++ b/components/ForecastView.tsx @@ -392,7 +392,7 @@ const ForecastView: React.FC = ({ 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 = ({ 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" />