Commit Graph
5 Commits
Author SHA1 Message Date
spark 9ff98530d9 Recognise a delivered game by its federation code, and ship the local copy and the game's people.
ci / rust (pull_request) Failing after 37s
ci / typescript (pull_request) Failing after 6m25s
A folder the program writes as AAAS x SCP is Águas Santas x Sporting, so the archive check that already runs when the worker starts attaches the official game. Suggestions on a linked game stay inside the two squads. An export can also keep the same file in a local folder named by the day, the game and the destination, and a gallery can pick anyone named in that game.
2026-10-18 19:29:07 +01: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
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
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
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