From 06d0a83aabe968c3b303551d5d6442b62dd9023f Mon Sep 17 00:00:00 2001 From: Lucas Lara Date: Wed, 4 Jun 2025 13:13:30 +0200 Subject: [PATCH] refs #2169 Refactor legend component to enhance client status display and add translations for client states --- .../global-status.component.html | 50 +++------ .../groups/shared/legend/legend.component.css | 25 +++++ .../shared/legend/legend.component.html | 100 +++++++++++++----- ogWebconsole/src/locale/en.json | 12 ++- ogWebconsole/src/locale/es.json | 12 ++- 5 files changed, 131 insertions(+), 68 deletions(-) diff --git a/ogWebconsole/src/app/components/global-status/global-status.component.html b/ogWebconsole/src/app/components/global-status/global-status.component.html index ae4d259..97317a7 100644 --- a/ogWebconsole/src/app/components/global-status/global-status.component.html +++ b/ogWebconsole/src/app/components/global-status/global-status.component.html @@ -8,17 +8,9 @@
-
@@ -31,18 +23,9 @@
- +
@@ -52,31 +35,22 @@
- +
- + ]" [view]="view" [colorScheme]="colorScheme" [isDoughnut]="isDoughnut" [showLabels]="showLabels" + [isDhcp]="false" [isRepository]="true">
diff --git a/ogWebconsole/src/app/components/groups/shared/legend/legend.component.css b/ogWebconsole/src/app/components/groups/shared/legend/legend.component.css index e69de29..5ebf5ca 100644 --- a/ogWebconsole/src/app/components/groups/shared/legend/legend.component.css +++ b/ogWebconsole/src/app/components/groups/shared/legend/legend.component.css @@ -0,0 +1,25 @@ +mat-list { + display: grid; + grid-template-columns: repeat(2, minmax(100px, 1fr)); + gap: 16px; + padding: 8px; +} + +.client-types, +.other-items { + display: flex; + flex-direction: column; +} + +.section-title { + font-size: large; + font-weight: 550; + padding-left: 17px; +} + +mat-list-item { + display: flex; + align-items: center; + padding: 6px 12px; + border-radius: 8px; +} \ No newline at end of file diff --git a/ogWebconsole/src/app/components/groups/shared/legend/legend.component.html b/ogWebconsole/src/app/components/groups/shared/legend/legend.component.html index 3d02ad5..387d3f4 100644 --- a/ogWebconsole/src/app/components/groups/shared/legend/legend.component.html +++ b/ogWebconsole/src/app/components/groups/shared/legend/legend.component.html @@ -1,32 +1,76 @@ - - apartment -
{{ 'orgUnitTitle' | translate }}
-
- - meeting_room -
{{ 'classroomGroupsTitle' | translate }}
-
- - school -
{{ 'classroomTitle' | translate }}
-
- - lan -
{{ 'clientGroupsTitle' | translate }}
-
- - computer -
{{ 'clientTitle' | translate }}
-
+
+

Clientes

+ + + +
{{ 'clientOff' | translate }}
+
+ + +
{{ 'clientBusy' | translate }}
+
+ + +
{{ 'clientDisconnected' | translate }}
+
+ + +
{{ 'clientInitializing' | translate }}
+
+ + +
{{ 'clientLinuxSession' | translate }}
+
+ + +
{{ 'clientLinux' | translate }}
+
+ + +
{{ 'clientMacOS' | translate }}
+
+ + +
{{ 'clientOgLive' | translate }}
+
+ + +
{{ 'clientWindowsSession' | translate }}
+
+ + +
{{ 'clientWindows' | translate }}
+
+
- - school -
{{ 'remoteAccess' | translate }}
-
- - school -
{{ 'noRemoteAccess' | translate }}
-
+
+

Entidades

+ + + apartment +
{{ 'orgUnitTitle' | translate }}
+
+ + meeting_room +
{{ 'classroomGroupsTitle' | translate }}
+
+ + school +
{{ 'classroomTitle' | translate }}
+
+ + school +
{{ 'remoteAccess' | translate }}
+
+ + school +
{{ 'noRemoteAccess' | translate }}
+
+ + lan +
{{ 'clientGroupsTitle' | translate }}
+
+
\ No newline at end of file diff --git a/ogWebconsole/src/locale/en.json b/ogWebconsole/src/locale/en.json index fcfacdf..6e91915 100644 --- a/ogWebconsole/src/locale/en.json +++ b/ogWebconsole/src/locale/en.json @@ -533,5 +533,15 @@ "tracesTitleStepText": "In this screen, you can see the execution traces of each client, with its id, command, real-time status, date and actions to be performed.", "filtersStepText": "Here you can see the different filters to apply to the table information.", "tracesProgressStepText": "Here you can see the execution status updated in real time.", - "tracesInfoStepText": "Here you can consult detailed information about the specific trace." + "tracesInfoStepText": "Here you can consult detailed information about the specific trace.", + "clientOff": "Client off", + "clientBusy": "Busy client", + "clientDisconnected": "Disconnected client", + "clientInitializing": "Initializing client", + "clientLinuxSession": "Linux session client", + "clientLinux": "Linux client", + "clientMacOS": "MacOS client", + "clientOgLive": "OGLive client", + "clientWindowsSession": "Windows session client", + "clientWindows": "Windows client" } diff --git a/ogWebconsole/src/locale/es.json b/ogWebconsole/src/locale/es.json index d130767..16c0409 100644 --- a/ogWebconsole/src/locale/es.json +++ b/ogWebconsole/src/locale/es.json @@ -536,5 +536,15 @@ "tracesTitleStepText": "En esta pantalla, puedes ver las trazas de ejecución de cada cliente, con su id, comando, estado en tiempo real, fecha y acciones a realizar.", "filtersStepText": "Aquí puedes ver los diferentes filtros que aplicar a la información de la tabla.", "tracesProgressStepText": "Aquí puedes ver el estado de ejecución actualizado en tiempo real.", - "tracesInfoStepText": "Aquí puedes consultar información detallada de la traza en concreto." + "tracesInfoStepText": "Aquí puedes consultar información detallada de la traza en concreto.", + "clientOff": "Cliente apagado", + "clientBusy": "Cliente ocupado", + "clientDisconnected": "Cliente desconectado", + "clientInitializing": "Cliente inicializando", + "clientLinuxSession": "Cliente con sesión Linux", + "clientLinux": "Cliente Linux", + "clientMacOS": "Cliente MacOS", + "clientOgLive": "Cliente OGLive", + "clientWindowsSession": "Cliente con sesión Windows", + "clientWindows": "Cliente Windows" }