feat: approving the final file is the Kanban's next step, at the top of the order
All checks were successful
Build and deploy / Validate source (push) Successful in 1m11s
Build and deploy / Integration suite on a real stack (push) Successful in 3m7s
Build and deploy / Secret scan and release gate (push) Successful in 10s
Build and deploy / Publish images (push) Successful in 1m24s

An order in Arte tratada without an approved final showed "Mover para Fila
de impressão" as its main button, which the server refused, while the
approval sat folded at the bottom of the panel. Now the top of the panel
says what comes next: approve the final, with the file that would be
printed and a link to download it. A customer's correction or the
generated PDF is approved with one click; otherwise the upload form opens
in place. Once approved, the main button becomes the move to the queue.

A customer's correction can be approved as the final itself, without
downloading and sending it back. The board carries each order's approved
items and corrections, so cards say "Falta aprovar o final", "Correção
recebida" or "Final aprovado", and the item card shows the correction
instead of the stale reason the generated file could not be made.

Going back a stage is a small link, and cancelling or deleting a test
order moved into a "⋯" menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-10-05 10:06:03 -03:00
parent 4b804a2c85
commit a5c1ca53c0
6 changed files with 231 additions and 74 deletions

View File

@@ -109,7 +109,10 @@ main{padding:0 24px 24px}
.drawer{position:fixed;inset:0;z-index:10;display:flex;justify-content:flex-end}
.scrim{position:absolute;inset:0;background:rgba(8,9,11,.6)}
.panel{position:relative;width:min(600px,100vw);height:100%;background:var(--panel);border-left:1px solid var(--line2);display:flex;flex-direction:column}
.panel-head{padding:20px 24px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:14px}
.panel-head{padding:20px 24px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:14px;flex-shrink:0}
/* The actions never shrink to make room: the body below scrolls instead. */
.panel-head>*,.panel-actions>*{flex-shrink:0}
.panel-actions{display:flex;flex-direction:column;gap:10px}
.panel-head .row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.panel-head .num{font-size:22px;font-weight:800}
.stage{font-size:13.5px;font-weight:700;padding:4px 10px;border-radius:999px;background:color-mix(in srgb,var(--c) 18%,transparent);color:var(--c)}
@@ -121,6 +124,18 @@ main{padding:0 24px 24px}
.steps li.now{color:var(--tx);font-weight:700}.steps li.now::before{background:var(--c)}
.moves{display:flex;gap:10px;flex-wrap:wrap}
.moves .primary{flex:1}
.moves{align-items:center}
/* Going back is rare: a link, not a button the size of going forward. */
.linkbtn{background:none;border:0;padding:6px 2px;color:var(--muted);font:inherit;font-size:13.5px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.linkbtn:hover{color:var(--tx)}
.morewrap{position:relative;margin-left:auto}
.more{min-width:44px;font-weight:800;letter-spacing:1px}
.menu{position:absolute;right:0;top:calc(100% + 6px);z-index:5;min-width:200px;display:flex;flex-direction:column;padding:6px;
background:var(--card2);border:1px solid var(--line3);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.4)}
.menu[hidden]{display:none}
.menuitem{background:none;border:0;text-align:left;padding:9px 10px;border-radius:7px;font:inherit;font-size:14px;color:inherit;cursor:pointer}
.menuitem:hover{background:rgba(255,255,255,.06)}
.menuitem.bad{color:var(--bad)}
.reason{display:flex;flex-direction:column;gap:8px}
.panel-body{flex:1;overflow:auto;padding:20px 24px 32px;display:flex;flex-direction:column;gap:24px}
.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@@ -139,8 +154,13 @@ main{padding:0 24px 24px}
.buttons{display:flex;gap:8px;flex-wrap:wrap}
.finals{display:flex;flex-direction:column;gap:12px}
.finals .rev{font-size:14px;display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid var(--line2);border-radius:10px}
.finals form{display:flex;flex-direction:column;gap:12px;padding:14px;border:1px solid var(--line2);border-radius:12px}
.finals .slot{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.finalform{display:flex;flex-direction:column;gap:12px;padding:14px;border:1px solid var(--line2);border-radius:12px}
.finalform[hidden]{display:none}
.nextstep .finalform{margin-top:12px;background:var(--panel)}
.finalform .linkbtn{align-self:center}
.finalform input[type=file]{color:var(--muted);font:inherit;font-size:13.5px;font-weight:500}
.finalform input[type=file]::file-selector-button{height:34px;padding:0 12px;margin-right:10px;border-radius:8px;border:1px solid var(--line2);background:var(--card2);color:var(--tx);font:inherit;font-size:13.5px;font-weight:600;cursor:pointer}
.finalform .slot{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.timeline{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.timeline li::before{content:"";width:8px;height:8px;margin-top:6px;border-radius:999px;background:var(--c,var(--muted));flex-shrink:0}
@@ -331,7 +351,15 @@ a.zap{display:inline-flex;align-items:center;gap:4px;vertical-align:bottom}
.nextstep>div{flex:1;display:flex;flex-direction:column;gap:2px}
.nextstep b{font-size:14.5px}
.nextstep span{font-size:13.5px;color:var(--muted)}
.nextmark{width:32px;height:32px;flex-shrink:0;border-radius:9px;background:rgba(255,139,43,.14);color:var(--accent-tx);display:flex;align-items:center;justify-content:center;font-weight:800}
.nextstep .nextmark,.nextmark{width:32px;height:32px;flex-shrink:0;border-radius:9px;background:rgba(255,139,43,.14);color:var(--accent-tx);display:flex;align-items:center;justify-content:center;font-weight:800}
.nextstep.lead{align-items:flex-start;border-style:solid;border-color:rgba(255,139,43,.45);background:rgba(255,139,43,.06)}
.readyfiles{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.readyfile{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 12px;background:var(--card2);border-radius:8px}
.readyfile .faint{flex-shrink:0;font-size:13px;color:var(--faint)}
.readyfile b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13.5px}
.stepactions{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.btn.small{height:30px;padding:0 10px;font-size:13px}
.subactions{display:flex;margin-top:-4px}
.timeline li{display:flex;align-items:baseline;gap:10px;font-size:14px}
.timeline li div{flex:1;min-width:0}
.timeline small{flex-shrink:0;color:var(--faint);font-size:13px}