- Added multi-provider AI infrastructure (OpenAI/Ollama) - Implemented real-time tag suggestions with debounced analysis - Created AI diagnostics and database maintenance tools in Settings - Added automated garbage collection for orphan labels - Refined UX with deterministic color hashing and interactive ghost tags
46 lines
1.5 KiB
Markdown
46 lines
1.5 KiB
Markdown
# Story 5.1: Interface de Configuration et Diagnostic IA
|
|
|
|
Status: done
|
|
|
|
## Story
|
|
|
|
As an administrator,
|
|
I want a dedicated UI to check my AI connection status and switch providers,
|
|
So that I can verify that Ollama or OpenAI is working correctly without checking server logs.
|
|
|
|
## Acceptance Criteria
|
|
|
|
1. **Given** the settings page (`/settings`).
|
|
2. **When** I load the page.
|
|
3. **Then** I see the current configured provider (Ollama/OpenAI) and model name.
|
|
4. **And** I see a "Status" indicator (Green/Red) checking the connection in real-time.
|
|
5. **And** I can click a "Test Generation" button to see a raw response from the AI.
|
|
6. **And** if an error occurs, the full error message is displayed in a red alert box.
|
|
|
|
## Tasks / Subtasks
|
|
|
|
- [x] Création de la page `/settings` (AC: 1, 2)
|
|
- [x] Créer `app/settings/page.tsx`
|
|
- [x] Ajouter un lien vers Settings dans la Sidebar ou le Header
|
|
- [x] Composant `AIStatusCard` (AC: 3, 4)
|
|
- [x] Afficher les variables d'env (masquées pour API Key)
|
|
- [x] Appeler `/api/ai/test` au chargement pour le statut
|
|
- [x] Fonctionnalité de Test Manuel (AC: 5, 6)
|
|
- [x] Bouton "Test Connection"
|
|
- [x] Zone d'affichage des logs/erreurs bruts
|
|
- [ ] (Optionnel) Formulaire de changement de config (via `.env` ou DB)
|
|
- [ ] Pour l'instant, afficher juste les valeurs `.env` en lecture seule pour diagnostic
|
|
|
|
## Dev Agent Record
|
|
- Implemented Settings page with full AI diagnostic panel.
|
|
- Added Sidebar link.
|
|
|
|
|
|
### Agent Model Used
|
|
|
|
### Debug Log References
|
|
|
|
### Completion Notes List
|
|
|
|
### File List
|