Commit Graph
49 Commits
Author SHA1 Message Date
sparkandClaude Opus 5.5 a824c7bef6 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
- {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
2026-10-18 11:13:27 +00:00
sparkandClaude Opus 5.5 d331ea15fd Delivery: a client's own IPTC fields, and players left to right
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
2026-10-18 11:01:43 +00:00
spark 2741de223a Faces: date the newest-first index after migrations already in production
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.
2026-10-17 18:35:42 +01:00
spark ef7be320f8 Faces: analyse the most recently shot photos first
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
2026-10-17 16:56:28 +00:00
spark 11282efa1a Archive: open each gallery by the page, with a link that survives refresh.
ci / rust (pull_request) Successful in 7m25s
ci / typescript (pull_request) Failing after 8m57s
The public archive was loading every indexed photo on each click. Pages now come from the database, and Nextcloud is only asked when someone signs in.
2026-10-17 17:46:24 +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 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 0b56ba8c4c Delivery: a delivered photo edited again is sent again (ZeroZero: old one taken back)
ci / rust (push) Successful in 4m20s
ci / typescript (push) Successful in 7m1s
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
2026-10-15 14:37:36 +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 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 19ccaf76f5 Archive: never add to live events; stricter game matching; take wrong folders back out
ci / rust (push) Successful in 10m25s
ci / typescript (push) Successful in 12m11s
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
2026-10-15 01:31:16 +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 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 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 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
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 467df72a59 Faces: face, shirt number and kit colour together
ci / rust (push) Successful in 8m24s
ci / typescript (push) Successful in 11m44s
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
2026-10-13 21:53:42 +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 aae9ab8d0b Faces queue photos left unanalysed; local FTP originals count as camera ingest
ci / rust (push) Successful in 10m37s
ci / typescript (push) Successful in 12m58s
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 15:20:51 +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 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 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 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 392f5c5e46 feat(api): import the old app.photoreport.pt (accounts, squads, events, photos)
ci / rust (push) Successful in 6m47s
ci / typescript (push) Successful in 7m40s
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-12 00:35:21 +01:00
sparkandClaude Opus 5.5 57ed2154be feat(faces): shirt numbers from our own model
ci / rust (push) Successful in 6m54s
ci / typescript (push) Successful in 7m47s
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
2026-10-11 23:31:00 +01:00
sparkandClaude Opus 5.5 0f82126178 feat(print): paid prints at events through the organization's Stripe account
ci / typescript (push) Successful in 14m17s
ci / rust (push) Successful in 10m55s
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
2026-10-11 22:37:10 +01:00
sparkandClaude Opus 5.5 f850e04afb feat(ingest): resumable chunked uploads from the browser and desktop
ci / typescript (push) Has been cancelled
ci / rust (push) Has been cancelled
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
2026-10-11 22:37:00 +01:00
sparkandClaude Opus 5.5 e631e04ec0 feat(ingest): FTP passwords made in the app; SFTPGo authenticates cameras via the API
ci / typescript (push) Has been cancelled
ci / rust (push) Has been cancelled
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
2026-10-11 22:36:51 +01:00
sparkandClaude Opus 5.5 d40dd9552d feat(print): on-site printing with a QR page for guests and a print agent
ci / typescript (push) Successful in 16m21s
ci / rust (push) Successful in 22m6s
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
2026-10-11 22:36:26 +01:00
sparkandClaude Opus 5.5 8947a51d83 feat(shop): galleries on the public sites, Stripe checkout and rendered downloads
ci / typescript (push) Successful in 15m12s
ci / rust (push) Successful in 22m16s
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
2026-10-11 22:36:16 +01:00
sparkandClaude Opus 5.5 64da90d2f2 feat(develop): Revelar, the synced editor with one engine on web, desktop and server
ci / typescript (push) Successful in 9m59s
ci / rust (push) Successful in 21m53s
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
2026-10-11 22:36:02 +01:00
sparkandClaude Opus 5.5 3f702c4e23 feat(faces): detect, group and name players by face; squad reference photos
ci / rust (push) Successful in 2m3s
ci / typescript (push) Successful in 4m26s
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
2026-10-11 18:41:07 +01:00
sparkandClaude Opus 5.5 11e60e2443 feat: browser uploads and IPTC already in incoming files
ci / rust (push) Successful in 1m41s
ci / typescript (push) Successful in 3m39s
- 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
2026-10-11 17:37:38 +01:00
sparkandClaude Opus 5.5 fca9281f4e feat: phase 1 ingest, library, IPTC and Nextcloud delivery
ci / rust (push) Successful in 2m20s
ci / typescript (push) Successful in 5m23s
- packages/metadata: {variable} templates, Photo Mechanic code replacement, IPTC fields of the current pad (title = persons shown), IIM/XMP mapping, delivery folder and file-name templates (FPA, Liga)
- API: events with agenda and IPTC template, FTP logins, ingest worker (hash, dedupe, EXIF in Lisbon time, routing by agenda + capture time, previews), library culling, IPTC preview, code list, signed file URLs
- Realtime: Socket.io with Postgres LISTEN/NOTIFY fan-out
- Delivery: queue with fixed sequence numbers, 4000 px JPEG 100 with IPTC via ExifTool, WebDAV upload with retries, OCS share links, encrypted app passwords
- Web app: approved type and Lightroom-style workspace, grid/loupe with keyboard culling, players, IPTC panel, delivery queue, code list editor

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-11 15:46:07 +01:00
sparkandClaude Opus 5.5 02eb41060e feat(api): accounts, organizations and auth schema; CI with Postgres (1/10)
ci / rust (push) Failing after 53s
ci / typescript (push) Failing after 1m44s
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-11 14:39:11 +01:00