feat: the proof card, machine pull and print file corrections (Dropstar, 05/11)

The proof card owns its final PNG, keeps its parent locked until the seller
answers, enters the queue first, and shares one machine with the parent.
The board no longer assigns a machine at payment; the puller records it.
A stalled print file times out with a card warning and a retry, finished
orders sort by completion, and finals are stored as PNG. The original
download carries the order number (items 0.1, 0.4 to 0.7 and 0.9).
This commit is contained in:
Cauê Faleiros
2026-11-06 10:41:20 -03:00
parent 0fc01315c7
commit d69e326125
20 changed files with 584 additions and 220 deletions

View File

@@ -153,7 +153,8 @@ def run():
assert tester.call('/operator/quotes/' + test_quote + '/test-order', {}, operator=True)['id'] == order['id']
version = order['version']
# Arte conferida, the print queue, takes the order once its final is approved.
final = upload_bytes(tester, b'TEST ORDER FINAL', order_id=order['id'])
from tests.smoke_test import final_png_bytes
final = upload_bytes(tester, final_png_bytes('test order'), name='TEST-ORDER-FINAL.png', order_id=order['id'])
version = tester.call('/operator/orders/' + order['id'] + '/final-files',
{'version': version, 'files': [{'item_index': 0, 'upload_id': final}], 'note': 'Teste'},
operator=True)['version']