Repository navigation
Integration batch 33: main green again, 85 reviewed contributor PRs - #1431
Merged
Merged
Conversation
`profiles.list` enumerated only the built-in `PROFILES`, so a `.cube` LUT imported with `profile.import` never appeared in it, although the command promises every profile and `develop.profile` points clients to it for ids. `profiles.menu` already listed them. List the built-in profiles first, then the imported LUT profiles marked `"imported": true` (as in `profiles.menu`), with the same favourite flag. Test: `cube_luts_become_profiles` now checks the imported profile is listed with its name, group and favourite flag, still listed after the library is reopened, gone after `profile.deleteImported`, and that built-ins stay listed (fails before this change, passes after). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… MP (ILCE-7RM6 full frame)
…ed profile Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
…rivate DNGs (236 models verified) All 38 files decode from sensor data and develop at full size (9520x6336 and 6336x9520) without error; mean CIE76 dE to the camera JPEG is 6.3-13.9 at 400 px. The files are not committed and the evidence entry carries no path. Leica is now 14 verified / 47 unverified, the Leica bucket on a verified body 5% -> 21%; the weighted shares (85% decode, 42% on a verified body) do not move. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…s where the file system refuses them (item 3, one of eleven) APFS refuses names that are not valid UTF-8 (EILSEQ, os error 92), so the test's create_dir_all(...).unwrap() panicked on macOS. The test now probes once with a \xff folder; where that fails, the non-UTF-8 folder case and the non-UTF-8 entry are skipped and the catalog-folder and symlink cases still run on a plain-named folder. Where the probe succeeds (Linux, FreeBSD) the test is unchanged. Run on macOS (case-insensitive APFS, rustc 1.99.0): the five tests in tests_lightroom_folder pass, cargo fmt is clean, and clippy over lightcraft-engine with --all-targets is clean. The ten sidecar tests of item 3 are not touched. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Photos that tie on the sort key (equal ratings, one import batch, a burst within a second) now sort by file name before id, in Catalog::query, Recently Added and auto-stack. Split out of #641. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ive volume (item 3, ten of eleven) The tests were written for a case-sensitive disk. rename.rs sidecars() offers both .XMP and .xmp per naming and keeps those that exist; on case-insensitive APFS a.XMP "exists" for a file stored as a.xmp, so the code renames a.XMP while the fault injectors (Faults twice, PartialRename) compared exact paths with the lowercase one: the injected failure never fired and the rename the tests expect to be refused succeeded. Fault injectors now match by same_path_or_file (equal path, or the same file by identity); two assertions that compared an exact spelling use same_path_for_volume (equal, or equal ignoring ASCII case on a case-insensitive volume), and one that required the lowercase packet to be absent is skipped there, where both spellings are one file. Helpers live in tests_xmp.rs. Production code is not touched. Run with rustc 1.99.0 on macOS: case-insensitive APFS, the ten failed before and pass now; case-sensitive APFS (a disk image), the original tests pass and so do these. All 13 sidecar::tests_repair tests pass on both. cargo fmt is clean and clippy over lightcraft-engine with --all-targets is clean. Not touched: the .xmp -> .XMP spelling change on rename, and the Lightroom folder test (its own PR). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…to Apple Photos, 876 pt) export_dialog_is_unchanged_in_a_tall_window expected 846 pt on every platform. a6431c1 (add exported files to Apple Photos, #236) put a macOS-only checkbox at the end of the dialog, so on macOS it is 876 pt tall at 1600x1000 (measured: [[492 62] - [1107.2 938]]). The test failed on macOS on upstream main (76b5377) with no other change; it is unchanged on other platforms. Run on macOS (rustc 1.99.0): the five tests in tests_dialog_fit pass, cargo fmt is clean, clippy over lightcraft-ui-egui with --all-targets is clean. Not run on Linux or FreeBSD, where the expectation stays 846. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… display decision AVIF HDR export takes hdrTransfer = pq | hlg (export dialog: HDR curve; MCP export schema lists it). HLG writes CICP transfer 18 and no clli box. The window logs whether it shows HDR; today always SDR (eframe configures an 8-bit surface), with the platform / surface format / headroom / opt-out rules unit-tested. Also satisfies clippy 1.99's chunks_exact_to_as_chunks in spots.rs. Part of #868. Sources: ITU-R BT.2100 (HLG OETF, inverse OOTF with system gamma 1.2), ITU-R BT.2408 (203 cd/m2 reference white at 75 % HLG); own design for the display decision. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… range tests/accessibility.rs walks the AccessKit tree headless in every view, Develop tool and 13 dialogs and fails on unnamed controls, sliders without value/range and untitled dialogs. Fixes what it found: text fields are named by caption or hint, develop sliders expose min/max/step/value text and take Increment/Decrement, Tab-focused sliders take the arrow keys, Auto Stack's slider is named. Also as_chunks in spots.rs for the newer clippy lint. Docs: ui-parity audit section, checklist, gaps, ROADMAP. Sources: own design. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…me/sidecar tests
20 engine tests failed on Windows on clean main. Three real bugs on
case-insensitive volumes (Windows, default macOS APFS) caused most of them:
- Renaming a photo probed `a.XMP` before `a.xmp`. On a case-insensitive
volume the upper-case spelling "exists" when only `a.xmp` is there, so the
sidecar was moved as `Trip.XMP` (and its retained-packet record was taken
under the wrong spelling). Upper-case candidates are now used only when the
folder lists them exactly (new `MoveFs::listed`).
- `RealFs::same_file` on Windows (no file id in std) depended on argument
order: `same_file("Trip.XMP", "Trip.xmp")` was false when `Trip.xmp` is the
real entry, so saving after a partial rename reported a phantom collision.
It is now symmetric, and also requires the names to differ only by case
(two different files with equal size and mtime were "the same").
- Saving metadata picked the sidecar spelling by `is_file()`, lower case
first, so the atomic write renamed an existing `Trip.XMP` to `Trip.xmp`.
The spelling the folder lists now wins.
The rest were fixtures: FakeFs fault paths, catalog paths and expected
paths spelled with `/` while the code joins with the host separator.
Regression tests: case_insensitive_renames_keep_each_sidecars_spelling
(FakeFs, every platform; fails without the fix) and
same_file_spellings_are_symmetric_on_windows. Linux behaviour unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
desktop_exec treats a freedesktop Exec path as absolute when it starts with '/' on every platform (Path::is_absolute wants a drive letter on Windows); fill_box uses as_chunks (clippy::chunks_exact_to_as_chunks); LibraryLock::descriptor_copy is cfg(all(test, unix)) like its only test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With a display profile set, the 1:1 (and closer) Detail and Compare views showed only the whole-frame render magnified, not the sharp window cut from the photo's own pixels. The renderer gives a display-profile render its own key (RenderJob::with_display), but the window tiles were recorded under the key the job had before, so draw_window never found the texture. The tiles are now keyed with the job as the renderer runs it (Renderer::job_for), in Detail and in Compare. Tests: a_display_profile_keeps_the_sharp_window_at_one_to_one and a_display_profile_keeps_the_compare_windows_at_one_to_one check that the window is painted over the whole-frame render; both failed before the fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WEuxxPyG8t6KcADbZSEAUj
…t the render yet A raw's embedded JPEG, a thumbnail, the previous render after an edit or the magnified frame under a 1:1 window all look like the finished photo. Once a render has been on its way for 0.5 s with nothing new on screen, a pill at the bottom of the photo (widget `loupe:rendering`) says so; above the Navigator when that is in the way. The wait starts when the render starts coming (an idle app draws no frames), so a quick render never shows it, nor does a drag whose drafts keep up; once up it stays until nothing is coming, so slow drafts don't make it blink. It watches what is on screen: the After or the Before, and the windows in use. Not an activity row: it says the pixels aren't final (docs/background-tasks.md). Co-Authored-By: Claude <noreply@anthropic.com>
…lan's ranges The header-only path added in #755 answers for a Fuji RAF, whose preview pointer sits in the first bytes. A Canon CR3 keeps its preview in a JPEG track, and a TIFF raw (CR2, ARW, DNG, RW2, 3FR …) can keep its preview tag in an IFD the prefix cuts short: both fell back to `std::fs::read` of the whole file — tens of megabytes for a JPEG of a few, on the format of the largest bucket in gaps.md (Canon, 33 % of photographers). `preview_window` now asks `lightcraft_raw::sparse::preview_plan` — the module #961 added for the import path, which had no production caller — which ranges `embedded_preview` reads, and reads exactly those: `planned_preview` fills a buffer of the file's length, reads the ranges the plan names and asks again until it says `Ready`. The buffer is the file's length, which the memory gate counted already, and its untouched pages stay zero, so what this path costs is the bytes read — on macOS a freed buffer of that size may sit in the allocator's cache rather than go back to the OS (measured on a 38k-photo import, #832). The loop gives up past 60 % of the file, the bound step 2's partial read uses, and a plan that does not fit, a file past 1 GiB or a window that does not decode all end in the whole-file fallback. The quick path hands the JPEG to the decoder alone, so two container facts the whole-file path applies have to be visible in the bytes it is handed, or the file declines and the whole file keeps the preview: - a preview colour space of Adobe RGB (`decode_raw_preview` applies it; a JPEG-only decode has the JPEG's own space, else sRGB). A container that says sRGB does not decline — that is what the decode assumes anyway, and declining it took the fast path away from a real Sony ARW; - the file's own EXIF orientation, when the preview JPEG carries none of its own: the plan's header is a bounded 64 KiB (the header route grows its prefix to the preview's declared extent instead), and an orientation tag it cannot see would show the preview unrotated. Measured over the whole CC0 corpus (111 raws): 52 files take this route, reading a median 7.8 % of their bytes (0.9-27.7 %) — RW2 3.3 %, Leica RWL 4.1 %, ARW 7.5 %, CR3 8.4 %, DNG 9.7 %, CR2 14.3 % — while the 21 RAFs stay on the header route (median 4.5 %). The other 38 read whole: NEF, NRW, ORF, PEF and SRW because the planner does not describe them (an SRW plans to the whole file, which the 60 % budget then declines), plus the ARWs, CR2s, CR3s and DNGs that declare Adobe RGB or whose plan wants more than that budget — the bytes they read are the ones the plan would have read anyway. Across all 111 files the plan handed on the same preview as the whole file, with the skipped bytes zeroed and again 0xFF. `LIGHTCRAFT_PROFILE=1` prints [profile] preview …/arw-sony-a7rm4a-compressed.arw: read 688128 of 61832192 bytes (plan, window 483441) Tests: a synthetic TIFF/DNG whose preview only its tags locate (identical pixels to the whole-file path, the CFA strip unread), the same structure without the tag that makes it a raw, a file whose orientation only the whole file shows, and a file that states Adobe RGB against one that states sRGB; the opt-in real-file test reports which path answered. Co-Authored-By: DeepSeek V3.2 <noreply@deepseek.com>
`preview_plan`'s assertions sat inside the `header_plan == Ready` branch, so a NEF, an ORF or a PEF — whose header probe reads samples and whose header plan is therefore `Whole` — never had its preview plan looked at, and neither did any file the header plan declines. The display path wants exactly that answer, so both plans are now asked for every corpus file, and the preview the plan hands on must be the whole file's with the skipped bytes `0` and again `0xFF`; `Whole` stays a legitimate answer (that format reads whole for a preview too) and is counted. The test prints what each format reads for both plans. Co-Authored-By: DeepSeek V3.2 <noreply@deepseek.com>
…e rendered photo) New export format `rendereddng` (export dialog: Format DNG, "DNG of: Rendered photo"; `app.export`; MCP export tool): the rendered photo, with the edit, crop, size, output sharpening and watermark baked in, written by the new `lightcraft_raw::write_rendered_dng` as a LinearRaw DNG of 16-bit float Deflate tiles in the export colour space. ColorMatrix1 (XYZ -> space), ForwardMatrix1 (space -> XYZ D50), a neutral AsShotNeutral and an identity ProfileToneCurve make raw converters show it as rendered. HDR edits keep highlights above white. Bad input (wrong sample count, zero or huge sizes, NaN/inf, out of half-float range) gives an error or is clamped, never a panic. Also fixes the Rust 1.99 clippy lint chunks_exact_to_as_chunks in pipeline/spots.rs that fails `cargo xtask ci` on main. Sources: Adobe DNG Specification 1.4+ (LinearRaw, ColorMatrix/ForwardMatrix, ProfileToneCurve); own design. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
While no monitor profile is chosen, the Linux app reads the profile the desktop assigns to the display in colord (org.freedesktop.ColorManager, system bus, via zbus) on a background thread every 3 s, and shows previews through it. With several displays it is used only when they all share one profile; without colord the view stays sRGB. Windows' WCS needs FFI and stays manual. Also satisfies clippy 1.99's chunks_exact_to_as_chunks in spots.rs. Sources: the colord D-Bus API documentation; own design. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…00 points A Color Mixer Hue/Saturation/Luminance (or curve) targeted-adjustment tool left on takes over every click and drag on the photo, so click-to-zoom and panning stopped working and the canvas looked frozen (user report). Esc already turned it off, but nothing said the tool was on: the mixer's buttons look like tabs. Turning one on now shows a toast: drag up or down on the photo, Esc to stop. A mouse wheel notch scrolled egui's default 40 points; an open Edit panel is 2000+ points tall. Lines now scroll 100 points (theme::WHEEL_LINE_POINTS, set in apply_kind so every theme has it), about Lightroom's step; trackpads report points and are unaffected. What assumed a 40-point notch keeps its per-notch behaviour: wheel zoom (Ctrl+wheel and the loupe's plain wheel) uses theme::WHEEL_ZOOM_PER_POINT so a notch still zooms ~1.22x, and a focused slider's wheel nudge counts one notch (WHEEL_LINE_POINTS) per step. Tests: the tool announces itself and Esc leaves it (view unchanged); three wheel notches scroll at least 300 points (120 before); every theme sets the notch and keeps the zoom per notch; wheel nudges in notch units; the slider wheel-nudge test lets egui's smoothing deliver its 120 points. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… run it late (#718) On Wayland a window on a hidden workspace or minimized gets no frame callbacks, so queued control requests waited 60 s and then ran when the window came back, doubling retried work. The server now abandons a request the app hasn't started after 5 s without a frame, says why, and the app skips abandoned requests. Running requests keep the full 60 s. Also as_chunks in spots.rs for the newer clippy lint. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ion 66) Version 66 keeps version 64's as-shot white balance and black level offsets; its word 661 is below where the sensor clips, so the white level stays measured from the data. Checked on 33 R6 Mark III files from 12 shoots: all now open with their as-shot white balance, black levels match the masked columns. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017JKdR4oZ3jRSPPwMLLTa2U
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017JKdR4oZ3jRSPPwMLLTa2U
This was referenced Oct 13, 2026
Closed
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.
Integration batch 33: 85 contributor PRs plus fixes, merged together and checked with
cargo xtask ci(Rust 1.99, Windows).maindid not pass its own gates: clippy 1.99 failed inspots.rsandlock.rs, and tests failed on Windows and macOS (#989). Batch 32a (#1426) landed #997 for the first of these; #990, #1003, #1007, #1018 and #1052 here fix the rest, and the other PRs were merged on top, one at a time.Every PR was first read for malicious content: network calls, process spawning, deletion,
unsafe, build scripts, CI changes, new dependencies and weakened gates. Nothing was found. None of these PRs adds a dependency, a workflow orunsafe. Each was then checked againstCLAUDE.md: never-crash, pure Rust, clean-room, assets, and everything-is-a-command. Merging this marks each listed PR as merged.Merged PRs
Our own changes
ifis collapsed.library.up/library.downshortcuts took the keys first.is_multiple_ofin the leap-year check (clippy 1.99).ColorDataliterals carrykelvin_presets.white: Some(3830.0)).preview_histogram.cargo fmtover the merged tree.cargo xtask parity --write.Differences from batch 32a (#1426), which landed while this branch was built
Area, the toast takes the clicks meant for what is under it:ai_masks_without_the_model_offer_the_downloadfails with the workspace's features because the model dialog's folder button never gets its click. It needs another way to offer the text (see its thread).--connect=hostinstead of falling back, LR-IMP-FORMATS: transparent areas develop on white instead of black (#1212) #1222 checks the alpha plane's size.Left for later batches
camera_preview.rsandfiles.rs; perf(catalog): cache folded filename sort keys #1088 needs to keep Sort ties by file name, then id #978's sort order.run --import <folder>takes HEIC, HEIF and NRW like library.import #1175 (→ CLI --import <folder> uses the engine's import extensions (#1080) #1119), Filmstrip and grid follow the active photo to its place in another source #1143 (→ Scroll the filmstrip when the same photo is opened in another source. #1253), Display profile: zoomed-in windows are drawn again with a monitor profile in use #1359 (→ LR-PREF-DISPLAY: Monitor profiles: keep zoomed views sharp #1036), fix(history): restore steps without appending recursive history #1089 (→ LRC-DEV-HISTORY: History cursor — going to a step adds no step #1246), Lightroom import: count the originals while they are probed, not only after all of them #1398 (→ Show progress and allow cancel while a large Lightroom catalog import reads its photos #1024), fix(macos): cargo xtask ci passes on macOS #1317 (→ Issue #989: the lock test finds true on the PATH #990, Issue #989: odd_folders_never_fail_the_check skips non-UTF-8 names on APFS (item 3, one of eleven) #1003, Issue #989: the Export dialog height test expects the macOS row (Add to Apple Photos, 876 pt) #1018, Issue #989: clippy 1.99, fill_box reads its buffer with as_chunks::<3>() (item 4) #997), Fixed some bug that prevented the GUI from compiling properly #1197 and Fix on_exit arity (GUI does not compile) and embed craft-fonts by default #1391 (on main since 0.7.1).Checks
cargo xtask cipasses on this branch with main at b709180 merged in: fmt, clippy-D warnings, heif, workspace tests, parity, layers, assets and wasm.🤖 Generated with Claude Code