feat: Kanban badges: grade pills, product and warning badges, facts in a grid
All checks were successful
Build and deploy / Validate source (push) Successful in 11s
Build and deploy / Integration suite on a real stack (push) Successful in 3m17s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m13s
All checks were successful
Build and deploy / Validate source (push) Successful in 11s
Build and deploy / Integration suite on a real stack (push) Successful in 3m17s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m13s
One badge system on every screen (canvas "Kanban DTF — redesign", v2). The grade is a pill coloured by the price ladder's bands (90/75/60/40); product, status and warnings are pills with text, so colour never carries meaning alone. Quote rows: grade, product, metres, delivery city and age on one line; the "Aprovada automaticamente" line is gone (only a team review is noted), and a dot marks quotes from the last ten minutes. The quote detail has a status badge, the total in large type, a copyable CNPJ, a WhatsApp button, facts in a grid and items and freight apart. Board cards carry the grade, product, place and a row of warning badges; columns take their stage colour and filter chips their counts. The order panel shows what was paid and whether it is stalled at the top, customer and delivery as cards, a print problem as a callout, the final-file form behind a "next step", and dates on the right of the history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -138,7 +138,8 @@ try{
|
||||
await waitFor(()=>kanban.eval('document.querySelectorAll("#quote-filters button").length===2'),'quote filters');
|
||||
await kanban.eval('document.querySelectorAll("#quote-filters button")[1].click()');
|
||||
await waitFor(()=>kanban.eval(`!!document.querySelector('[data-quote-pick="${qid}"]')`),'approved quote listed on Kanban');
|
||||
assert.equal(await kanban.eval(`document.querySelector('[data-quote-pick="${qid}"]').textContent.includes('Aprovada automaticamente')`),true);
|
||||
// Approved by the Site itself; the row shows the grade instead of saying so.
|
||||
assert.equal(await kanban.eval(`quoteRows.find(q=>q.id==='${qid}').auto_approved && !!document.querySelector('[data-quote-pick="${qid}"] .grade')`),true);
|
||||
assert.equal(await site.eval('pedido[0].production.sources[0].copies'),1);
|
||||
await site.eval('pedido[0].production.sources[0].copies=2;pintaPedido()');
|
||||
await waitFor(async()=> (await site.text()).includes('O carrinho mudou'),'same-price production edit invalidates quote');
|
||||
|
||||
Reference in New Issue
Block a user