From bcc3bd794bbe612724351a63cf23b7c12da00c3e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lu=C3=ADs=20Eug=C3=A9nio=20Marques=20Moreira=20Pires=20da?=
 =?UTF-8?q?=20Cruz?= <luis.cruz@tecnico.ulisboa.pt>
Date: Mon, 26 May 2025 17:15:52 +0100
Subject: [PATCH] Test academic request steps
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

(cherry picked from commit 275052e31dc49174a1d9b3c1ba0d8c6e14a17839)

Co-authored-by: Inês Filipe <ines.filipe@tecnico.ulisboa.pt>
---
 .../AcademicRequestPossibleSteps.json         | 86 ++++++++++++++++++-
 1 file changed, 84 insertions(+), 2 deletions(-)

diff --git a/paperPusher/forms/academic/AcademicRequestPossibleSteps.json b/paperPusher/forms/academic/AcademicRequestPossibleSteps.json
index 69c61091..0e51da82 100644
--- a/paperPusher/forms/academic/AcademicRequestPossibleSteps.json
+++ b/paperPusher/forms/academic/AcademicRequestPossibleSteps.json
@@ -167,6 +167,88 @@
       "queue": "Conselho Científico"
     }
   },
+  {
+    "name": {
+      "pt-PT": "Serviços Académicos - Confirmação e Resposta ao Requerimento",
+      "en-GB": "Academic Services - Confirmation and Response to Request"
+    },
+    "value": {
+      "id": "academic-services-requests-response",
+      "type": "withForms",
+      "comment": true,
+      "title": {
+        "pt-PT": "Serviços Académicos - Resposta",
+        "en-GB": "Academic Services - Response"
+      },
+      "description": {
+        "pt-PT": "Confirmação e Resposta ao Requerimento",
+        "en-GB": "Confirmation and Response to Request"
+      },
+      "commentLabel": {
+        "pt-PT": "Confirmação e Resposta ao Requerimento",
+        "en-GB": "Confirmation and Response to Request"
+      },
+      "buttons": [
+        {
+          "id": "submit-form",
+          "primary": true,
+          "label": {
+            "pt-PT": "Confirmar e Responder",
+            "en-GB": "Confim and Respond"
+          },
+          "handlers": {
+            "form": "opinion-form",
+            "action": "SIGN"
+          }
+        },
+        {
+          "id": "reject",
+          "primary": false,
+          "label": {
+            "pt-PT": "Rejeitar",
+            "en-GB": "Rejeitar"
+          },
+          "handlers": {
+            "action": "REJECT"
+          }
+        },
+        {
+          "primary": false,
+          "label": {
+            "pt-PT": "Mudar de Fila",
+            "en-GB": "Change Queue"
+          },
+          "handlers": {
+            "url": "{{bennuApplicationUrl}}/fenixedu-smart-flow/flows/{{flowId}}/change-queue"
+          }
+        }
+      ],
+      "actions": {
+        "SIGN": {
+          "primary": true,
+          "to": "SUCCESS",
+          "label": {
+            "pt-PT": "Responder",
+            "en-GB": "Respond"
+          }
+        },
+        "REJECT": {
+          "primary": false,
+          "to": "FAILURE",
+          "label": {
+            "pt-PT": "Rejeitar",
+            "en-GB": "Reject"
+          }
+        }
+      },
+      "queuesAllowedToChangeTo": [
+        "Serviços Académicos de Pós-Graduação - Requerimentos Saída",
+        "Serviços Académicos da Alameda - Requerimentos Saída",
+        "Serviços Académicos do Taguspark - Requerimentos Saída"
+      ],
+      "queuesProviderUrl": "/paper-pusher-ist/academic-request/{{flowId}}/academic-office-queues"
+    }
+  },
   {
     "name": {
       "pt-PT": "Serviços Académicos Pós-Graduação - Confirmação e Resposta ao Requerimento",
@@ -331,11 +413,11 @@
         "en-GB": "Academic Services Post-Graduation - without Response"
       },
       "description": {
-        "pt-PT": "Confirmação e Resposta ao Requerimento",
+        "pt-PT": "Confirmação sem Resposta ao Requerimento",
         "en-GB": "Confirmation without Response to Request"
       },
       "commentLabel": {
-        "pt-PT": "Confirmação e Resposta ao Requerimento",
+        "pt-PT": "Confirmação sem Resposta ao Requerimento",
         "en-GB": "Confirmation without Response to Request"
       },
       "actions": {
-- 
GitLab