fix: review of phase-2 stage 0 and fronts 5, 6 and 11
All checks were successful
Build and deploy / Publish images (push) Successful in 1m5s
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 5m7s
Build and deploy / Secret scan and release gate (push) Successful in 6s

- A paid treatment adds its 24 h to Arte recebida's acceptable time, on
  the card and in Números (fronts 5 and 11).
- TINY_PRODUCT_TREATMENT is a required Tiny setting once the treatment
  has a price, instead of every treated order failing at the Tiny.
- A quote reads each PDF once: Files caches the header and the DPI.
- A proof made from the parent's final split into parts uses the part
  that holds the finest stroke, not the last one (0.1).
- Prumo report: one format line per item, the time from the claim (kept
  on the finished print file), and the stroke class in customer words.
- The Site says the Prumo checks the art, and a too-tall PNG no longer
  says "Este PDF".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-09 10:45:43 -03:00
parent 5a51084c8f
commit 5aafd9ee91
11 changed files with 227 additions and 37 deletions

View File

@@ -407,8 +407,8 @@ function medirFolha(file){
function textoProgresso(x){
const tempo=x.analiseInicio?' · '+segundosDesde(x.analiseInicio)+' s':'';
if(x.med && x.med.grande) return 'gerando a prévia e conferindo a arte · '+faltaLeitura(x.leitura)+tempo;
return (x.pct<50?'lendo o arquivo…':x.pct<70?'medindo a folha…':'conferindo a arte…')+tempo;
if(x.med && x.med.grande) return 'o Prumo está gerando a prévia e conferindo a arte · '+faltaLeitura(x.leitura)+tempo;
return (x.pct<50?'lendo o arquivo…':x.pct<70?'medindo a folha…':'o Prumo está conferindo a arte…')+tempo;
}
// The file card's thumbnail (52 x 96 px, drawn at twice that for sharp screens).
// At 480 x 720 it is the picture the Kanban shows of the order (checkout.js).
@@ -490,9 +490,9 @@ function detalhesDaFolha(a,i,aberto){
: [a.artes+' peça'+(a.artes===1?'':'s')+' · '+a.aproveitamento+'% da folha com arte',
'Resolução '+a.dpi+' DPI · '+(a.fonteDpi==='imagens'? 'medida imagem por imagem dentro do PDF'
: a.fonteDpi==='vetor'? 'arte vetorial, sem imagem embutida' : 'lida do arquivo'),
'Conferido numa grade de '+n1(a.grade)+' mm'];
'Conferido pelo Prumo numa grade de '+n1(a.grade)+' mm'];
return '<details class="confDet" data-det="'+i+'"'+(aberto?' open':'')+'>'+
'<summary>Ver detalhes da conferência</summary>'+
'<summary>Ver o que o Prumo conferiu</summary>'+
linhas.map(l=>'<span>'+l+'</span>').join('')+'</details>';
}
function pintaFolha(){
@@ -534,7 +534,7 @@ function pintaFolha(){
: ' Remonte a folha em '+n1(L)+' cm e suba de novo.')+'</p>':'');
}else if(x.measurementError){
medida='<span class="repPeso">'+escapeHTML(extDe(x.f.name))+' · '+fmt(x.f.size)+'</span>'+
'<p class="avisoF"><b>Este PDF não pode ser orçado.</b> '+escapeHTML(x.measurementError)+'</p>';
'<p class="avisoF"><b>Este arquivo não pode ser orçado.</b> '+escapeHTML(x.measurementError)+'</p>';
}else{
// Só a abertura manual muda o metro (TAXA_MANUAL); a nota não mexe no preço.
const dif=(x.m>0)? TAXA_MANUAL*cobrar(x.m*(x.rep||1)) : 0;