Delivery: local copy, client IPTC, and the rest of the picks #25

Merged
spark merged 4 commits from task/delivery-names-local-copy into main 2026-10-18 12:26:11 +01:00
Owner

Four commits already on top of main:

  • Autopilot: a second client gets every other pick, never the gallery's photos.
  • Delivery: a client's own IPTC fields, and players left to right.
  • Develop: X swaps the crop's width and height.
  • Delivery: names from the best guess, and a local copy of a client's delivery.

Adds two columns (iptc_overrides, copy_target_id / via_target_id). API and app both rebuild.

Four commits already on top of main: - Autopilot: a second client gets every other pick, never the gallery's photos. - Delivery: a client's own IPTC fields, and players left to right. - Develop: X swaps the crop's width and height. - Delivery: names from the best guess, and a local copy of a client's delivery. Adds two columns (`iptc_overrides`, `copy_target_id` / `via_target_id`). API and app both rebuild.
spark added 4 commits 2026-10-18 12:26:09 +01:00
"Only the best" can now send to two clients at once: the main destination (e.g. a
newspaper's FTP) gets the short gallery, each moment as the second pick of its
burst, and a second destination (e.g. the federation's cloud) gets every other
picked photo once its 5-minute window is decided. A photo never reaches both.
New setting restTargetId ("As outras escolhidas para").

Also updates the autopilot test to the current rule: hand uploads are edited,
only archive re-imports (CLOUD) stay as sent.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RL6fqg8fuk1vKF4H6Zrh9V
Each delivery target can now carry IPTC fields that replace the event's for that
client only (e.g. Creator "Peter Spark / Movephoto" for a newspaper while the
federation keeps PhotoReport.pt), with the event's variables. Applied after the
event template and the photo's own changes. Edited in the target form
("IPTC deste cliente"). New column delivery_targets.iptc_overrides.

{players} (Title, Persons shown...) now lists the players from left to right as
they appear in the photo, by where their face is; names typed by hand without a
face keep their order, after the others.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RL6fqg8fuk1vKF4H6Zrh9V
The second X turned the biggest portrait back into the whole frame, which looked
like the crop was gone. X now swaps the crop's width and height in pixels about
the same centre (moved in, then shrunk keeping its shape, only when the turned
crop would leave the photo): R, X gives 2667x4000 on a 6000x4000 photo, the next
X 4000x2667, and further presses swap between the two.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RL6fqg8fuk1vKF4H6Zrh9V
Delivery: names from the best guess, a local copy of a client's delivery
ci / rust (pull_request) Failing after 38s
ci / typescript (pull_request) Successful in 6m51s
a824c7bef6
- {players} names every face: the confirmed player, or for a face nobody has
  confirmed yet the group's suggestion (face and shirt number). Put right later by
  confirming the right player.
- A delivery waits up to 3 minutes for the photo's faces to be read (organizations
  with face recognition), so the names leave with it; waiting is not an attempt.
- A target can copy everything it gets to another target ("Copiar também para",
  usually a folder on the computer). The copy is written with the first target's
  IPTC, so it is the same file the client got. New columns
  delivery_targets.copy_target_id and delivery_items.via_target_id.

Also updates the resumable upload test to the current rule (hand uploads are
edited by the autopilot too).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RL6fqg8fuk1vKF4H6Zrh9V
spark merged commit b392ba5713 into main 2026-10-18 12:26:11 +01:00
Author
Owner

Merged as b392ba5713. API typecheck passed after prisma generate; the crop and target-override unit tests passed. pr-api and pr-app should redeploy from this push (migrations included).

Merged as b392ba5713fd3694eaae8c6ef3a169afd146683b. API typecheck passed after prisma generate; the crop and target-override unit tests passed. pr-api and pr-app should redeploy from this push (migrations included).
Author
Owner

Live. pr-app finished in 59s and pr-api in 76s, both success. https://app.next.photoreport.pt and https://api.next.photoreport.pt report b392ba5713.

Live. pr-app finished in 59s and pr-api in 76s, both success. https://app.next.photoreport.pt and https://api.next.photoreport.pt report b392ba5713fd3694eaae8c6ef3a169afd146683b.
Sign in to join this conversation.