diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a0711d..ec41172 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog - project.linkedcorp.net +## [1.8.1] - 2026-09-10 +### Fixed +- "Agregar dependencia" en una actividad no daba ninguna señal cuando no había otra actividad del + proyecto disponible para elegir (proyecto con una sola actividad, o ya se agregaron todas) — el + combo quedaba vacío, no se seleccionaba nada, y el botón hacía clic sin ningún efecto visible. + Reportado como "el botón no hace nada". El mecanismo en sí funcionaba bien (verificado con curl y + Playwright con 2+ actividades); ahora, cuando no hay opciones, se muestra un mensaje explicando + por qué en vez del selector, y el botón queda deshabilitado si no hay nada seleccionado. + ## [1.8.0] - 2026-09-10 ### Changed - Renombrado "Subtareas" a "Tareas" en todo el sistema (Actividad → Tarea, sin nivel "sub" diff --git a/VERSION b/VERSION index 27f9cd3..a8fdfda 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.8.0 +1.8.1 diff --git a/backend/package.json b/backend/package.json index 9bb4b1a..45b734f 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "project-linkedcorp-backend", - "version": "1.8.0", + "version": "1.8.1", "private": true, "type": "module", "main": "src/server.js", diff --git a/frontend/package.json b/frontend/package.json index 4c8fad6..62c9ab9 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "project-linkedcorp-frontend", "private": true, - "version": "1.8.0", + "version": "1.8.1", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/src/i18n/messages.js b/frontend/src/i18n/messages.js index ec0bda8..8116dfb 100644 --- a/frontend/src/i18n/messages.js +++ b/frontend/src/i18n/messages.js @@ -168,6 +168,7 @@ export const messages = { activity_dependencies: 'Dependencias', activity_add_dependency: 'Agregar dependencia', activity_depends_on: 'Depende de', + activity_no_dependency_options: 'No hay otras actividades en este proyecto para agregar como dependencia.', tasks_title: 'Tareas', task_new: 'Nueva tarea', task_done: 'Hecha', @@ -376,6 +377,7 @@ export const messages = { activity_dependencies: 'Dependencies', activity_add_dependency: 'Add dependency', activity_depends_on: 'Depends on', + activity_no_dependency_options: 'There are no other activities in this project to add as a dependency.', tasks_title: 'Tasks', task_new: 'New task', task_done: 'Done', diff --git a/frontend/src/pages/Proyectos/ActivityDetailPanel.jsx b/frontend/src/pages/Proyectos/ActivityDetailPanel.jsx index 26bde28..b0fc6b5 100644 --- a/frontend/src/pages/Proyectos/ActivityDetailPanel.jsx +++ b/frontend/src/pages/Proyectos/ActivityDetailPanel.jsx @@ -205,12 +205,16 @@ export default function ActivityDetailPanel({ activity, projectId, siblingActivi ))} -
-
- + {depOptions.length === 0 ? ( +
{t('activity_no_dependency_options')}
+ ) : ( +
+
+ +
+
- -
+ )}
)}