fix: parseAsins splits LINE: names with spaces correctly

Split by comma/semicolon/newline first; only split by spaces for
non-LINE: tokens so "LINE:MAGIC DOUGH" isn't broken into two parts.
Also fix placeholder and repair stored experiment data via API.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Christian Vidal Wolf
2026-03-10 13:14:23 +01:00
co-authored by Claude Sonnet 4.6
parent b8c3a6ff49
commit af77a3f5d4
+1 -1
View File
@@ -948,7 +948,7 @@ const ExperimentFormView: React.FC<{
value={treatmentAsins}
onChange={e => setTreatmentAsins(e.target.value)}
rows={3}
placeholder="B09ABC1234, B09DEF5678&#10;or LINE:PREMIUM_COLLECTION"
placeholder="B09ABC1234, B09DEF5678&#10;or LINE:MAGIC DOUGH"
className="w-full bg-slate-800 border border-slate-700 rounded-lg px-3 py-2 text-sm text-slate-200 placeholder-slate-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 resize-y font-mono text-xs"
/>
{treatmentAsins && (