fix(measure): skip completion overlay during START, auto-advance task
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) <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user