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

@@ -125,7 +125,7 @@ async function sel(fs){
// On their way at once; a JPG is refused at the order anyway.
fs.filter(f=>!/\.jpe?g$/i.test(f.name)).forEach(f=>window.dtfEnvio?.enviar(f));
if(ehFolha()){
const novas=fs.map(f=>({f, med:null, rep:1, m:0, semAnalise:null}));
const novas=fs.map(f=>({f, med:null, rep:1, m:0, semAnalise:null, analiseInicio:Date.now()}));
folhas=folhas.concat(novas); // soma, não substitui
pintaFolha();
novas.forEach(x=>{
@@ -219,7 +219,7 @@ async function sel(fs){
});
return;
}
const novos=fs.map(f=>({f,px:0,py:0,cm:0,q:1,prop:1,giro:0,esp:false}));
const novos=fs.map(f=>({f,px:0,py:0,cm:0,q:1,prop:1,giro:0,esp:false,analiseInicio:Date.now()}));
artes=novos.concat(artes); // a mais recente fica no topo da fila
recemChegada=novos[0];
pintaArtes();