feat: the customer sees how long each site step is taking (0.12)
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 4m26s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m0s

The file card, the sheet preview and the analysis status now count the
seconds since the file arrived; the confirmation says the Prumo is
preparing the print file and the usual estimate per 10 m.
This commit is contained in:
Cauê Faleiros
2026-11-06 12:18:02 -03:00
parent dc87d46801
commit 25e4ac541a
6 changed files with 15 additions and 9 deletions

View File

@@ -93,7 +93,7 @@ function avaliar(){
// Resíduo e fundo chapado barram antes do pagamento, com um ponto só
// (Dropstar, 21/10/2026): então o pedido espera a conferência terminar.
const lendo=folhas.find(x=>x.pct!=null);
if(lendo) return {pronto:false, falta:'Conferindo '+lendo.f.name+'…'};
if(lendo) return {pronto:false, falta:'Conferindo '+lendo.f.name+'… · '+segundosDesde(lendo.analiseInicio)+' s'};
const barrada=folhas.find(folhaBarrada);
if(barrada) return {pronto:false, falta:barrada.an.fundoChapado
? barrada.f.name+' está sem fundo transparente. Exporte a folha com fundo transparente, em PNG ou PDF, e envie de novo.'
@@ -145,7 +145,8 @@ function avaliar(){
return {pronto:true};
}
if(!artes.length) return {pronto:false, falta:'Arraste suas artes para começar.'};
if(artes.some(a=>a.lendo!=null)) return {pronto:false, falta:'Gerando a prévia das artes grandes…'};
const grande=artes.find(a=>a.lendo!=null);
if(grande) return {pronto:false, falta:'Gerando a prévia das artes grandes… · '+segundosDesde(grande.analiseInicio)+' s'};
if(artes.some(a=>a.decodeError || !(a.src||a.semPrevia) || !(a.px>0) || !(a.py>0)))
return {pronto:false, falta:'Não conseguimos ler uma das imagens. Exporte-a novamente em PNG antes de continuar.'};
if(artes.some(a=>!Number.isFinite(a.cm) || a.cm>larguraFilme()))
@@ -156,7 +157,8 @@ function avaliar(){
' para ver a nota e o preço.'};
// Item 4: a dot under 2 mm in a loose artwork holds the order like on a
// sheet, until the customer erases it or accepts printing that artwork so.
if(artes.some(a=>a.lendoArte)) return {pronto:false, falta:'Conferindo as artes…'};
const lendoArte=artes.find(a=>a.lendoArte);
if(lendoArte) return {pronto:false, falta:'Conferindo as artes… · '+segundosDesde(lendoArte.analiseInicio)+' s'};
const comPontos=artes.find(a=>{const an=analiseDaArte(a);return an&&an.residuos&&!a.residuoAceito;});
if(comPontos){const n=analiseDaArte(comPontos).residuos;
return {pronto:false, falta:comPontos.f.name+' tem '+n+' ponto'+(n>1?'s':'')+