LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
Merge PR #597
Brandon Thomasb78502307312
diff --cc crates/catalog/src/journal.rsindex dd30b57b0,008d034a2..f52d08db8--- a/crates/catalog/src/journal.rs+++ b/crates/catalog/src/journal.rs@@@ -46,8 -46,7 +46,9 @@@//! | 1 | up to v0.2.0 | |//! | 2 | after v0.2.0 | `Op::SetBrowsed`, `Catalog.browsed`, `Photo.local_baseline` |//! | 3 | albums by hand | `Op::SetAlbumOrder`, `Album.order` |-//! | 4 | folder labels | `Op::SetFolderRecord`, `Catalog.folder_records` |+//! | 4 | Reload reads lens data | `Op::SetEmbeddedLens` |+//! | 5 | the keyword list | `Op::SetKeyword`, `Catalog.keyword_list` |++//! | 6 | folder labels | `Op::SetFolderRecord`, `Catalog.folder_records` |//!//! Rules://! - **Bump [`VERSION`]** (and add a row above) in the change that adds an [`Op`] variant or a@@@ -72,7 -71,7 +73,7 @@@ pub const LOG: &str = "catalog.log"const FORMAT: &str = "lightcraft-catalog";/// The catalog format this build writes (and the newest it reads). See the module docs →/// *Format versions*; bump it whenever an [`Op`] variant or a serialized field is added.- pub const VERSION: u32 = 5;-pub const VERSION: u32 = 4;++pub const VERSION: u32 = 6;/// When [`Journal::wants_snapshot`] says it's time to compact the log.#[derive(Clone, Copy, Debug)]diff --cc crates/catalog/src/lib.rsindex dff0fb442,c8e2d7fae..ed6150847--- a/crates/catalog/src/lib.rs+++ b/crates/catalog/src/lib.rs@@@ -225,12 -217,12 +225,18 @@@ pub enum Opfolder: String,at: Option<String>,},+ /// List a keyword in the library's keyword list with these attributes, or take it off the list+ /// (`None`; photos that carry it keep it). Format version 4.+ SetKeyword {+ path: String,+ info: Option<keywords::KeywordInfo>,+ },+ /// What the library keeps about one of its folders (see [`folders::FolderRecord`]), under+ /// its identity ([`query::folder_key`]); `None` or an empty record = keep nothing.+ SetFolderRecord {+ folder: String,+ record: Option<FolderRecord>,+ },/// Several ops as one step (undo applies the inverses in reverse).Batch {ops: Vec<Op>,@@@ -253,9 -245,9 +259,12 @@@ pub struct Catalog/// When each Local folder was last browsed (folder path → ISO 8601), see [`local`].#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]browsed: BTreeMap<String, String>,+ /// Keywords listed on their own or given attributes, by lower-case path (see [`keywords`]).+ #[serde(default, skip_serializing_if = "BTreeMap::is_empty")]+ keyword_list: BTreeMap<String, keywords::ListedKeyword>,+ /// What the library keeps about its folders (folder identity → record), see [`folders`].+ #[serde(default, skip_serializing_if = "BTreeMap::is_empty")]+ folder_records: BTreeMap<String, FolderRecord>,/// Increments on every applied op.#[serde(skip)]pub revision: u64,diff --cc crates/catalog/src/local.rsindex 8d4da86a6,516a3322f..e81d48805--- a/crates/catalog/src/local.rs+++ b/crates/catalog/src/local.rs@@@ -300,8 -299,8 +300,9 @@@ impl Op| Op::SetAlbumRules { .. }| Op::RemoveStack { .. }| Op::SetLabelName { .. }+ | Op::SetKeyword { .. }- | Op::SetBrowsed { .. } => {}+ | Op::SetBrowsed { .. }+ | Op::SetFolderRecord { .. } => {}}}}diff --cc crates/catalog/src/tests_format_version.rsindex ecc7de7c1,5b7732bf5..ed2bfe7d1--- a/crates/catalog/src/tests_format_version.rs+++ b/crates/catalog/src/tests_format_version.rs@@@ -207,10 -206,9 +207,11 @@@ fn op_variants_are_versioned()| Op::Batch { .. } => 1,Op::SetBrowsed { .. } => 2,Op::SetAlbumOrder { .. } => 3,- Op::SetFolderRecord { .. } => 4,+ Op::SetEmbeddedLens { .. } => 4,+ Op::SetKeyword { .. } => 5,++ Op::SetFolderRecord { .. } => 6,}}- let newest = since(&Op::SetKeyword { path: "travel".into(), info: None });+ let newest = since(&Op::SetFolderRecord { folder: "/".into(), record: None });assert_eq!(newest, VERSION, "the newest op's version must be the current format version");}diff --cc crates/catalog/src/tests_journal.rsindex 6b8acdd2d,69cee6b0a..8570bd077--- a/crates/catalog/src/tests_journal.rs+++ b/crates/catalog/src/tests_journal.rs@@@ -78,14 -78,7 +78,15 @@@ fn op_for(c: &mut Catalog, kind: u8, a13 => Op::Batch { ops: c.remove_from_stacks_ops(&[pid]) },14 => c.set_top_ops(pid).unwrap_or(Op::Batch { ops: vec![] }),9 if b.is_multiple_of(5) => Op::SetLabelName { label: ColorLabel::ALL[a as usize % 5], name: (a % 3 != 1).then(|| format!("Label {b}")) },+ 9 if b % 7 == 5 => Op::SetKeyword {+ path: format!("travel|place {}", b % 4),+ info: (!b.is_multiple_of(3)).then(|| crate::keywords::KeywordInfo {+ person: a.is_multiple_of(2),+ synonyms: vec![format!("trip {a}")],+ ..Default::default()+ }),+ },+ 9 if b % 11 == 4 => c.folder_label_op(&format!("/p/f{}", a % 4), ColorLabel::ALL.get(usize::from(b % 6)).copied()),9 if b % 7 == 3 => Op::SetAlbumOrder { id: aid, order: (!b.is_multiple_of(3)).then_some(u32::from(b % 5)) },9 if b.is_multiple_of(2) => {Op::SetFile { id: pid, file_name: format!("Renamed_{b}.jpg"), source: Source::File { path: format!("/p/Renamed_{b}.jpg") } }diff --cc crates/ui-egui/src/panels/left.rsindex 87fd4f413,7312bfc1a..32baa2031--- a/crates/ui-egui/src/panels/left.rs+++ b/crates/ui-egui/src/panels/left.rs@@@ -727,13 -737,7 +737,13 @@@ fn albums_tree(app: &mut LightcraftApplet target =app.session.target_album.filter(|t| app.session.catalog.album(*t).is_some()).or_else(|| app.session.catalog.quick_collection());let label = if target == Some(a.id) { format!("{} +", a.name) } else { a.name.clone() };+ // a smart album whose rules no longer check (an album they test was deleted) says so+ let problems = app.caches.smart_album_problems(&app.session.catalog).get(&a.id).cloned().unwrap_or_default();+ let label = if problems.is_empty() { label } else { format!("⚠ {label}") };- let mut resp = row_sensed(app, ui, &format!("album:{}", a.id.0), icon, &label, None, Some(n), sel, indent, Sense::click_and_drag());+ let mut resp = row_sensed(app, ui, &format!("album:{}", a.id.0), icon, &label, None, Some(n), sel, indent, Sense::click_and_drag(), None);+ if !problems.is_empty() {+ crate::widgets::register(ui.ctx(), format!("albumProblem:{}", a.id.0), resp.rect);+ }if resp.drag_started() {app.ui.dragging_album = Some(a.id.0);}diff --cc docs/parity.mdindex dd245fac5,ce7b6afc1..2d6f7591d--- a/docs/parity.md+++ b/docs/parity.md@@@ -741,12 -740,12 +741,12 @@@ 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. Adobe rendering, AI data and native history replay remain incomplete; no writes to Lightroom catalogs |+| 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-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`, `crates/catalog/src/folders.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) and Remove from Library… (asks; moves the folder's photos to Recently Deleted, one undo step, no file touched); a disk row offers 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 |+ | 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`, `crates/catalog/src/folders.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) 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 ▸ 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) || 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 +) |-| LRC-LIB-SMARTCOLL | Smart-collection rules | P1 | ✅ | `cmd:album.createSmart`, `cmd:album.setRules`, `cmd:album.ruleFields`, `cmd:dialog.smartAlbum`, `crates/catalog/src/rules.rs`, `crates/ui-egui/src/panels/rules_editor.rs` | rule editor: match all / any / none, nested groups (⌥+ or + Group), 30 fields (rating, flag, label, type, edits, keywords, any text, filename, file path, format, title, caption, camera, lens, location, creator, copyright, copyright status, capture / import / edit date, ISO, aperture, focal length, megapixels, GPS, virtual copy, album) with text / number / date / in-the-last operators; live match count; also usable as a library filter (`ruleSet`) |+| LRC-LIB-SMARTCOLL | Smart-collection rules | P1 | ✅ | `cmd:album.createSmart`, `cmd:album.setRules`, `cmd:album.ruleFields`, `cmd:dialog.smartAlbum`, `crates/catalog/src/rules.rs`, `crates/ui-egui/src/panels/rules_editor.rs` | rule editor: match all / any / none, nested groups (⌥+ or + Group), 47 fields. The field menu shows Rating, Pick Flag, Color Label and Any Searchable Text, then one submenu per group (`FIELD_GROUPS`; `album.ruleFields` reports each field's `group`): Source (album — a plain or a smart album, so one smart album can include or exclude another; a rule that would make an album include itself, directly or through others, is refused, and a loop saved anyway can't recurse: inside it, the album being evaluated counts as holding no photos, so an "isn't" rule on it matches every photo, and the sidebar marks it ⚠ —, virtual copy, copy name, in a stack), File (filename, extension, file path, type, format, video duration), Date (capture / import / edit), Keywords & People (keywords, keyword count, people on named faces, people count), Description (title, caption, alt text, creator, copyright, copyright status), Camera Info (camera, lens, focal length, aperture, shutter speed as 1/250, ISO), Location (any, city, state / province, country, GPS), Size (long / short edge, aspect ratio and megapixels, all of the photo as shown: oriented and cropped), Develop (has edits, cropped, treatment), Assisted Culling (focus, best of similar shots); text / number / date / in-the-last operators; live match count; also usable as a library filter (`ruleSet`). Missing vs Classic: develop preset, flash, exposure bias, camera serial, colour profile / bit depth, IPTC Job, smart-preview status. Choice values read as words in every language (Public Domain, Black & White; `album.ruleFields` gives `choiceLabels`), while rules store the ids; yes/no fields read Yes / No and take `true`/`false`, `"yes"`/`"no"`, `"true"`/`"false"` or 1/0. Every value is checked against its field (`RuleSet::check`): numbers (rating 0–5), shutter speeds, dates (`2026`, `2026-08`, `2026-08-14`, then `T10`, `T10:00` or `T10:00:00`, a space working as the `T`, and after whole seconds a fraction and a time zone as imported capture times carry them (`.250+02:00`); no 30 February; `rules::rule_date` is the one reading for the check and the matcher; each date field has a calendar picker, `crates/ui-egui/src/date_picker.rs`, that picks a year, a month or a day and keeps a "between" in order), between = two bounds in order, in the last = more than 0 of a known unit, choices (ids, the flag's picked / rejected, a colour label's custom name), text with something to look for, an existing album (plain or smart, not a folder), no empty groups; each problem names its rule (`rule 2.1: no rating 0–5 is 9`), and album.createSmart / setRules / library.filter refuse them. The editor marks each bad rule under its row (inside groups too), keeps OK disabled until they are fixed (and its confirm refuses them before renaming anything), picks an Album rule's album with an album picker (`crates/ui-egui/src/album_picker.rs`: the sidebar's tree with folders, or type part of a name or folder; ↑ / ↓ / Enter; albums that can't be picked shown greyed with the reason) (is / isn't; a folder can't be tested), and drawing it never changes a rule: a rating of 9, "in the last 0 days" or 20,000 days, a "between" that isn't a pair all stay as stored (and are marked where they can't match) until edited. Album rules saved with an old operator (≥, between) are read as the "isn't" they always meant (`RuleSet::upgrade`). Saved smart albums whose rules no longer check are marked ⚠ in the sidebar (tooltip: what to fix; `albums.list` `problems`, `Catalog::smart_album_problems`); the name and rules of an album are saved as one undo step (`album.setRules` `name`). Problems read as the field's name and the issue in the editor's language (“Titel: braucht einen Suchbegriff”; `Problem::issue` / `field`, `Issue::text`, translated in every locale), while commands keep the English `rule 2.1: …` message for agents || LRC-LIB-PUBLISH | Publish services | P2 | ⬜ | | || LRC-LIB-FILTERBAR | Library filter bar | P1 | ✅ | `cmd:view.filterBar`, `cmd:filter.applyPreset`, `cmd:library.filter` (`labels`, `ruleSet`), `crates/ui-egui/src/panels/filterbar.rs` | rating/flag/label (several labels at once = any of them)/kind/edited/camera/lens/keyword, clear, save as smart album, filter presets; the filter stays as you change albums (always locked, as in the desktop app); arbitrary conditions via the smart-album rule editor || LRC-LIB-STACKS | Stacks (full) | P1 | ✅ | `crates/catalog/src/stacks.rs`, `cmd:stack.group`, `cmd:stack.split`, `cmd:stack.moveUp`, `cmd:stack.moveDown` | group / ungroup / toggle / set top / remove / auto by time / split / move up and down |diff --cc docs/whats-new.mdindex c7f59df83,7afeb130b..e612107e0--- a/docs/whats-new.md+++ b/docs/whats-new.md@@@ -2,90 -2,15 +2,99 @@@## October 2026+### Smart album rules+- The rule editor's field menu is grouped: Rating, Pick Flag, Color Label and Any Searchable Text at the top, then+ submenus for Source, File, Date, Keywords & People, Description, Camera Info, Location, Size, Develop and Assisted+ Culling.+- New fields: Keyword Count ("2 or more", "exactly 2"…), People and People Count (named faces), Shutter Speed (written+ as 1/250), File Extension, Video Duration, Copy Name, In a Stack, Alt Text, City, State / Province, Country, Long+ Edge, Short Edge, Aspect Ratio (landscape / portrait / square), Cropped and Treatment (in color / black & white).+ Size rules measure the photo as shown: Megapixels now counts the cropped photo, like Long Edge, Short Edge and+ Aspect Ratio (a 24 MP photo cropped to a square is 16 MP).+- Choice values read as words in every language: "Public Domain", "Picked", "Black & White" rather than ids like+ `publicDomain` (rules and agents keep using the ids; `album.ruleFields` adds `choiceLabels`).+- Rule values are checked: a rating of 9, a date like 2026-13 or "banana", a "between" whose dates are the wrong+ way round, "in the last 0 days", a colour label that doesn't exist, "contains" with nothing to look for, an+ album that is gone, or an empty group is reported with its rule ("rule 2.1: no rating 0–5 is 9")+ instead of quietly matching nothing or everything. New date rules start at the current year.+- A smart album can include or exclude another smart album: "Keywords contain travel" and "Album isn't Excluded Photos"+ leaves out whatever Excluded Photos matches, as its rules change. The album picker shows your albums as in the sidebar+ (folders open on click) or finds them as you type part of a name or folder (↑ / ↓ and Enter to pick); albums that+ can't be picked, such as one that would make an album include itself, are greyed with the reason. Esc with a dropdown or calendar open in a dialog+ closes just that.+- Date rules have a calendar button: pick a day, a month or a whole year (Year / Month / Day), in your language; the+ two dates of a "between" can't be picked out of order; Esc closes just the calendar. It picks dates, not times (a+ time is typed, and picking a day replaces one). Typing still works, and "2026-10-01 10:00" (a space for the+ T) now matches.+- Rule problems are shown in your language and name the field the way the menu does ("Title: needs something to look+ for").+- A smart album whose rules no longer check (an album they test was deleted) is marked ⚠ in the sidebar; its tooltip+ says what to fix, and `albums.list` reports `problems`.+- Editing a smart album's name and rules is one step: both or neither, and one undo takes both back+ (`album.setRules` takes `name`).+- The rule editor marks each rule that needs fixing right under it and keeps OK disabled until they are fixed. An+ Album rule is "is" or "isn't" an album, picked with the album picker.+- Yes/no fields (Has Edits, Cropped, Has GPS…) read Yes / No instead of true / false. A rule sent as `"false"` now+ means no (it used to count as yes), and a value that is neither yes nor no is refused.+- Any Searchable Text also finds the state / province, alt text, people and a virtual copy's name.++### Keyword lists+- File ▸ Import Keywords… and Export Keywords… read and write keyword list files as Lightroom Classic does (a keyword+ a line, a tab per level, synonyms in braces, keywords left out of export in brackets). Capture One, darktable, Adobe+ Bridge and Photo Supreme (its Formatted Vocabulary File) use the same files, so keyword lists move between them and+ LightCraft. Importing adds the keywords you don't have, in one undo step; a file it can't read says which line, or+ to save it as UTF-8. Exporting warns about keywords Capture One won't import, and names any keyword the format can't+ hold (such as a name in brackets), which it leaves out so the file always reads back.++### Keyword sets+- Keyword Set ▸ Edit Set… edits a set's nine keywords in place, one field per ⌥ key, and renames it (or saves the edits as a new+ set). An empty field leaves its key empty instead of moving the keywords after it; editing Recent Keywords and naming+ them saves a new set.++### Keywording box+- The chips at the top of the Keywords panel are the keywords of every selected photo, not only the active one's; a+ keyword only some of them have is marked with an asterisk (hover: how many). Only the × removes a keyword, from+ every selected photo; a chip's menu acts on the selection (add to all, remove, show photos, edit) and no longer+ deletes a keyword from the whole library.+- Switch to & Containing to see the keywords with the keywords containing them, or to Will Export to see what+ exported files will carry for the selection.+- The keyword set's buttons and the suggestions follow the selection too; the typing boxes get the Cut / Copy / Paste+ menu, and Return in the painter's box starts painting.++### Keyword List+- The Keywords panel ends with a Keyword List, as in Lightroom Classic: every keyword with its photo count, those no+ photo has yet too. Filter it, tick a keyword to give it to the selected photos (a dash: only some have it), or click+ the arrow to see its photos.+- Create keywords with + (inside the one you picked, with synonyms, and given to the selection if you like), edit one+ by double-clicking it, delete one with − after a confirmation. Right-click for more: create inside, Put New Keywords+ Inside This Keyword, Purge Unused Keywords.+- Drag a keyword onto another to nest it, or onto the list's title to bring it back to the top level; photos dragged+ from the grid onto a keyword get it.+- Right-click ▸ Put New Keywords Inside This Keyword: new keywords, made with + or typed in the box above, go inside+ it. The list is there with no photo selected too, to set up keywords first.+- Keyword tag options decide what exported files carry: Include on Export, Export Containing Keywords, Export+ Synonyms. Exports now write keyword names to `dc:subject` and their paths to `lr:hierarchicalSubject`, and keywords+ imported from files (or read from sidecars) keep the hierarchy `lr:hierarchicalSubject` gives them.++### Text fields+- Right-click Search Photos, a slider's typed value, the Info panel's fields, the name field of New Album, Rename+ Album, New Smart Album, Rename Keyword, Merge Keywords and similar dialogs, or the name field under unnamed faces for+ Cut, Copy, Paste and Select All. Esc in them gives back the text from before you started typing (in the Info panel it+ no longer saves it). Return in those dialogs now confirms them, and their name opens selected. More fields will+ follow.+- On Windows and Linux, Ctrl+C outside a text field copies edit settings and Ctrl+V pastes them (⇧Ctrl+V: Paste+ Selected Settings). Ctrl+V only reaches LightCraft while the system clipboard holds text; otherwise use Edit ▸ Paste Edit+ Settings.++ ### Folder colour labels+ - Right-click a folder (or a disk other than the startup disk) in the sidebar's Folders section ▸ Set Color Label ▸ a colour or None. The row+ shows the label's dot before its photo count. Agents use `folder.label` (`path`, `label`); `library.folders`+ reports each row's `label`.+ - A label follows its folder when it is renamed or moved in LightCraft, together with the labels of the folders+ inside it; undo and redo carry them back and forth.+ - The catalog format is now version 4 (`Catalog.folder_records`, `Op::SetFolderRecord`). Once this version has+ opened a library, older versions refuse it, as with every format change.+### Masking- Drag anywhere inside the selected radial gradient's ellipse to move it, including rotatedellipses and radial components in compound masks. Edge and rotation handles keep their existing