* LR-FILT-RATING: = or ≤ no stars shows the unrated photos instead of every photo (#3417)
* Saving the view as a smart album keeps the rating's stars with its operator
* LR-FILT-RATING: deleting the keyword of a filter put aside keeps = or ≤ no stars
Enable Filters can put aside a filter of a keyword and "= no stars" or "≤ no stars". Deleting that keyword
dropped the whole filter, as if the rating operator alone filtered nothing. Since #3417 those operators show
the unrated photos, so the rule is still put aside and comes back. "≥ no stars" still filters nothing and is
dropped.
* style: apply CI formatting to saved rating filters
* refactor: separate no-match Smart Album rendering
---------
Co-authored-by: FredApps <[email protected]>
Conflicts:
crates/engine/src/tests/persist.rs
Ported: crates/engine/src/tests/persist.rs keeps both sides' new tests (this PR's upgrade-notice tests and main's partly-applied-rollback tests). The persist tests and clippy pass locally.
Conflicts:
crates/ui-egui/locales/sv-formats.json
crates/ui-egui/locales/sv.json
docs/parity-checklist.md
Ported: the locale and docs conflicts keep both sides' entries.
Conflicts:
crates/catalog/src/lib.rs
Ported: catalog lib.rs keeps both module lists (mod tests_search_text; mod tests_shared;). Also folds in main's two gate fixes: rustfmt of crates/engine/src/import/job.rs (left unformatted by #1995) and the Windows-safe path joins in crates/engine/src/tests/folders.rs.
Conflicts:
crates/ui-egui/src/panels/keyword_list.rs
docs/parity-checklist.md
Re-merged main. Ported: panels/keyword_list.rs takes main's reworked drag (a NotAllowed cursor is kept, the frame's drag hint wins) and main's give_keyword(), using this PR's one-line names: drag_leaf() for the label fallback and hover_path() for the Add/Added keyword text. Keyword tests and ui-egui clippy pass locally. Also folds in the fix for main's Windows-only folders test failure (the expected path now joins each component).
Conflicts:
docs/whats-new.md
Re-merged main after today's merges. Conflicts: docs/whats-new.md Docs/locale conflicts are resolved by keeping both sides. No code change since my last approval note. Also folds in the fix for main's Windows-only failure in tests::folders::a_date_folder_inside_the_library_can_be_renamed_but_the_librarys_own_folders_cannot: the expected path now joins each component instead of lib.join("Originals/Beach/a.jpg").
Conflicts:
docs/whats-new.md
Re-merged main: only docs/whats-new.md conflicted (both entries kept). Includes my 8b05bc2b CodeRabbit fixes (a landed snapshot reconciled after an error; persistence doc). Also in this merge: main's folders test a_date_folder_inside_the_library_can_be_renamed_but_the_librarys_own_folders_cannot built its expected path as lib.join("Originals/Beach/a.jpg"), which fails on Windows (mixed separators). It now joins each component, so the Windows gate passes; the test passes locally.
Conflicts:
crates/catalog/src/lib.rs
crates/catalog/src/tests.rs
crates/engine/src/rename.rs
docs/parity-checklist.md
Delta since my approval reviewed: c99c8d3161 makes Catalog::replay count a partly applied batch and go on, as Journal::open does, through one replay_op (with a regression test); 02346710d8 rewords the What's new note. Both are right. Ported in this merge: Catalog::apply keeps main's keyword_list save/restore (this PR dropped `torn`), and a failed op restores keyword_list before returning; the catalog tests are a union with main's boxed-lens test; rename.rs takes main's fs imports and MoveFs/RealFs re-export, and keeps this PR's move_all/rest_after_move_back re-export. main's persist tests build FolderMove with this PR's new `on_disk: true`. Catalog lib tests, engine rename/persist tests and clippy pass locally.
Conflicts:
crates/catalog/src/lib.rs
docs/whats-new.md
Delta since approval (418072de, 2b509136: shared equal settings on load, grid references resolved once) reviewed. Conflict: AddPhoto keeps both the PR's shared::photo and main's file index update.
Conflicts:
crates/catalog/src/index.rs
crates/catalog/src/lib.rs
docs/whats-new.md
Delta since approval (315cd357: repair drops the text kept for photos it copied, + test) reviewed. Conflicts: catalog index.rs carries both main's contents/folders/names indexes and the PR's search/rule_text caches (fields, methods and module doc unioned); RemovePhoto updates both main's file index and the PR's text cache.
Conflicts:
crates/ui-egui/src/panels/compare.rs
crates/ui-egui/src/panels/detail.rs
Conflict: main changed embedded_lens to Option<String>, so this PR's reads now use .as_deref() instead of .as_ref() (compare.rs, detail.rs, tests/compare.rs); otherwise main's code. Docs: both revision rows kept.
Conflicts:
crates/catalog/src/index.rs
crates/catalog/src/lib.rs
crates/ui-egui/locales/cs.json
crates/ui-egui/locales/de.json
crates/ui-egui/locales/es.json
crates/ui-egui/locales/fi.json
crates/ui-egui/locales/fr.json
crates/ui-egui/locales/id.json
crates/ui-egui/locales/it.json
crates/ui-egui/locales/ja.json
crates/ui-egui/locales/ka.json
crates/ui-egui/locales/pl.json
crates/ui-egui/locales/pt-br.json
crates/ui-egui/locales/ru.json
crates/ui-egui/locales/sv.json
crates/ui-egui/locales/uk.json
crates/ui-egui/locales/vi.json
crates/ui-egui/locales/zh-hans.json
crates/ui-egui/locales/zh-hant.json
docs/parity-checklist.md
Conflicts: crates/catalog/src/index.rs and lib.rs keep this PR's content index next to main's new folder/name indexes (both kept, each forgotten by its own ops). Locale files: key-level three-way merge, both sides' strings kept. docs/parity-checklist.md: row text word-merged, both revision rows kept, summary regenerated.
For a photo added before the maker was kept, the maker is the camera's
first word, and every company word after it was dropped: "ACME Computer
1000" read "Acme 1000". Company words now split into legal forms (CORP.,
CO.,LTD., AG, COMPANY...) and descriptive words (IMAGING, CAMERA,
COMPUTER...): the leading company words are dropped only when they hold
a legal form ("CASIO COMPUTER CO.,LTD." still gives Casio EX-Z1050),
otherwise only the maker said again. The first word also ends at any
whitespace, not only a space ("CANON<tab>ALPHA R5" is Canon ALPHA R5).
The test covers both cases.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With make "ACME COMPUTER", camera "ACME COMPUTER Computer 1000" read
"Acme 1000": the end of the make that the model starts with was
"COMPUTER", a company word alone, so the model's own "Computer" was
dropped as a repeated maker. An end of the make now counts only when it
holds a word that is not a company word. The test covers the case.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With the maker known, the model dropped any leading word equal to any
maker word ("OM Digital Solutions Digital 1000" lost "Digital") and any
company word after a repeated maker, even one the make never had
("ACME ACME Computer 1000" lost "Computer"). It now drops the longest
leading run that repeats the end of the make (with or without its
company words: "NIKON", "ACME CAMERA SYSTEMS", "KODAK" after "EASTMAN
KODAK COMPANY"), then the make's own company words, and nothing else.
A maker taken from the camera's first word is handled as before. The
test covers each case.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With the maker known, the model also skipped leading company words, so
make "ACME" with camera "ACME Computer 1000" read "Acme 1000" (since
"computer" became a company word; "Camera" or "Optical" at the start of
a model were already cut the same way). The model now drops the maker
said again together with the company words right after it ("NIKON
CORPORATION NIKON CORPORATION Z 8" is Nikon Z 8), and leading company
words only when the maker was taken from the camera's first word
("CASIO COMPUTER CO.,LTD. EX-Z1050" with no maker is Casio EX-Z1050).
The test covers both new cases.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Casio writes its maker as "CASIO COMPUTER CO.,LTD.", so the Edit panel's
camera line read "Casio Computer EX-Z1050", or "Casio COMPUTER CO.,LTD.
EX-Z1050" for a photo added before the maker field was kept. "computer"
is now one of the company words, and the camera-name test covers Casio
with the maker known and empty: both give "Casio EX-Z1050".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Edit panel names the photo's camera, maker and model, on a line
between the histogram and the Edit header ("Olympus E-M5MarkII",
"Nikon Z 8").
Meta::camera_name tidies the Exif strings for display: the maker
without its company words, written as a name rather than in capitals
(an initialism such as DJI stays) and not said again before the model;
the model as the camera writes it. It also works for photos added
before Meta::make was kept.
The line is a label, so screen readers read it, in text_label (text_dim
is under 4.5:1 in Charcoal and Silver); a long name is cut short and
shown whole on hover. It keeps its height for a photo that names no
camera, so the controls below don't move.
Checks: the catalog camera_name test and the ui-egui edit_layout tests
pass, with fmt and clippy on catalog and ui-egui. cargo xtask ci
--quick was stopped by request during the ui-egui tests; fmt, workspace
clippy and every test run until then passed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
`FsStore::remove` kept the log thread after unlinking `catalog.log`, so the next append
found a file of another length and the thread held its records back. It now writes what
the thread holds first, and ends the thread once the file is gone (the next append
starts one), as the same method does on the segments branch.
Co-Authored-By: Claude <[email protected]>
`Journal::open` counted a logged `PartlyApplied` batch as replayed, but
`Catalog::replay` still stopped at the first one. Both now go through
`Catalog::replay_op`, the one place that says a logged batch that was only partly
taken back is the log being replayed, not damage. The What's new note also says
Undo finishes the rollback once the file error that stopped it is gone.
Co-Authored-By: Claude <[email protected]>
`repair` copies every photo others hold (`Arc::make_mut`) without reporting a
change on a sound catalog, so the kept search and Text-rule texts stayed keyed
to the address a retained photo still has, and read that photo's old text after
it was edited on its own. Drop the lookups up front (they are built again when
asked), which also covers any copy a later change to `repair` adds.
Co-Authored-By: Claude <[email protected]>