LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
Merge PR #946
Claudec9d131bfbc51
diff --cc crates/engine/src/library.rsindex e0110b357,683c2b50c..c98ef4617--- a/crates/engine/src/library.rs+++ b/crates/engine/src/library.rs@@@ -252,16 -278,8 +278,17 @@@ impl Session/// The library is locked for this session ([`lightcraft_catalog::lock`]): if another process/// has it open, this fails with [`EngineError::LibraryInUse`] and nothing is read or changed./// Reopening the library this session already has open keeps its lock.+ ///+ /// A Lightroom Classic catalog folder, one of its `.lrdata` / `.lrcat-data` folders or an+ /// `.lrcat` file is refused with [`EngineError::LightroomCatalog`] before anything is+ /// created ([`crate::lightroom_folder`]); a LightCraft library always opens, whatever else+ /// its folder holds.pub fn open_library(&mut self, dir: impl AsRef<Path>, seed_demo: bool) -> Result<&LoadReport> {- let dir = resolve_dir(dir.as_ref())?;+ let dir = dir.as_ref().to_path_buf();+ if let Some(place) = crate::lightroom_folder::lightroom_catalog_at(&dir) {+ return Err(EngineError::LightroomCatalog { path: dir, catalog: place.catalog });+ }++ let dir = resolve_dir(&dir)?;let open = || FsStore::open(&dir).map_err(|e| EngineError::Other(format!("can't open library {}: {e}", dir.display())));let stores = LibraryStores { catalog: Box::new(open()?), files: Box::new(open()?), on_disk: true, dir: dir.clone() };// the library open in this session (same directory): hand its lock overdiff --cc crates/engine/src/lightroom_folder.rsindex ae6a03abf,000000000..0b5a85659mode 100644,000000..100644--- a/crates/engine/src/lightroom_folder.rs+++ b/crates/engine/src/lightroom_folder.rs@@@ -1,143 -1,0 +1,138 @@@+//! Recognise a Lightroom Classic catalog where a LightCraft library was asked for (issue #891).+//!+//! A Lightroom catalog folder holds `Name.lrcat` (SQLite) next to `Name Previews.lrdata`,+//! `Name Smart Previews.lrdata`, `Name Helper.lrdata`, `Name.lrcat-data`, the `-wal` / `-shm` /+//! `.lock` files of an open catalog and `Backups/`. Opening any of these as a library would create+//! an empty LightCraft library inside Lightroom's folder; [`Session::open_library`] refuses with+//! [`EngineError::LightroomCatalog`] instead, and the app offers File ▸ Import Lightroom Catalog….+//!+//! What counts (only names are looked at; no catalog is opened or read):+//! - a LightCraft library (`catalog.snap` or `catalog.log` in the folder) is never a Lightroom+//! catalog, whatever else the folder holds: it opens as before;+//! - a path named `*.lrcat` or one of its companions (`*.lrcat-wal`, `*.lrcat-shm`,+//! `*.lrcat-journal`, `*.lrcat.lock`);+//! - a folder named `*.lrdata` or `*.lrcat-data` (Lightroom's previews and data);+//! - a folder holding a `*.lrcat` at its top level (the catalog folder itself), or `Backups/`+//! next to one.+//!+//! The folder scan is bounded ([`SCAN_LIMIT`] entries, top level only) and every I/O error just+//! means "not found": this never fails and never panics.+//!+//! [`Session::open_library`]: crate::Session::open_library+//! [`EngineError::LightroomCatalog`]: crate::EngineError::LightroomCatalog++use std::path::{Path, PathBuf};++/// The most directory entries looked at in one folder.+pub const SCAN_LIMIT: usize = 10_000;++/// A Lightroom Classic catalog (or part of one) found where a library was asked for.+#[derive(Clone, Debug, PartialEq, Eq)]+pub struct LightroomPlace {+ /// The `.lrcat` file to import, when one was found.+ pub catalog: Option<PathBuf>,+}++/// Companion files of an open catalog, after the `.lrcat` (lower case).+const COMPANIONS: [&str; 4] = ["-wal", "-shm", "-journal", ".lock"];+/// Lightroom's own `.lrdata` folders: `Name<suffix>.lrdata` belongs to `Name.lrcat`.+const LRDATA_SUFFIXES: [&str; 4] = [" Smart Previews", " Previews", " Helper", " Sync"];++/// `path`'s file name, lower-cased (lossy: only used to compare with ASCII suffixes).+fn lower_name(path: &Path) -> Option<String> {+ path.file_name().map(|n| n.to_string_lossy().to_lowercase())+}++/// `name` ends with `suffix`, ignoring ASCII case; returns the part before it (`None` for a+/// non-UTF-8 name, or when the cut would not be on a character boundary).+fn strip_suffix_nocase<'a>(name: &'a str, suffix: &str) -> Option<&'a str> {+ let cut = name.len().checked_sub(suffix.len())?;+ let tail = name.get(cut..)?;+ tail.eq_ignore_ascii_case(suffix).then(|| name.get(..cut)).flatten()+}++/// `name` is `*.lrcat` (any case).+fn is_lrcat_name(name: &str) -> bool {+ name.to_lowercase().ends_with(".lrcat")+}+- /// A LightCraft library lives in `dir` (its catalog journal is there).- pub fn is_lightcraft_library(dir: &Path) -> bool {- [lightcraft_catalog::journal::SNAPSHOT, lightcraft_catalog::journal::LOG].iter().any(|f| dir.join(f).is_file())- }-+/// The first `*.lrcat` file (by name) at the top level of `dir`, looking at no more than+/// [`SCAN_LIMIT`] entries. Unreadable folders and entries are skipped.+pub fn find_lrcat(dir: &Path) -> Option<PathBuf> {+ let entries = std::fs::read_dir(dir).ok()?;+ let mut found: Option<PathBuf> = None;+ for entry in entries.take(SCAN_LIMIT).flatten() {+ let name = entry.file_name();+ let Some(name) = name.to_str() else { continue };+ if !is_lrcat_name(name) {+ continue;+ }+ let path = entry.path();+ // (follows a symlink; a folder named `*.lrcat` is not a catalog)+ if !path.is_file() {+ continue;+ }+ if found.as_ref().is_none_or(|f| path < *f) {+ found = Some(path);+ }+ }+ found+}++/// `candidate` if it is a file, else the first catalog in `dir`.+fn catalog_or_scan(candidate: Option<PathBuf>, dir: Option<&Path>) -> Option<PathBuf> {+ candidate.filter(|c| c.is_file()).or_else(|| dir.and_then(find_lrcat))+}++/// Whether `path`, given as a library folder, is a Lightroom Classic catalog or part of one (see+/// the module docs). `None`: not Lightroom's, open it as a library.+pub fn lightroom_catalog_at(path: &Path) -> Option<LightroomPlace> {+ let is_dir = path.is_dir();- if is_dir && is_lightcraft_library(path) {++ if is_dir && crate::library::is_library(path) {+ return None;+ }+ let parent = path.parent().filter(|p| !p.as_os_str().is_empty());+ let name = path.file_name().and_then(|n| n.to_str());+ let lower = lower_name(path).unwrap_or_default();+ // the catalog file itself (a folder named `*.lrcat` is looked into below)+ if lower.ends_with(".lrcat") && !is_dir {+ return Some(LightroomPlace { catalog: path.is_file().then(|| path.to_path_buf()) });+ }+ // an open catalog's companion files: `Name.lrcat-wal` → `Name.lrcat`+ for c in COMPANIONS {+ if lower.ends_with(&format!(".lrcat{c}")) && !is_dir {+ let candidate = name.and_then(|n| strip_suffix_nocase(n, c)).and_then(|n| parent.map(|p| p.join(n)));+ return Some(LightroomPlace { catalog: catalog_or_scan(candidate, parent) });+ }+ }+ // `Name.lrcat-data` → `Name.lrcat`+ if let Some(stem) = name.and_then(|n| strip_suffix_nocase(n, "-data"))+ && is_lrcat_name(stem)+ {+ let candidate = parent.map(|p| p.join(stem));+ return Some(LightroomPlace { catalog: catalog_or_scan(candidate, parent) });+ }+ // `Name Previews.lrdata` (and Smart Previews, Helper, Sync) → `Name.lrcat`+ if let Some(stem) = name.and_then(|n| strip_suffix_nocase(n, ".lrdata")) {+ let base = LRDATA_SUFFIXES.iter().find_map(|s| strip_suffix_nocase(stem, s)).unwrap_or(stem);+ let candidate = parent.map(|p| p.join(format!("{base}.lrcat")));+ return Some(LightroomPlace { catalog: catalog_or_scan(candidate, parent) });+ }+ if lower.ends_with(".lrdata") || lower.ends_with(".lrcat-data") {+ // (a non-UTF-8 name)+ return Some(LightroomPlace { catalog: parent.and_then(find_lrcat) });+ }+ if is_dir {+ // the catalog folder+ if let Some(catalog) = find_lrcat(path) {+ return Some(LightroomPlace { catalog: Some(catalog) });+ }+ // `Backups/` next to a catalog+ if lower == "backups"+ && let Some(catalog) = parent.and_then(find_lrcat)+ {+ return Some(LightroomPlace { catalog: Some(catalog) });+ }+ }+ None+}diff --cc crates/ui-egui/locales/de.jsonindex ac376c70c,fa2d96f7c..55a46148b--- a/crates/ui-egui/locales/de.json+++ b/crates/ui-egui/locales/de.json@@@ -2045,26 -2040,12 +2045,34 @@@"Finding faces": "Gesichter werden gesucht","Synchronizing folder": "Ordner wird synchronisiert","Looking for changes": "Änderungen werden gesucht",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Dies ist ein Lightroom-Katalog, keine LightCraft-Bibliothek. Stattdessen in eine LightCraft-Bibliothek importieren?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "Der Import liest den Katalog, ohne ihn zu ändern, und fügt seine Fotos, Bearbeitungen, Stichwörter und Sammlungen der jetzt geöffneten Bibliothek hinzu.",+ "Albums hold library photos: Add to My Photos first": "Alben enthalten Bibliotheksfotos: zuerst zu „Meine Fotos“ hinzufügen",+ "Add to My Photos First": "Zuerst zu „Meine Fotos“ hinzufügen",+ "Fill Location from GPS": "Ort aus GPS ausfüllen",+ "Download Place Names (GeoNames)": "Ortsnamen herunterladen (GeoNames)",+ "Place Names Status": "Status der Ortsnamen",+ "Fill Location": "Ort ausfüllen",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Leere Felder Stadt, Bundesland und Land aus GPS ausfüllen (GeoNames-Ortsnamen, offline)",+ "Looking up places": "Orte werden nachgeschlagen",+ "Downloading place names": "Ortsnamen werden heruntergeladen",+ "Place names downloaded": "Ortsnamen heruntergeladen",+ "Place names download cancelled": "Download der Ortsnamen abgebrochen",+ "Other…": "Andere…",+ "Intent:": "Priorität:",+ "Perceptual": "Perzeptiv",+ "Relative": "Relativ",+ "Simulate Paper & Ink": "Papier und Druckfarbe simulieren",+ "Content-Aware": "Inhaltsbasiert",+ "imported earlier switch over with Photo ▸ Reload from Disk.": "Bereits importierte Fotos wechseln mit Foto → Vom Datenträger neu laden zur RAW-Bearbeitung.",+ "Canon EOS R5 Mark II C-RAW files that opened as \"preview only\" (more than half of them, depending on the": "C-RAW-Dateien der Canon EOS R5 Mark II, die als „Nur Vorschau“ geöffnet wurden (je nach Motiv mehr als die Hälfte),",- "scene) now develop from their sensor data with every editing tool, like the camera's other raws. Photos": "werden jetzt wie die übrigen RAW-Dateien der Kamera aus ihren Sensordaten mit allen Werkzeugen bearbeitet."++ "scene) now develop from their sensor data with every editing tool, like the camera's other raws. Photos": "werden jetzt wie die übrigen RAW-Dateien der Kamera aus ihren Sensordaten mit allen Werkzeugen bearbeitet.",+ "New Library…": "Neue Bibliothek…",+ "Open Recent Library": "Zuletzt verwendete Bibliothek öffnen",+ "Recent Libraries": "Zuletzt verwendete Bibliotheken",+ "Clear Recent Libraries": "Liste leeren",+ "No Recent Libraries": "Keine zuletzt verwendeten Bibliotheken",+ "New Library: Choose Where to Put It": "Neue Bibliothek: Speicherort wählen",+ "New Library": "Neue Bibliothek",+ "Library name": "Name der Bibliothek"}diff --cc crates/ui-egui/locales/es.jsonindex bd42ce60c,d3f30836a..5e5e1f0ca--- a/crates/ui-egui/locales/es.json+++ b/crates/ui-egui/locales/es.json@@@ -1890,23 -1885,12 +1890,31 @@@"Finding faces": "Buscando caras","Synchronizing folder": "Sincronizando carpeta","Looking for changes": "Buscando cambios",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Esto es un catálogo de Lightroom, no una biblioteca de LightCraft. ¿Importarlo a una biblioteca de LightCraft?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "La importación lee el catálogo sin modificarlo y añade sus fotos, ediciones, palabras clave y colecciones a la biblioteca abierta ahora.",+ "Albums hold library photos: Add to My Photos first": "Los álbumes contienen fotos de la biblioteca: añádelas primero a Mis fotos",+ "Add to My Photos First": "Añadir primero a Mis fotos",+ "Fill Location from GPS": "Rellenar ubicación desde GPS",+ "Download Place Names (GeoNames)": "Descargar nombres de lugares (GeoNames)",+ "Place Names Status": "Estado de los nombres de lugares",+ "Fill Location": "Rellenar ubicación",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Rellenar Ciudad, Estado y País vacíos desde el GPS (nombres de lugares de GeoNames, sin conexión)",+ "Looking up places": "Buscando lugares",+ "Downloading place names": "Descargando nombres de lugares",+ "Place names downloaded": "Nombres de lugares descargados",+ "Place names download cancelled": "Descarga de nombres de lugares cancelada",+ "Other…": "Otro…",+ "Intent:": "Propósito:",+ "Perceptual": "Perceptual",+ "Relative": "Relativo",+ "Simulate Paper & Ink": "Simular papel y tinta",- "Content-Aware": "Según el contenido"++ "Content-Aware": "Según el contenido",+ "New Library…": "Nueva biblioteca…",+ "Open Recent Library": "Abrir biblioteca reciente",+ "Recent Libraries": "Bibliotecas recientes",+ "Clear Recent Libraries": "Borrar bibliotecas recientes",+ "No Recent Libraries": "No hay bibliotecas recientes",+ "New Library: Choose Where to Put It": "Nueva biblioteca: elige dónde guardarla",+ "New Library": "Nueva biblioteca",+ "Library name": "Nombre de la biblioteca"}diff --cc crates/ui-egui/locales/fr.jsonindex 44ed46016,0512baae9..22fececca--- a/crates/ui-egui/locales/fr.json+++ b/crates/ui-egui/locales/fr.json@@@ -1890,23 -1885,12 +1890,31 @@@"Reset Panel Layout": "Reset Panel Layout","Resize panel window": "Resize panel window","Resize panels": "Resize panels",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Ceci est un catalogue Lightroom, pas une bibliothèque LightCraft. L’importer plutôt dans une bibliothèque LightCraft ?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "L’importation lit le catalogue sans le modifier et ajoute ses photos, retouches, mots-clés et collections à la bibliothèque ouverte.",+ "Albums hold library photos: Add to My Photos first": "Les albums contiennent des photos de la bibliothèque : ajoutez-les d’abord à Mes photos",+ "Add to My Photos First": "Ajouter d’abord à Mes photos",+ "Fill Location from GPS": "Remplir le lieu depuis le GPS",+ "Download Place Names (GeoNames)": "Télécharger les noms de lieux (GeoNames)",+ "Place Names Status": "État des noms de lieux",+ "Fill Location": "Remplir le lieu",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Remplir Ville, État et Pays vides depuis le GPS (noms de lieux GeoNames, hors ligne)",+ "Looking up places": "Recherche des lieux",+ "Downloading place names": "Téléchargement des noms de lieux",+ "Place names downloaded": "Noms de lieux téléchargés",+ "Place names download cancelled": "Téléchargement des noms de lieux annulé",+ "Other…": "Autre…",+ "Intent:": "Mode de rendu :",+ "Perceptual": "Perceptif",+ "Relative": "Relatif",+ "Simulate Paper & Ink": "Simuler le papier et l'encre",- "Content-Aware": "Contenu pris en compte"++ "Content-Aware": "Contenu pris en compte",+ "New Library…": "Nouvelle bibliothèque…",+ "Open Recent Library": "Ouvrir une bibliothèque récente",+ "Recent Libraries": "Bibliothèques récentes",+ "Clear Recent Libraries": "Effacer les bibliothèques récentes",+ "No Recent Libraries": "Aucune bibliothèque récente",+ "New Library: Choose Where to Put It": "Nouvelle bibliothèque : choisir son emplacement",+ "New Library": "Nouvelle bibliothèque",+ "Library name": "Nom de la bibliothèque"}diff --cc crates/ui-egui/locales/ja.jsonindex fad89f09e,d5f83ab2e..0f43568c0--- a/crates/ui-egui/locales/ja.json+++ b/crates/ui-egui/locales/ja.json@@@ -1892,23 -1887,12 +1892,31 @@@"Finding faces": "顔を検索中","Synchronizing folder": "フォルダを同期中","Looking for changes": "変更を確認中",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "これは Lightroom カタログで、LightCraft ライブラリではありません。代わりに LightCraft ライブラリに読み込みますか?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "読み込みはカタログを変更せずに読み取り、写真・編集・キーワード・コレクションを現在開いているライブラリに追加します。",+ "Albums hold library photos: Add to My Photos first": "アルバムに入れられるのはライブラリの写真です:先にマイフォトに追加してください",+ "Add to My Photos First": "先にマイフォトに追加",+ "Fill Location from GPS": "GPS から場所を入力",+ "Download Place Names (GeoNames)": "地名データをダウンロード (GeoNames)",+ "Place Names Status": "地名データの状態",+ "Fill Location": "場所を入力",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "空の市区町村・都道府県・国を GPS から入力 (GeoNames の地名、オフライン)",+ "Looking up places": "場所を検索中",+ "Downloading place names": "地名データをダウンロード中",+ "Place names downloaded": "地名データをダウンロードしました",+ "Place names download cancelled": "地名データのダウンロードを中止しました",+ "Other…": "その他…",+ "Intent:": "マッチング方法:",+ "Perceptual": "知覚的",+ "Relative": "相対的",+ "Simulate Paper & Ink": "紙とインキをシミュレート",- "Content-Aware": "コンテンツに応じる"++ "Content-Aware": "コンテンツに応じる",+ "New Library…": "新しいライブラリ…",+ "Open Recent Library": "最近使ったライブラリを開く",+ "Recent Libraries": "最近使ったライブラリ",+ "Clear Recent Libraries": "最近使ったライブラリを消去",+ "No Recent Libraries": "最近使ったライブラリはありません",+ "New Library: Choose Where to Put It": "新しいライブラリ:保存場所を選択",+ "New Library": "新しいライブラリ",+ "Library name": "ライブラリ名"}diff --cc crates/ui-egui/locales/pt-br.jsonindex cee2d48fc,89b404e12..69f8b8ebc--- a/crates/ui-egui/locales/pt-br.json+++ b/crates/ui-egui/locales/pt-br.json@@@ -1890,23 -1885,12 +1890,31 @@@"Finding faces": "Procurando rostos","Synchronizing folder": "Sincronizando pasta","Looking for changes": "Procurando alterações",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Este é um catálogo do Lightroom, não uma biblioteca do LightCraft. Importá-lo para uma biblioteca do LightCraft?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "A importação lê o catálogo sem alterá-lo e adiciona as fotos, edições, palavras-chave e coleções dele à biblioteca aberta agora.",+ "Albums hold library photos: Add to My Photos first": "Álbuns contêm fotos da biblioteca: adicione-as às Minhas fotos primeiro",+ "Add to My Photos First": "Adicionar às Minhas fotos primeiro",+ "Fill Location from GPS": "Preencher local pelo GPS",+ "Download Place Names (GeoNames)": "Baixar nomes de lugares (GeoNames)",+ "Place Names Status": "Status dos nomes de lugares",+ "Fill Location": "Preencher local",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Preencher Cidade, Estado e País vazios pelo GPS (nomes de lugares GeoNames, offline)",+ "Looking up places": "Procurando lugares",+ "Downloading place names": "Baixando nomes de lugares",+ "Place names downloaded": "Nomes de lugares baixados",+ "Place names download cancelled": "Download dos nomes de lugares cancelado",+ "Other…": "Outro…",+ "Intent:": "Tipo de conversão:",+ "Perceptual": "Perceptual",+ "Relative": "Relativo",+ "Simulate Paper & Ink": "Simular papel e tinta",- "Content-Aware": "Sensível ao conteúdo"++ "Content-Aware": "Sensível ao conteúdo",+ "New Library…": "Nova biblioteca…",+ "Open Recent Library": "Abrir biblioteca recente",+ "Recent Libraries": "Bibliotecas recentes",+ "Clear Recent Libraries": "Limpar bibliotecas recentes",+ "No Recent Libraries": "Nenhuma biblioteca recente",+ "New Library: Choose Where to Put It": "Nova biblioteca: escolha onde salvá-la",+ "New Library": "Nova biblioteca",+ "Library name": "Nome da biblioteca"}diff --cc crates/ui-egui/locales/ru.jsonindex 95e0e7b56,97f690170..255499bb5--- a/crates/ui-egui/locales/ru.json+++ b/crates/ui-egui/locales/ru.json@@@ -1604,23 -1599,12 +1604,31 @@@"Quit Anyway": "Всё равно выйти","Synchronizing folder": "Синхронизация папки","Looking for changes": "Поиск изменений",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Это каталог Lightroom, а не библиотека LightCraft. Импортировать его в библиотеку LightCraft?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "Импорт читает каталог, не изменяя его, и добавляет его фото, правки, ключевые слова и коллекции в открытую сейчас библиотеку.",+ "Albums hold library photos: Add to My Photos first": "В альбомах только фото из библиотеки: сначала добавьте их в «Мои фото»",+ "Add to My Photos First": "Сначала добавить в «Мои фото»",+ "Fill Location from GPS": "Заполнить место по GPS",+ "Download Place Names (GeoNames)": "Загрузить названия мест (GeoNames)",+ "Place Names Status": "Состояние названий мест",+ "Fill Location": "Заполнить место",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Заполнить пустые поля «Город», «Регион» и «Страна» по GPS (названия мест GeoNames, офлайн)",+ "Looking up places": "Поиск мест",+ "Downloading place names": "Загрузка названий мест",+ "Place names downloaded": "Названия мест загружены",+ "Place names download cancelled": "Загрузка названий мест отменена",+ "Other…": "Другой…",+ "Intent:": "Метод:",+ "Perceptual": "Перцепционный",+ "Relative": "Относительный",+ "Simulate Paper & Ink": "Имитировать бумагу и краску",- "Content-Aware": "С учётом содержимого"++ "Content-Aware": "С учётом содержимого",+ "New Library…": "Новая библиотека…",+ "Open Recent Library": "Открыть недавнюю библиотеку",+ "Recent Libraries": "Недавние библиотеки",+ "Clear Recent Libraries": "Очистить список недавних библиотек",+ "No Recent Libraries": "Нет недавних библиотек",+ "New Library: Choose Where to Put It": "Новая библиотека: выберите расположение",+ "New Library": "Новая библиотека",+ "Library name": "Название библиотеки"}diff --cc crates/ui-egui/locales/uk.jsonindex f0c92c417,8e5501afb..238a9afb1--- a/crates/ui-egui/locales/uk.json+++ b/crates/ui-egui/locales/uk.json@@@ -2084,23 -2079,12 +2084,31 @@@"Reset Panel Layout": "Reset Panel Layout","Resize panel window": "Resize panel window","Resize panels": "Resize panels",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Це каталог Lightroom, а не бібліотека LightCraft. Імпортувати його до бібліотеки LightCraft?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "Імпорт читає каталог, не змінюючи його, і додає його фото, редагування, ключові слова та колекції до відкритої зараз бібліотеки.",+ "Albums hold library photos: Add to My Photos first": "В альбомах лише фото з бібліотеки: спершу додайте їх до моїх фото",+ "Add to My Photos First": "Спершу додати до моїх фото",+ "Fill Location from GPS": "Заповнити місце за GPS",+ "Download Place Names (GeoNames)": "Завантажити назви місць (GeoNames)",+ "Place Names Status": "Стан назв місць",+ "Fill Location": "Заповнити місце",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Заповнити порожні поля «Місто», «Регіон» і «Країна» за GPS (назви місць GeoNames, офлайн)",+ "Looking up places": "Пошук місць",+ "Downloading place names": "Завантаження назв місць",+ "Place names downloaded": "Назви місць завантажено",+ "Place names download cancelled": "Завантаження назв місць скасовано",+ "Other…": "Інший…",+ "Intent:": "Метод:",+ "Perceptual": "Перцепційний",+ "Relative": "Відносний",+ "Simulate Paper & Ink": "Імітувати папір і фарбу",- "Content-Aware": "З урахуванням вмісту"++ "Content-Aware": "З урахуванням вмісту",+ "New Library…": "Нова бібліотека…",+ "Open Recent Library": "Відкрити нещодавню бібліотеку",+ "Recent Libraries": "Нещодавні бібліотеки",+ "Clear Recent Libraries": "Очистити список нещодавніх бібліотек",+ "No Recent Libraries": "Немає нещодавніх бібліотек",+ "New Library: Choose Where to Put It": "Нова бібліотека: виберіть розташування",+ "New Library": "Нова бібліотека",+ "Library name": "Назва бібліотеки"}diff --cc crates/ui-egui/locales/zh-hans.jsonindex 22916c850,953a50fee..f402eca7e--- a/crates/ui-egui/locales/zh-hans.json+++ b/crates/ui-egui/locales/zh-hans.json@@@ -1890,23 -1885,12 +1890,31 @@@"Finding faces": "正在查找人脸","Synchronizing folder": "正在同步文件夹","Looking for changes": "正在查找更改",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "这是 Lightroom 目录,不是 LightCraft 图库。要改为将其导入 LightCraft 图库吗?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "导入只读取目录、不做任何更改,并将其中的照片、编辑、关键字和收藏夹添加到当前打开的图库。",+ "Albums hold library photos: Add to My Photos first": "相册只能收录图库中的照片:请先添加到我的照片",+ "Add to My Photos First": "先添加到我的照片",+ "Fill Location from GPS": "根据 GPS 填写位置",+ "Download Place Names (GeoNames)": "下载地名数据 (GeoNames)",+ "Place Names Status": "地名数据状态",+ "Fill Location": "填写位置",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "根据 GPS 填写空白的城市、省/州和国家(GeoNames 地名,离线)",+ "Looking up places": "正在查找地点",+ "Downloading place names": "正在下载地名数据",+ "Place names downloaded": "地名数据已下载",+ "Place names download cancelled": "已取消下载地名数据",+ "Other…": "其他…",+ "Intent:": "方法:",+ "Perceptual": "可感知",+ "Relative": "相对",+ "Simulate Paper & Ink": "模拟纸张和油墨",- "Content-Aware": "内容识别"++ "Content-Aware": "内容识别",+ "New Library…": "新建图库…",+ "Open Recent Library": "打开最近的图库",+ "Recent Libraries": "最近的图库",+ "Clear Recent Libraries": "清除最近的图库",+ "No Recent Libraries": "没有最近的图库",+ "New Library: Choose Where to Put It": "新建图库:选择存放位置",+ "New Library": "新建图库",+ "Library name": "图库名称"}diff --cc crates/ui-egui/locales/zh-hant.jsonindex 21f9927a6,5131bd0c5..9613f58d5--- a/crates/ui-egui/locales/zh-hant.json+++ b/crates/ui-egui/locales/zh-hant.json@@@ -1890,23 -1885,12 +1890,31 @@@"Finding faces": "正在尋找臉孔","Synchronizing folder": "正在同步資料夾","Looking for changes": "正在尋找變更",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "這是 Lightroom 目錄,不是 LightCraft 照片庫。要改為將其匯入 LightCraft 照片庫嗎?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "匯入只讀取目錄、不做任何變更,並將其中的照片、編輯、關鍵字和收藏夾加入目前開啟的照片庫。",+ "Albums hold library photos: Add to My Photos first": "相簿只能收錄圖庫中的照片:請先加入我的照片",+ "Add to My Photos First": "先加入我的照片",+ "Fill Location from GPS": "根據 GPS 填寫位置",+ "Download Place Names (GeoNames)": "下載地名資料 (GeoNames)",+ "Place Names Status": "地名資料狀態",+ "Fill Location": "填寫位置",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "根據 GPS 填寫空白的城市、州/省和國家(GeoNames 地名,離線)",+ "Looking up places": "正在查找地點",+ "Downloading place names": "正在下載地名資料",+ "Place names downloaded": "地名資料已下載",+ "Place names download cancelled": "已取消下載地名資料",+ "Other…": "其他…",+ "Intent:": "方式:",+ "Perceptual": "感知",+ "Relative": "相對",+ "Simulate Paper & Ink": "模擬紙張和油墨",- "Content-Aware": "內容感知"++ "Content-Aware": "內容感知",+ "New Library…": "新增圖庫…",+ "Open Recent Library": "開啟最近的圖庫",+ "Recent Libraries": "最近的圖庫",+ "Clear Recent Libraries": "清除最近的圖庫",+ "No Recent Libraries": "沒有最近的圖庫",+ "New Library: Choose Where to Put It": "新增圖庫:選擇存放位置",+ "New Library": "新增圖庫",+ "Library name": "圖庫名稱"}diff --cc crates/ui-egui/src/menus.rsindex 45f8c90f8,7812ffee8..e07e744e1--- a/crates/ui-egui/src/menus.rs+++ b/crates/ui-egui/src/menus.rs@@@ -1680,7 -1629,8 +1686,8 @@@ pub fn ui_enabled(app: &LightcraftApp,"file.backupLibrary" => app.services.backup_library.is_some(),"app.openLogFolder" => app.services.reveal.is_some() && app.services.log_file.is_some(),"file.restoreLibrary" => app.services.restore_library.is_some(),+ "app.clearRecentLibraries" => !app.ui.settings.recent_libraries.is_empty(),- "compare.swap" | "compare.makeSelect" => app.ui.view == ViewMode::Compare,+ "compare.swap" | "compare.makeSelect" | "compare.set" => app.ui.view == ViewMode::Compare,s if s.starts_with("dialog.merge") || (s.starts_with("merge.") && s.ends_with("Last")) => {app.session.targets(&serde_json::json!({})).len() >= 2 && app.merge.final_task.is_none()}diff --cc crates/ui-egui/src/panels/settings.rsindex 05c054572,6be7cac21..a668439c2--- a/crates/ui-egui/src/panels/settings.rs+++ b/crates/ui-egui/src/panels/settings.rs@@@ -647,20 -647,23 +652,35 @@@ pub fn open_library(app: &mut Lightcraf}}};+ // A Lightroom catalog folder (or part of one) is not a library: before closing the library+ // open now, offer to import it instead (issue #891). The engine refuses it too.+ if let Some(place) = lightcraft_engine::lightroom_folder::lightroom_catalog_at(std::path::Path::new(&path)) {+ let catalog = place.catalog.map(|c| c.to_string_lossy().into_owned());+ let err = lightcraft_engine::EngineError::LightroomCatalog { path: path.clone().into(), catalog: catalog.clone().map(Into::into) };+ // the library problem window (no library could be opened) shows the error instead+ if app.library_problem.is_some() {+ return Err(err.to_string());+ }+ app.ui.dialog = Some(crate::state::Dialog::LightroomCatalog { folder: path.clone(), catalog: catalog.clone() });+ return Ok(json!({"opened": false, "lightroomCatalog": catalog, "path": path}));+ }+ // a remembered library that is gone: say so (and forget it) instead of creating an empty one there+ if app.ui.settings.recent_libraries.contains(&path) && !std::path::Path::new(&path).exists() {+ app.ui.settings.recent_libraries.retain(|r| r != &path);+ return Err(format!("{path}: the library is no longer there (moved, renamed or on a disconnected drive); removed from Open Recent Library"));+ }+ switch_library(app, &path)+ }++ /// Close the current library and open the one at `path`. If it can't be opened (locked by+ /// another program, unreadable, a file), the error is returned and the current library stays open.+ fn switch_library(app: &mut LightcraftApp, path: &str) -> Result<Value, String> {+ let dir = lightcraft_engine::library::resolve_dir(std::path::Path::new(path)).map_err(|e| e.to_string())?;+ let path = dir.to_string_lossy().into_owned();+ // the library being left goes in the list too (also when it was opened at launch)+ let previous = app.session.library.as_ref().filter(|l| l.on_disk).map(|l| l.dir.to_string_lossy().into_owned());app.session.close_library().map_err(|e| e.to_string())?;- app.session.open_library(&path, false).map_err(|e| e.to_string())?;+ app.session.open_library(&dir, false).map_err(|e| format!("{path}: {e}"))?;app.lightroom_last = None;app.renderer.forget_all();app.ui.compare = None;diff --cc crates/ui-egui/src/state.rsindex 2029e6001,5891df20b..07f2f4b23--- a/crates/ui-egui/src/state.rs+++ b/crates/ui-egui/src/state.rs@@@ -127,37 -127,8 +127,39 @@@ impl InfoOverlay}}+/// Lights Out (View ▸ Lights Out, Shift+L cycles On → Dim → Off → On; Esc turns the lights back+/// on): everything but the photo is veiled in black, the panels stay where they are.+#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]+#[serde(rename_all = "camelCase")]+pub enum LightsOut {+ #[default]+ On,+ /// The interface at 20 % brightness.+ Dim,+ /// The interface black.+ Off,+}++impl LightsOut {+ pub fn next(self) -> LightsOut {+ match self {+ LightsOut::On => LightsOut::Dim,+ LightsOut::Dim => LightsOut::Off,+ LightsOut::Off => LightsOut::On,+ }+ }++ /// Opacity of the black veil over everything but the photo.+ pub fn veil(self) -> f32 {+ match self {+ LightsOut::On => 0.0,+ LightsOut::Dim => 0.8,+ LightsOut::Off => 1.0,+ }+ }+}+ /// How many libraries File ▸ Open Recent Library remembers.+ pub const RECENT_LIBRARIES: usize = 8;/// App-level preferences (Settings dialog). They belong to the app, not a library, and are/// saved with the UI state in the app's config folder (`ui.json`, key `settings`); librarydiff --cc docs/parity-checklist.mdindex b87f1fa69,804c781fd..f749c05c0--- a/docs/parity-checklist.md+++ b/docs/parity-checklist.md@@@ -683,8 -679,9 +683,9 @@@ From `08-lightroom-classic-extras.md` (| LRC-LIB-SURVEY | Survey view | P2 | ✅ | `cmd:view.survey` | N || LRC-LIB-REFVIEW | Reference view | P2 | ✅ | `cmd:view.reference`, `cmd:photo.setReference`, `crates/ui-egui/src/panels/compare.rs` (`show_reference`) | View ▸ Reference View (⇧R): the reference photo beside the active one (edited with the Edit panel); photo menu ▸ Set as Reference Photo || LRC-LIB-CATALOG-PANEL | Catalog sets | P1 | ✅ | `cmd:library.source` (`missing`) | all, recently added, picks, recently deleted, missing photos (when any) |-| LRC-LIB-CATALOG-IMPORT | Native Lightroom Classic catalog import | P1 | 🟡 | `cmd:library.inspectLightroom`, `cmd:library.importLightroom`, `crates/engine/src/lightroom_catalog.rs`, `docs/lightroom-catalog-import.md` | read-only `.lrcat` plus committed WAL pages, in-tree read-only Rust SQLite B-tree reader; background inspection/import with progress/cancellation, per-open library identity checks; originals in place, ratings/flags/labels, XMP, hierarchical keywords, collection sets/regular collections, virtual copies, mapped develop settings; stable reimport identities, undo, missing-file placeholders, existing edits preserved. Best-effort deduplicated recovery archives retain settings/history/snapshots/collection rules (32 MiB each, eight archives/128 MiB aggregate); archive limits/write failures and optional-table limits warn without blocking photo import; unrelated unsupported tables and opaque SQL BLOBs skipped. Custom white balance on relative-WB raws (`RAW` in Lightroom's terms) stays As Shot and is reported, since the catalog keeps no as-shot white to shift from (issue #510). Adobe rendering, AI data and native history replay remain incomplete; no writes to Lightroom catalogs |-| LRC-LIB-CATALOG-LOCK | Catalog open in one program at a time | P1 | ✅ | `cmd:app.openLibrary`, `crates/catalog/src/lock.rs`, `crates/engine/src/library.rs` (`open_library`) | exclusive OS lock on `catalog.lock` for the session (app and `lightcraft-cli --library`); a second opener is refused with who has it (`catalog.lock.owner`: program, process, computer); released by the OS on a crash, so never stale; file systems without locks open unprotected with a warning (the app's notices, `library.info` → `settingsWarnings`, and the CLI's stderr; issue #171); no read-only mode; the browser build (OPFS) has no guard across tabs yet. A library that can't be opened at launch (locked, unreadable, newer format, drive missing) shows a window — Try Again, Choose Another Library…, Continue Without Saving (then a banner; nothing written), Quit — instead of a silent demo session (`crates/ui-egui/src/panels/library_problem.rs`) |+| LRC-LIB-CATALOG-IMPORT | Native Lightroom Classic catalog import | P1 | 🟡 | `cmd:library.inspectLightroom`, `cmd:library.importLightroom`, `crates/engine/src/lightroom_catalog.rs`, `docs/lightroom-catalog-import.md` | read-only `.lrcat` plus committed WAL pages, in-tree read-only Rust SQLite B-tree reader; background inspection/import with progress/cancellation, per-open library identity checks; originals in place, ratings/flags/labels, XMP, hierarchical keywords, collection sets/regular collections, virtual copies, mapped develop settings; stable reimport identities, undo, missing-file placeholders, existing edits preserved. Best-effort deduplicated recovery archives retain settings/history/snapshots/collection rules (32 MiB each, eight archives/128 MiB aggregate); archive limits/write failures and optional-table limits warn without blocking photo import; unrelated unsupported tables and opaque SQL BLOBs skipped. Custom white balance on relative-WB raws (`RAW` in Lightroom's terms) stays As Shot and is reported, since the catalog keeps no as-shot white to shift from (issue #510). Adobe rendering, AI data and native history replay remain incomplete; no writes to Lightroom catalogs. Open Library given a Lightroom catalog folder, an `.lrdata` / `.lrcat-data` folder or the `.lrcat` makes no library there and offers this import with the catalog found (`cmd:app.openLibrary`, `crates/engine/src/lightroom_folder.rs`; issue #891) |+| LRC-LIB-CATALOG-LOCK | Catalog open in one program at a time | P1 | ✅ | `cmd:app.openLibrary`, `crates/catalog/src/lock.rs`, `crates/engine/src/library.rs` (`open_library`) | exclusive OS lock on `catalog.lock` for the session (app and `lightcraft-cli --library`); a second opener is refused with who has it (`catalog.lock.owner`: program, process, computer); released by the OS on a crash, so never stale; file systems without locks open unprotected with a warning (the app's notices, `library.info` → `settingsWarnings`, and the CLI's stderr; issue #171); no read-only mode; the browser build (OPFS) has no guard across tabs yet. A library that can't be opened at launch (locked, unreadable, newer format, drive missing) shows a window — Try Again, Choose Another Library…, Continue Without Saving (then a banner; nothing written), Quit — instead of a silent demo session (`crates/ui-egui/src/panels/library_problem.rs`); the lock is released explicitly when the library closes, not by letting its file handle close, so a program another thread is starting at that moment (which holds a copy of every file handle until it is launched) cannot keep the library "already open" for a moment (issue #680) |+ | LRC-LIB-CATALOG-SWITCH | New / Open Recent catalog, catalog name shown | P1 | ✅ | `cmd:app.newLibrary`, `cmd:app.openLibrary`, `cmd:app.recentLibraries`, `cmd:app.clearRecentLibraries`, `crates/ui-egui/src/panels/settings.rs`, `crates/ui-egui/src/panels/left.rs` | File ▸ New Library… (name, then location), File ▸ Open Recent Library (last 8; missing ones greyed out, dropped when opened; Clear), the open library's name under My Photos and in the window title (issue #902); a library that can't be opened leaves the current one open || LRC-LIB-FOLDERS | Disk folder tree | P1 | ✅ | `cmd:library.browse`, `cmd:folder.rename`, `cmd:folder.move`, `crates/ui-egui/src/panels/left.rs` (`local_section`, `folder_tree`) | standard places + the browsed folder + Browse Folder…, each an expandable tree of subfolders, breadcrumb navigation; context menu: Rename Folder…, Move Folder To…, Show in Finder (on disk, photos relinked; one undo step each: undo / redo move the folder back and forth, refused when the destination is taken) || LRC-LIB-LIBFOLDERS | Library folders | P1 | ✅ | `cmd:library.folders`, `cmd:library.source` (`libraryFolder`), `cmd:library.filter` (`libraryFolder`), `cmd:library.removeFolder`, `cmd:folder.rename`, `cmd:folder.move`, `cmd:folder.label`, `cmd:folder.scanChanges`, `cmd:folder.synchronize`, `crates/catalog/src/folders.rs`, `crates/engine/src/sync.rs`, `crates/ui-egui/src/sync.rs`, `crates/ui-egui/src/panels/left.rs` (`folders_section`, `folder_menu_for_library`, `row_menu`), `crates/ui-egui/src/tests_panels.rs` | sidebar Folders: the folders the library's photos were imported from, with photo counts (subfolders included), as another way to explore the library next to By Date and Keywords; Local stays the way to browse any folder on disk. Each disk is a row of its own and starts open: a drive letter, a Windows share (`\\server\share`, `\\?\UNC\…`, `\\wsl$\…`), a macOS share or disk (`/Volumes/tokyo`), a Linux mount (`/media`, `/run/media`, `/mnt`, gvfs `smb-share:…`, `/net/<host>`), NFS (`/Network/Servers/<host>`), else “This Computer” — told apart from the stored paths alone, so an offline share lists like a mounted one and the sidebar never waits on a network. Only folders that hold imported photos are listed (browsed, deleted and demo photos don't count); every folder is a row of its own (`Users` → `me` → `Pictures`), and a folder that holds nothing itself and leads to one folder starts open; every level indents one step more than its parent however deep it goes: the whole sidebar (Albums, Local, By Date, Folders, Keywords) scrolls sideways when its widest row is wider than the panel (rows are measured one frame behind; Create Album and the counts stay at the visible edge); a name that does not fit ends in an ellipsis at the count (the full name on hover; a row asks for room for at most 140 pt of its name, so depth, not one long name, makes the sidebar scroll), as does the grid title; selection and hover bars end at the panel's edge; click makes the folder the source, like an album or a Local folder (its photos and those of the folders inside it fill the grid, titled “photos/travel”; the filter bar narrows it further; `library.source` `libraryFolder` + `path`; kept with the library's view), and its row is always opened into view; the shown folder follows a rename or move and their undo (engine-tested; the sidebar test covers rename), is dropped back to All Photos when it is removed or no longer holds a photo, and a smart album made from the view keeps it, also when its rules are edited (the editor has no folder field). Only a folder that shows exactly its own photos can be shown (not the startup disk, not `/Volumes`-like folders above disks, not an empty one). A row that would cover other disks' photos too (the startup disk, `/Volumes`, `/mnt`…) only opens. Right-click (row or triangle): Rename Folder…, Move Folder To…, Show in Finder (on disk, photos relinked, as in Local), Set Color Label ▸ (the five colours with their custom names, None, Edit Label Names…; `folder.label`, one undo step; the row shows the label's dot before its count and says it with its name; kept in the catalog as a folder record under the folder's identity, so it follows Rename / Move and their undo and redo, the folders inside going along), Synchronize Folder… (the dialog opens at once and scans the folder and the folders inside it on a worker thread — the look for new files beside parallel checks of the library's photos — then offers Import new photos (checked; files only browsed in Local count as new), Relink photos whose file was renamed or moved within the folder (checked; matched by content — a Duplicate's too — or, for a photo with no hash on record such as one from a Lightroom catalog, by file size and dimensions when exactly one file agrees), Remove missing photos from the library (to Recently Deleted) and Read metadata updates from XMP sidecars (saved after the photo came in or was last edited here, and saying something the library doesn't; the sidecar wins), with counts and skipped duplicates / unreadable files; `folder.scanChanges` / `folder.synchronize`, which acts on exactly the scan shown — a scan whose folder's photos changed meanwhile is refused and made again in the background — and is one undo step, also with a full history; a folder that isn't there (an unplugged disk) is reported as such, not as every photo missing; a whole disk or a folder holding disks needs `disk: true`; Esc stops the scan; Synchronize hands everything to a worker thread — the import, the checks that moved and missing files are still as found, the sidecar reads — and commits its steps between frames, shown in the activity stack with ✕ to stop, so no file is touched on the UI thread) and Remove from Library… (asks; moves the folder's photos to Recently Deleted, one undo step, no file touched); a disk row (not the startup disk) offers Set Color Label ▸, Synchronize Folder… and Remove Disk from Library… (the command needs `disk: true` for a whole disk or a folder spanning several). Limits: names are compared as written (macOS `/Volumes/tokyo` vs `/Volumes/TOKYO` are two disks; `/Volumes/Macintosh HD/…` and `/…` two rows); no disk capacity / online status; no “include subfolders” switch (a folder always includes the ones inside it); creating a folder and moving photos between folders are not here; folders can't be filtered or sorted by label, and a label stays with the old path when the folder is moved outside LightCraft (Find Missing relinks photos, not folder records); Synchronize has no “show import dialog first” or “show missing photos” option, and only knows when a photo came in or was last developed here: a rating, label or metadata change made here (auto-write off) after another app saved the sidecar is listed as an update, and reading it restores the sidecar's older value (reading is never the default); the walk for new files isn't cancelled midway and its depth/entry limits are only logged || LRC-LIB-COLLECTIONS | Collections & sets | P1 | ✅ | `cmd:album.create`, `cmd:album.createSmart`, `cmd:album.toggleTarget`, `cmd:album.setTarget`, `cmd:album.clearQuick` | albums + folders (sets), smart albums (rule editor; rules incl. File Path — the whole string, either separator, case-insensitive), Quick Collection and target album (B in the grids adds / removes the selection; album menu ▸ Set as Target Album; the target is marked +) |diff --cc docs/whats-new.mdindex bbe622bd6,4668f5599..6291ae308--- a/docs/whats-new.md+++ b/docs/whats-new.md@@@ -2,25 -2,17 +2,34 @@@## 2026-10-11+### Open Library knows a Lightroom catalog+- Choosing a Lightroom Classic catalog folder in File → Open Library… (or one of its `Previews.lrdata` /+ `.lrcat-data` folders, or the `.lrcat`) no longer makes an empty LightCraft library inside it (issue #891). The+ library open now stays, and LightCraft says "This is a Lightroom catalog, not a LightCraft library" and offers+ **Import Lightroom Catalog…** with that catalog, or Cancel. `lightcraft-cli --library` refuses those folders too.++### Canon EOS R5 Mark II+- Canon EOS R5 Mark II C-RAW files that opened as "preview only" (more than half of them, depending on the+ scene) now develop from their sensor data with every editing tool, like the camera's other raws. Photos+ imported earlier switch over with Photo ▸ Reload from Disk.++ ### Switching libraries+ - File ▸ New Library… asks for a name, then where to put it, and opens the new library (issue #902).+ - File ▸ Open Recent Library lists the last 8 libraries; ones that are gone (moved, drive disconnected) are greyed+ out. Clear Recent Libraries empties the list.+ - The open library's name shows under My Photos at the top of the left panel and in the window title.+ - `lightcraft-cli --library` given a library's own file (`catalog.snap`) opens its folder instead of failing with+ "File exists".+ - Agents use `app.newLibrary {path, name}`, `app.recentLibraries` and `app.clearRecentLibraries`.+## 2026-10-10+### Dialogs fit the window+- A dialog taller than the window no longer runs off it (issue #781): on a 1366×768 screen the Export dialog's title+ and its Cancel / OK buttons were off screen, so it couldn't be confirmed. Now its options scroll and the title and+ buttons stay visible. Long lists in dialogs (What's New, All Metadata, Keyboard Shortcuts) get shorter to fit.+ Dialogs that fit look as before.+### Activity stack- Long-running tasks show in one place, top left under the top bar, as in Lightroom Classic (issue #345): imports andfolder scans, exports (and the contact sheet PDF), Synchronize Folder, Build / Smart Previews, Lightroom catalog import, Photo Merge, model downloads, the face scan,