Repository navigation
Merge upstream/main (78 commits, integration batch 43) - #457
Merged
Merged
Conversation
Found while testing crates/engine/src/cmd/cull.rs:115 (find_similar; empty-`only` semantics at crates/catalog/src/query.rs:328) Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Ctrl+Shift+O (the all-masks overlay) shows each visible mask's painted region, but only the selected mask drew its white outline. Draw the outline for every visible mask while mask_overlay_all is active so the other Radial/Linear masks read like the selected one. Handles and the rotation grip stay on the selected mask, so nothing else becomes draggable. Extends the all-masks overlay added in #919.
…p similarity Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Add two regression tests in tests_masking.rs (next to mask_overlay_keys_and_pins) covering #2210: every visible mask is outlined under the all-masks overlay while only the selected mask registers maskHandle: widgets, and an unselected mask's outline is painted on screen. - Match the outline condition to the painted region: only outline masks with components, like view_overlay already does. - Add examples/mask_overlay_shot.rs (+ dev-dep png) to render a screenshot of the overlay for the PR. - Revert the earlier standalone test in headless.rs; make mask_overlay and CanvasMap::new pub(crate) so the masking tests can reach them.
…7/S8705/S7044) Resolve and validate command-line path arguments before use, enforce HTTPS at download sinks, and confirm path containment. Hardens local codegen/fetch tools against path-traversal and command-argument-injection findings.
tools/ and docs/ scripts aren't unit-tested; exclude them from coverage so the new-code coverage gate doesn't block hardening-only changes.
Found while testing crates/engine/src/sync.rs:851 (SyncStep::Remove; compare mark_deleted in crates/engine/src/cmd/library.rs:168) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
README: the app icon above the title
LibraryLock::acquire wrote catalog.lock.owner with std::fs::write, which follows a symlink at that name. A library folder someone else prepared (a shared drive, an unpacked archive, a synced folder) could carry catalog.lock.owner -> ~/.bashrc or any other file the user can write, and opening the library replaced that file's content with the owner JSON. The catalog's staging files had the same problem and were fixed in #1502; the owner note was missed. The note is now written through store::create_staging (made pub(crate)): whatever is at the name is removed (a link itself, never its target) and the file is created with create_new. Drop already removed the note with remove_file, which never follows a link. Test (Unix): a link at catalog.lock.owner pointing at a file outside the library leaves that file's bytes unchanged through acquire and drop, and the note lands in the library as a regular file naming this process. Reported-by: BS.ehlas.cz
Find Missing Photos took a missing photo's file name with Path::file_name, which doesn't split on `\` on macOS or Linux, so a library made on Windows had photos it could only find by content: those with no hash on record (Lightroom-catalog imports, files edited since) were never found. Both the missing photos and the files found on disk are now named by one rule: the part after the last `/` or `\`, in lower case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…p; Hasselblad TIFF previews pass Two corpus tests fail on main with the CC0 corpus present (they skip without it, so no CI has run them): - camera_preview::tests::corpus_z8_uses_the_bundled_profile / corpus_z6ii_…: the test fitted the camera look with `lens: None`. Since 1ee751e (Nikon's in-file distortion for the Z 6II and Z 8, the same day as the tests) the camera's JPEG is matched through that warp, which files.rs reads with `lens_geometry` and removes from the opcodes before binning the proxy. The test now does the same; the app path was right all along. - corpus_raw_decodes: coverage-1639.fff has no JPEG and hands on its 8-bit RGB image as a baseline TIFF (`rgb_preview`, b5dc500); the test only accepted JPEG / JPEG XL previews. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s, and says when it finds nothing Measured on 68 photos straightened by hand in Lightroom Classic and 300 left as shot, Auto straighten turned 79 of the 300 by more than 1° (65 by more than 2°): the edges of planks, a branch or a bird's wing were taken for the horizon. It now answers only for at most 10° and on at least 3 agreeing lines (Upright Level is unchanged): 19 of the 300, with the same 14 of the 68 levelled within 0.5° and 1 instead of 3 more than 1° off. When it finds nothing, the app says so instead of leaving the photo without a word. LR-CROP-AUTO goes to 🟡: it still leaves most tilted photos alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The engine already applies photo.setMeta to all selected photos via targets(), but the Info panel and All Metadata dialog always show a single photo's values with no mixed-value indication. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
parse_rgb checked only the length, and u8::from_str_radix accepts a leading '+', so "#+f+f+f" set the overlay to #0f0f0f. Require six hex digits, as 80e439f does for the other #rrggbb parsers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
security: validate CLI paths/args in dev tools (SonarCloud S2083/S8707/S8705)
The File/Edit/View headings sat only egui's default 8 px apart because frameless buttons get no padding of their own. The test lays out the in-window menu bar and checks every pair of neighbouring headings is at least 24 px apart; without the item-spacing fix the gap is 4 px and the assertion fails.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tcut recording on macOS
`lightcraft-cli commands` (text and --json) now sorts the registry by id before printing, so each family's commands sit together. The engine's registry order, used by engine.commands over MCP and the control channel, is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A colour-range mask compares every pixel against every sample, so render and export cost is pixels x samples. The interactive sampler stops at 5, but mask.add / mask.update (colorRange) passed their `samples` array straight through, so a few hundred samples on a large render turned into billions of operations and hung rendering and export. The project already caps similar lists (MAX_STROKE_DABS, MAX_DETAIL). The samples list from automation is now capped at 64. Test: a request with 1000 samples is cut to 64; a two-sample request is unchanged. Reported-by: BS.ehlas.cz
…dependency Keeps CanvasMap::new and mask_overlay private to detail.rs again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ide follows renamed keywords, people and folders Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # docs/whats-new.md
# Conflicts: # docs/parity-checklist.md # docs/whats-new.md
# Conflicts: # docs/gaps.md # docs/parity-checklist.md # docs/whats-new.md
# Conflicts: # docs/whats-new.md
# Conflicts: # docs/parity-checklist.md # docs/whats-new.md
# Conflicts: # docs/gaps.md # docs/parity-checklist.md # docs/whats-new.md
# Conflicts: # docs/gaps.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Integration batch 43: 21 community PRs
… fork Upstream storytold/lightcraft since 31ee264: PSD/PSB metadata (fail-closed), Find Similar empty results, colour-range mask sample caps, native menu accelerator fixes, Auto straighten limits + "nothing found" toast, Highlights/Shadows median 2x faster, Enable Filters (library.toggleFilters), foreign XMP namespace collisions, one test binary per crate, packaging hash pins, i18n gaps reported not failed. Fork resolutions: - Enable Filters: our filter.toggleEnabled / filter_suspended retired for upstream's library.toggleFilters / shelved_filter (kept in Library > Filters); our keywords Vec follows too. - Ported set-aside catalog fixes: Filter::only_none (Find Similar), library lock owner note via create_staging. Smart album f-number gte/lte already fixed here (num_op32). - Kept ours: CI workflows (self-hosted, no Sonar/shared gate), README, apps/cli flat tests, codecs bench as example, control-server tests, Sony pin tests dropped. - Combined: export remove-location (HEIF-aware + PSD fail-closed), doc_path (share follow + resolve_absolute), i18n loader (brand fill + drop empty), xmp namespace arms. - Brand fixes in upstream text; docs/whats-new.md recorded with notes --upstream. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merges storytold/lightcraft
mainsince our last merge (31ee264): 53 code commits / ~45 upstream PRs, incl. integration batch #2744 (21 community PRs).What arrives: PSD/PSB metadata reading (fail-closed on malformed resources), Find Similar empty-result state, colour-range mask sample caps, native menu accelerator fixes, Auto straighten (≤10°, ≥3 lines, toast when nothing found), Highlights/Shadows median ~2× faster, foreign XMP namespace collisions preserved, Enable Filters follow-ups, one test binary per crate (
tests/it/), hash-pinned packaging downloads, i18n gaps reported instead of failing.Fork decisions in the resolution
filter.toggleEnabled/filter_suspendedfor upstream'slibrary.toggleFilters/shelved_filter(stays in Library ▸ Filters, Cmd+L bound once). NewSession::show_onlyso Immich smart search and Previous Export also clear Find Similar'sonly_noneand the put-aside filter (+ test).Filter::only_none; library lock owner note no longer writes through a symlink. Upstream's smart-album f-number ≥/≤ fix skipped: already fixed here (num_op32).git-sourcesjob, which rejects our filmcraft dep), README, flatapps/cli/tests, codecs bench as example, control-server tests, dropped Sony pin tests. FreeBSD workflow now runs nightly + onrelease+ on its own PR paths (upstream #2667).doc_path(share follow +resolve_absolute), i18n loader (brand fill + drop empty), XMP namespace arms, classic crop panel Auto uses the new toast.arithmetic_side_effectslint, View menu row count, heading-gap test adapted to our longer bar, 8 translations for the new Auto straighten toast, brand names in upstream text, upstream gap 30 renumbered to gap 38.Checks:
cargo xtask ci --fastall 14 steps green; tests for catalog, meta, pipeline, codecs, engine, ui-egui, cli, app, mcp, xtask pass, except:tests_activity::batch_merge_runs_each_set_in_turnfailed under full parallel load but passes alone (timing-sensitive).xtask dist::tests::every_packaging_template_rendersfails onmaintoo (Android{{all_files_permission}}is only filled byapk.rs); not touched here.🤖 Generated with Claude Code