Fix TypeScript errors in experiments feature

- Add experimentMap/onOpenExperiment props to WeeklyRow component
- Export VendorDailyRow type from supabase.ts
- Fix type errors in experiments.ts (unknown[] to string[])
- Add type annotation for allAsins in App.tsx

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
Christian Vidal Wolf
2026-02-20 19:39:56 +01:00
co-authored by Qwen-Coder
parent f93d92da0b
commit a21c0d532c
5 changed files with 24 additions and 17 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ const App: React.FC = () => {
const handleExperimentsFetch = useCallback(async () => {
try {
const allAsins = Array.from(new Set(rawData.map(r => r.asin.toUpperCase())));
const allAsins: string[] = Array.from(new Set(rawData.map(r => String(r.asin).toUpperCase())));
const expMap = await getActiveExperimentsForASINs(allAsins);
setExperimentMap(expMap);
console.log('[App] Loaded experiments for', expMap.size, 'ASINs');