feat: each machine's sheet, counters and alerts (front 1a)
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 6m20s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 1m11s

The machine's name in Imprimindo (and "Ficha" in Usuários › Máquinas)
opens its sheet: metres since the last cleaning and since the last film
change, each supply's estimate, pending alerts and the entries. The room
enters supplies (film, ink by colour, powder; a supply without cost
takes the last one), parts (cap, damper, head, wiper, other) and events
(cleaning, head alignment, a stop with reason and minutes). Gestão types
the price, installation date and supply minimums.

Alerts appear when someone pulls the next card onto the machine, never
mid-print: 10 m since the last cleaning, 20 m after a film change
without aligning the head, and a supply at its minimum. Marked done it
records the event; postponed once it lets one more card through. The
server refuses the pull otherwise. Counters start when the sheet went
live (machines.log_since), not from everything printed before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-09 12:19:31 -03:00
parent b280e0cfa6
commit 29518795a5
12 changed files with 915 additions and 11 deletions

View File

@@ -255,6 +255,9 @@ main{padding:0}
.lanehead b{font-weight:650;color:var(--tx);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lanehead span{margin-left:auto;color:var(--tx3);white-space:nowrap}
.lanehead.mine,.lanehead.mine b,.lanehead.mine span{color:var(--mine)}
/* The machine's head opens its sheet; a due alert shows a warning dot. */
.lanehead[role="button"]{cursor:pointer}
.lanealert{width:8px;height:8px;flex:none;border-radius:999px;background:var(--warn)}
.lanehead+.card{margin-top:-2px}
.card+.lanehead,.freeslot+.lanehead{margin-top:8px}
.freeslot{display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:8px 14px;border:1.5px dashed var(--ln2);border-radius:11px;font-size:12.5px;color:var(--tx3);text-align:center}
@@ -503,6 +506,7 @@ main{padding:0}
.dlghead p{margin:6px 0 0;color:var(--tx2);font-size:14px}
.dlghead .btn.sq{margin-top:-4px;margin-right:-8px}
.fld{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;color:var(--tx2)}
.fld[hidden]{display:none}
.fld input,.fld select,.fld textarea,.fact select,.decide input,.inp{height:42px;padding:0 12px;border-radius:9px;border:1px solid var(--ln2);background:var(--bg);font-size:14px;font-weight:500;color:var(--tx);outline:none;font-family:inherit;width:100%}
.fld textarea{height:96px;padding:10px 12px;resize:vertical}
.fld input:focus,.fld select:focus,.fld textarea:focus,.fact select:focus,.decide input:focus,.inp:focus{border-color:var(--acc);box-shadow:0 0 0 3px color-mix(in srgb,var(--acc) 18%,transparent)}
@@ -853,6 +857,13 @@ select.inp{appearance:none;-webkit-appearance:none;padding-right:32px;background
.modal .mli{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid var(--ln)}
.modal .mli:last-child{border-bottom:0}
.modal .mli .grow{flex:1;min-width:0}
/* The machine sheet: entries scroll inside a fixed height, alerts are rows. */
.sheetentries{height:240px;overflow:auto}
.sheetalert{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid var(--ln);font-size:13.5px}
.sheetalert:last-child{border-bottom:0}
.sheetalert .grow{flex:1;min-width:0}
.sheetalert .grow b{display:block;font-weight:600;color:var(--tx)}
.sheetalert .grow .sub{font-size:12.5px;color:var(--tx3)}
#payments .table td .who{gap:10px}
/* Lists never change the page's size: a panel keeps its height and its