Fix admin AI nav bug, add rescan feature

- Fix Blade parse error in admin AI settings (Blade was interpreting
  JSON braces in DEFAULT_PROMPT as template tags, breaking the navbar)
  — pass defaultPrompt from controller instead
- Add rescan: POST /nail-polishes/{id}/rescan creates a new import for
  an existing nail polish and updates its fields after AI analysis
- Add KI-Rescan button on collection cards (only if image exists)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Housemann
2026-06-13 18:22:41 +02:00
co-authored by Claude Sonnet 4.6
parent f60221d0ef
commit 9861a74e1e
6 changed files with 57 additions and 19 deletions
+2 -1
View File
@@ -93,8 +93,9 @@
@section('scripts')
<script>
const defaultPrompt = @json($defaultPrompt);
function resetPrompt() {
document.getElementById('prompt').value = @json(\App\Models\AiSetting::DEFAULT_PROMPT);
document.getElementById('prompt').value = defaultPrompt;
}
</script>
@endsection