feat(oggui): ask to queue reboot/poweroff if client is busy #91

Merged
narenas merged 1 commits from encolar_poweroff_reboot into main 2026-05-08 07:19:14 +02:00
Collaborator

feat(oggui): ask to queue reboot/poweroff when client is busy

Summary

  • Los botones de Reiniciar y Apagar ahora abren un modal de
    confirmación (QueueConfirmationModalComponent) antes de enviar la
    petición al servidor
  • El modal permite al usuario elegir si encolar el comando cuando el
    cliente está ocupado (la API devuelve HTTP 409). El flag queue se
    envía en el body de la petición a /clients/server/reboot y
    /clients/server/power-off

Test plan

  • Con un cliente en estado busy, pulsar Reiniciar y verificar
    que aparece el modal de confirmación
  • Seleccionar "encolar" y verificar que se crea una traza en estado
    PENDING para el reinicio
  • Seleccionar "cancelar" en el modal y verificar que no se envía
    ninguna petición
  • Repetir los pasos anteriores con Apagar
# feat(oggui): ask to queue reboot/poweroff when client is busy ## Summary - Los botones de **Reiniciar** y **Apagar** ahora abren un modal de confirmación (`QueueConfirmationModalComponent`) antes de enviar la petición al servidor - El modal permite al usuario elegir si encolar el comando cuando el cliente está ocupado (la API devuelve HTTP 409). El flag `queue` se envía en el body de la petición a `/clients/server/reboot` y `/clients/server/power-off` ## Test plan - [x] Con un cliente en estado `busy`, pulsar **Reiniciar** y verificar que aparece el modal de confirmación - [x] Seleccionar "encolar" y verificar que se crea una traza en estado `PENDING` para el reinicio - [x] Seleccionar "cancelar" en el modal y verificar que no se envía ninguna petición - [x] Repetir los pasos anteriores con **Apagar**
narenas added 1 commit 2026-05-08 07:19:01 +02:00
testing/ogGui-multibranch/pipeline/head There was a failure building this commit Details
testing/ogGui-multibranch/pipeline/pr-main Build started... Details
df3ff55fb8
feat(oggui): ask to queue reboot/poweroff if client is busy
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.
narenas merged commit 2568efbfa3 into main 2026-05-08 07:19:14 +02:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: opengnsys/oggui#91
There is no content yet.