- 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>
- Add prompt column to ai_settings (migration)
- AiSetting: DEFAULT_PROMPT constant + getActivePrompt() (falls back to default if empty)
- ProcessNailPolishImage: reads prompt from DB instead of hardcoded
- Admin view: textarea to edit prompt, shows active prompt, reset-to-default link
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Switch queue from sync to database so Ollama job truly runs in background
- Compress uploaded images to max 1200px JPEG 85% before storage
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- 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>
Users can upload a photo of a nail polish bottle; a background queue
job sends it to Ollama (llama3.2-vision at 192.168.30.172:11434),
extracts name, number and manufacturer, then creates the nail polish
and adds it to the user's collection automatically.
- ProcessNailPolishImage job (180s timeout, 2 tries)
- NailPolishImport model + migration (status tracking)
- AiSetting model + migration (Ollama URL + model, admin-configurable)
- NailPolishImportController: upload, status page (auto-refresh every 5s)
- Admin\AiSettingController: configure Ollama connection
- Views: drag-drop upload form, live status page, import history
- Navbar: "Foto importieren" link for all users
- Admin dropdown: "KI-Einstellungen"
- neonail-worker.conf: Supervisor config for the queue worker
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Both migration files shared the same class name causing a
"Class not found" error on fresh migrate runs. Made the first
(empty) file a true no-op and guarded the second with
Schema::hasColumn to safely skip if the column already exists.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Implements Single Sign-On with Authentik alongside the existing
password login. Admins configure Client ID, Client Secret and Base URL
directly in the app; the SSO button on the login page only appears
when the configuration is complete and enabled.
- SsoSetting model + migration (one-row config table)
- sso_provider_id / is_sso_user fields on users (migration)
- SsoController: redirect to Authentik + callback (token exchange,
userinfo fetch, auto-create unknown users)
- Admin\SsoSettingController + admin/sso/show view with setup guide
and one-click Redirect URI copy
- Admin dropdown: SSO-Konfiguration entry
- Login page: Authentik button rendered conditionally
No additional Composer packages required.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>