fix: review of round 5 against its contracts: a hand-added stamp never joins a referenced line, an open preview reminds only in Arte recebida, previews in the history, the proof in Minha conta

Found re-reading A1-D6 with the interaction contracts: Adicionar merged
into a pasted line and printed its reference; a preview left open after
the card moved or was cancelled kept its flag and the 3 h reminder; the
reject reason said it stays in the history, which only listed moves; the
"com prova" summary (B3) was missing in Minha conta; removing every
line kept the pasted list's batch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-30 15:03:02 -03:00
parent 9e0d33ef47
commit 28c10aabf6
4 changed files with 14 additions and 2 deletions

View File

@@ -30,7 +30,9 @@ const contactWho=order=>(order.contact_by||'')+' em '+when(order.contact_since);
// The redesign previews of an order: each one is sent to the customer and
// waits for the answer; the card counts them.
const previewsOf=order=>order.previews||[];
const openPreview=order=>previewsOf(order).find(p=>!p.decided_at)||null;
// Only a card still in Arte recebida waits for a preview: one left open when
// the card moved on or was cancelled neither shows nor reminds anyone.
const openPreview=order=>order.state==='rec'&&!order.cancelled_at?previewsOf(order).find(p=>!p.decided_at)||null:null;
const previewApproved=order=>previewsOf(order).some(p=>p.result==='approved');
// A preview waiting three hours or more reminds the designer, once per block.
function remindPreviews(orders){