fix: a handled "O pedido mudou" no longer reaches Sentry (DTF-WEB-7, DTF-WEB-K), and the 90-day chart is readable on a phone
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 7m35s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 59s
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 7m35s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 59s
saveFinalFiles and pullMove answer a stale-version 409 by reloading and trying once more, but api() had already reported it. The first call now expects the 409; one they cannot answer is still reported (reportRefusal), and any other status is reported by api() as before, once. Past a month the chart's gap is 1 px (90 bars were under 1 px each on a 375 px phone), and the last date ends at the chart's edge instead of being cut. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -606,8 +606,9 @@ async function loadOlderFinished(){
|
||||
const fresh=page.orders.filter(o=>!known.has(o.id));
|
||||
olderFinished.push(...fresh);board.orders.push(...fresh);finishedMore=page.has_more;renderBoard();
|
||||
}
|
||||
async function move(order,state,reason='',machine=null){
|
||||
await api('/orders/'+order.id+'/move',{state,version:order.version,reason,...(machine?{machine_id:machine}:{})});
|
||||
// `options` goes to api(): pullMove expects the 409 it answers itself.
|
||||
async function move(order,state,reason='',machine=null,options={}){
|
||||
await api('/orders/'+order.id+'/move',{state,version:order.version,reason,...(machine?{machine_id:machine}:{})},options);
|
||||
await load();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user