oggui-debian-package/pipeline/head This commit looks goodDetails
testing/ogGui-multibranch/pipeline/head There was a failure building this commitDetails
- Add language field to JwtPayload interface and getter in AuthService
- Header applies JWT language on init (server takes priority over localStorage)
- Switching language from header PATCHes preference to API immediately
- Add language selector to add/edit user modal (admin)
- Add userLanguage and userLanguageHint i18n keys to es/en/cat locales
- playwright.config.ts: configuración con globalSetup/Teardown,
webServer (reuseExistingServer), SSL bypass para cert autofirmado
- e2e/helpers/api.ts: crea/borra usuarios de test vía API de ogCore,
persiste IRIs en .e2e-state.json para evitar problemas entre procesos
- e2e/helpers/auth.ts: loginAs(), navigateTo(), expectSidebarLink()
- e2e/permissions/: 4 specs (super-admin, ou-admin, ou-operator, ou-minimal)
que verifican sidebar, rutas y botones de acción por rol
- package.json: scripts e2e, e2e:headed, e2e:ui, e2e:report
y dependencia @playwright/test
- .gitignore: añade .e2e-state.json y playwright-report/
- elimina test-results/ogGui-junit-report.xml del tracking de git
- auth.service.spec.ts: tests para isSuperAdmin, isOUAdmin, isOUOperator,
isOUMinimal, userCategory y getCurrentRole con tokens JWT sintéticos
- role.guard.spec.ts: matriz completa 26 rutas × 4 roles, verifica
redirección a /groups cuando el acceso está bloqueado
- sidebar.component.spec.ts: verifica ítems visibles por rol
(ou-operator/minimal ven solo /groups; admins ven los 9 ítems)
- ogboot-status.component.spec.ts: corrige import incorrecto
OgbootStatusComponent → GlobalOgbootStatusComponent
Los botones 'Nueva Unidad Organizativa' y 'Nuevo Cliente' (cabecera y
menu contextual del arbol) quedan ocultos para ou-operator, alineando
la UI con la restriccion de backend en ogcore.
Las rutas clients/deploy-image, clients/partition-assistant,
clients/run-script y clients/:id/create-image ahora incluyen
'ou-operator' en allowedRoles.
El execute-command ya tenia deploy-image y partition en la lista de
comandos permitidos para ou-operator; solo faltaba el acceso a la ruta.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Los botones de crear, editar y eliminar en servidores DHCP, Boot,
Comandos y Repositorios quedan visibles unicamente para super-admin,
alineando la UI con las restricciones de backend anadidas en ogcore.
oggui-debian-package/pipeline/head This commit looks goodDetails
testing/ogGui-multibranch/pipeline/head There was a failure building this commitDetails
- StatusLogsComponent: @Input identifiers[] en lugar de identifier string,
parseo de entries JSON estructurado con formato [timestamp] ID: mensaje
- Templates ogboot, ogdhcp, ogrepository, ogcore-status: identifiers correctos
por componente y host basado en IP en lugar de nombre del servidor
- Añadidos métodos getSelectedXxxIp() en ogboot, ogdhcp y ogrepository status
Show a confirmation modal before sending reboot and poweroff requests,
allowing the user to choose whether to queue the command when the client
is busy (HTTP 409). Passes the 'queue' flag to the API accordingly.
oggui-debian-package/pipeline/head This commit looks goodDetails
testing/ogGui-multibranch/pipeline/head There was a failure building this commitDetails
Resolved conflict in client-logs-modal: kept encodeURIComponent approach
(simple URL encoding of MAC) over the backslash-escaping variant, as
plain %3A-encoded colons are correctly handled by Grafana's Lucene query.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>