Commit Graph
236 Commits
Author SHA1 Message Date
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 e7abf24a11 Import the old storefront: gallery links, paid orders, affiliates, Stripe Connect accounts
ci / rust (push) Successful in 7m16s
ci / typescript (push) Failing after 8m55s
The legacy importer gains a shop part. Every public gallery link becomes a gallery with the same address, title and password or PIN (old bcrypt hashes still verify), with its folder's photos. Paid carts become orders numbered OLD-..., marked delivered (history: no new payment, downloads or earnings). Affiliates keep codes and rates; photographers keep their Stripe Connect account. Order pages no longer offer a download for items without a rendered file.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 04:32:05 +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 1177565c8a Desktop 0.3.0: local catalogue, self-updates through the API, offline start
ci / rust (push) Successful in 7m2s
ci / typescript (push) Failing after 9m5s
The catalogue indexes the photographer's own folders by SHA-256 so the editor opens those originals from disk
(incremental rescans, read-only). The shell updates itself from the latest desktop-v* Gitea release, which the API
reads with a read-only token and passes through (signed installers; no key, no updates). Without network the
window opens the web app bundled in the installer. Also fixes two tests that tampered with a signature by setting
a character that could already be the same one.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 03:33:39 +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 5ef1611614 Dependency security upgrades: nodemailer 10, mysql2 3.24, next 15.5.27, vitest 4, overrides
ci / rust (push) Successful in 6m58s
ci / typescript (push) Successful in 8m18s
pnpm audit goes from 26 advisories (2 critical) to 1: ip under ftp-srv, a test-only FTP server with no fixed
release. postcss, deepmerge-ts, mysql2 (via prisma) and uuid (via ftp-srv) are pinned by pnpm overrides. All
suites, typechecks and the app and site builds pass.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 02:41:32 +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 10406eef02 Faces on by default: deploy builds engines and fetches models; enabling biometrics queues old photos
ci / rust (push) Successful in 6m58s
ci / typescript (push) Successful in 7m47s
Also carries the Develop crop/level/flags change pushed as "x" by mistake (8b01ae8).

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 00:24:39 +01:00
spark ac219a8439 Fix FTP previews over the desktop bridge; failed photos are sent again; work folders as YYYYMMDD
ci / rust (push) Successful in 7m49s
ci / typescript (push) Successful in 8m25s
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-12 23:57:46 +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
spark 1e6a198c89 feat: desktop shows the live web app; API finds its web app and CORS origin from the host
ci / rust (push) Successful in 6m56s
ci / typescript (push) Successful in 7m20s
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-12 15:36:25 +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 07f857f83c feat(library): search across events by name, team, dates or person
ci / typescript (push) Has been cancelled
ci / rust (push) Has been cancelled
Names, teams, competition, venue, file name and capture dates; a person returns the photos they are named in and, apart, the ones the face engine suggests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-11 22:36:41 +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 27eb8302bb fix(iptc): keep long values whole in IIM, write capture date and time
ci / rust (push) Successful in 1m41s
ci / typescript (push) Successful in 3m25s
Lightroom and Photo Mechanic write e.g. a 39-character Sub-location in full; ExifTool now does the same (-m) instead of cutting it at 32 bytes. IIM is flagged as UTF-8 so accents survive in every reader. IPTC DateCreated/TimeCreated (and XMP DateCreated) come from the capture time in Lisbon time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-11 17:22:41 +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 74ac5633d9 feat(app): web app shell, auth context and API tests (4/10)
ci / typescript (push) Failing after 38s
ci / rust (push) Failing after 53s
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-11 14:43:52 +01:00
sparkandClaude Opus 5.5 59c0c34af7 feat(api): members, preferences, errors and auth tests (3/10)
ci / rust (push) Failing after 54s
ci / typescript (push) Failing after 1m8s
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-11 14:42:28 +01:00
sparkandClaude Opus 5.5 56f4942ed1 feat(api): sessions with refresh rotation, device sign-in, config (2/10)
ci / rust (push) Failing after 53s
ci / typescript (push) Failing after 1m9s
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-11 14:41:08 +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
sparkandClaude Opus 5.5 500bb9fd87 feat: API skeleton, edit contracts and app/package placeholders
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-11 13:53:01 +01:00