diff --git a/EXHAUSTIVE_TODO_LIST.md b/EXHAUSTIVE_TODO_LIST.md index b4085e56f..05466f5c1 100644 --- a/EXHAUSTIVE_TODO_LIST.md +++ b/EXHAUSTIVE_TODO_LIST.md @@ -4934,11 +4934,17 @@ If any task fails: - **Rollback**: Restore original import (though it was already broken) ### Implicit Task 2: Update Documentation References -- [ ] **Implicit 2.1**: Update all documentation after changes +- [x] **Implicit 2.1**: Update all documentation after changes - **Scope**: All `.md` files - Update references to changed files/components - - **Dependencies**: All epics complete + - **Dependencies**: All epics complete ✅ - **Risk**: LOW 🔒 - - **Validation**: Documentation accurate + - **Validation**: ✅ Updated documentation files with correct store paths: + - Updated `apps/web/README.md` - Added note about feature stores location + - Updated `apps/web/FRONTEND_STATUS.md` - Fixed store paths (auth.ts, chat.ts moved to features/) + - Updated `apps/web/AUDIT_TECHNIQUE_EXHAUSTIF.md` - Fixed store references + - Verified `apps/web/src/docs/STATE_DEBUGGING.md` - Already has correct paths + - All main documentation files now reference correct store locations + - Historical audit documents and migration guides intentionally keep old references - **Rollback**: Restore original documentation ### Implicit Task 3: Update Tests After Refactoring diff --git a/apps/web/AUDIT_TECHNIQUE_EXHAUSTIF.md b/apps/web/AUDIT_TECHNIQUE_EXHAUSTIF.md index 0b71fe7e9..52ebe0c12 100644 --- a/apps/web/AUDIT_TECHNIQUE_EXHAUSTIF.md +++ b/apps/web/AUDIT_TECHNIQUE_EXHAUSTIF.md @@ -65,7 +65,7 @@ Le module `apps/web` est l'application frontend React de la plateforme Veza, une ## Dépendances internes -- **Stores Zustand** : `src/stores/auth.ts`, `src/stores/chat.ts`, `src/stores/library.ts`, `src/stores/ui.ts` +- **Stores Zustand** : `src/features/auth/store/authStore.ts` (moved from stores/auth.ts), `src/features/chat/store/chatStore.ts` (moved from stores/chat.ts), `src/stores/library.ts`, `src/stores/ui.ts`, `src/stores/cartStore.ts` - **Types partagés** : `src/types/api.ts`, `src/types/index.ts` - **Utils** : `src/utils/*` (sanitize, token-manager, validation, etc.) - **Hooks** : `src/hooks/*` (useAuth, useDebounce, usePWA, etc.) @@ -1175,7 +1175,7 @@ npm run build && npm run preview # Vérifier que pas de logs en prod **Impact** : Confusion, maintenance difficile **Preuve** : -- `src/stores/auth.ts` : exporte `useAuthStore` +- `src/features/auth/store/authStore.ts` : exporte `useAuthStore` (moved from stores/auth.ts) - `src/features/auth/hooks/useAuth.ts` : exporte `useAuth` (utilise `useAuthStore` en interne) - `src/services/api.ts` : `apiService` - `src/services/api/client.ts` : `apiClient` diff --git a/apps/web/FRONTEND_STATUS.md b/apps/web/FRONTEND_STATUS.md index aa6d016de..416083fee 100644 --- a/apps/web/FRONTEND_STATUS.md +++ b/apps/web/FRONTEND_STATUS.md @@ -100,9 +100,11 @@ D'après `RUNTIME_AUDIT_REPORT.md` (2025-12-17) : - Error handling unifié 4. **Store Pattern (Zustand)** - - `src/stores/auth.ts` - État d'authentification + - `src/features/auth/store/authStore.ts` - État d'authentification (moved from stores/auth.ts) - `src/stores/library.ts` - Bibliothèque utilisateur - - `src/stores/chat.ts` - État du chat + - `src/features/chat/store/chatStore.ts` - État du chat (moved from stores/chat.ts) + - `src/stores/ui.ts` - Préférences UI (theme, language, sidebar) + - `src/stores/cartStore.ts` - Panier d'achat --- @@ -210,7 +212,7 @@ Le système de chat WebSocket est implémenté mais peut ne pas être complètem **Fichiers Concernés:** - `src/features/chat/hooks/useChat.ts` - Hook de connexion WebSocket - `src/services/websocket.ts` - Service WebSocket générique -- `src/stores/chat.ts` - Store Zustand pour le chat +- `src/features/chat/store/chatStore.ts` - Store Zustand pour le chat (moved from stores/chat.ts) **Impact:** - **Sévérité:** Moyenne (fonctionnalité core) diff --git a/apps/web/README.md b/apps/web/README.md index fe7284790..07847b17c 100644 --- a/apps/web/README.md +++ b/apps/web/README.md @@ -114,7 +114,8 @@ apps/web/ │ ├── features/ # Feature modules (auth, tracks, playlists, etc.) │ ├── hooks/ # Custom React hooks │ ├── services/ # API clients and services -│ ├── stores/ # Zustand state management +│ ├── stores/ # Zustand state management (UI state stores) +│ │ # Note: Feature stores (auth, chat) are in features/*/store/ │ ├── types/ # TypeScript types │ │ └── generated/ # Auto-generated types from OpenAPI │ ├── utils/ # Utility functions