23 Commits (422747c1777d73602b488b42d296b305a3473a02)

Author SHA1 Message Date
borja 422747c177 feat: add access control for task completion
Users can only complete tasks if they are:
- Assigned to the task, OR
- An active member of the task's group, OR
- An admin (ADMIN_USERS env var)

Changes:
- TaskService.completeTask() now checks assignment, group membership,
  and admin status before allowing completion
- Returns 'forbidden' status when unauthorized
- completar command handler shows appropriate error message
- Web path (loadTaskAndGating) gets admin override for consistency
- AdminService.isAdmin() made public for reuse
- Updated tests to respect new access control + 12 new test cases
1 month ago
borja b7ed1ad013 refactor: webhook handler, group sync, command handlers, tests
- Refactor webhook handler with improved error handling and auto-ensure
- Break group-sync into modular services (changes, deactivation, membership, scheduler)
- Add startup.ts bootstrap with health checks and metrics
- Refactor command handlers (nueva, completar, tomar, soltar, ver) for gating/resilience
- Remove unused Svelte UI components (Badge, Skeleton, GroupCard, etc.)
- Add ICS helpers, task helpers, preferences helpers to web lib
- Remove legacy help.ts message service
- Restructure tests: split monolithic server.test.ts into focused files
- Add server test harness and coverage/conformance tests
- Update docs (commands inventory, user guide, operational docs)
- Command trigger simplified to 't' and task name (no slash)
- Add .gitignore entries for fallow, sift, sq artifacts
1 month ago
brobert ecc0cc6fd8 refactor: usar locator para inyectar DB en tests
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert 4ea186dff1 fix: actualizar textos de ayuda y respuestas de comandos al formato
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
borja ab832e208b corrige tests para adaptarlos a que ahora no se escribe sin responsable en las respuestas sobre tareas, solo se deja el emoji 8 months ago
brobert 226e1bc01f test: usar display_code en /t y validar no encontrada tras completar
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert 2450c8806a cambia 3 tests que esperaban otros copis 8 months ago
borja 51a623450d fix: inyectar GroupSyncService.dbInstance y limpiar caché en tests
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
borja 12d18322ff refactor: quitar cursivas de descripciones y añadir saltos entre grupos
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
9 months ago
borja fe5a8d29cb feat: aplicar codeId y monoespacio en listados, ayudas y mensajes
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
9 months ago
borja 60ed92970b refactor: reemplazar ackParts por ackLines y usar codeId en mensajes
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
9 months ago
borja d69dc055a1 test: actualizar pruebas para usar responsable y formato en cursiva
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
9 months ago
borja f22fff887c feat: centralizar iconos en ICONS y actualizar mensajes a nuevos iconos
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
9 months ago
borja 6c4e85aa6c test: agrega pruebas de ver sin y ver todos en comandos y servidor
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
9 months ago
borja a1df163db0 feat: añadir conteos de pendientes y mostrar… y X más en /t ver
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
9 months ago
borja fa08689ee0 test: añadir tests para alias /t, DM y cola de respuestas
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
9 months ago
borja a209c40ac3 feat: centralizar /tarea en CommandService y usar DB
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
9 months ago
borja 0c0e0f2da4 test: ajustar expectativas de pruebas para coincidir con implementación actual
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
9 months ago
borja 3b27558eed test: actualizar expectativas de pruebas para CommandService
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
9 months ago
borja baf3590f32 fix: ajustar tests para ID normalizado y quitar test problemático
Co-authored-by: aider (openrouter/x-ai/grok-code-fast-1) <aider@aider.chat>
9 months ago
borja (aider) 4bc78f476c test: update command test context with createdBy field 1 year ago
borja (aider) 869c695d0a feat: Update /tarea command parsing to use action-first format 1 year ago
borja (aider) 63c3bb20e9 feat: implement command service with response queue 1 year ago