fix: the drag to Arte conferida without approved finals guides instead of reporting an error (DTF-WEB-R)
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 6m33s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 1m11s

The drop already opens the order on the approval step (DTF-WEB-F); its
line is guidance, like the review photo's in DTF-WEB-B, so it is no
longer red and no longer reaches Sentry.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-17 09:26:13 -03:00
parent 9630baa970
commit bd25cb9c1c

View File

@@ -273,9 +273,10 @@ function renderBoard(){
clearDrop();return;
}
// Arte conferida needs every item's final approved: the drop opens the
// order on that step instead of a refused move (Sentry DTF-WEB-F).
// order on that step instead of a refused move (Sentry DTF-WEB-F). The
// line is guidance, not an error, so it stays out of Sentry (DTF-WEB-R).
if(state==='tra'&&order.state!=='tra'&&!finalDone(order)){
say('Aprove o arquivo final de todos os itens antes de Arte conferida.',true);
say('Aprove o arquivo final de todos os itens antes de Arte conferida.');
openPanel(order.id);clearDrop();return;
}
try{