feat: a ready sheet's pieces under 5 mm show on the Kanban card (Marcus, 2026-11-26, #81)
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 7m52s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m29s
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 7m52s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m29s
The Site already counted them and warned the customer; the count now travels with the item (close_pieces) to the card's flags, the order panel and the quote review, so the room sees it before printing. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -220,6 +220,10 @@ class Item(StrictModel):
|
||||
# Residue dots under 2 mm the customer accepted printing on a ready sheet,
|
||||
# rather than erasing them (Dropstar, 2026-10-29): 0 when none.
|
||||
residue_accepted: int = Field(default=0, ge=0, le=1000000, strict=True)
|
||||
# Pieces of a ready sheet under 5 mm from another, as the Site measured
|
||||
# them: shown on the Kanban card so the room sees it before printing
|
||||
# (Marcus, 2026-11-26, #81). 0 when none.
|
||||
close_pieces: int = Field(default=0, ge=0, le=1000000, strict=True)
|
||||
# The thinnest stroke the browser measured, in pixels at 300 DPI, and its
|
||||
# contraction class (Dropstar, 2026-10-30): up to 4 C1, 5 to 19 C2, 20+ C3.
|
||||
stroke_px: int | None = Field(default=None, ge=1, le=10000, strict=True)
|
||||
|
||||
@@ -63,7 +63,7 @@ def approve(c, row, items, reviewer):
|
||||
for item, original in zip(items, draft['items']):
|
||||
if item.mode != original['mode'] or list(map(str, item.uploads)) != original['uploads']:
|
||||
raise HTTPException(422, 'O produto e os arquivos não podem mudar na revisão.')
|
||||
if item.production.model_dump(mode='json') != original['production'] or item.quality_status != original['quality_status'] or item.quality_acknowledged != original['quality_acknowledged'] or item.residue_accepted != original.get('residue_accepted', 0) or item.stroke_class != original.get('stroke_class') or item.stroke_px != original.get('stroke_px') or item.stroke_choice != original.get('stroke_choice') or (item.split and item.split.model_dump()) != original.get('split'):
|
||||
if item.production.model_dump(mode='json') != original['production'] or item.quality_status != original['quality_status'] or item.quality_acknowledged != original['quality_acknowledged'] or item.residue_accepted != original.get('residue_accepted', 0) or item.close_pieces != original.get('close_pieces', 0) or item.stroke_class != original.get('stroke_class') or item.stroke_px != original.get('stroke_px') or item.stroke_choice != original.get('stroke_choice') or (item.split and item.split.model_dump()) != original.get('split'):
|
||||
raise HTTPException(422, 'A montagem e a confirmação do cliente não podem mudar na revisão.')
|
||||
for upload_id in item.uploads:
|
||||
upload = upload_row(c, upload_id, row['owner'])
|
||||
@@ -95,6 +95,7 @@ def approve(c, row, items, reviewer):
|
||||
**({'proof_y_fraction': original['proof_y_fraction']}
|
||||
if original.get('proof_y_fraction') is not None else {}),
|
||||
**({'source_dpi': original['source_dpi']} if original.get('source_dpi') else {}),
|
||||
**({'close_pieces': original['close_pieces']} if original.get('close_pieces') else {}),
|
||||
**({'split': original['split']} if original.get('split') else {})})
|
||||
items_total = cart['items_total']
|
||||
coupon = cart['coupon']
|
||||
|
||||
Reference in New Issue
Block a user