feat: a ready sheet's pieces under 5 mm show on the Kanban card (Marcus, 2026-11-26, #81)
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 7m52s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m29s
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 7m52s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m29s
The Site already counted them and warned the customer; the count now travels with the item (close_pieces) to the card's flags, the order panel and the quote review, so the room sees it before printing. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -52,6 +52,7 @@ const TREATED_NOTE='O arquivo final foi preparado pela equipe, não é a arte qu
|
||||
const mirroredItem=item=>!!item.production?.sources?.some(source=>source.mirrored);
|
||||
const MIRROR_NOTE='O cliente espelhou a arte: confira antes de imprimir';
|
||||
// Residue dots under 2 mm the customer accepted printing (Dropstar, 2026-10-29).
|
||||
const closeNote=n=>'A folha do cliente tem '+n+' peças a menos de 5 mm de outra: confira o recorte antes de imprimir';
|
||||
const residueNote=item=>{const many=item.residue_accepted>1;
|
||||
return item.residue_accepted+(many?' pontos menores':' ponto menor')+' que 2 mm, que '+(many?'podem':'pode')+' se perder no recorte';};
|
||||
const residueBadge=item=>badge('! Resíduo aceito','warn','O cliente aceitou imprimir com '+residueNote(item));
|
||||
@@ -421,6 +422,9 @@ function cardFlags(order){
|
||||
if(live&&s.items.some(i=>i.quality_status==='warning'))out.push(['warn','Nota '+(lowestGrade(s.items)??'baixa'),'Nota da arte baixa: o cliente aceitou a ressalva de resolução']);
|
||||
const dots=s.items.reduce((t,i)=>t+(i.residue_accepted||0),0);
|
||||
if(live&&dots)out.push(['warn','Resíduo','O cliente aceitou imprimir com '+residueNote({residue_accepted:dots})]);
|
||||
// A ready sheet with pieces closer than 5 mm (Marcus, 2026-11-26, #81).
|
||||
const close=s.items.reduce((t,i)=>t+(i.close_pieces||0),0);
|
||||
if(live&&close)out.push(['warn','Peças coladas',closeNote(close)]);
|
||||
if(order.treated)out.push(['','Tratada',TREATED_NOTE+' Aprovado por '+order.treated.by+'.']);
|
||||
if(live&&needsProof(order)&&order.proof_ok_at)out.push(['','Prova OK','Prova conferida por '+order.proof_ok_by+' em '+when(order.proof_ok_at)]);
|
||||
if(isTest(order))out.push(['','Teste','Pedido de teste: sem pagamento, não vai ao Tiny']);
|
||||
|
||||
Reference in New Issue
Block a user