feat: Prumo tells the card and the customer what it did (front 6)
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 4m41s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m6s
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 4m41s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m6s
Every order now carries a short report of the decisions that happened: original format, conversion, resolution, background, residue, montage, billed length, contraction, thin-stroke warning, parts and generation time. The card shows it above the file; the payment summary shows the customer's version. The upload keeps the original name so a renamed CDR/PDF is told.
This commit is contained in:
@@ -123,7 +123,12 @@
|
||||
rows.push(linha(pickup ? 'Retirada em Franca' : (approved.freight.description || 'Frete')+prazo,
|
||||
approved.freight.total_cents ? rs(approved.freight.total_cents/100) : 'Grátis'));
|
||||
rows.push(linha('Total', rs(approved.total_cents/100), 'tot'));
|
||||
resumo.replaceChildren(node('h4','Resumo do pedido'), ...rows);
|
||||
const prumoBox=node('div',null,'prumoResumo');
|
||||
if(quote.prumo?.length){
|
||||
prumoBox.append(node('b','O que o Prumo fez'));
|
||||
for(const line of quote.prumo) prumoBox.append(node('span',line));
|
||||
}
|
||||
resumo.replaceChildren(node('h4','Resumo do pedido'), ...rows, ...(quote.prumo?.length?[prumoBox]:[]));
|
||||
}
|
||||
function esqueletoPagamento() {
|
||||
const linhas=['skel skelLinha','skel skelLinha','skel skelLinha curta'].map(c=>node('div',null,c));
|
||||
|
||||
@@ -414,6 +414,9 @@ main{padding:0}
|
||||
.dl dt{font-size:12.5px;color:var(--tx3)}
|
||||
.dl dd{margin:0;font-size:14px;font-weight:550;overflow-wrap:anywhere}
|
||||
.inotes{display:flex;flex-direction:column;gap:7px;margin-top:18px}
|
||||
.prumo{border:1px solid var(--ln2);border-radius:9px;padding:7px 10px;background:var(--sf3);font-size:12px;color:var(--mut)}
|
||||
.prumo summary{cursor:pointer;color:var(--tx);font-weight:600}
|
||||
.prumo p{margin:5px 0 0;line-height:1.35}
|
||||
.inote{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:var(--tx2)}
|
||||
.inote .i{margin-top:2px;color:var(--tx3)}
|
||||
.inote.ok .i{color:var(--mine)}
|
||||
|
||||
@@ -1981,6 +1981,16 @@ function itemCard(order,item,index){
|
||||
notes.append(itemNote(done?'Arquivo final aprovado':'Falta aprovar o arquivo final',done?'ok':'warn'));
|
||||
}
|
||||
if(order.treated?.items.includes(index))notes.append(itemNote('Arte tratada: '+TREATED_NOTE.charAt(0).toLowerCase()+TREATED_NOTE.slice(1)+' Aprovado por '+order.treated.by+'.'));
|
||||
// O que o Prumo fez (front 6): the actions that happened, before the
|
||||
// designer opens the file. Multi-item orders show each item's own lines.
|
||||
const multi=order.snapshot.items.length>1, prefix=multi?'Item '+(index+1)+': ':'';
|
||||
const prumoLines=(order.prumo||[]).filter(line=>!multi||line.startsWith(prefix)||line.startsWith('Prova do'))
|
||||
.map(line=>line.startsWith(prefix)?line.slice(prefix.length):line);
|
||||
if(prumoLines.length){
|
||||
const block=node('details',undefined,'prumo');block.append(node('summary','O que o Prumo fez'));
|
||||
prumoLines.forEach(line=>block.append(node('p',line)));
|
||||
notes.append(block);
|
||||
}
|
||||
if(notes.children.length)info.append(notes);
|
||||
const links=node('div',undefined,'links');
|
||||
const dl_=(text,uid)=>{const b=downloadButton(text,download(uid),'btn');return b;};
|
||||
|
||||
@@ -405,6 +405,9 @@ html:is([data-rota="pagamento"],[data-rota="pix"]) .pagGrid{display:grid;grid-te
|
||||
.pagResumo .l span{color:var(--texto2)}
|
||||
.pagResumo .tot{display:flex;justify-content:space-between;align-items:baseline;border-top:1px solid #EFEFEF;margin-top:10px;padding-top:12px}
|
||||
.pagResumo .tot b{font-family:"Inter",sans-serif;font-weight:900;font-size:24px}
|
||||
.prumoResumo{margin-top:12px;border-top:1px solid #EFEFEF;padding-top:12px;font-size:13px;line-height:1.45;color:var(--texto2)}
|
||||
.prumoResumo b{display:block;color:var(--texto);font-family:"Inter",sans-serif;font-size:14px;margin-bottom:5px}
|
||||
.prumoResumo span{display:block;padding:1px 0}
|
||||
.metodos{display:grid;grid-template-columns:1fr;gap:10px;max-width:420px;margin-bottom:20px}
|
||||
.metodo{height:56px;display:flex;align-items:center;gap:12px;padding:0 16px;border:2px solid var(--linha);border-radius:var(--raio2);background:#fff;color:var(--preto);font-family:"Inter",sans-serif;font-weight:700;font-size:16.5px;text-align:left;cursor:pointer}
|
||||
.metodo::before{content:"";width:18px;height:18px;flex-shrink:0;border-radius:50%;border:2px solid #B5B8BD;box-sizing:border-box}
|
||||
|
||||
Reference in New Issue
Block a user