feat: the folders catch up on what passed while the Kanban computer was off
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 3m27s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 56s

Dropstar's internal rules (2026-10-26): the folder must reproduce what passed,
not only what sits in the columns when the computer comes back, or a room
running 24 hours leaves a gap a week in the Finalizado archive.

- the Kanban remembers when the folders were chosen and asks for every order
  paid since then, whatever its stage; each file goes to its stage's folder,
  so an order finished while the computer was off lands in 3. Finalizado
- orders paid before the folders were chosen still stay out, so setting them
  up never pulls old orders back into the queue
- the server's file list for the folders and Baixar now loads only the orders
  that have a file, not every order in the stages

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-10-27 10:15:16 -03:00
parent 35e64d77d7
commit 6a921415ea
4 changed files with 57 additions and 21 deletions

View File

@@ -347,7 +347,10 @@ prints and is checked in Revisão) and "3. Finalizado" (when the order is
released, kept 30 days there). They are created as soon as the main folder
is chosen. Correção, a cancellation or a
deletion takes the file out; a replaced final is swapped. Orders already
printing when the folder is chosen are not downloaded. A file someone took
printing when the folder is chosen are not downloaded; every order paid after
it is, whatever its stage, so a computer that was off catches up when it
comes back (Dropstar's rules, 2026-10-26: the folder must reproduce what
passed, not only what sits in the columns). A file someone took
out is fetched again only when its order moves on (`POST
/api/operator/queue/folder`, which also returns the files of orders the
folders hold once they print). Who opens each folder is set in the server's
@@ -448,9 +451,8 @@ Still to do (2026-10-26):
- Still open from the internal rules (docs received 2026-10-26): file type by
its first bytes (D-13), every order's origin and a manual order entry in
the Kanban (D-21, D-35; also how orders paid with credit come in), the
rework register (D-02 to D-04), Aguardando contato time out of the time
figures (D-38), and the folders fetching what passed while the Kanban
computer was off.
rework register (D-02 to D-04), and Aguardando contato time out of the time
figures (D-38).
- Settled on 2026-10-26: the DTF SITE category (986932924, CATEGORY in app/tiny.py),
the white spot also under the print PDF's footer (nothing to change here),
and the montador's order format (customer, files, product, the batch with