fix: the review photo is measured before sending, and a drag to Finalizado without it opens Revisão
Sentry DTF-WEB-C and DTF-WEB-B (order #24, 16/11): a review photo under 1600 px on its longer side was refused only after the upload (a 1280x720 webcam always is), and dragging the card to Finalizado without the photo got the server's 409. The dialog now says the minimum, the camera shot and a chosen photo are measured in the browser with the same message, and the drop opens Revisão instead of a refused move. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -266,6 +266,13 @@ function renderBoard(){
|
||||
const order=board.orders.find(o=>o.id===e.dataTransfer.getData('text/plain'));
|
||||
const machine=state==='imp'?laneAt(column,e.clientY):null;markLane(column,null);
|
||||
if(!order)return;
|
||||
// Above 1 m Finalizado needs the review photo: the drop opens Revisão
|
||||
// instead of a refused move (Sentry DTF-WEB-B).
|
||||
if(state==='fin'&&order.state==='rev'&&needsReviewPhoto(order)){
|
||||
if(may('inspect')){say('Pedido acima de 1 m: tire a foto da revisão antes de finalizar.');reviewDialog(order);}
|
||||
else say('Pedido acima de 1 m: falta a foto da revisão antes de finalizar.',true);
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user