From 1ad29b27e34c684df2dc080e388ffb10ed9474da Mon Sep 17 00:00:00 2001 From: Manuel Aranda Date: Wed, 6 Aug 2025 16:48:16 +0200 Subject: [PATCH] refs #2605. Added new status 'sent' --- CHANGELOG.md | 5 +++++ .../client-pending-tasks.component.css | 5 +++++ .../client-pending-tasks.component.html | 2 ++ .../client-task-logs.component.css | 7 +++++++ .../client-task-logs.component.html | 4 +++- .../task-logs/task-logs.component.css | 18 ++++++++++++++++ .../task-logs/task-logs.component.html | 17 ++++++++++++++- .../task-logs/task-logs.component.ts | 21 ++++++++++++++++--- ogWebconsole/src/locale/en.json | 1 + ogWebconsole/src/locale/es.json | 1 + 10 files changed, 76 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d66f7d..b4e7635 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Changelog +## [0.19.0] - 2025-08-06 +### Added +- Se ha añadido un nuevo estado "enviado" para cuando se ejecuten acciones a equipos en estado Windows o Linux + +--- ## [0.18.0] - 2025-08-04 ### Added - Se ha añadido la posibilidad de visualizar logs en tiempo real de Grafana. Tanto en los componentes como en los clientes. diff --git a/ogWebconsole/src/app/components/task-logs/client-pending-tasks/client-pending-tasks.component.css b/ogWebconsole/src/app/components/task-logs/client-pending-tasks/client-pending-tasks.component.css index 308009a..93f45d1 100644 --- a/ogWebconsole/src/app/components/task-logs/client-pending-tasks/client-pending-tasks.component.css +++ b/ogWebconsole/src/app/components/task-logs/client-pending-tasks/client-pending-tasks.component.css @@ -117,6 +117,11 @@ color: white; } + .chip-sent { + background-color: #b19cd9 !important; + color: white; + } + .status-progress-flex { display: flex; align-items: center; diff --git a/ogWebconsole/src/app/components/task-logs/client-pending-tasks/client-pending-tasks.component.html b/ogWebconsole/src/app/components/task-logs/client-pending-tasks/client-pending-tasks.component.html index 23da054..9f83f04 100644 --- a/ogWebconsole/src/app/components/task-logs/client-pending-tasks/client-pending-tasks.component.html +++ b/ogWebconsole/src/app/components/task-logs/client-pending-tasks/client-pending-tasks.component.html @@ -72,9 +72,11 @@ text="{{ 'tracesProgressStepText' | translate }}"> {{ trace.status === 'pending' ? 'Pendiente' : + trace.status === 'sent' ? 'Enviado' : trace.status }} diff --git a/ogWebconsole/src/app/components/task-logs/client-task-logs/client-task-logs.component.css b/ogWebconsole/src/app/components/task-logs/client-task-logs/client-task-logs.component.css index 4520ce9..51bb4d8 100644 --- a/ogWebconsole/src/app/components/task-logs/client-task-logs/client-task-logs.component.css +++ b/ogWebconsole/src/app/components/task-logs/client-task-logs/client-task-logs.component.css @@ -335,6 +335,12 @@ table { font-weight: 500; } +.chip-sent { + background-color: #b19cd9 !important; + color: white !important; + font-weight: 500; +} + .status-progress-flex { display: flex; align-items: center; @@ -359,6 +365,7 @@ table { .status-indicator.pending { background-color: #17a2b8; } .status-indicator.in-progress { background-color: #ffc107; } .status-indicator.cancelled { background-color: #6c757d; } +.status-indicator.sent { background-color: #b19cd9; } /* Opciones de cliente */ .client-option { diff --git a/ogWebconsole/src/app/components/task-logs/client-task-logs/client-task-logs.component.html b/ogWebconsole/src/app/components/task-logs/client-task-logs/client-task-logs.component.html index ab1e27b..c4e57b0 100644 --- a/ogWebconsole/src/app/components/task-logs/client-task-logs/client-task-logs.component.html +++ b/ogWebconsole/src/app/components/task-logs/client-task-logs/client-task-logs.component.html @@ -96,7 +96,8 @@ 'chip-success': trace.status === 'success', 'chip-pending': trace.status === 'pending', 'chip-in-progress': trace.status === 'in-progress', - 'chip-cancelled': trace.status === 'cancelled' + 'chip-cancelled': trace.status === 'cancelled', + 'chip-sent': trace.status === 'sent' }"> {{ trace.status === 'failed' ? 'Error' : @@ -104,6 +105,7 @@ trace.status === 'success' ? 'Completado' : trace.status === 'pending' ? 'Pendiente' : trace.status === 'cancelled' ? 'Cancelado' : + trace.status === 'sent' ? 'Enviado' : trace.status }} diff --git a/ogWebconsole/src/app/components/task-logs/task-logs.component.css b/ogWebconsole/src/app/components/task-logs/task-logs.component.css index 0a66564..4bdcf56 100644 --- a/ogWebconsole/src/app/components/task-logs/task-logs.component.css +++ b/ogWebconsole/src/app/components/task-logs/task-logs.component.css @@ -238,6 +238,17 @@ color: #212529; } +.stat-sent { + border-left-color: #b19cd9; + background: #b19cd9; + color: white; +} + +.stat-sent .stat-number, +.stat-sent .stat-label { + color: white; +} + .stat-number { font-size: 2rem; font-weight: bold; @@ -523,6 +534,12 @@ table { font-weight: 500; } +.chip-sent { + background-color: #b19cd9 !important; + color: white !important; + font-weight: 500; +} + .status-progress-flex { display: flex; align-items: center; @@ -546,6 +563,7 @@ table { .status-indicator.pending { background-color: #17a2b8; } .status-indicator.in-progress { background-color: #ffc107; } .status-indicator.cancelled { background-color: #6c757d; } +.status-indicator.sent { background-color: #b19cd9; } .client-option { display: flex; diff --git a/ogWebconsole/src/app/components/task-logs/task-logs.component.html b/ogWebconsole/src/app/components/task-logs/task-logs.component.html index e5cbd38..cba2b66 100644 --- a/ogWebconsole/src/app/components/task-logs/task-logs.component.html +++ b/ogWebconsole/src/app/components/task-logs/task-logs.component.html @@ -57,6 +57,13 @@
{{ getStatusCount('in-progress') }}
{{ 'inProgress' | translate }}
+
+
{{ getStatusCount('sent') }}
+
{{ 'sent' | translate }}
+
@@ -146,6 +153,12 @@ {{ 'cancelled' | translate }}
+ +
+
+ {{ 'sent' | translate }} +
+