Search any folder for clear faces and shirt numbers, then import only the photos you pick into the open event. The button is Procurar numa pasta (a folder, not only a memory card).
Faces: analyse the most recently shot photos first. The index migration is dated after the archive viewer migration already applied in production.
Events: fill homeShort/awayShort from the official FPA club list when the fixture has no abbreviation.
Archive: date a gallery from the season in its folder path when the folder name has no day, instead of the cloud modified time.
Desktop: offload a card into a dated folder (copy by default; move only after a verified copy). The Rust commands ship with the next desktop build; the button arrives with the app UI update.
Test plan
API lookup tests, including the scan route (number, person, empty photo, biometrics off)
App tests for the folder filter and import of the selected original
API and app typecheck
Newest-first migration applies on a database that already has the later archive viewer migration
On app.next, open a game, Procurar numa pasta, search a name or number, import the selection
A new handball event without abbreviations gets the official short codes
An archive folder dated only by season is not stamped with the cloud copy time
## Summary
- Search any folder for clear faces and shirt numbers, then import only the photos you pick into the open event. The button is Procurar numa pasta (a folder, not only a memory card).
- Faces: analyse the most recently shot photos first. The index migration is dated after the archive viewer migration already applied in production.
- Events: fill homeShort/awayShort from the official FPA club list when the fixture has no abbreviation.
- Archive: date a gallery from the season in its folder path when the folder name has no day, instead of the cloud modified time.
- Desktop: offload a card into a dated folder (copy by default; move only after a verified copy). The Rust commands ship with the next desktop build; the button arrives with the app UI update.
## Test plan
- [x] API lookup tests, including the scan route (number, person, empty photo, biometrics off)
- [x] App tests for the folder filter and import of the selected original
- [x] API and app typecheck
- [x] Newest-first migration applies on a database that already has the later archive viewer migration
- [ ] On app.next, open a game, Procurar numa pasta, search a name or number, import the selection
- [ ] A new handball event without abbreviations gets the official short codes
- [ ] An archive folder dated only by season is not stamped with the cloud copy time
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
Handball fixtures carry no team abbreviations, so homeShort/awayShort were empty
and the delivery folder fell back to the full team name ("CDE Gil Eanes x CD
Feirense" instead of "GIL x CDF"). Add the federation's official "Cores, Siglas
e Nomes" short codes (Campeonato Betclic, men and women) and, when creating an
event, fill homeShort/awayShort from the club name whenever the fixture gave none.
Matching is by a normalised name (case, accents, punctuation and sponsor dashes
ignored); a club not on the list simply keeps the full name, so the fallback is
never worse than today. The list lives in one file to update once a season.
Only new events are filled here; existing events keep their current values (set
them by hand in the event settings, or ask for a one-off backfill).
Claude-Session: https://claude.ai/code/session_01RAkmwWv6L5KmpX4h9JPD2i
Fills homeShort/awayShort on events created before the automatic fill, from the
same official FPA club list. Dry-run by default; --apply writes. Uses pg and
DATABASE_URL so it needs no build.
Claude-Session: https://claude.ai/code/session_01RAkmwWv6L5KmpX4h9JPD2i
A gallery whose folder name has no date (e.g. "J6 - ALA x ASSO") was dated from
the Nextcloud folder's modified time — when it was copied to the cloud, not when
the game was played — so 2018/19 games showed as 2026. A wrong season also
misidentifies faces (it matches against the wrong season's squads).
Date priority is now: the folder name's date, then the photos' capture day (both
already tried), then the season from the path (".../FPA/Fotos/2018_2019/..." ->
a date in that season), and only as a last resort the cloud's modified time. The
"current event still fits" check also rejects an event whose season no longer
matches the path, so the next scan re-dates the galleries already mis-catalogued.
Claude-Session: https://claude.ai/code/session_01RAkmwWv6L5KmpX4h9JPD2i
A new "Cartão…" button in the library offers Photo Mechanic's card offload: it
copies (default) or moves the photos from a card/folder into a dated folder on
this computer, with a folder template ({iptcyear4}/{iptcyear4}{iptcmonth0}{iptcday0}/{type}),
RAW+JPEG handling, overwrite, and WAV/XMP sidecars. The last settings used are
remembered. Pure filesystem — nothing is sent to the server.
Safety: the default is copy. "Move" copies, verifies the copy (size and SHA-256),
and only then deletes the original; on any mismatch or error it never deletes, so
a card is never emptied of a file that did not arrive whole.
The capture day comes from the file's modification time (on a card straight from
the camera that is when the frame was shot). Exact EXIF/RAW capture time — the CR3
case — is a later refinement; the shell has no RAW decoder yet (that is the
exiv2-FFI work on the engine roadmap).
New: card.rs (card_scan/card_ingest/card_settings/card_save_settings), wired in
lib.rs, build.rs and capabilities; CardIngest.tsx dialog; chrono added for the
local date. NOT built/typechecked here (no toolchain) — needs CI. chrono is new,
so Cargo.lock must be regenerated (cargo build) if CI runs --locked.
Claude-Session: https://claude.ai/code/session_01RAkmwWv6L5KmpX4h9JPD2i
The folder date now comes from EXIF DateTimeOriginal when it can be read — a
JPEG's own EXIF, or a RAW's paired JPEG (RAW+JPEG shooting) — so a card offloaded
days after the shoot still lands in the day it was shot. It falls back to the
file's modification time when there is no EXIF (RAW-only formats with no reader
yet, e.g. CR3), so it is never worse than before.
exif_date() added to preview.rs (follows the ExifIFD pointer to DateTimeOriginal,
same byte-walking as exif_orientation); card.rs reads it for JPEGs and for a RAW's
sibling JPEG. Still needs CI to build.
Claude-Session: https://claude.ai/code/session_01RAkmwWv6L5KmpX4h9JPD2i
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.
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.
pr-app ui-manifest version 333652ca, built 2026-10-17T17:40:03Z. The live bundle contains "Procurar numa pasta".
pr-site also redeployed to the same sha.
To try the folder search: open a game (not the inbox) and use Procurar numa pasta. Pick any folder. Photos stay where they are. Search by name, club or number, then import only the selection.
Also in this sha: newest-first face analysis, official FPA short codes on new events, archive galleries dated from the season in the path, and the desktop card-offload code. The Cartão… button arrives with the UI update, but the copy/move commands are Rust and are not in the installed desktop binary until the next desktop release.
pr-ingest (CT 267) is still on b6abdaf and its deploy receiver is inactive. This change does not touch ingest.
Merged to main as 333652caba7f5567de002c8d41d740ee02825ef9.
Deploys finished successfully:
- pr-api health https://api.next.photoreport.pt/health version 333652ca (migration 20261017220000_faces_newest_first applied)
- pr-app ui-manifest version 333652ca, built 2026-10-17T17:40:03Z. The live bundle contains "Procurar numa pasta".
- pr-site also redeployed to the same sha.
To try the folder search: open a game (not the inbox) and use Procurar numa pasta. Pick any folder. Photos stay where they are. Search by name, club or number, then import only the selection.
Also in this sha: newest-first face analysis, official FPA short codes on new events, archive galleries dated from the season in the path, and the desktop card-offload code. The Cartão… button arrives with the UI update, but the copy/move commands are Rust and are not in the installed desktop binary until the next desktop release.
pr-ingest (CT 267) is still on b6abdaf and its deploy receiver is inactive. This change does not touch ingest.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Test plan
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_01RAkmwWv6L5KmpX4h9JPD2iHandball fixtures carry no team abbreviations, so homeShort/awayShort were empty and the delivery folder fell back to the full team name ("CDE Gil Eanes x CD Feirense" instead of "GIL x CDF"). Add the federation's official "Cores, Siglas e Nomes" short codes (Campeonato Betclic, men and women) and, when creating an event, fill homeShort/awayShort from the club name whenever the fixture gave none. Matching is by a normalised name (case, accents, punctuation and sponsor dashes ignored); a club not on the list simply keeps the full name, so the fallback is never worse than today. The list lives in one file to update once a season. Only new events are filled here; existing events keep their current values (set them by hand in the event settings, or ask for a one-off backfill). Claude-Session: https://claude.ai/code/session_01RAkmwWv6L5KmpX4h9JPD2iA gallery whose folder name has no date (e.g. "J6 - ALA x ASSO") was dated from the Nextcloud folder's modified time — when it was copied to the cloud, not when the game was played — so 2018/19 games showed as 2026. A wrong season also misidentifies faces (it matches against the wrong season's squads). Date priority is now: the folder name's date, then the photos' capture day (both already tried), then the season from the path (".../FPA/Fotos/2018_2019/..." -> a date in that season), and only as a last resort the cloud's modified time. The "current event still fits" check also rejects an event whose season no longer matches the path, so the next scan re-dates the galleries already mis-catalogued. Claude-Session: https://claude.ai/code/session_01RAkmwWv6L5KmpX4h9JPD2iA new "Cartão…" button in the library offers Photo Mechanic's card offload: it copies (default) or moves the photos from a card/folder into a dated folder on this computer, with a folder template ({iptcyear4}/{iptcyear4}{iptcmonth0}{iptcday0}/{type}), RAW+JPEG handling, overwrite, and WAV/XMP sidecars. The last settings used are remembered. Pure filesystem — nothing is sent to the server. Safety: the default is copy. "Move" copies, verifies the copy (size and SHA-256), and only then deletes the original; on any mismatch or error it never deletes, so a card is never emptied of a file that did not arrive whole. The capture day comes from the file's modification time (on a card straight from the camera that is when the frame was shot). Exact EXIF/RAW capture time — the CR3 case — is a later refinement; the shell has no RAW decoder yet (that is the exiv2-FFI work on the engine roadmap). New: card.rs (card_scan/card_ingest/card_settings/card_save_settings), wired in lib.rs, build.rs and capabilities; CardIngest.tsx dialog; chrono added for the local date. NOT built/typechecked here (no toolchain) — needs CI. chrono is new, so Cargo.lock must be regenerated (cargo build) if CI runs --locked. Claude-Session: https://claude.ai/code/session_01RAkmwWv6L5KmpX4h9JPD2iMerged to main as
333652caba.Deploys finished successfully:
333652ca(migration 20261017220000_faces_newest_first applied)333652ca, built 2026-10-17T17:40:03Z. The live bundle contains "Procurar numa pasta".To try the folder search: open a game (not the inbox) and use Procurar numa pasta. Pick any folder. Photos stay where they are. Search by name, club or number, then import only the selection.
Also in this sha: newest-first face analysis, official FPA short codes on new events, archive galleries dated from the season in the path, and the desktop card-offload code. The Cartão… button arrives with the UI update, but the copy/move commands are Rust and are not in the installed desktop binary until the next desktop release.
pr-ingest (CT 267) is still on
b6abdafand its deploy receiver is inactive. This change does not touch ingest.