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
ac680ac467
refactor: mantener única DB por suite y limpiar tablas en beforeEach
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
63f330a065
test: usar setDb y resetDb para configurar y limpiar BD en tests
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
39b6251b7b
test: usar setDb y resetDb para gestionar DB en tests
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
f743fd892b
test: usar setDb y resetDb para configurar DB global en pruebas
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months 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
1ad36ee898
refactor: centralizar SimulatedResponseQueue y actualizar TaskItem
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
77e318e677
refactor: centralizar pruebas de crypto/fechas y alias toIsoSql
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
7 months ago
brobert
5b78be0eff
test: evita trigger migración v15 ajustando limpieza en tests
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert
89c837b34d
test: añade tests unitarios para la reacción ✅ al completar
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert
542e1f03a4
feat: impedir soltar tarea personal sin asignatarios; backend+UI
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
brobert
af6c170115
fix: ajusta countAllActive para excluir grupos archivados e inactivos
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
8 months ago
borja
c912ee362e
feat: añadir /admin ver todos para listar tareas activas globales
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
9 months ago
borja
78efc857bc
feat: mostrar resumen '… y N más' en recordatorios cuando hay tope
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
9 months ago
borja
db9f71abaa
feat: aplicar gating por AllowedGroups en tareas y recordatorios
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
9 months ago
borja
9fb4a0d03a
test: añade pruebas de claim/unassign para TaskService y CommandService
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
9 months ago
borja
435b90d131
test: eliminar valor de active al insertar grupos en pruebas
...
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
48d750b648
fix: silenciar errores DB en webhook y actualizar pruebas de TaskService
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
9 months ago
borja
db790064af
test: sembrar grupo para satisfacer FK de tasks.group_id
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
9 months ago
borja
703ea61c67
refactor: migrar a bun:sqlite y adaptar servicio/tareas y pruebas
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
9 months ago
borja
7b9928937b
feat: añadir TaskService con dbInstance y tests unitarios
...
Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
9 months ago