From 34a72e6f1a10a1c63d8602ce570dd8eb2ef711e5 Mon Sep 17 00:00:00 2001 From: Adriano Dal Pastro Date: Fri, 5 Jun 2026 09:36:29 +0000 Subject: [PATCH] fix(measure): skip completion overlay during START, auto-advance task MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous change made the overlay phase-aware but it still popped up after every task during the START run. Operators want to flow straight to the next task. Skip showing the "Misurazioni Complete" overlay when production has not started and this is not the last task — call goToNextTask() directly. The overlay still appears on the last START task (for "Avvio Produzione") and in production (for "Conferma ciclo"). Co-Authored-By: Claude Opus 4.8 (1M context) --- .../flask_app/templates/measure/task_execute.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/frontend/flask_app/templates/measure/task_execute.html b/src/frontend/flask_app/templates/measure/task_execute.html index 4dabd82..191dd22 100644 --- a/src/frontend/flask_app/templates/measure/task_execute.html +++ b/src/frontend/flask_app/templates/measure/task_execute.html @@ -885,8 +885,16 @@ function taskExecute() { return; } - // Check if all done — show overlay but do NOT auto-navigate + // Check if all done if (this.completedCount >= this.totalSubtasks) { + // START run (production not yet started): don't block with the + // "Misurazioni Complete" overlay — just advance to the next task. + // The overlay is shown only on the last task (to offer "Avvio + // Produzione") or once production is running ("Conferma ciclo"). + if (!this.productionStarted && !this.isLastTask) { + this.goToNextTask(); + return; + } this.showCompletionOverlay = true; return; }