Commit Graph
30 Commits
Author SHA1 Message Date
spark 45c97bbcb2 Show what the folder search is doing before the first photo.
ci / rust (pull_request) Failing after 43s
ci / typescript (pull_request) Failing after 2m22s
The wait names the step (download, count, graphics, load) and how long it has already taken, so a first-time prepare is not a frozen sentence.
2026-10-17 21:48:25 +01:00
spark 7b88827847 Folder search keeps going when the window is closed.
ci / rust (pull_request) Failing after 42s
ci / typescript (pull_request) Failing after 7m57s
Closing it only hides the window; a bar at the bottom opens it again. The Mac build also links compiler-rt, which the GPU recogniser needs and the installer was missing.
2026-10-17 21:00:51 +01:00
spark d17b62d103 Desktop: use the GPU, Neural Engine and CPU together for face recognition.
ci / rust (pull_request) Failing after 38s
ci / typescript (pull_request) Failing after 7m37s
The boxes stay on the CPU interpreter. The recogniser uses every accelerator when a startup check still matches that interpreter, so the names stay the same.
2026-10-17 20:37:16 +01:00
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 3acffbd9f6 Desktop card ingest: date by EXIF capture time, not just the file's mtime
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
2026-10-17 17:28:09 +00:00
spark 128a561e1c Desktop: import a memory card into a dated folder (Photo Mechanic Cmd+Y)
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
2026-10-17 17:23:49 +00:00
spark 1702c290de Local FTP: stop a stopped server's shutdown from flagging the running one as errored
On the libunftp version in use, server.listen() returns Err when the server is
shut down gracefully, and the listen task writes that into the shared last_error
asynchronously. ftp_save_settings restarts the server (stop -> sleep -> start):
start() clears last_error and brings up a new server, but the *old* listen task
then returns its expected "shutdown error" and writes it into the same shared
slot — so a perfectly running server reports `server error: shutdown error`.

Give each server instance an epoch. The listen task records its error only while
it is still the current server; stop() moves the epoch on (so the server's own
shutdown is ignored) and clears last_error, since a server stopped on purpose is
not a server in error.

No command signatures change. cargo build/clippy/test to run in CI (no Rust
toolchain on this machine).

Claude-Session: https://claude.ai/code/session_01RAkmwWv6L5KmpX4h9JPD2i
2026-10-17 16:06:47 +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 a5cbbe594d Desktop 0.3.11: importing destinations brings their saved passwords when readable
ci / rust (push) Successful in 10m54s
desktop-release / build (--target universal-apple-darwin, dmg,app, darwin-universal, macos) (push) Successful in 12m29s
ci / typescript (push) Successful in 14m3s
desktop-release / build (deb,appimage, linux-x86_64, ubuntu-latest) (push) Successful in 38m33s
The desktop takes the passwords out of Photo Mechanic's accounts and FileZilla's site manager and hands them over on their own when they are readable (plain, or base64 that decodes to text); the wizard fills them in and says so. Encrypted ones (FileZilla with a master password, binary Photo Mechanic blobs) are flagged to be typed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-14 04:24:06 +01:00
sparkandClaude Opus 5.5 42664869fc Desktop 0.3.10: the destination-import parser gets a name of its own
desktop-release / build (--target universal-apple-darwin, dmg,app, darwin-universal, macos) (push) Successful in 11m24s
ci / rust (push) Successful in 11m30s
ci / typescript (push) Successful in 14m36s
desktop-release / build (deb,appimage, linux-x86_64, ubuntu-latest) (push) Successful in 33m55s
macOS file systems ignore case, so importTargets.ts and ImportTargets.tsx were the same module there and the 0.3.9 build failed. The parser is now importSources.ts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-14 02:36:59 +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
spark 520e51209c Desktop 0.3.8: the editor engine runs in the interface kept on disk (CSP allows WebAssembly)
ci / rust (push) Successful in 11m47s
ci / typescript (push) Successful in 13m52s
desktop-release / build (--target universal-apple-darwin, dmg,app, darwin-universal, macos) (push) Successful in 14m46s
desktop-release / build (deb,appimage, linux-x86_64, ubuntu-latest) (push) Successful in 34m48s
Since 0.3.6 the window shows the interface from disk under the app's CSP, which had no script-src: WebAssembly
was refused and Revelar said the engine was missing. script-src now allows 'wasm-unsafe-eval' (and blob: for
the engine glue fallback), worker-src 'self' blob:. A test keeps it so.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 22:16:21 +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 f8611ad405 Desktop 0.3.6: the interface lives on the computer and updates itself
ci / rust (push) Successful in 11m30s
ci / typescript (push) Successful in 13m56s
desktop-release / build (--target universal-apple-darwin, dmg,app, darwin-universal, macos) (push) Successful in 18m40s
desktop-release / build (deb,appimage, linux-x86_64, ubuntu-latest) (push) Successful in 33m44s
The window always opens the interface from disk (no download to start, works offline). Each web deploy publishes ui-manifest.json; the app checks it in the background, downloads only the files that changed, verifies every hash and switches on the next start or reload. The installer's copy is the fallback and wins when newer.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 17:25:59 +01:00
spark 17784c8b22 Desktop: macOS installer and update build on a registered Mac (macos-runner.sh); 0.3.5
ci / typescript (push) Successful in 24m55s
desktop-release / build (--target universal-apple-darwin, dmg,app, darwin-universal, macos) (push) Successful in 19m18s
ci / rust (push) Successful in 24m31s
desktop-release / build (deb,appimage, linux-x86_64, ubuntu-latest) (push) Successful in 1h16m12s
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 14:18:28 +01:00
spark 24ec8095f6 Desktop 0.3.4: allow ftp_check for the web app, and a test that every command is allowed
ci / typescript (push) Failing after 21m10s
ci / rust (push) Successful in 22m51s
desktop-release / build (deb,appimage, linux-x86_64, ubuntu-latest) (push) Successful in 1h19m4s
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 14:13:22 +01:00
spark 82ab4a3888 Local FTP: logins can be switched off, a connection test, macOS firewall warnings; desktop 0.3.3
ci / rust (push) Successful in 15m32s
ci / typescript (push) Successful in 16m47s
desktop-release / build (deb,appimage, linux-x86_64, ubuntu-latest) (push) Successful in 1h16m6s
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 13:56:24 +01:00
spark 72d9c17a4d Event pages without a storefront on the domain; desktop 0.3.2 with the manifest step fixed
ci / typescript (push) Failing after 20m33s
ci / rust (push) Successful in 21m28s
desktop-release / build (deb,appimage, linux-x86_64, ubuntu-latest) (push) Successful in 45m20s
events.next showed "Este domínio não tem site configurado" for /e/ pages: they now render on their own. The release's manifest step ended under pipefail when one of the two bundle folders didn't exist.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 11:33:28 +01:00
spark 34a18bb862 Desktop 0.3.1: the release build gives the bundler the updater public key
ci / rust (push) Successful in 12m43s
ci / typescript (push) Successful in 14m5s
desktop-release / build (deb,appimage, linux-x86_64, ubuntu-latest) (push) Failing after 34m21s
Signed installers failed to verify (Missing comment in public key) because plugins.updater.pubkey was empty at build time.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-13 10:57:28 +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 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 be771f5e36 Local FTP in the desktop app
ci / typescript (push) Failing after 9m44s
ci / rust (push) Successful in 11m12s
The desktop app runs an FTP server for cameras, set up like the old Studio: port, logins (e.g. 1dx/1dx on a
private network), the ingest folder (default ~/Desktop/ingest) and the work folder originals move to once the
server has them (default ~/Desktop/{year}/{date} - {event}). Library -> FTP local shows what to type into the
camera, chooses the event and starts or stops the server; it can also start with the app.

Each complete JPEG goes to the event through the resumable upload (the event IPTC applies on the server). The
ingest folder is the queue: nothing is deleted, and what did not go is sent on the next start. The feed lives
above the modules, so photos keep arriving in Revelar too. An older desktop app is told to update.

Desktop 0.2.0. The desktop Cargo.lock is refreshed by the build.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-12 16:42:03 +01:00
spark adb557290c Release hardening: no symbols, no source maps, no wasm names
ci / rust (push) Successful in 7m1s
ci / typescript (push) Successful in 7m36s
Rust release profiles strip symbols and debug info (desktop: fat LTO, panic=abort), the web app and site ship
without source maps, and wasm-opt drops debug, producer and name sections from the engine.

Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-12 16:13:37 +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 749c482d6e build(desktop): one-command macOS installer build; engine in release workflow
ci / rust (push) Successful in 9m27s
ci / typescript (push) Successful in 10m50s
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-11 23:46:14 +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 31a056542e feat(desktop): Tauri shell with keychain sign-in; docs status (6/10)
ci / typescript (push) Failing after 40s
ci / rust (push) Successful in 1m36s
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
2026-10-11 14:46:46 +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