Files
lightcraft/docs
a9842ad617 ui: import several Lightroom catalogs at once, one after another into… (#4704)
* ui: import several Lightroom catalogs at once, one after another into the same library

File > Import Lightroom Catalog... takes several catalogs (chosen together in the dialog, or
`paths: [...]`). The first asks where it goes as before; the others are imported after it, one by
one, into the library it went into. A cancelled or failed import stops the rest of the batch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PmGjUip2AHdjRW7n5BP9Fu

* ui: several Lightroom catalogs: picker answer under `paths`, queue only behind a started batch

Review on #4704:
- the background file dialog's answer (a list) comes back under `paths`; under `path` it reopened
  the dialog instead of importing.
- the remaining catalogs are queued only after the first is accepted, so a refused request (an
  import already running) leaves the running batch's queue alone.
- the queue is dropped whenever no import runs and no destination window is up, so a window closed
  without importing leaves nothing for a later import to pick up.
- confirming the destination window passes the queued catalogs along (`paths`); it used to re-run
  the import with one `path` and empty the queue.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PmGjUip2AHdjRW7n5BP9Fu

* ui: an unconfirmed batch stays in its window, a confirmed one follows its own import; every result kept

Review on #4704:
- the catalogs chosen with the first wait in its destination window (`then`) until it is confirmed;
  closing the window drops them, and no other import can pick them up meanwhile.
- once the first catalog's import starts, the rest are bound to it (`lightroom_import::Batch`: the
  catalog they follow and the library it went into). Only the end of that import moves the batch;
  a failed or cancelled import, or another library open by then, ends it.
- finished imports queue their result windows (`lightroom_results`) instead of one slot, so a later
  catalog doesn't replace an earlier one's warnings or missing photos; they show in turn.

Tests: another_import_ending_starts_none_of_an_unconfirmed_batch (a successful unrelated import while
the window asks), every_finished_import_keeps_its_result (three results while the first is open);
both fail with the previous behaviour.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PmGjUip2AHdjRW7n5BP9Fu

* ui: file.importLightroom refuses a bad `paths` whole, before any import starts

A `paths` that is not a list, or a list with an entry that is not text, now
fails with an error naming the argument instead of importing the entries that
were text and dropping the rest silently. Null still means absent.

Test: a_paths_value_with_a_bad_entry_is_refused_and_starts_nothing (fails
without the check): no import, queue or destination window for any bad shape,
also through the control channel.

* Fix destination test fixture after batch import merge

* Update picker expectation for multiple catalogs

---------

Co-authored-by: aquinox <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 09:08:50 +01:00
..
2026-10-31 02:31:16 +00:00
2026-12-02 10:10:59 +01:00