Commit Graph
67 Commits
Author SHA1 Message Date
spark 10004452b4 Folder search: read faces on this computer and remember them.
ci / rust (pull_request) Failing after 39s
ci / typescript (pull_request) Failing after 7m37s
The desktop app reads the folder locally and only asks the server for a name. A photo already read is not read again. While a folder is still read on the server, face processes keep being added until the CPU is full.
2026-10-17 19:45:44 +01:00
spark 96deacd7b6 Folder search: try the game first, then everyone else, on every core.
ci / rust (pull_request) Successful in 7m42s
ci / typescript (pull_request) Failing after 9m6s
A face is named from the match (players and officials) when one of them matches, and only then from the rest of the organization. The scan runs one face process per spare core so a full folder is read in parallel.
2026-10-17 19:11:32 +01:00
spark 404ef90a3e Folder search: name a face only from the chosen game's squad
ci / rust (pull_request) Successful in 8m5s
ci / typescript (pull_request) Failing after 10m29s
The game was already shown, but each face was compared with every person in the organization. The picker now limits that comparison to the two teams' squad for the season, which is who can be named and a much smaller search.
2026-10-17 18:53:24 +01:00
spark 378730429d Library: search a folder for faces and shirt numbers, then import the pick
A photographer can point at any folder, read the clear faces and jersey numbers without copying the files in, filter by name, club or number, and import only the photos they choose into the open event.
2026-10-17 18:35:31 +01:00
spark 7c67a23cb9 Delivery: take a photo back from its destinations when it is rejected or un-picked
ci / typescript (pull_request) Failing after 4m28s
ci / rust (pull_request) Successful in 13m17s
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
2026-10-17 15:15:40 +00:00
spark d756d13d69 Delivery (FPA): use short team codes in Nextcloud folder and file names
The FPA destination preset built the game folder and file name from the full
team names ({home} x {away}), e.g. "Vitória SC x AA Águas Santas". FPA expects
the short codes ("VSC x AAAS"). Switch the FPA folder and fileName templates to
{homeShort} x {awayShort}.

Safe by construction: buildVars sets homeShort/awayShort with a `?? home`
fallback, so when an event has no short code the segment is the full name (never
empty, never a missing-variable error). Liga keeps full names on purpose
("1. Casa Pia x Sporting"), so its preset is unchanged.

Test: the FPA fixture now uses distinct full names + short codes, proving the
template renders the short code rather than the full name.

Claude-Session: https://claude.ai/code/session_01RAkmwWv6L5KmpX4h9JPD2i
2026-10-17 16:06:47 +01:00
spark 5c4b4e5195 Faces: a requested event jumps the analysis queue.
ci / rust (pull_request) Successful in 7m53s
ci / typescript (pull_request) Successful in 9m57s
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.
2026-10-17 15:40:08 +01:00
sparkandClaude Opus 5.5 01b943169d Archive: check a cloud's games again on demand and see what changed
ci / rust (push) Successful in 6m1s
ci / typescript (push) Successful in 9m48s
"Rever jogos" / "Rever tudo" on a cloud's galleries runs the check now (games still to come first, then the official games, or everything) and lists every gallery that changed and any it could not check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-15 04:59:07 +01:00
sparkandClaude Opus 5.5 ea63b30452 Delivery: the central FTP as a relay to a computer (chosen logins, untouched originals)
ci / rust (push) Successful in 4m19s
ci / typescript (push) Successful in 7m12s
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
2026-10-15 03:13:53 +01:00
sparkandClaude Opus 5.5 52d340ef43 Archive: past FPA seasons read club by club; games apart from events
ci / rust (push) Successful in 4m10s
ci / typescript (push) Successful in 7m9s
The archive reads the FPA national games of any season it meets (club by club from today's agenda, following every club met, regional games left out), in the background in the worker, then matches every gallery again. Galleries split into official games, games known by their folder only, and events; events read no shirt numbers (faces only).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-15 03:06:32 +01:00
sparkandClaude Opus 5.5 04137476ff Photo Mechanic compatibility: all its variables and modifiers, its full IPTC pad, camera details
ci / rust (push) Successful in 4m27s
ci / typescript (push) Successful in 7m27s
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
2026-10-15 02:43:43 +01:00
sparkandClaude Opus 5.5 f578bdd15c Delivery: originals backup (untouched originals, IPTC written) and every arrival sent on its own
ci / rust (push) Successful in 4m14s
ci / typescript (push) Successful in 7m8s
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
2026-10-15 02:08:37 +01:00
sparkandClaude Opus 5.5 11460968e4 Events: edit times and photographers, archive, delete (photos kept), Receber FTP aqui
ci / rust (push) Successful in 4m29s
ci / typescript (push) Successful in 7m15s
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
2026-10-15 01:57:32 +01:00
sparkandClaude Opus 5.5 1e4d910cfd Archive sites in their owner's look: Liga Portugal and FPA
ci / rust (push) Successful in 4m22s
ci / typescript (push) Successful in 7m11s
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
2026-10-15 00:28:02 +01:00
sparkandClaude Opus 5.5 a24ac0bae6 Archive: many downloads in flight, previews by the CPUs; pace and time left on screen
ci / rust (push) Successful in 4m13s
ci / typescript (push) Successful in 7m25s
Indexing waits mostly on the cloud's download: a big backlog keeps 16-96 images in flight,
while only the CPU share makes previews at once. A fixed ARCHIVE_CONCURRENCY no longer
holds the backlog pace down. The Arquivo page shows photos per hour and the time left.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-14 23:49:18 +01:00
sparkandClaude Opus 5.5 594be91708 Search by photo: library lookup by face and "Encontra-te" on the public galleries
ci / rust (push) Successful in 8m2s
ci / typescript (push) Successful in 11m7s
A photo's faces against the library's face groups and named people (all events or one),
results in the library grid with who it is; on the sites, a visitor's face in one gallery.
Only with biometrics on; the photo is read in memory and never kept. The API runs its own
face engine on demand (stopped when idle).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-14 21:42:09 +01:00
sparkandClaude Opus 5.5 04cee6095d Archive: show the server disk, pause indexing before it fills
ci / rust (push) Successful in 11m23s
ci / typescript (push) Successful in 19m9s
The Arquivo page shows free space and what the photos still to index will take
(about 1.6 MB each); the worker stops indexing below ARCHIVE_MIN_FREE_GB
(default 25) and resumes by itself.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-14 17:34:35 +01:00
sparkandClaude Opus 5.5 2610d42670 Archive: index Nextcloud folders, match galleries to games, viewer site
ci / rust (push) Successful in 7m48s
ci / typescript (push) Successful in 11m32s
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
2026-10-14 17:14:01 +01:00
sparkandClaude Opus 5.5 003b8fceb8 Desktop 0.3.12: originals changed by Photo Mechanic are sent anyway; "the best" can be sent again
desktop-release / build (--target universal-apple-darwin, dmg,app, darwin-universal, macos) (push) Successful in 7m45s
ci / rust (push) Successful in 14m15s
ci / typescript (push) Successful in 17m16s
desktop-release / build (deb,appimage, linux-x86_64, ubuntu-latest) (push) Successful in 37m8s
A delivery waiting for an original never got it when Photo Mechanic had written captions into the file on the computer (its fingerprint changed, so the desktop could not find it). The desktop now sends the file it recorded for that photo to POST /v1/photos/:id/original, which takes it when it has the photo's pixel size. The "best" delivery gets an option to send again the ones the destination already has.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-14 04:44:22 +01:00
sparkandClaude Opus 5.5 b0e1664375 Deliveries to a folder on a computer, and importing destinations from Photo Mechanic and FileZilla
desktop-release / build (--target universal-apple-darwin, dmg,app, darwin-universal, macos) (push) Failing after 3m4s
ci / rust (push) Successful in 12m41s
ci / typescript (push) Successful in 15m10s
desktop-release / build (deb,appimage, linux-x86_64, ubuntu-latest) (push) Successful in 34m31s
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
2026-10-14 01:56:24 +01:00
sparkandClaude Opus 5.5 e74ca03f23 Squads: photos of each player in the event instead of a check mark
ci / rust (push) Successful in 7m35s
ci / typescript (push) Successful in 11m1s
Each squad entry shows how many photos of the event have them: confirmed faces, and "+N" for faces the system takes for them (a suggestion of 70% or more) not confirmed yet. A photo counts once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-14 01:19:48 +01:00
sparkandClaude Opus 5.5 b4d3cedacc ZeroZero delivery and "only the best" selection
ci / rust (push) Successful in 7m42s
ci / typescript (push) Successful in 10m58s
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
2026-10-14 01:07:07 +01:00
sparkandClaude Opus 5.5 28291a5f96 Faces: find people by their full name, accents ignored
ci / rust (push) Successful in 7m50s
ci / typescript (push) Successful in 10m54s
Squad people are named by first and last name ("Ana Sousa"), so typing "Sofia Osório" found nobody. The persons list now carries the full name from the squad, and the faces view has its own suggestion list (instead of the browser datalist) that matches every typed word against name, full name, club and number, ignoring accents, and shows the official letter and club.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-14 00:18:30 +01:00
spark 97265b8de2 Sports data: UEFA competitions (fixtures, referee teams, squads from match sheets)
ci / rust (push) Successful in 9m25s
ci / typescript (push) Successful in 14m11s
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
2026-10-13 22:48:58 +01:00
spark c32012a0cd Shirt numbers: a shorts crop for football, next to the chest crop for handball
ci / rust (push) Successful in 7m40s
ci / typescript (push) Successful in 10m49s
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
2026-10-13 21:30:38 +01:00
spark e554c2e7d6 Shirt numbers: start teaching over, and a clearer rule for what counts as readable
ci / rust (push) Successful in 7m50s
ci / typescript (push) Successful in 10m41s
A reset (editors) sends every checked sample back to review, dropping the answers; samples and crops stay.
The help now says plainly: "Certo" only when the whole number reads in the crop, whoever the player is.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 19:46:35 +01:00
spark ae7f8eb6f9 Work offline: library from cache, local arrivals, queued changes (0.3.7)
ci / rust (push) Successful in 11m44s
ci / typescript (push) Successful in 13m59s
desktop-release / build (--target universal-apple-darwin, dmg,app, darwin-universal, macos) (push) Successful in 18m44s
desktop-release / build (deb,appimage, linux-x86_64, ubuntu-latest) (push) Successful in 33m41s
The desktop app opens and keeps working offline: events, photo lists, edit states, thumbnails and previews are kept on the computer; photos arriving by FTP show at once (filed by capture time) and can be culled, named and edited before upload; culling, IPTC and "send to" made offline wait in order and go when the server answers; uploads wait instead of failing. The autopilot never edits over a person's edit.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 18:34:30 +01:00
spark cda3885fcd Library: Send button, combinable filters and delivery state
ci / rust (push) Successful in 7m47s
ci / typescript (push) Successful in 10m34s
The top bar sends the selection (rejects never) to a destination, or leads to setting one up. Filters combine as in Photo Mechanic (flag, stars at least, colour, delivery: to send / sending / sent / failed, without players); each thumbnail shows whether it was sent, live.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 17:11:29 +01:00
spark 655ec1bba8 Library: one active photo across modules; events claim their inbox photos
ci / rust (push) Successful in 8m35s
ci / typescript (push) Successful in 11m30s
Library, loupe and Develop share the selected photo (per event), as in Lightroom: switching modules keeps it, Develop follows the library's filter and E goes back to the loupe. An event created or moved after its photos arrived takes them from "Sem evento"; photos can be moved to an event by hand; a failed photo says why.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 16:01:11 +01:00
spark 91a88c1aaa Agenda: connect your calendar (iCal) to fill generic events and suggest captions
ci / rust (push) Successful in 10m1s
ci / typescript (push) Successful in 12m33s
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 13:44:56 +01:00
spark edf8c21488 Generic events: no guessed caption, written in the form or the event's IPTC template
ci / rust (push) Successful in 7m38s
ci / typescript (push) Successful in 11m0s
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 13:33:21 +01:00
spark 112cea980f Events that are not a match: a name instead of two teams, captioned by the name
ci / rust (push) Successful in 7m42s
ci / typescript (push) Successful in 9m58s
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 13:15:54 +01:00
spark c94772e78e Site: most viewed galleries, photo caption and credit, a link per photo
ci / rust (push) Successful in 8m43s
ci / typescript (push) Successful in 11m58s
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 12:43:19 +01:00
spark e9fcf973c3 Site home: search by team, player or competition, sport shortcuts, latest photos and live badges
ci / typescript (push) Successful in 18m48s
ci / rust (push) Successful in 15m24s
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 11:42:14 +01:00
spark ff8488fd93 Kiosk with photobooth on a tablet, Windows print agent, face boxes that follow the crop
ci / rust (push) Successful in 16m17s
ci / typescript (push) Failing after 16m55s
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
2026-10-13 11:29:23 +01:00
spark 69df3a1fd6 Photo packages: N photos or the whole gallery for one price, applied in the cart by itself
ci / rust (push) Successful in 7m1s
ci / typescript (push) Failing after 9m18s
desktop-release / build (deb,appimage, linux-x86_64, ubuntu-latest) (push) Failing after 28m39s
Vendas → Produtos → Pacotes; contracts applyBundles prices the cart on the site and the order in the API the same way.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 05:32:12 +01:00
spark 238be17b2e FTP packages: days and upload quotas per login, and a download limit per bought file
ci / rust (push) Successful in 7m13s
ci / typescript (push) Failing after 9m12s
Membros → Pacotes FTP (the old app's pacotes), enforced through SFTPGo's auth hook; downloads per file set in the shop settings.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 05:18:05 +01:00
spark a47e83b56d Press accounts: newspapers and agencies buy on account and get one invoice a month
ci / rust (push) Successful in 7m23s
ci / typescript (push) Failing after 9m19s
Vendas → Imprensa in the app, Imprensa sign-in on the site, orders on account, monthly InvoiceXpress invoice per account.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 05:02:39 +01:00
spark 78dfd5cc3d Invoicing through InvoiceXpress: a certified invoice-receipt for every paid order
ci / rust (push) Successful in 7m1s
ci / typescript (push) Failing after 9m5s
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
2026-10-13 04:46:09 +01:00
spark 98a799eeb9 Notifications: the bell for sales, paid orders, comments to approve, payouts and failed deliveries
ci / rust (push) Successful in 6m58s
ci / typescript (push) Failing after 8m12s
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
2026-10-13 04:22:36 +01:00
spark 17e9cbb3a8 Earnings: photographer shares and affiliate commissions, paid by Stripe Connect or bank
ci / rust (push) Successful in 7m5s
ci / typescript (push) Failing after 8m56s
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
2026-10-13 04:10:47 +01:00
spark fa58b0856c Autopilot learns from corrections: tone, white balance, crop tightness per photographer
ci / rust (push) Successful in 6m50s
ci / typescript (push) Failing after 8m23s
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
2026-10-13 03:47:20 +01:00
spark a693057270 Live client galleries, proofing (favourites, comments) and ZIP downloads; PATCH keeps fields
ci / rust (push) Successful in 7m1s
ci / typescript (push) Failing after 8m45s
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
2026-10-13 03:09:46 +01:00
spark 3c94dabcf1 Photo Mechanic parity: rename on arrival, uploader output options, PM variables
ci / rust (push) Successful in 7m6s
ci / typescript (push) Successful in 8m42s
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
2026-10-13 02:32:50 +01:00
spark 35901215d0 Delivery to SFTP (A Bola), FTP/FTPS and Dropbox besides Nextcloud; connection test
ci / rust (push) Successful in 7m14s
ci / typescript (push) Successful in 8m31s
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
2026-10-13 02:12:50 +01:00
spark fcf133f94d Sports data: Liga, FPF and FPA squads and fixtures; player codes; events from matches
ci / rust (push) Successful in 7m12s
ci / typescript (push) Successful in 8m41s
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
2026-10-13 01:54:12 +01:00
spark 2bc9aa7ea8 Autopilot: edit and pick photos as they arrive (per event), photojournalism rules
ci / rust (push) Successful in 7m7s
ci / typescript (push) Successful in 8m6s
Joint-aware, resolution-aware crop; burst grouping and best-frame selection; render worker auto request.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 01:14:38 +01:00
spark 906226b68e Auto crop (people, ball, focus; fitted to Peter crops), Shift+A first pass, Info window (I)
ci / rust (push) Successful in 8m15s
ci / typescript (push) Successful in 9m5s
Faces are read again when the original replaces a desktop preview.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 00:56:58 +01:00
spark e63e820cfd Local-first: the desktop sends previews; originals only when someone needs them; 1:1 view
ci / rust (push) Successful in 6m56s
ci / typescript (push) Successful in 7m17s
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
2026-10-12 23:33:18 +01:00
spark bf9dd9f2c5 Desktop: the editor opens the original from disk when this computer has it
ci / typescript (push) Failing after 11m41s
ci / rust (push) Successful in 13m51s
Photos carry their SHA-256. The desktop app remembers where it filed each original (FTP work folders) and the
editor asks it first: a photo shot on this computer opens and renders from disk, with no download. Elsewhere,
or with an older desktop app, it downloads the preview as before.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-12 23:11:31 +01:00