feat: machines share the work by metres open, with an optional limit, their load on show and operators set from the machine
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 3m31s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 59s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-10-20 10:28:13 -03:00
parent df30046027
commit 53c6234feb
10 changed files with 380 additions and 81 deletions

View File

@@ -466,6 +466,31 @@ a.zap{display:inline-flex;align-items:center;gap:4px;vertical-align:bottom}
.danger-text{color:var(--bad)}
.machine-select{height:36px;padding:0 10px;border-radius:8px;border:1px solid var(--line3);background:var(--bg);color:var(--tx);font:inherit;font-size:14px}
.card .machine{color:var(--accent-tx)}
.chip.over{border-color:var(--bad-line);color:var(--bad)}
/* Chips that are checkboxes: products, machines, operators. */
.pills{display:flex;flex-wrap:wrap;gap:8px}
.pill{position:relative;display:inline-flex;align-items:center;height:34px;padding:0 12px;border-radius:8px;border:1px solid var(--line2);color:var(--muted);font-size:14px;font-weight:600;cursor:pointer;user-select:none}
.pill input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.pill:has(input:checked){border-color:var(--accent);background:rgba(255,139,43,.12);color:var(--accent-tx)}
.pill:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.unit{display:flex;align-items:center;gap:10px}
.unit input{flex:1;min-width:0}
.unit span{font-weight:500}
/* Machines: one card each, with the metres open against its limit. */
.mtiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:12px}
.mtile{display:flex;flex-direction:column;gap:8px;padding:16px 18px;border:1px solid var(--line2);border-radius:12px;background:var(--card)}
.mtile.off{opacity:.6}
.mtile-head{display:flex;align-items:center;gap:10px}
.mtile-head b{font-size:15.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mtile-head .integ-state{margin-left:auto}
.mtile .meta{font-size:13.5px;color:var(--muted)}
.mbar{height:8px;border-radius:999px;background:var(--line2);overflow:hidden;margin-top:4px}
.mbar span{display:block;height:100%;border-radius:inherit;background:var(--ok)}
.mbar.full span{background:var(--warn)}
.mbar.over span{background:var(--bad)}
.mload{display:flex;justify-content:space-between;gap:8px;font-size:13.5px;color:var(--tx2)}
.mload.over{color:var(--bad);font-weight:600}
.mtile-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:4px}
/* Fila de impressão's tools: Baixar. */
.coltools{display:flex;gap:6px;flex-shrink:0}