# 🚀 Fase 3: Backend Enhancement & Testing ## Overview Dopo il completamento di Fase 1 (Forgot Password) e Fase 2 (User Profile), questa fase si concentra sul backend e i test. ## Obiettivi Principali ### 1. Backend: PUT /auth/me - **Endpoint**: `PUT /api/v1/auth/me` - **Funzionalità**: Aggiornare nome, cognome, email utente - **Validazione**: Pydantic schema con `UserUpdate` - **Deadline**: 2026-04-14 ### 2. Backend: DELETE /auth/me - **Endpoint**: `DELETE /api/v1/auth/me` - **Funzionalità**: Disattivare account utente (soft delete) - **Dipendenze**: Revocare API keys associate - **Deadline**: 2026-04-15 ### 3. Frontend Integration - **SettingsProfile.tsx**: Form aggiornamento profilo - **SettingsAccount.tsx**: Pulsante disattiva account - **useProfile.ts**: Hook per nuove API ### 4. Test E2E - Test profilo utente (update nome/cognome) - Test cambio password - Test disattivazione account - Test autenticazione (login/logout) ## Stack Tecnologico - **Backend**: FastAPI + SQLAlchemy + PostgreSQL - **Frontend**: React + TypeScript + Tailwind - **Testing**: Playwright ## Riferimenti - Schema: `src/schemas/user.py` - API: `src/api/v1/auth.py` - Frontend: `frontend/src/pages/settings/` ## Team Assignment - @backend-dev: Endpoints PUT/DELETE - @frontend-dev: Integrazione UI - @qa-engineer: E2E tests ## Success Criteria - [ ] PUT /auth/me funziona con validazione - [ ] DELETE /auth/me disattiva account - [ ] Frontend aggiornato con nuovi form - [ ] Test E2E passano - [ ] Build successful --- *Prompt generato: 2026-04-08* *Status: Pronto per assegnazione team*