feat: "Abrir e conferir", the print file full screen, in pieces (item 7)
All checks were successful
Build and deploy / Validate source (push) Successful in 9s
Build and deploy / Integration suite on a real stack (push) Successful in 4m28s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m17s
All checks were successful
Build and deploy / Validate source (push) Successful in 9s
Build and deploy / Integration suite on a real stack (push) Successful in 4m28s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m17s
The card's "Abrir e conferir" opens the order's print file full screen (Dropstar's third round, item 7): zoom up to 100% real (one file pixel, one screen pixel), the position in cm, the order's files one after the other without closing, and the background behind the transparency light, dark or checkered, remembered (Dropstar, 2026-10-30). Closed in Arte recebida, it asks "Está OK?": the class of each item, prefilled with the measure, then "Mover para Arte conferida" (the final approved, the class kept, the card moved) or "Tratar a arte". A 15 m film is loaded like a map: while the PNG is written, its strips of 512 rows go to storage at 100% and at each halving (app/printtiles.py, originals/tiles/<upload>/), and the viewer (web/kanban-viewer.js) fetches only those on screen. They go when their file expires. Storing a print file that fails is now an attempt like a failed render, not a claim held for an hour. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -104,6 +104,17 @@ def run():
|
||||
assert row['detail']['footer'].startswith('DROPSTAR · Pedido DTF-%d · Item 1/1 · ' % order['number']), row['detail']
|
||||
print('PASS: paid order generated a 57 x 10 cm PNG print file with both copies and its footer')
|
||||
|
||||
# Item 7: "Abrir e conferir" gets the file in pieces, the first of which is
|
||||
# the top of the film, then the original.
|
||||
view = client.call('/operator/orders/' + order['id'] + '/view', operator=True)['files']
|
||||
assert [f['name'] for f in view] == ['DTF-%d-item-1.png' % order['number'], 'Original'], view
|
||||
manifest = view[0]['manifest']
|
||||
assert (manifest['width'], manifest['height']) == film.size and manifest['levels'][0]['strips'] >= 1, manifest
|
||||
with urlopen(manifest['urls'][0][0], timeout=30) as response:
|
||||
strip = Image.open(io.BytesIO(response.read()))
|
||||
assert strip.width == film.width and strip.getpixel((px(10), px(3))) == (220, 30, 60, 255)
|
||||
print('PASS: the viewer gets the print file in pieces')
|
||||
|
||||
# The automatic folder, downloading on arrival, gets the generated file
|
||||
# before anyone approves it; at the queue only, it does not.
|
||||
oid = order['id']
|
||||
|
||||
Reference in New Issue
Block a user