docs: actualizar estado del proyecto y próximos pasos

Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
pull/1/head
borja 2 months ago
parent 3b27558eed
commit e03121be89

@ -53,9 +53,10 @@ graph TD
- Task data models (`src/tasks/model.ts`).
- Basic task creation service stub (`src/tasks/service.ts` - needs `created_by` and assignment logic).
- Response queue structure (`src/services/response-queue.ts` - `process` method is empty).
- Unit testing setup with in-memory database (`tests/`). Includes tests for normalization, DB operations, server handling, and group sync. **All tests pass (86 pass, 0 fail)**.
- Environment variable validation (`src/server.ts`, `src/services/webhook-manager.ts`).
- Health check endpoint (`/health`).
- **User validation integration**: Normalization and `ensureUserExists` are now fully integrated in the main message handling flow (`src/server.ts`).
- **Comprehensive test suite**: All tests pass (86 pass, 0 fail), including integration tests for user validation.
### Incomplete / Missing Core Functionality
- **User/Group Validation Integration:** Although normalization (`normalizeWhatsAppId`) and user creation (`ensureUserExists`) functions exist, they are **not yet integrated** into the main request handling flow in `src/server.ts` to validate senders or automatically add users on first message. Similarly, the active group cache from `group-sync.ts` is **not yet used** in `server.ts` to filter messages from inactive/unknown groups.
@ -157,7 +158,7 @@ bun test
- Basic error handling (`server.test.ts`).
- WhatsApp ID normalization (`whatsapp.test.ts`).
- Group sync operations (`group-sync.test.ts`).
- **All tests pass** (86 pass, 0 fail).
- **Needed:** Tests for `ensureUserExists` integration, `isGroupActive` integration, `CommandService` logic, `ResponseQueue` processing (mocking API), `TaskService` operations.
### Test Coverage
- Database initialization and basic operations (`db.test.ts`).

@ -21,6 +21,9 @@
- **Testing**
- Suite completa de tests unitarios
- Todos los tests pasan (86 pass, 0 fail)
- **Validaciones de Usuario**
- Integración completa de normalización y `ensureUserExists` en el flujo principal de mensajes
- Tests de integración para validaciones de usuarios
## ⚠️ Funcionalidades Pendientes
- **Gestión de Tareas**

Loading…
Cancel
Save