implicit-tasks: update documentation with correct store paths after migration

This commit is contained in:
senke 2026-01-16 14:57:33 +01:00
parent 630099b635
commit a73275cb01
4 changed files with 18 additions and 9 deletions

View file

@ -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

View file

@ -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`

View file

@ -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)

View file

@ -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