[30a88f42] feat: Centralize API key handling and fix product enrichment\n\n- Centralized GEMINI_API_KEY loading from project root .env file.\n- Corrected product enrichment: added /enrich-product endpoint in Node.js, implemented mode in Python backend, and updated frontend to use new API for product analysis.\n- Fixed to pass product data correctly for enrichment.\n- Updated documentation ().

This commit is contained in:
2026-02-17 07:14:51 +00:00
parent 06ef8c00ec
commit 53d791d4e2
6 changed files with 94 additions and 13 deletions

View File

@@ -12,7 +12,7 @@ interface StepDisplayProps {
onDataChange: (newRows: string[][]) => void;
canAddRows?: boolean;
canDeleteRows?: boolean;
onEnrichRow?: (productName: string, productUrl?: string) => Promise<void>;
onEnrichRow?: (productName: string, productUrl?: string) => void;
isEnriching?: boolean;
onRestart?: () => void;
t: typeof translations.de;
@@ -106,12 +106,7 @@ export const StepDisplay: React.FC<StepDisplayProps> = ({ title, summary, header
};
const handleAddRowClick = () => {
if (onEnrichRow) {
setIsAddingRow(true);
} else {
const newEmptyRow = Array(headers.length).fill('');
onDataChange([...rows, newEmptyRow]);
}
setIsAddingRow(true);
};
const handleConfirmAddRow = () => {