Commit Graph

582 Commits

Author SHA1 Message Date
Cauê Faleiros
41126a42fd feat: a ready sheet prints at its real size, centred on the film, with the customer's confirmation (Marcus, 2026-12-02)
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 7m55s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m43s
Replaces 7111995 (only 57,0 cm entered; a whole order of 56,5-56,9 cm
sheets was refused, DTF-WEB-2C). Marcus's rules, for Arquivo por metro,
Premium (57 cm) and UV (27 cm):
1. A known width up to the film (PNG recording 200 DPI or more, or a PDF
   page) enters at its real size, centred, billed by its real height.
2. Narrower: his warning before the cart, confirmation required
   (Imprimir no tamanho real / Enviar outro arquivo); recorded in the
   Prumo report ("cliente confirmou folha de 35,8 cm no tamanho real") and
   shown in the cart and payment summaries.
3. Wider than the film: refused with his message.
4. Unknown width: taken as the film's, DPI from the pixels; 200 or more
   with a confirmation, under 200 refused with the artes avulsas hint.
Within 0,1 cm of the film counts as the film. The server checks it all
again at checkout (sheet_width_issue, centred placement, size_confirmed).

Also ops.stretched_sheets: the ready-sheet orders since 16/10 laid out
wider than their real width (number, real width, factor), for Marcus.
Contract: output/revisao/contrato-folha-real.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 09:51:38 -03:00
Cauê Faleiros
7af6c9797d fix: loose art nested by shape passes checkout again, and ink on ink goes to hand preparation (DTF-WEB-2B)
All checks were successful
Build and deploy / Validate source (push) Successful in 51s
Build and deploy / Integration suite on a real stack (push) Successful in 8m15s
Build and deploy / Secret scan and release gate (push) Successful in 9s
Build and deploy / Publish images (push) Successful in 1m27s
Since 27/11 (bb6fb14) the checkout refused any crossing rectangles. The Site
nests loose art by its shape (Misturado, and Automático when it saves film),
so rectangles cross where the art is clear, and honest carts were refused
with "Duas peças da montagem ficaram uma sobre a outra". The print file
composes with alpha_composite, so those layouts print right.

Loose art: two pieces in one place are still refused (the stacked-copies
price trick bb6fb14 closed); partial crossing passes. Ready sheets: any
crossing is still refused, sheets are never nested. When the film is
composed, ink landing on ink (alpha > 10 on the same pixel) raises
Unsupported, so the item goes to hand preparation with the reason instead of
printing over itself. Contract: output/revisao/contrato-encaixe-forma.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 09:09:25 -03:00
Cauê Faleiros
cc0db89705 fix: a file the phone can no longer read says so in Portuguese and is picked again (DTF-WEB-2A)
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 7m51s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 58s
Android Chrome threw NotReadableError reading a picked file (from Drive or
Photos, after switching apps); the customer saw the browser's English text
and "Tentar de novo", which reads the same dead file. The upload now says
"não conseguimos ler este arquivo no aparelho. Escolha o arquivo de novo",
the product page's button becomes "Escolher de novo" (the file leaves the
list and the picker opens), and the cart summary shows no retry for it.
upload_retry_test covers it and fails without the fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 18:05:46 -03:00
Cauê Faleiros
961a72c0eb test: the two ready-sheet fixtures record no DPI, as the sheets they stand for (CI run 410)
upload_limits_test sent a 60 px PNG recorded at 300 DPI (0,5 cm) as a ready
sheet and site_admin_test a 2400 px one (20,3 cm) described as a 57 cm sheet;
the 57 cm rule (7111995) refused both, as it should. Without pHYs they are
stretched to the film, which is what both tests are about. All 32
integration suites pass on the local stack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 18:05:46 -03:00
Cauê Faleiros
711199558f feat: a 57 cm ready sheet whose real width is not 57 cm opens a pop-up and is not accepted (Marcus, 2026-12-01)
Some checks failed
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Failing after 2m34s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Has been skipped
Order #177: a 35,8 cm sheet at 300 DPI was stretched to the film's 57 cm,
the v0 Site rule for a ready sheet image. Marcus: a pop-up on upload, and
neither a narrower nor a wider sheet is accepted.

The real width is known for a PNG whose pHYs records 200 DPI or more (the
A1 threshold) and for a PDF page; tolerance 0,1 cm (6732 px at 300 DPI is
56,998 cm). Arquivo por metro and Premium only. UV, a PNG without pHYs or
under 200 DPI, and every existing order and approved cart are unchanged.

Site: medirFolha refuses it, the sheet leaves the list (its upload stops),
and #larguraDlg lists each refused file with its width and DPI; Entendi or
Escape closes it and focus returns to the upload area; the thin-stroke
dialog waits while it is open. Server: sheet_width_issue refuses the same
cart at checkout (POST /api/quotes, 422), so a reorder or an edited page
cannot get round it. Contract: output/revisao/contrato-largura-folha.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:41:02 -03:00
Cauê Faleiros
12bc0c3e1a fix(deps): urllib3 2.8.0, which fixes the three HIGH advisories on 2.7.0 (security area 4)
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 10m15s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m2s
GHSA-8988-9cw3-xx77 (HTTPS proxy TLS settings ignored), GHSA-gh4c-6fx4-qh6g
(chunked deflate infinite loop), GHSA-vxq7-64xx-v4gw (unbounded chunk-size
line). urllib3 carries the R2 (botocore) and Sentry traffic. Only urllib3
moves in the lock (pip-compile --upgrade-package urllib3); every other package
against OSV is clean. The image's remaining 56 HIGH are Debian records with no
fix published yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 14:58:23 -03:00
Cauê Faleiros
b50318ce3d fix: the Site stops waiting for a payment's order once the page lets the quote go (DTF-WEB-29)
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 8m10s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m7s
waitForOrder polled /quotes/<draftId> every 3 s after a PIX or a card
challenge; "Voltar ao carrinho" (an expired PIX) cleared draftId and the poll
went on asking /quotes/null, which reached Sentry as a 422. The wait now keeps
the quote it started for and stops when the page's quote changes or is gone,
and each wait clears only its own timer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 14:24:12 -03:00
Cauê Faleiros
0f833fa1fa fix: a Kanban user's own password change signs out their other sessions and counts wrong current passwords (security area 3)
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 7m47s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m2s
/api/operator/me/password left every other session of the account valid for
up to 8 h, and a wrong current password was never counted, so a session left
open could guess it. Now, as a customer's change already does: the throttle
and login_failed of the sign-in, and the other sessions of the account end.
users_test proves both; the Usuários admin edit already ended sessions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 14:20:23 -03:00
Cauê Faleiros
52fc90cbcd test: a short R2 failure while closing an upload: the server's steady retry and the browser's (contract contrato-r2-retry)
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 8m2s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 1m12s
tests/test_storage_steady.py covers steady() and the storage's parts, size
and complete (a 5xx retried after 1, 2, 3 s; a 4xx and other errors at once;
NoSuchUpload on an object that exists is done). tests/upload_retry_test.mjs
covers closing the upload in web/upload.js (again after 3 s and 6 s; only
the last attempt reported; a 409 at once; an abort gives the upload back).
Both fail with the retry turned off. steady now looks time.sleep up when it
waits, so a patch of it reaches the storage methods.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:34:23 -03:00
Cauê Faleiros
5d70a6f912 fix: a short R2 failure no longer fails a customer's upload (DTF-API-D, DTF-WEB-27)
R2 answered ListParts with a 500 twice, 10 s apart, while closing an upload.
The storage calls an upload waits on (list parts, complete, head) try again on
a 5xx three more times over about 6 s; a 4xx and a timeout go back at once.
A complete R2 had in fact done answers NoSuchUpload on the retry: the object
is there, so it counts as done. The browser asks to close the upload again
after 3 s and 6 s on a server failure; only the last one is reported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:24:30 -03:00
Cauê Faleiros
741db76fa9 fix: a handled "O pedido mudou" no longer reaches Sentry (DTF-WEB-7, DTF-WEB-K), and the 90-day chart is readable on a phone
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 7m35s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 59s
saveFinalFiles and pullMove answer a stale-version 409 by reloading and
trying once more, but api() had already reported it. The first call now
expects the 409; one they cannot answer is still reported (reportRefusal),
and any other status is reported by api() as before, once.

Past a month the chart's gap is 1 px (90 bars were under 1 px each on a
375 px phone), and the last date ends at the chart's edge instead of being cut.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 12:46:44 -03:00
Cauê Faleiros
c2ffe08db5 fix: Escolher datas stays open when the numbers reload (tab opened, 7/30/90, the 30 s refresh)
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 7m55s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m1s
statsPeriod redrew the period bar with replaceChildren, which dropped an open
calendar. On a phone the numbers' reply often lands after the tap, so the
calendar opened and vanished at once: "Escolher datas" seemed to do nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:41:08 -03:00
Cauê Faleiros
2c0dd72098 fix: a Site order names no Mercado Pago account in Tiny again; Tiny did not find 977344550 (DTF-API-C)
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 8m9s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m5s
Tiny refused #196 (card) and #198 (Pix) with "Meio de pagamento não
encontrado" on parcelas[0].meioPagamento.id. The payload is now the same as
before 2026-12-01's Tiny change; both orders go through on their next try.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:20:29 -03:00
Cauê Faleiros
fc9e6d2681 feat: an order paid on the Site says how: "pago com Pix" or "pago com cartão" on its paid line
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 8m35s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m16s
The board carries paid_with, the method of the quote's approved payment
attempt (the one Tiny is told about). Until now a paid Site order only said
"pago em", so a Tiny refusal (DTF-API-C, #196) could not be traced to Pix
or card from the Kanban.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:58:31 -03:00
Cauê Faleiros
b18f6e1312 fix: card goes back to forma de recebimento 977460722, which Tiny accepts; 919478945 is not enabled there (DTF-API-C)
All checks were successful
Build and deploy / Validate source (push) Successful in 54s
Build and deploy / Integration suite on a real stack (push) Successful in 8m24s
Build and deploy / Secret scan and release gate (push) Successful in 11s
Build and deploy / Publish images (push) Successful in 1m38s
Tiny refused a paid Site order with "Forma de recebimento não está
habilitada" after card moved to 919478945. The order waits in the outbox
and goes through on its next try. The MERCADO PAGO account stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 10:49:35 -03:00
Cauê Faleiros
16cc01eef5 fix: Escolher datas opens on a phone: the page's fade-in no longer keeps a transform that pinned the calendar below the page (Marcus, 2026-12-01)
All checks were successful
Build and deploy / Validate source (push) Successful in 7s
Build and deploy / Integration suite on a real stack (push) Successful in 8m20s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m15s
The page animation used fill-mode both, so each page kept transform:
matrix(1,0,0,1,0,0) after it faded in. A transform makes the page the
containing block of position:fixed children, so the phone calendar
(fixed, bottom 80px) sat at the bottom of the 2,700 px Números page
instead of the screen. backwards keeps the same entrance without it.
The quote review sheet on the phone had the same trap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 09:59:13 -03:00
Cauê Faleiros
ca1ba677ce fix: a Site payment lands in Tiny's MERCADO PAGO account, and card uses the forma de recebimento Marcus gave (2026-12-01)
All checks were successful
Build and deploy / Validate source (push) Successful in 52s
Build and deploy / Integration suite on a real stack (push) Successful in 8m3s
Build and deploy / Secret scan and release gate (push) Successful in 9s
Build and deploy / Publish images (push) Successful in 1m21s
Pix and card paid on the Site carry meioPagamento 977344550 on their
installment; an order the team registered as paid outside, the customer's
credit and the boleto keep theirs. Cartão de crédito is 919478945 (the
977460722 read from a store order on 19/10 was not it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 09:40:03 -03:00
Cauê Faleiros
41e905555b fix: a transfer asks which part the new machine resumes from and names the old machine's .prt to delete (Marcus, 2026-12-01)
The hot folder takes a PNG in about 10 s and the Hoson queues it, so the
last part taken is not the one being ripped. The dialog lists the parts
(already taken or still in the folder) and asks where to resume once any
was taken; the new round starts there, and the parts from there on that
the old machine took are named as Hoson .prt files to delete, in the
toast, the card and the history. The film card no longer claims which part
prints: '2/3 partes com a máquina'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 09:39:58 -03:00
Cauê Faleiros
ea05ba6a31 test: a check run while the page reloads tries again instead of failing (CI run 397)
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 8m25s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m13s
Page.reload returns before the old page is gone; a check sent in that gap
got 'Inspected target navigated or closed'. waitFor retries only that
kind of error; any other still fails the test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 17:07:10 -03:00
Cauê Faleiros
885d211ae2 fix: a proof card shows the film it prints, the Kanban's tooltips stay whole on screen, and a session that changed is a warning (DTF-WEB-26)
A proof card bills 0 m: the board now carries proof_film_cm per item (the
same measure as Números), the card reads 'prova · 0,15 m', the column
totals count it, and the drawer says 'prova sem custo', the proof's film
and 'Folha do pedido'. The [data-tip] tooltips were CSS boxes inside the
card, cut by the column and over the card below; one box fixed to the
window now sits under the element, or over it near the bottom, inside the
screen. 'Sua conta ou sessão mudou' is guidance shown as a warning, so it
stays out of Sentry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:45:59 -03:00
Cauê Faleiros
1a35dea7a5 fix: contract checks of D7 and B9: a small vertical floating video, the whole art in Minha conta, and the home card's play and pause in the browser test
Some checks failed
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Failing after 7m50s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Has been skipped
Found checking D7/B9 in the browser: the vertical floating player could
reach 70% of the screen over the buy box (now 150 px wide, at most 44vh);
the saved sheet's picture was cropped. The browser test now checks that a
home card plays when on screen and pauses off it (its Chrome decodes no
video, so it records the play and pause the page asks for).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:40:05 -03:00
Cauê Faleiros
07e56eaa7c ci: run the Minhas folhas integration test (Rodada 5, B9)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:10:05 -03:00
Cauê Faleiros
3428ff68be feat: Minhas folhas on the Site: save a cart item to the account, order it again with the files already on the server, edit it without sending them again (Rodada 5, B9)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:09:52 -03:00
Cauê Faleiros
5671235681 feat: Minhas folhas on the server and in Minha conta: saved sheets per account with their uploads, 30 days, 50 per account; order again, edit, delete (Rodada 5, B9)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:09:52 -03:00
Cauê Faleiros
21858b5764 feat: a video on several products, sound and expand on the floating player, upright vertical video, looping cards at the foot of the home (Rodada 5, D7)
site_videos.products (the old product column is kept and copied); one
floating video per product checks the overlap and names it. The floating
player starts muted, with a sound button that says its state and an
expand button to the large player. A vertical video stands upright on
the floating and the large player. The home's videos move to its foot as
muted looping cards that play only on screen, not at all with reduced
motion, and open the large player.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 16:09:52 -03:00
Cauê Faleiros
22239f21d8 fix: C1/C2 simulate heights only, off the drawn packing, and skip the gap above 300 pieces (Rodada 5)
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 7m2s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 56s
The simulations went through encaixar, so the browser test, which watches
the drawn packing, sometimes read a simulated one (failed 1 in 3), and
each simulation built the preview's masks: 0,5 s per run with 143 pieces.
alturaSimulada applies the same rule (same heights in every mode, checked)
in 155 ms; the test wrapper also passes the new mode through.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 15:38:26 -03:00
Cauê Faleiros
35d508e561 fix: a machine transfer shows in the order history, and its test runs in CI (Rodada 5, D4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 15:03:10 -03:00
Cauê Faleiros
c2aa1d4937 feat: Gestão moves a printing order to another machine with a reason; the new one resumes from the part being ripped (Rodada 5, D4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 15:03:03 -03:00
Cauê Faleiros
030b66c697 feat: the customer picks Agrupado or Misturado and sees free copies that fit the same metres (Rodada 5, C1, C2)
C2: encaixar takes an optional mode ('linhas', 'forma'; the Montar keeps
the automatic one); the buy box shows both billed lengths and the
difference in cm and R$ when they differ, marking the packing on screen.
C1: up to 5 arts are tried with up to 30 more copies, by binary search
with the packing in use, and up to 3 '+k file' buttons add the copies
that keep the billed metres. Both run after the order check, never
before it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 15:03:03 -03:00
Cauê Faleiros
28c10aabf6 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>
2026-11-30 15:03:02 -03:00
Cauê Faleiros
9e0d33ef47 fix: a pasted list needs the internal customer first, and its stamps with a reference show their picture in the preview (Rodada 5, C4)
All checks were successful
Build and deploy / Validate source (push) Successful in 4s
Build and deploy / Integration suite on a real stack (push) Successful in 6m48s
Build and deploy / Secret scan and release gate (push) Successful in 3s
Build and deploy / Publish images (push) Successful in 51s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 12:20:35 -03:00
Cauê Faleiros
19eb37bdd9 feat: a pasted list in Montar, with the reference printed under each stamp and the skipped lines in the report (Rodada 5, C4)
One line per item, code size quantity reference. Lines with errors are
listed with the line and the reason and mounted only after "Montar sem
essas N linhas". A reference is drawn 3 mm high right under the stamp,
with 1 cm to the next piece on that side; the list is always Interno and
the Prumo report names the skipped lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:59:24 -03:00
Cauê Faleiros
a275a77896 feat: the Redesenho preview on the Kanban: sent, approved, rejected, and a reminder every 3 h (Rodada 5, D2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:59:24 -03:00
Cauê Faleiros
45c5493a4c feat: Redesenho previews on the server: one at a time, counted, and the stage clock stops while one waits (Rodada 5, D2)
POST /api/operator/orders/{id}/redesign-preview (sent, approved,
rejected), redesign_previews table, previews on every board order, and
assign_late leaves out the time a preview waited for the customer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:59:24 -03:00
Cauê Faleiros
aeb43500a7 test: the pending-upload burst waits for the gateway's bucket to refill (CI run 393)
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 7m10s
Build and deploy / Secret scan and release gate (push) Successful in 4s
Build and deploy / Publish images (push) Successful in 53s
nginx allows 20 r/s with a burst of 100; after the upload starts before
it, a fast runner met nginx's 429 instead of the API's Retry-After 15.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:32:26 -03:00
Cauê Faleiros
857eea3379 feat: copies from the file name, the proof in the summaries, the grade off the customer's screen (Rodada 5, B3, B6, D6)
Some checks failed
Build and deploy / Validate source (push) Successful in 4s
Build and deploy / Integration suite on a real stack (push) Failing after 1m17s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Has been skipped
B6: "12x nome.png" enters with 12 copies, art or ready sheet (up to 200;
"1920x1080.png" is not read as copies). B3: the DPI refusal speaks per
art, the cart and payment summaries list "Prova antes de imprimir" when
chosen, and below 10 m the proof box stays, closed, saying the rule.
D6: the Ajuste Fino refusal no longer shows the grade number (Site and
server); the unused motivoNota helper is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:28:24 -03:00
Cauê Faleiros
f739c9d4e4 feat: the bobbin footer names the customer and counts the pieces, without price (Rodada 5, C3)
DROPSTAR · Pedido DTF-7 · <cliente> · Item 1/2 · data · metros · N peças
(loose arts) or N cópias (a ready sheet repeated). The name is tidied to
cp1252 and cut at 24 characters; the proof footer is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:14:04 -03:00
Cauê Faleiros
7fc091a1bd feat: a PNG that records 200 DPI or more offers its own size, Manter, and the Prumo says if it was kept (Rodada 5, A1)
The Site reads the pHYs chunk of a loose art; at 200 DPI or more the
size in the file is the default width and a Manter button sits before
the table sizes (also when the art is turned 90 degrees). The source
carries saved_width_cm and saved_dpi, used only by the Prumo report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 11:11:21 -03:00
Cauê Faleiros
7e33e6fb1d fix: a hostile PDF cannot hold the scanner: bounded DPI reading and a stuck scan is reported
All checks were successful
Build and deploy / Validate source (push) Successful in 8s
Build and deploy / Integration suite on a real stack (push) Successful in 8m38s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m19s
The DPI of a stored PDF is read in a subprocess killed after
PDF_MAX_SECONDS + 5; inside it, only image draws count toward
PDF_MAX_DRAWS (heavy vector art still reads), content streams are parsed
once per object, and the deadline is checked every 1000 operators. A scan
busy for more than SCAN_STUCK_SECONDS marks the scanner unhealthy and logs
one error to Sentry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:50:14 -03:00
Cauê Faleiros
37d747697a copy: e-mails and notes without "a gente", "é só" or em dashes
Order and account e-mails say who acts ("Conferimos a arte"), the test
e-mail is one sentence, the machine alerts and Prumo lines use a colon,
and the default video title matches the Site.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:50:14 -03:00
Cauê Faleiros
c4f8ba1b70 copy: the Kanban says what to do, not how the system does it
All checks were successful
Build and deploy / Validate source (push) Successful in 7s
Build and deploy / Integration suite on a real stack (push) Successful in 8m32s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m28s
Order card, folders, Montar and Integrations follow the copy guide: the
folders card says where each file stays instead of walking through every
move, the cancel, correction and regenerate dialogs are one fact and the
next step, no rhetorical questions ("Conferiu?", "A arte chegou boa?")
and no "Agora é só".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:36:48 -03:00
Cauê Faleiros
4283c93526 copy: the Site says the fact and the next step, in the redesign's words
All checks were successful
Build and deploy / Validate source (push) Successful in 12s
Build and deploy / Integration suite on a real stack (push) Successful in 10m50s
Build and deploy / Secret scan and release gate (push) Successful in 13s
Build and deploy / Publish images (push) Successful in 2m6s
Help, editor notices, cart, checkout and Minha conta rewritten by the
approved copy guide: no "a gente", no em dashes, no rhetorical questions,
who acts is clear, at most two sentences per notice. The proof text says
30 cm (was 15 cm) and the billed length no longer says it only rounds up
(8 mm grace). Buttons follow the redesign: "Imprimir assim mesmo",
"Subir em dois arquivos".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:28:26 -03:00
Cauê Faleiros
eb7a92bb89 fix: a refusal the server explains is a warning on the Kanban and is not sent from the Site
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 8m58s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m26s
Of about 60 Sentry issues in two weeks, five were bugs: the rest were the
system working (a rule, a check, a limit explained to the person) or a
network drop. A 4xx with a sentence for the person is now a warning on the
Kanban, tagged recusa, still counted per kind, since a refusal the team keeps
meeting says a screen confuses; the Site sends none, the customer reads it.
A 4xx with a list of fields (what the page sent was wrong) and a 5xx stay
errors, as do JavaScript errors and the red messages that do not come from a
refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 10:02:15 -03:00
Cauê Faleiros
9fc4d4e906 fix: a cancelled upload holds no reservation, an old ready sheet is flagged in the cart, the address check is guidance (DTF-WEB-14, 22, 24)
All checks were successful
Build and deploy / Validate source (push) Successful in 1m39s
Build and deploy / Integration suite on a real stack (push) Successful in 10m18s
Build and deploy / Secret scan and release gate (push) Successful in 16s
Build and deploy / Publish images (push) Successful in 2m33s
- 14: switching products cancelled the files being sent, but each one still
  waiting for a place opened its reservation when it got one, and none gave
  it back: 27 in ten seconds filled the cap of 30 (29/11). A cancelled upload
  now never starts, and one cancelled after starting gives its place back.
- 22: a ready sheet kept in the cart from before the 8 mm says so on its row
  and holds Pagar, instead of a refusal after the whole checkout.
- 24: "Preencha o endereço de entrega" is a warning, not an error.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-30 09:36:34 -03:00
Cauê Faleiros
6ec0ea31a6 feat: billed every 10 cm with 8 mm in the customer's favour, and the Site shows the whole sum (Marcus, 2026-11-27)
All checks were successful
Build and deploy / Validate source (push) Successful in 14s
Build and deploy / Integration suite on a real stack (push) Successful in 8m42s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m10s
Marcus: a length that passes a 10 cm step by up to 8 mm is billed at that
step; by more, at the next. One rule for every product, on the server
(pricing.billed_length), the Site (arredonda10) and the Montador's estimate;
the print file accepts the 8 mm past the billed length instead of sending
the sheet to hand preparation.

The Site showed four numbers that did not add up (0,88 m, 4,42 m, 4,45 m,
4,50 m), and the team read 4,40 m. The copies line now gives the whole
sum ("5 × 88,4 cm + 4 espaços de 8 mm = 445,2 cm"), and the buy box says
why the billed metres are what they are, as a benefit ("os 4 mm a mais
ficam por nossa conta"). The buy box's parts note said 20 m; parts are
10 m since 18/11.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 18:04:10 -03:00
Cauê Faleiros
5f84db708c fix: the folders' download links last an hour, and one that ran out is fetched again quietly
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 7m49s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m8s
The folders download a whole list of files one after another, from links
made when the list was asked for, valid 5 minutes. With films of 10 m the
last ones began after that and failed with "erro 403": a red error, a
Sentry report, and only the next pass got new links. The folders' and hot
folder's links now last an hour (customer downloads keep 5 minutes), and an
expired link waits for the next pass like a dropped network.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 16:37:57 -03:00
Cauê Faleiros
2ff11688bc fix: the folders change only the files of orders the server answered for
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Successful in 8m7s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m21s
The Kanban asks the server about at most 1000 orders a pass; an order left
out had no state in the answer and was taken for deleted, so its files left
the folders although it was still in Correção or Revisão. Orders still in
the flow are asked first, then those in Finalizado, and a file whose order
was not asked this pass stays as it is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 16:25:20 -03:00
Cauê Faleiros
a652d734ea ci: run again (run 383: the cancelled run 381 left the test Site pointing at the old API, 502)
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 7m56s
Build and deploy / Secret scan and release gate (push) Successful in 4s
Build and deploy / Publish images (push) Successful in 1m41s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 16:06:14 -03:00
Cauê Faleiros
48d8b2f434 ci: the release gate no longer looks for the worker's fake Tiny, which production no longer uses
Some checks failed
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Failing after 49s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Has been skipped
Since 4a1994b the production worker uses the real Tiny or holds the sends,
never the simulator; the marker no longer named something true, and the
fast checks failed on it (validate job).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 16:04:38 -03:00
Cauê Faleiros
4a1994bd06 fix: deleting a cancelled order keeps its Tiny cancellation, and production without the real Tiny holds the sends
Some checks failed
Build and deploy / Validate source (push) Failing after 7s
Build and deploy / Integration suite on a real stack (push) Has been skipped
Build and deploy / Secret scan and release gate (push) Has been skipped
Build and deploy / Publish images (push) Has been skipped
- Deleting an order removed its Tiny events, delivered or not: cancelled
  and deleted before the worker sent it (or with Tiny down), the order stayed
  open in Tiny. A real order's events now stay; only a test order's go.
- With TINY_ADAPTER missing from the production stack, the simulator marked
  paid orders delivered with made-up receipts, and they had to be queued
  again by hand. Production now holds the sends (the outbox retries and
  Sentry is told); with the real Tiny back, the worker sends them at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 16:04:01 -03:00