Improve AI import UX and recognition quality
- AJAX upload with progress bar — browser no longer blocks during upload; redirects to status page immediately after file transfer completes - Improved Ollama prompt: clearly separates manufacturer (brand logo), product name (descriptive text) and number (article code) to fix misidentification like treating the product name as manufacturer Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
f715bc4552
commit
f94f53abbd
@@ -40,7 +40,13 @@ class NailPolishImportController extends Controller
|
||||
|
||||
ProcessNailPolishImage::dispatch($import->id);
|
||||
|
||||
return redirect()->route('nail-polish-imports.show', $import)
|
||||
$redirectUrl = route('nail-polish-imports.show', $import);
|
||||
|
||||
if (request()->ajax()) {
|
||||
return response()->json(['redirect' => $redirectUrl]);
|
||||
}
|
||||
|
||||
return redirect($redirectUrl)
|
||||
->with('success', 'Bild hochgeladen! Die KI analysiert es jetzt im Hintergrund.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user