refactor(frontend): document chat store as single source of truth

This commit is contained in:
senke 2026-02-15 16:02:14 +01:00
parent b657776892
commit f4c2acdd02

View file

@ -42,11 +42,11 @@ The following stores are configured with DevTools:
- Monitors item uploads and deletions
- **Note**: Contains domain data (will migrate to React Query per Epic 4.1)
4. **ChatStore** (`apps/web/src/features/chat/store/chatStore.ts`) - Action 4.5.1.5: Moved from stores/chat.ts
4. **ChatStore** (`apps/web/src/features/chat/store/chatStore.ts`) — single source of truth
- Manages chat conversations and messages
- Tracks WebSocket connection state
- Monitors message operations
- **Note**: ⚠️ **DUPLICATE** - Also exists at `features/chat/store/chatStore.ts` (needs consolidation per Action 4.5.1.5)
- Re-exported from `stores/index.ts` for backward compatibility
5. **CartStore** (`apps/web/src/stores/cartStore.ts`)
- Manages shopping cart items