The folder name sorted before the archive viewer migration, which is already applied. Deploy applies pending folders in name order and refuses one that lands behind a later applied migration.
The analysis queue was ordered oldest-first (created_at ascending), so a newly
shot or just-imported game went to the back, behind any older backlog of pending
photos, and seemed not to start until the event was boosted by hand ("Analisar
caras do jogo"). A photographer wants the game they just shot analysed now.
Order non-boosted photos newest-first (created_at DESC); a manually boosted event
still jumps ahead. The partial index is recreated to match the new order so the
claim stays index-ordered.
Claude-Session: https://claude.ai/code/session_01RAkmwWv6L5KmpX4h9JPD2i
A photo could be pulled off a destination only on ZeroZero, and only when an edit
replaced it. Now a delivered photo that is rejected, or un-picked (PICK -> none),
is taken back from every destination, and an edit that moves the file to a new
folder or name removes the old one on every transport (not just ZeroZero), so no
orphan is left behind.
- Transport gains remove(remotePath); implemented for Nextcloud (WebDAV DELETE),
SFTP, FTP and Dropbox (ZeroZero already had it). Missing-file is never an error.
- delivery_items gains a `retract` flag and a RETRACTED terminal status. A rejected
or un-picked photo's deliveries are queued for removal (DONE/WAITING) or cancelled
outright (QUEUED, never uploaded); the worker removes them and marks them RETRACTED.
- The flag PATCH triggers the retraction (REJECT for any, or the photos still PICK
when they go to none, i.e. un-pick), reading the old flags first.
- deliveryState() ignores RETRACTED, so a taken-back photo reads as not delivered.
Destructive on the client's live destinations (it deletes delivered files, agency
FTP included, by request). Not run locally — no toolchain/space on this machine;
needs CI to compile and a throwaway target to try before production.
Claude-Session: https://claude.ai/code/session_01RAkmwWv6L5KmpX4h9JPD2i
The backlog is oldest-first, so a game someone asks to analyse now never starts. Boosted photos are claimed first, and the library says when the face worker is not running.
Once the edits of a delivered photo pause for a minute, it goes again to every destination it went to, with the same name: files are replaced; on ZeroZero the new image goes up and the previous one is deleted. Originals' backups are not resent; deliveries made before count as current.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
An every-arrival destination can take only some FTP logins' photos, and with "untouched" the original goes byte for byte as the camera sent it, with its own name, into the folder a local Photo Mechanic Live Ingest watches. The photo still enters PhotoReport as any FTP arrival.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Templates (IPTC pad, folders, file names, rename on arrival) take every variable of Photo Mechanic's list under its names and short names, in any case, with its modifiers (substrings, lc/UC/PC, tr:find/repl). IPTC variables are the photo's pad, as in Photo Mechanic. The pad gains every Photo Mechanic field with the same IIM/XMP tags, read back from incoming files. Camera details (exposure compensation, flash, metering, program, white balance, 35mm, lens range, firmware, owner, artist, GPS) are kept in photos.exif at ingest and read from the file at delivery for older photos.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
A destination can take the originals as they arrived (no resizing or recompression; IPTC written by exiftool; renamed by the templates), like Photo Mechanic's Live Ingest destination, and every arrival (FTP, desktop, uploads, once in an event) can be queued to it on its own. On a LOCAL destination: one's own backup in a folder on the computer, e.g. /Users/cyclop/Desktop/2026/{iptcdate} - {event}/PS_{event}_{timesort}.jpg. Adds {iptcdate} (CCYYMMDD).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
An "Evento" panel on the open event: FTP logins can send everything to it whatever the camera clock says, until the event ends or switched off (ftp_accounts.target_event_id/target_until; editors any login, photographers their own); start, ingest window and photographers; archive / unarchive; delete, with its photos back in Sem evento (archive games cannot be deleted). The list shows the last 4 days, upcoming and FTP-receiving events, the rest under Anteriores, and put-away events under Arquivados.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Archive photos ended up in a live event (SC Braga x Sporting CP) from other games. The archive now keeps to its own events (never a library event, even for the same fixture); name events only join archive events of the same day, never by the cloud folder's date; a fixture needs a dated folder or competition+season+matchday, and reserve/youth/women's sides never match the first team. A FIXTURE folder whose photos were taken more than 36 h from the game is taken off it for good (cloud_folders.fixture_rejected). On start the worker moves folders out of live events (leaveLiveEvents), their CLOUD photos with them (faces found again), keeping photos that were already there.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
cloud_sources.look (liga, fpa or none), set from the source's name or folder and changeable in the app. The archive site wears Liga Portugal's (night blue, orange, condensed capitals) or the FPA's (light grey, red bar, Open Sans capitals) colours and type; no marks or logos of theirs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Nextcloud archives (FPA, Liga) connected with the login flow v2, walked by etag,
indexed as previews whose originals stay on the cloud, galleries matched to
official games. App: Arquivo module. Site: /arquivo/<id> for viewers who sign in
with their own cloud account and see only what is shared with them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
A LOCAL destination renders on the server and waits for the desktop app that chose the folder; the app saves it there and reports back. Destinos gains an import wizard for Photo Mechanic and FileZilla destinations (passwords are typed here, never read). Desktop 0.3.9.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
A new delivery kind for fotos.zerozero.pt: the server signs in with the photographer's zerozero.pt account (OAuth through ax_login.php), finds the event's game among the desk's upcoming games by teams and kick-off (or uses a pasted link), and uploads with tus, with the photographer as the author.
"Only the best": an autopilot selection that delivers a short gallery of game moments (about N photos), spread over the match in 5-minute windows with unused shares carried forward, ranked by action (ball, duels, celebrations, big sharp subjects, stars), without twins. After the match, "Melhores..." sends the best N of an event the same way.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Champions League, Europa League, Conference League, Women's Champions League and Futsal Champions League from
match.uefa.com (the JSON uefa.com reads; not documented, asked sparingly). Fixtures carry venue and the referee
team; squads (numbers, positions, headshots, coaches) grow from the sheets of matches played, and the match's own
sheet is read from 1 h before kick-off. On an event the referee team on the pitch becomes people ("Arbitragem").
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
A weak or ambiguous face match is settled by the number read on the shirt; a sure face whose shirt clearly
reads another number is suggested as less sure; when both teams have a player with the number, the kit colour
(median of the chest, per face) against each team's confirmed players decides, or nothing is guessed.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
A sample of Liga Portugal 2026/27 photos (14 clubs) shows no chest numbers: the front number is on the shorts.
Each confirmed face now gives two samples (region CHEST and SHORTS); the reader tries both and keeps the more
confident reading. Faces collected before get the shorts crop once (faces.jersey_crops). Synthetic training
data also paints small side numbers.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Impressão → Quiosque: a secret link for a tablet (photographer's photos, front camera photobooth, name and copies; paid prints at the counter). Print agent: Windows spooler through PowerShell. Loupe: face boxes in the edited preview's frame.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
With InvoiceXpress set up (account and API key, sealed), a paid order queues an invoice that the worker issues: created as a draft with our id as proprietary_uid (no duplicates), finalized, emailed to the buyer. Retried with backoff; rejected data or a bad key fails at once and notifies admins. Reverse-charged orders carry the exemption code from the settings (M40 by default). The number and link show on the order in the app and on the buyer's order page; Vendas -> Faturas lists them with a retry.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Per-person notices written where things happen: a sale of your photos and what it earns you, paid orders (admins), client comments waiting for approval (editors), payouts made to you, deliveries that gave up (admins). Unread notices with the same key fold into one with a count; read ones are dropped after 90 days. The app shows a bell with the unread count, polls every minute and on focus, and links each notice to its page.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
When an order is paid, each line owes its photographer a share of its net amount and the order owes its affiliate (?ref=CODE links, remembered 30 days by the site) a commission. Earnings are held for the refund window, then paid per person by a Stripe Connect transfer (idempotent per payout) or a bank transfer recorded by hand. Orders can be marked refunded, cancelling what they still owed. App: Vendas -> Ganhos and Afiliados; photographers see their own sales and connect their Stripe account.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
When someone corrects a photo the autopilot edited, the difference is kept (develop_corrections). The next photos of the same photographer (same venue when there are enough) get the consistent part: median of the last 60, at least 5 samples, 70% agreeing. Only tone, white balance and a tighter crop. The app's autopilot panel shows what was learnt and can forget it.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Live galleries fill themselves from their event (picks, or every ready photo) while the match is on; photos taken
out by hand stay out. Clients mark favourites and comment (approved by the photographer); the app shows the
selection, exports CSV, copies file names and labels the favourites in the library. Orders download as one ZIP,
and free galleries get "download all". Fixes PATCH on galleries, sites and print events resetting fields to their
defaults (a title change made a private gallery public).
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Photos arriving by FTP or the desktop app get a name from a template (Live Ingest "Rename as", e.g.
PS_{event}_{timesort}); the organisation sets one, an FTP login can have its own or keep camera names.
Names are unique per event and follow the photo to another event; deliveries use them as {originalName}.
Delivery targets get Photo Mechanic's uploader options (size, quality, sharpen, ppi, EXIF, sRGB), can be
edited and duplicated, and a Cofina preset. Templates accept PM's {iptcyear4} {iptcmonth0} {iptcday0}
{datesort} {timesort} and {initials}.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Targets now have a kind. SFTP takes a password or a private key and remembers the server's host key on
first contact (checked on every later connection, reset when the address changes). FTP supports explicit
TLS (ftps://). Dropbox uses an app key and refresh token or a long-lived token, and gives folder links.
New A Bola preset (folder /{event}/, PS_{event}_{n:pad3}, originals at full size); {event} is
"Home x Away" as in Photo Mechanic. Admins can test a target's connection (Nextcloud now really logs in).
Also fixes updates of a target resetting its size and quality to the defaults.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Rebuilds the old app's code-replacement system as apps/api/src/sports. The worker reads Liga Portugal
(teams, squads with numbers and headshots, fixtures), FPA (all national handball competitions) and FPF
(competitions by link, line-ups from match sheets) every 6 h. Organisations generate their code list from
it (same prefixes and templates as before, kept in a block the editor's own lines override, refreshed when
squads change), create events by picking the match, and get both squads as people (headshots as face
references with biometrics on). Face number suggestions use the event's squads.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
By default the desktop app sends a 2048 px preview of each FTP photo (with the original's EXIF/IPTC) plus the
original's fingerprint; the original stays on the computer. The server marks such photos originalStored=false.
When someone needs full resolution (1:1 in Revelar, Z), the server asks over the live channel and the desktop app
that has it sends the original in the background; it takes the preview's place. A setting sends originals always.
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Torso crops reviewed in the app; a ResNet18 trained on Mac (MPS) and exported to ONNX.
The worker reads numbers when JERSEY_MODEL_DIR is set.
A group with no face match is suggested a player by shirt number when exactly one player of the two teams wears it.
The faces worker now applies EXIF orientation.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Events can charge per print: the guest pays on Stripe's page first and the webhook (shared with the shop) sends the job to the queue or to approval; abandoned payments cancel the job.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Files go in 4 MB chunks; a dropped connection resumes from the server's offset with back-off, a repeated chunk is answered with the real offset, and the same file picked again after a reload carries on where it stopped.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
SFTPGo keeps no users: its external authentication hook asks /v1/sftpgo/auth, which checks the login's argon2 password and answers with the upload-only home folder <INGEST_ROOT>/<login>. Passwords are generated, shown once, and can be replaced from the app.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Print events with a QR code to events.photoreport.pt/e/<slug>; 300 dpi prints with the event's band and border; approval and limits; live queue in the app; apps/print-agent pairs with a one-time code, reports CUPS printers, claims jobs for loaded paper and prints with lp.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Sites per domain with two skins (PhotoReport, ShootYourMove) in apps/site (Next.js); public, unlisted and private galleries with watermarked photos; products, cart, orders with VIES reverse charge; the organization's own Stripe Checkout and signed webhooks; bought files rendered from the original with edits and IPTC, emailed; Vendas module in the app.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
engine/core renders with the LightCraft pipeline; engine/wasm runs it in the browser; workers/render replays op logs and renders originals natively. Op log with live fan-out and offline outbox; edited thumbnails and deliveries rendered from the original. Revelar page with Basic and optional modules, crop with aspect presets and straighten, before/after, undo/redo, copy/paste settings.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
Faces end to end (YuNet + AuraFace worker in Rust, grouping per event, confirm/merge/ignore, suggestions from known people, loupe boxes), blurred faces kept out of groups (sharpness gate tuned on a real football match), and reference photos for the squad.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
- POST /v1/orgs/:orgId/uploads: one JPEG per request through the FTP pipeline (dedupe, EXIF, routing or an explicit event, previews, live message); the web library imports by button or drag and drop, 4 at a time with progress
- Ingest reads the IPTC already in a file (XMP first; IIM from Lightroom/Photo Mechanic on the Mac is Mac Roman without a charset flag and is repaired) and keeps it next to ours; the info panel shows it and can reuse its Title as the players
- Tokens for client-made connections are refreshed a minute before they expire
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW