From b39a3cca9f6ae715c5995581d39ebd4585c49238 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 28 May 2026 21:15:01 +0200 Subject: [PATCH] refactor: auto pairs now loops all objects, no selection needed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Button moves to ObjectListPanel (visible when ≥1 object exists). One Claude call per object — image + that object's words & coordinates. Progress shows "Objekt 2/3 — Pair 12/30". Pair saving logic extracted into shared savePairsForObject() helper. Co-Authored-By: Claude Sonnet 4.6 --- src/pages/ContentCreation.jsx | 132 ++++++++++++++++++++-------------- 1 file changed, 77 insertions(+), 55 deletions(-) diff --git a/src/pages/ContentCreation.jsx b/src/pages/ContentCreation.jsx index 8b66eba..586c847 100644 --- a/src/pages/ContentCreation.jsx +++ b/src/pages/ContentCreation.jsx @@ -744,10 +744,10 @@ function EditPairForm({ pair, allObjects, onSaved, onCancel, onDeleted }) { // ─── Left panel: Object list ────────────────────────────────────────────────── -function ObjectListPanel({ objects, loadingObjects, mode, selectedObjectId, onAddObject, onSelectObject }) { +function ObjectListPanel({ objects, loadingObjects, mode, selectedObjectId, onAddObject, onSelectObject, currentPicture }) { return (