From 8387d7ef3a5c17dbfb7b0b51053f8833787534e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Tue, 13 Oct 2026 15:18:16 -0300 Subject: [PATCH] feat: the "Arte tratada" stage is now "Arte conferida" With "Aguardando contato" as a mark on the card, the stage only means the team has checked the file, and its name now says so. The Kanban and the customer's Minha conta both take stage names from the server, so this one name changes both. Co-Authored-By: Claude Opus 5.5 --- app/runtime.py | 2 +- docs/LOCAL_SETUP.md | 4 ++-- tests/browser_test.mjs | 2 +- web/kanban.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/runtime.py b/app/runtime.py index 4894a2d..1e35748 100644 --- a/app/runtime.py +++ b/app/runtime.py @@ -46,7 +46,7 @@ BOARD_QUOTE_LIMIT = int(os.environ.get('BOARD_QUOTE_LIMIT', '100')) PART_BYTES = int(os.environ.get('UPLOAD_PART_BYTES', '8388608')) if not 5242880 <= PART_BYTES <= 67108864: raise RuntimeError('UPLOAD_PART_BYTES must be between 5 and 64 MiB') -STATES = {'rec': 'Arte recebida', 'tra': 'Arte tratada', 'fil': 'Fila de impressão', +STATES = {'rec': 'Arte recebida', 'tra': 'Arte conferida', 'fil': 'Fila de impressão', 'imp': 'Imprimindo', 'cor': 'Correção', 'fin': 'Finalizado'} TRANSITIONS = {'rec': ['tra','cor'], 'tra': ['fil','cor'], 'fil': ['imp','cor'], 'imp': ['fin','cor'], 'cor': ['rec','tra'], 'fin': []} diff --git a/docs/LOCAL_SETUP.md b/docs/LOCAL_SETUP.md index 4541333..da40841 100644 --- a/docs/LOCAL_SETUP.md +++ b/docs/LOCAL_SETUP.md @@ -71,7 +71,7 @@ operator interfaces. payment occurs. 7. Click **Atualizar** on the Kanban. The paid order appears in **Arte recebida** on the **Produção** tab. Click its card to open the order panel, - then **Mover para Arte tratada** (dragging the card to a column also works). + then **Mover para Arte conferida** (dragging the card to a column also works). In the panel's **Arquivos finais**, select the manually prepared final file for every item, enter a review note, tick the confirmation and click **Aprovar arquivos finais**. Use the harmless fixture again only for this @@ -80,7 +80,7 @@ operator interfaces. preselected instead (see "Print files"). Continue with the panel's main button through **Fila de impressão → Imprimindo → Finalizado**. **Pedir correção** asks for the reason the customer will see; from **Correção** the - order returns to **Arte recebida** or **Arte tratada**. A move made by + order returns to **Arte recebida** or **Arte conferida**. A move made by mistake is undone with **Voltar para …**: one stage back, with an internal reason recorded in the history. The customer is not notified, approved finals stay, and "produção iniciada"/"pedido pronto" are sent only once per diff --git a/tests/browser_test.mjs b/tests/browser_test.mjs index 732b738..76a29d4 100644 --- a/tests/browser_test.mjs +++ b/tests/browser_test.mjs @@ -183,7 +183,7 @@ try{ await kanban.click('[data-tab="board"]'); await kanban.click(`[data-card="${oid}"]`); await waitFor(()=>kanban.eval(`!!document.querySelector('[data-order="${oid}"] [data-move]')`),'order panel'); - for(const [title,state] of [['Arte tratada','tra'],['Fila de impressão','fil'],['Imprimindo','imp'],['Finalizado','fin']]){ + for(const [title,state] of [['Arte conferida','tra'],['Fila de impressão','fil'],['Imprimindo','imp'],['Finalizado','fin']]){ if(state==='fil'){ // Without an approved final, the next step at the top is approving it, // not a move the server would refuse. The CDR has no ready file, so diff --git a/web/kanban.js b/web/kanban.js index 24b3749..a08b55e 100644 --- a/web/kanban.js +++ b/web/kanban.js @@ -972,7 +972,7 @@ function finalsSection(order,revisions,section){ if(!revisions.length)section.append(node('p','Nenhum arquivo final ainda.','faint')); // Approving is the button at the top; this is for replacing an approved // final, or sending one before the art is marked as handled. - // Before approval in Arte tratada, the step at the top is the way in. + // Before approval in Arte conferida, the step at the top is the way in. if(!may('produce')||!['rec','tra','cor'].includes(order.state)||(order.state==='tra'&&!finalDone(order)))return; const form=finalForm(order,readyFinals(order).map(()=>null)); const open=node('button',finalDone(order)?'Enviar nova versão':'Enviar arquivo final','btn ghost');open.type='button';