fix: a proof card shows the film it prints, the Kanban's tooltips stay whole on screen, and a session that changed is a warning (DTF-WEB-26)
A proof card bills 0 m: the board now carries proof_film_cm per item (the same measure as Números), the card reads 'prova · 0,15 m', the column totals count it, and the drawer says 'prova sem custo', the proof's film and 'Folha do pedido'. The [data-tip] tooltips were CSS boxes inside the card, cut by the column and over the card below; one box fixed to the window now sits under the element, or over it near the bottom, inside the screen. 'Sua conta ou sessão mudou' is guidance shown as a warning, so it stays out of Sentry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -519,7 +519,10 @@
|
||||
$('bPagar').disabled = true;
|
||||
try {
|
||||
await ready;
|
||||
if((await api('/session')).cart_scope !== (await ready).cart_scope) throw new Error('Sua conta ou sessão mudou. Recarregue a página antes de enviar o carrinho.');
|
||||
// Guidance, not a fault: the customer signed in or out in another tab
|
||||
// (DTF-WEB-26); a warning, so it stays out of Sentry.
|
||||
if((await api('/session')).cart_scope !== (await ready).cart_scope){
|
||||
const changed=new Error('Sua conta ou sessão mudou. Recarregue a página antes de enviar o carrinho.');changed.guidance=true;throw changed;}
|
||||
const items=[];
|
||||
pintaEnvio();
|
||||
// Loose art split by stroke (item 17) is one cart line and one order item
|
||||
@@ -591,7 +594,7 @@
|
||||
quotedCart=initialCart;localStorage.setItem('dtf-quote-cart',quotedCart);
|
||||
draftId=quote.id; localStorage.setItem('dtf-quote',draftId);
|
||||
await refresh(true);
|
||||
} catch(error) { message(error.message,couponRefusal(error.status,error.message)?'warn':'error'); }
|
||||
} catch(error) { message(error.message,error.guidance||couponRefusal(error.status,error.message)?'warn':'error'); }
|
||||
finally { busy=false; pintaEntrega(); }
|
||||
};
|
||||
// `go`: the customer asked to pay, so the cart page moves to the payment page.
|
||||
|
||||
Reference in New Issue
Block a user