feat: review photo or video in Revisão (front 2)
All checks were successful
Build and deploy / Validate source (push) Successful in 8s
Build and deploy / Integration suite on a real stack (push) Successful in 6m4s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m6s

In Revisão the card gets "Revisar": a photo or a video of up to 30 s of
the printed sheet, from the computer's or the phone's camera in the
browser, or a file already recorded. It is attached to the order as
DTF-<n>-revisao-<seq> with when and who, kept 180 days, and copied by
the computers with the order folders to Kanban/Revisões/. A photo needs
1600 px on its longer side. An order above 1 m cannot reach Finalizado
without one. In Finalizado the customer's order page shows the photo.

The Revisor, Gestão and the administrators take it (capability
"inspect"). Dialogs opened from a card's face or the board (Revisar,
Editar tempos) now show over the page when the order panel is closed;
inside the closed panel they were invisible.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-09 11:39:15 -03:00
parent 5aafd9ee91
commit b280e0cfa6
18 changed files with 725 additions and 22 deletions

View File

@@ -273,6 +273,21 @@ main{padding:0}
.card:focus-visible,.mini:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.card-open{display:inline-flex;align-items:center;justify-content:center;gap:5px;align-self:flex-start;min-height:28px;padding:4px 8px;border:1px solid var(--ln2);border-radius:7px;background:var(--sf3);color:var(--tx);font:inherit;font-size:11px;font-weight:600;cursor:pointer}
.card-open:hover,.card-open:focus-visible{border-color:var(--acc);color:var(--acc)}
.card-open-row{display:flex;flex-wrap:wrap;gap:6px}
/* A review photo or video: live camera, the preview, and the order's list. */
.reviewcam{width:100%;aspect-ratio:16/9;object-fit:contain;background:var(--bg);border:1px solid var(--ln2);border-radius:10px;display:block}
.reviewpreview{width:100%;aspect-ratio:16/9;background:var(--bg);border:1px solid var(--ln2);border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.reviewpreview img,.reviewpreview video{width:100%;height:100%;object-fit:contain;display:block}
.reviewcontrols{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.reviewcontrols label.btn{cursor:pointer}
.reviewtime{font-size:12px;color:var(--tx3);font-variant-numeric:tabular-nums}
.reviewmsg{flex:1;min-width:0;margin:0;font-size:13px;color:var(--tx2)}
.reviewmsg.bad{color:var(--bad)}
.reviewlist{display:flex;flex-direction:column;max-height:220px;overflow:auto;border-top:1px solid var(--ln)}
.reviewsec{padding-top:22px;border-top:1px solid var(--ln)}
.reviewrow{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--ln)}
.reviewopen{flex:1;min-width:0;padding:5px 2px;border:0;background:none;color:var(--tx);font:inherit;font-size:13px;text-align:left;cursor:pointer}
.reviewopen:hover,.reviewopen:focus-visible{color:var(--acc)}
.ctop{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:center}
.thumb{width:56px;height:56px;border-radius:8px;padding:4px;border:0;box-shadow:inset 0 0 0 1px var(--ln);background:repeating-conic-gradient(var(--chka) 0 25%,var(--chkb) 0 50%) 0 0/8px 8px}
.thumb img{transition:transform .5s cubic-bezier(.2,.8,.2,1)}