- 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
1.5 KiB
1.5 KiB
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
- Given the settings page (
/settings). - When I load the page.
- Then I see the current configured provider (Ollama/OpenAI) and model name.
- And I see a "Status" indicator (Green/Red) checking the connection in real-time.
- And I can click a "Test Generation" button to see a raw response from the AI.
- And if an error occurs, the full error message is displayed in a red alert box.
Tasks / Subtasks
- Création de la page
/settings(AC: 1, 2)- Créer
app/settings/page.tsx - Ajouter un lien vers Settings dans la Sidebar ou le Header
- Créer
- Composant
AIStatusCard(AC: 3, 4)- Afficher les variables d'env (masquées pour API Key)
- Appeler
/api/ai/testau chargement pour le statut
- Fonctionnalité de Test Manuel (AC: 5, 6)
- Bouton "Test Connection"
- Zone d'affichage des logs/erreurs bruts
- (Optionnel) Formulaire de changement de config (via
.envou DB)- Pour l'instant, afficher juste les valeurs
.enven lecture seule pour diagnostic
- Pour l'instant, afficher juste les valeurs
Dev Agent Record
- Implemented Settings page with full AI diagnostic panel.
- Added Sidebar link.