From 8daf3084aa18d8c39ceac8cb4ab1466deccc8b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Mon, 16 Nov 2026 13:26:56 -0300 Subject: [PATCH] fix: a drag to Arte conferida without approved finals opens the order on that step (DTF-WEB-F) The panel only offers Arte conferida once every item's final is approved, but the board's drop sent the move and the server refused it. The drop now says what is missing and opens the order on "Aprovar o arquivo final", the same pattern as the review photo guard for Finalizado (DTF-WEB-B). Co-Authored-By: Claude Opus 5.5 (1M context) --- web/kanban-board.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/kanban-board.js b/web/kanban-board.js index 6aef1d4..d2f0841 100644 --- a/web/kanban-board.js +++ b/web/kanban-board.js @@ -272,6 +272,12 @@ function renderBoard(){ else say('Pedido acima de 1 m: falta a foto da revisão antes de finalizar.',true); 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). + if(state==='tra'&&order.state!=='tra'&&!finalDone(order)){ + say('Aprove o arquivo final de todos os itens antes de Arte conferida.',true); + openPanel(order.id);clearDrop();return; + } try{ if(order.state!==state)await (state==='imp'?pullTo(order,machine):move(order,state,'',machine)); else if(state!=='fin')await reorder(order,column,e.clientY);