Kept until Finalizado, an old choice would leave out an item corrected after
it (an order back from Revisão, or a second correction). It is now cleared
when the pass to Revisão records it, when a final changes and when the files
are generated again; the next entry to the queue works it out anew. An
integration test follows the whole reprint: first print, one item corrected,
the queue, the hot folder with that item only, Revisão.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The hot folder and the folders' list ordered the parts by name, so a film of
ten parts or more (#81, 91,5 m) would send p10 second. They now follow the
part number. Checked on Postgres 17 with an 11-part film.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The layout sees a ready sheet as one piece, so a part was cut at its length,
through the artwork. Where no gap between pieces is near the limit, the
film is read there: the cut falls in the middle of the nearest clear band of
3 mm, else of the widest clear band (#83's packed sheets have 2 mm between
rows), else on the row with the least ink. A part is never shorter than half
the limit, and the render limit allows one part more.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Tested on Postgres 17: only the orders before Imprimindo whose Prumo approved
part of a film get the rest; orders approved by a person, printing, treated
or with an old final are left alone.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The proof's approval took the print file's first upload as the final, so the
other parts of a film in parts never reached Arte conferida or the hot folder
and were downloaded by hand. It now approves every part, and adds the missing
ones to a first part already approved. A one-off migration completes the
open orders still before Imprimindo. Generated again, the files are named
DTF-130-v2-item-1-p2.png, as Marcus asked, so the FlexiPRINT queue and the
Hoson list never take them for the first ones.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
An order the machine already printed, back in Arte conferida, sends again
only the items whose final changed since the machine took them; the panel's
"Vai para a máquina" shows and changes the choice, and the card says
"Reimpressão". The order stays one card. The pass to Revisão keeps the
items printed, so the machine's metres count only those.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Tiny does not fill the seller on an order created through its API, and it
cannot be set afterwards (order 151250). The existing contact's seller, from
its dados complementares, now goes in the order; it wins over who assembled a
montador Venda. No seller in the registration: the assembler's, or none for a
Site order. A failed reading never holds the order.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A 57 MB sheet failed to decode on a phone (out of memory), so the Site took it
for a file the browser cannot read: +R$ 2,00 a metre and "O navegador não abre
PNG". Its size was already known; it now goes the large-file way.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
On an Android phone site-upload.js never arrived, so recusa() was the page's
#recusa element and the product did not open. The last script now checks each
module, shows "Uma parte do site não carregou" with Atualizar, and tells
Sentry which file is missing.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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>
Real failures, the server's refusals and unreadable files, stay red and reach Sentry.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The Site stacked a ready sheet's copies with nothing between them (#81's were
0,3 mm apart). Now 8 mm separates each copy and each sheet from the next, and
the metres include it, as Marcus confirmed. A new cart without the gap is
refused with the reason; a quote made before is still reviewed.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The proof keeps its 15 cm window on the finest stroke and adds 5 cm samples of
the colours that window lacks (12 hues, grey, white, black), 1 cm of clear film
between them, up to 30 cm. The colours are read from the small picture the
Site sends of each file, so a long film is scanned in a moment; without
pictures (a proof cut from a prepared final) it stays the stroke window. #100's
proof caught only its white art.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
operators.roles holds every profile, the main one first; permissions, moves,
the column order and the machine question are the sum. The operator's machine
rules apply only to the moves Operador alone allows, so an Operador who is also
Revisor releases any sheet (D-29 does not block, Marcus). Usuários gets
"Outros perfis" chips next to the main profile.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The server refuses a cart (and a review) with UV and textile items; the Site
says so as soon as the customer opens a product of the other line, or adds it,
with "Finalizar este pedido" and "Trocar o carrinho por este item". Basic
and premium textile still go together. Proof cards copy their order's items,
so they follow.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- 19/1F: the board carries the approved proof's machine; the pull and the
order's machine field keep to it and say why.
- 17/1E: a network drop while a download or an answer arrives counts as
unreachable/offline, warned first like the others.
- 16: no folder picker (Safari): said in a line.
- 1A, 1J/1K, 1D, 18: guidance and expected refusals (pull to another machine,
someone already on the machine, e-mail in use, coupon) are not errors.
- 1B: an empty file is refused on the page.
- API-C: the Tiny's rate limit reaches Sentry only if it repeats.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
#81's 91,5 m took 6 hours to generate. The PNG writer ran Pillow's row filters
and then deflate at level 6; no filter at level 1 gives the same size in under
half the time, for the file and the viewer's strips alike (1 m: 34 s -> 13 s).
Its Prova OK came while the file was still being generated, so the order stayed
in Arte recebida. The approval now also runs when the file finishes.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
R2 answered HeadBucket with a 500 now and then (34 times from 20/11) and
/health answered "Database or storage unavailable" although the database
was fine. The database down is still a 503 at once. Storage is asked
twice, 0,3 s apart, within the container check's 3 s; failing, the
answer says "storage": "unavailable" with 200 and logs a warning; after
5 minutes in a row it is a 503 and one error for Sentry.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The panel offered the customer's correction (or an original) as ready to
approve, and the server refused it as not a transparent 300 DPI PNG,
an error for Sentry. POST /orders/{id}/final-check reads the header of
the order's own files with the same check as the approval and answers
200 with the problems; "Aprovar arquivo final" asks it first and, when a
file cannot be a final, says why and to use "Tratar a arte".
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
65f8dd2 made the order's document the payer of every card payment, which
could differ from the document inside the card token and raise refusals.
The card form now opens with the order's CPF or CNPJ (Card Payment Brick
initialization.payer.identification), so both carry it. A valid document
the customer types there instead (someone else's card) is the payer, as
the token says; a placeholder such as 999.999.999-99, or none, gives way
to the order's. The order's document always rides in the payment's
metadata for finance, and the order's name goes as first and last name.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Marcus, 2026-11-18: finance reconciles the payment by the customer and
the invoice is issued to them; half the payments showed 999.999.999-99
and no name. The payer now always carries the order's CPF or CNPJ, the
first and last name from the order and the e-mail. The card form's
document is no longer sent by the Site nor used (the cardholder's data
travel in the card token); the field stays accepted for pages loaded
before.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
R2 answered 503 while a print file tile of #53 was stored, and botocore's
two tries ran out. The worker's own reads and writes (store, fetch) now
use a client with up to 10 tries in standard mode, about two minutes of
backoff; requests a person waits on keep two. A storage failure that
still happens is a warning while the job has attempts left and an error
on the last one.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- A generated file, or the customer's correction, that was this item's
final and stopped counting (Correção, a step back) is turned back on
when approved again, instead of "Este arquivo já está no pedido";
other files keep that rule.
- A lane drop, or a machine chosen before, that does not print the
order's product says "A <máquina> não imprime este produto." on the
board and the card stays in Arte conferida, as the chooser filters.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Between 96 and 199 DPI the server asks for the resolution note, as it
should; the test sheet is now at the normal 300 DPI.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The server refused the 25 DPI test sheet before payment ("abaixo do
mínimo de 96 DPI"), as it should.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
End to end on the real stack: a 27 x 30 cm UV PNG with 20 cm of art in
the middle, quoted with the 4,5 cm the Site cuts above and below, paid;
the worker's PNG is 21 cm plus the footer, transparent 0,5 cm above and
below the art, and the Prumo report says "Faixas vazias cortadas: 9,0 cm".
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Marcus, 2026-11-18: "Pago fora do site › Crédito do cliente" maps to the
forma de recebimento CREDITO PRE-PAGO (987762591), and the order also
gets the marcador CREDITO PRE-PAGO. CORREÇÃO DTF, refused by Tiny for
#42, is for correction orders only. A retry adds only the marcadores
the order is missing.
The outbox computes the forma when it delivers, so #42's queued sale
goes through on its next retry after the deploy.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The coupon form checks its code on save and throws a plain Error with
the reason; formDialog showed every error in red, so a typing mistake
became an issue. A plain Error without an API status is now a notice;
the API's refusals (already reported by apiError) and broken code stay
red and reach Sentry.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The artwork browser test still expected 2 × 0,342 m for the test sheet
with 19 cm empty at the bottom; with the empty strips cut (2d8d7c7) each
copy is the trimmed height.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Step 2 of trimming empty strips (Marcus, 2026-11-18): the Site.
- The sheet check finds where the ink starts and ends (each map cell
keeps its first and last ink row) and returns the empty strips.
- A ready PNG sheet whose strip passes 1 cm loses it but for 0,5 cm, as
the layout keeps; its metres drop to what is left, and the cart sends
trim_top_cm and trim_bottom_cm with the source, which the server prints
without (06f4ec9). Spaces between artworks stay.
- The sheet's card says "Removemos N cm vazios do fim do arquivo.
Cobrado: X m." (with several sheets or copies: "Esta folha fica com
X m.").
- The thinnest stroke's place for the proof counts from where the cut
starts.
Checked in Chromium against the page: a 100 cm UV sheet with art from 20
to 45 cm leaves 25,98 cm, a 3 m sheet (the tall-PNG path) 71 cm, two
sheets each say their own metres; the cart's production passes the
server model and prints 25,98 cm with the art whole.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Step 1 of trimming empty strips (Marcus, 2026-11-18): the server side.
- ProductionSource has trim_top_cm and trim_bottom_cm (default 0); only
a measured finished sheet may carry them, and length_cm is what is
left, billed and printed.
- The generator leaves those file rows out (whole decode and banded PNG
reading), and the proportion check compares the art with what is left.
A PDF with a cut, or a cut that does not match the file, goes to hand
preparation.
- The Prumo report says "Faixas vazias cortadas: N cm".
The Site does not send the cut yet (step 2).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Enter in the coupon field sends the cart like "Aplicar" and "Pagar"; with
a quality note still unconfirmed, the guard's expected message was red
and reached Sentry. It is now a warning, and the page scrolls to the
first note to confirm.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Tiny refused #42 fourteen times ("Forma de recebimento não está
habilitada": the customer-credit forma, CORREÇÃO DTF, is disabled in
Dropstar's Tiny) and only Integrações showed it. The outbox now logs the
refusal as an error on the first failure and every tenth retry, one
message template so Sentry keeps one issue per kind.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A customer's POST /api/uploads failed with "Failed to fetch" before any
part was sent (05:07 UTC): their network, not the Site. The upload now
tries again three seconds later; if that fails too, the file shows
"sem conexão com o servidor. Confira a internet e tente de novo" with
the "Tentar de novo" button, and Sentry hears of it as before.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
#36 is already in Imprimindo. From there the order goes back to Arte
recebida like a card leaving Imprimindo: what Flexi has not taken is
withdrawn from the machine's hot folder (hotfolder.stop), and the step
back is recorded as "Arquivo gerado de novo".
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The first film over 15 m (#36) left a 15 m part of 4,8 GB decoded, which
the FlexiPRINT refuses (#30, 12,3 m and 3,9 GB, printed). PRINT_PART_CM
already sets the part size; an order already generated had no way to get
its new parts.
- POST /orders/{id}/print-files/again (produce): in Arte recebida or Arte
conferida, without a customer correction, the finals that were the
generated files stop counting, the order is back in Arte recebida (a
step back recorded as "Arquivo gerado de novo") and every item is
generated again; one rendering now is left alone.
- The order's "Próximo passo" offers "Gerar de novo" there, with a
confirmation that the final must be approved again.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>