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

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:
Cauê Faleiros
2026-11-26 14:43:25 -03:00
parent 3b9575b94b
commit 64a017e0a4
8 changed files with 27 additions and 1 deletions

View File

@@ -345,6 +345,8 @@ function carrinho(){
qualityAcknowledged:false,
// The residue dots the customer accepted printing (Dropstar, 2026-10-29).
residueAccepted:residuosAceitos(),
// Peças a menos de 5 mm na folha pronta: a equipe vê no card (Marcus, 26/11/2026).
closePieces:ehFolha()?folhas.reduce((t,x)=>t+(x.an?.encostadas||0),0):0,
// The thinnest stroke and its contraction class (item 9), for the room.
...tracoDoItem(null,layout),
desc:(partes?partes.length+' folhas · ':'')+fmtM(cob)+' m · '+rs(unit)+'/m'};