* LR-EDIT-CURVE: show sampled Tone Curve input (#987)
Keep the output Histogram separate. Sample each selected curve's input
with the production prefix LUT builder and strict request identity.
Preserve current main's source facts, mask behavior and render output.
Credit @zelefogs for the request and @aiongg for the input/output
clarification. Human contributor credit remains @AlexChambers.
Co-Authored-By: GPT-6-Astra <noreply@openai.com>
* LR-EDIT-CURVE: refresh curve input source after relink (#987)
Rebuild the prepared diagnostic job when its origin changes, even if
the content hash and render key stay the same. Retain completed
histograms for identical content.
Add a real-file regression through import, relink, the prepared-job
caller flow and the native worker. Check the actual retry path,
source facts and successful recovery.
Co-Authored-By: GPT-6-Astra <noreply@openai.com>
* LR-EDIT-CURVE: bound histogram UI test work (#987)
Use two small generated PNGs for the input-histogram tests. Keep the
production decoder, render queue and pipeline, and retain the 20-second
settle budget. The full demo library adds unrelated thumbnail and
neighbor work when the failure gate opens.
Assert that stale cached histograms stay hidden during pending and
failed replacements, and verify that clearing the selection leaves
no active photo. Keep the existing histogram stage checks.
Human contributor credit remains @AlexChambers.
Co-Authored-By: GPT-6-Astra <noreply@openai.com>
* LR-EDIT-CURVE: adapt the histogram to main's render parameters (#987)
Carry the curve input source, edit panel and tests into the module layout and
render-parameter API on current main.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* LR-EDIT-CURVE: register the histogram label with the panel's Ui (#987)
Main's register now takes the Ui, not its Context.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* LR-EDIT-CURVE: match unknown channels to the Point input (#987)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* LR-EDIT-CURVE: refresh the parity summary after the merge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* LR-EDIT-CURVE: fit the merge to main's three-argument file loader; histogram-only slots in one helper (#987)
Main's loaders take the camera profile as a third argument, so the curve tests' loaders take it too. Keeping the Tone Curve and HDR histograms moves into keep_histogram, which brings Renderer::collect back under the cognitive complexity limit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* LR-EDIT-CURVE: the input diagnostic's pixels are dithered like the render's (#987)
Main's finish dithers its 8-bit output with an 8x8 Bayer pattern (#3509). The diagnostic's image used plain rounding, so it no longer matched a render with the later curves removed; it now encodes with finish's dither at the same output position. Its histogram still bins the undithered samples.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* LR-EDIT-CURVE: refresh the parity summary after the merge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* LR-EDIT-CURVE: refresh the parity summary after the merge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* LR-EDIT-CURVE: refresh the parity summary after the merge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Trim duplicate Tone Curve histogram tests (#987)
* LR-EDIT-CURVE: check the brush budget before sampling a curve's input (#987)
The Tone Curve input diagnostic went straight into mask preparation in
both the native render job and the web worker, skipping
check_brush_budget. An over-budget brush then lost its later strokes and
the backdrop showed that partial sample as the curve's input.
curve_input::render now runs check_brush_budget on its own clamped,
full-crop request (at most 256 px, no window) and returns a Result, so
both callers fail the request and the UI shows "Input histogram
unavailable". Regression tests cover the pipeline, the native job, the
worker and the headless UI.
* LR-EDIT-CURVE: tell screen readers the selected channel and the input status (#987)
The Tone Curve's channel buttons now report which channel is selected
(toggled), through the same helper the segmented controls use. The input
histogram's caption is a polite live region, so screen readers read it
when it changes between loading, sampled and unavailable, and the focus
stays where it is. A new announce_live helper sets the live region; the
AccessKit adapters read a live node only when its text changes.
The headless test view keeps the last frame's AccessKit tree in test
builds, and a new test checks both behaviours through it.
---------
Co-authored-by: GPT-6-Astra <noreply@openai.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
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:
docs/parity-checklist.md
Re-merged main after today's merges. Conflicts: docs/parity-checklist.md Docs/locale conflicts are resolved by keeping both sides. Also folds in two fixes for main so the gate passes: crates/engine/src/import/job.rs gets rustfmt (the #1995 merge left it unformatted, so every gate failed at fmt), and the Windows-only folders test joins each path component.
Re-merged main after today's merges. Conflicts: docs/parity-checklist.md Re-merged main after 2092/2204/2418 landed: only docs/parity-checklist.md conflicted (rows from both sides kept, summary regenerated); no code change since the last merge. Docs/locale conflicts are resolved by keeping both sides. Also folds in two fixes for main so the gate passes: crates/engine/src/import/job.rs gets rustfmt (the #1995 merge left it unformatted, so every gate failed at fmt), and the Windows-only folders test joins each path component.
Re-merged main after today's merges. Conflicts: docs/gaps.md docs/parity-checklist.md docs/whats-new.md Re-merged main (no conflicts); the earlier gate-windows failure was main's test, fixed here. 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. Docs/locale conflicts are resolved by keeping both sides. Also folds in two fixes for main so the gate passes: crates/engine/src/import/job.rs gets rustfmt (the #1995 merge left it unformatted, so every gate failed at fmt), and the Windows-only folders test joins each path component.
Re-merged main after today's merges. 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. Docs/locale conflicts are resolved by keeping both sides. Also folds in two fixes for main so the gate passes: crates/engine/src/import/job.rs gets rustfmt (the #1995 merge left it unformatted, so every gate failed at fmt), and the Windows-only folders test joins each path component.
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:
docs/gaps.md
docs/parity-checklist.md
docs/whats-new.md
Re-merged main (no conflicts); the earlier gate-windows failure was main's test, fixed here. 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:
docs/parity-checklist.md
Re-merged main after #2092/#2204/#2418 landed: only docs/parity-checklist.md conflicted (rows from both sides kept, summary regenerated); no code change since the last merge.
Conflicts:
apps/lightcraft/src/main.rs
docs/gaps.md
docs/parity-checklist.md
docs/whats-new.md
Ported in this merge: main.rs keeps main's nightly identity setup and then this PR's start_launch_files call. The startup_view tests pass locally.
Conflicts:
crates/engine/src/media/source.rs
docs/parity-checklist.md
Delta since approval (2630748a..91620b0f: doc cites, panic! in a test, render-cache bump) reviewed. Conflict: RENDER_CACHE_VERSION goes to 86 (main is at 85, 83 reserved by #3943), documented in main's version list.
Conflicts:
apps/lightcraft/src/main.rs
docs/parity-checklist.md
Delta since approval (fb4bd215, 5242e7db, d69d76d3, 36a1cf29: window minimum weighed at the interface zoom, fitted or maximized within small screens, with tests) reviewed. Conflict: main.rs takes main's channel window title with the PR's MAXIMIZE_LATER argument.
Conflicts:
Cargo.toml
apps/lightcraft/src/main.rs
docs/parity-checklist.md
docs/whats-new.md
Conflicts: Cargo.toml takes main's objc2-app-kit line (0.3.2, NSAccessibility, NSWorkspace) plus this PR's NSString/NSUserDefaults foundation features; main.rs keeps both module lists. docs/whats-new.md: main's file plus this PR's entry under 2026-10-27 (the branch's earlier merges had moved main's 10-28/10-29 sections; main's layout is kept). Parity: both revision rows.
Nightly launch fix under Skylar's Exec 454: the Launcher's trailing `--` no longer reaches the file list where that applied, and a refused launch no longer blocks on macOS (the reason goes to stderr and the app exits 2).
The red sonarcloud / SonarCloud Scan check is inherited: coverage shards 1, 3, 4, 7 and 8 each report three teardown SIGSEGVs in lightcraft-ui-egui UI tests, with zero FAILED tests and zero panics. It is the GPU warm-up thread still running at process exit, which lightcraft #4697 fixes (awaiting Fred). Every gate and test job on this PR is green.
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.
SonarCloud coverage shard fails on pre-existing teardown crashes that also fail on main (tests::scan_probes::a_browse_through_a_link_and_dot_dot_reads_the_folder_the_system_names and tests::lifecycle_037::a_widget_gesture_cancels_if_its_target_moves_between_resolution_and_the_press, the GPU warm-up thread at process exit), fixed by #4697; reported to the LightCraft owner.
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
The part of a composed slide that pan and zoom moves came from the crop's
aspect. The composer lays the photo out at its render's size in whole
pixels, at least 1 px a side, so for a very narrow or wide crop the two
differ: at aspect 0.001 the crop's aspect gave the whole image cell while
the photo was a 1 px strip, and the backdrop in the cell moved with it.
A slide job's result now records the size of the photo's render it was
composed from (RenderResult::slide_photo, also set by the web build's
render workers), the slide's texture keeps it, and moving_part lays the
slide out with that size.
* security(pipeline): one dab budget per brush mask; linear-time defringe min/max
* address review: drop min_filter transpose buffers once consumed
* address review: an over-budget brush mask fails the render instead of dropping later strokes
* merge main into fix/sec-pipeline-render-work; the web worker rejects an over-budget brush mask
* address review: validate brush budgets on the mask's own frame; an exactly filled budget is not over it
Use craft-gainmap from craft-libs for gain map metadata and arithmetic
* Use craft-heif from craft-libs; remove crates/heif
lightcraft-heif moved to craft-libs unchanged as craft-heif
(storytold/craft-libs#784), so PhotoCraft can share it. The layer table,
the heif CI step and the change triggers drop the local crate; a workspace
file change (which a craft-heif rev bump is) still runs the heif step.
* Pin craft-heif to the merge of storytold/craft-libs#794
* docs: the HEIF rows point at craft-heif, not the removed crates/heif
* Use craft-gainmap from craft-libs for gain map metadata and arithmetic
crates/codecs/src/gainmap.rs keeps the JPEG layout (encode_jpeg, read_jpeg,
is_gain_map_jpeg) and re-exports GainMapMeta, GainImage, GainMapOptions,
ISO_URN, compute and apply from craft-gainmap, which is this file's metadata
and arithmetic moved to craft-libs (storytold/craft-libs#904). The tests of
the moved code went with it.
* craft-heif's Options has a chroma field at this rev: keep the libheif upsampling LightCraft had
* raw: count the chunks a TIFF declares from its offsets table
craft-tiff builds at most one chunk descriptor per byte of file
(craft-libs#827), so a grid of tiles sharing one payload lists fewer
chunks than the image declares. Compare the offsets table, which is the
source of truth, so such a file reaches the byte-accounting check and is
refused for the data it actually holds.
craft-update moves from a231e517 to the head of storytold/craft-libs#696.
The check result window now shows for every status but idle, so the first
start after an update reports that it installed or why it failed. Restart
to Update on a ready update asks the app to close.
The install helper now starts when the app exits. on_exit calls
Updater::start_pending_update through LightcraftApp on macOS, because the
process ends there without dropping the app.
dialogs.rs keeps What's New's whats_new_line and main's first-run tour;
the grid's Find Similar Photos follows main (the toast moved to
find_similar.rs, whose menu path now uses → like the catalogs' key).
ka.json merged key by key: main's new tour keys kept, the stale
External Editor key stays dropped as in the other catalogs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Opening a library in an older format rewrites it in this build's, and older
builds then refuse it: a one-way step. Journal::open now first keeps the
files the library was, byte for byte, as catalog.snap.v<format>-<seq> and
catalog.log.v<format>-<seq>, and reports their names (LoadReport::kept).
Put back under their own names they are the library as the older build
left it (docs/catalog-persistence.md, Going back to an older version).
A library whose files can't be kept is not upgraded (it opens as it is; the
next open tries again), and an upgrade that fails leaves no copy; kept files
stay whenever the upgrade may have been written. A library whose log was
damaged is an upgrade like any other: its snapshot is kept beside the
damaged log, and it is refused if that log can't be replaced. The person is
told once where the library as it was is kept. A library left in its old format
at open is upgraded by a later snapshot (compaction, or closing), which keeps its
files first and is not written when it can't. The browser build keeps none
(Store::keeps_replaced_formats).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Exports shrank with the preview's Mitchell filter, which left small exports
(800 px web sizes) visibly soft even with output sharpening on. Exports now
downscale with Lanczos-3 (RenderRequest::downscale = Sharp, CPU and GPU);
previews and thumbnails keep Mitchell.
Output sharpening is an unsharp mask on luma at output scale: a Gaussian of
0.7 / 0.8 / 1.0 output px for screen / glossy / matte, amount x0.5 / x1 /
x1.6 for low / standard / high, with overshoot clamped to 10 % of the local
3x3 range so edges get no halos or colour fringes. Full-size exports keep
their size and, with sharpening off, are bit-identical to before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014ti8KemZbjE2ZgHgV1q1BM