fix: a proof card shows the film it prints, the Kanban's tooltips stay whole on screen, and a session that changed is a warning (DTF-WEB-26)
A proof card bills 0 m: the board now carries proof_film_cm per item (the same measure as Números), the card reads 'prova · 0,15 m', the column totals count it, and the drawer says 'prova sem custo', the proof's film and 'Folha do pedido'. The [data-tip] tooltips were CSS boxes inside the card, cut by the column and over the card below; one box fixed to the window now sits under the element, or over it near the bottom, inside the screen. 'Sua conta ou sessão mudou' is guidance shown as a warning, so it stays out of Sentry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1112,12 +1112,15 @@ function itemCard(order,item,index){
|
||||
info.append(node('h3',productName(item)));
|
||||
const dl=node('dl',undefined,'dl');
|
||||
const pair=(k,v)=>{if(v===null||v===undefined||v==='')return;const d=node('div');const dd=node('dd');dd.append(v);d.append(node('dt',k),dd);dl.append(d);};
|
||||
pair('Metros cobrados',metres(item.billed_metres));
|
||||
const proof=!!order.snapshot.proof_of, proofCm=Number(order.proof_film_cm?.[String(index)]||0);
|
||||
pair('Metros cobrados',metres(item.billed_metres)+(proof?' · prova sem custo':''));
|
||||
// A proof prints a stretch of the order's sheet, not the whole of it.
|
||||
pair('Filme da prova',proof&&proofCm?metres(proofCm/100):null);
|
||||
pair('Valor do metro',item.unit_cents?money(item.unit_cents)+manualExtra(item):null);
|
||||
const g=node('span',undefined,'gradeline');g.append(gradePill(item.grade));pair('Nota da arte',g);
|
||||
pair('Contração',contractionControl(order,index));
|
||||
pair('Folha',sheetSize(spec));
|
||||
pair('Peças',spec?String(spec.placements.length):null);
|
||||
pair(proof?'Folha do pedido':'Folha',sheetSize(spec));
|
||||
pair('Peças',spec&&!proof?String(spec.placements.length):null);
|
||||
pair('Menor resolução',row?.status==='ready'&&row.detail?.min_dpi?row.detail.min_dpi+' DPI':null);
|
||||
pair('Arquivos',spec&&spec.sources.length>1?String(spec.sources.length):null);
|
||||
info.append(dl);
|
||||
|
||||
Reference in New Issue
Block a user