Repository navigation
Integration batch 44: 11 community PRs - #2814
Merged
Merged
Conversation
…ating a folder (#1112) Two catalog additions and one internal change, with nothing calling the new ones yet: - Catalog::folder_records_located: folder_records_follow for a folder located where it already is on disk (records of library folders at the destination stay). - Catalog::local_records_of: the Local records of some files, split into those that can give way and those that hold something of the person's. - Find Missing Photos hashes a file in 64 KiB pieces instead of reading it whole (the same hash).
…already at its destination in place
The panel drew the Effective curve with its own copy of the region formula, which omitted the running maximum `lightcraft_pipeline::finish::curve_luts` uses to keep the curve monotone. With neighbouring regions pushed opposite ways the drawn line folded back into a dip the renderer never produced, so the graph and the four sliders under it disagreed. `ParametricCurve` is now the one curve both use: the region bumps summed and then forced monotone, sampled at the renderer's resolution. The graph asks it every frame and holds no state of its own, so a slider moved by hand, Reset and Undo all redraw the line from the settings in the frame they change — the two can no longer be left showing different things. Reset and the undo step were already atomic (the whole Tone Curve is one `develop` state, and a drag is one engine interaction); tests now pin that the painted line, not just the settings, follows Reset and Undo. Tests: the folded shape proves the bare sum is not monotone while the model is; the painted path is compared point-by-point against the model; Reset clears the four sliders and the graph together; one undo takes back a whole drag. Co-Authored-By: deepseek-flash <noreply@deepseek.com>
The parametric graph is now a control surface. Each of the four regions has a handle on its own bump: drag it up or down and that region's slider moves with it. Each of the three splits has a notch on the graph's bottom edge: drag it left or right and the region boundary moves. Every write goes through `develop.set` on the frame it happens, so the sliders under the graph, the curve and the handles are all the same state and are seen to agree mid-drag. A drag runs inside one `develop` interaction, so a whole gesture is one undo step and Ctrl+Z takes it back at once rather than unwinding it frame by frame. Details that make it usable: - The handle is the one under the *press*, not under the pointer once the drag threshold has passed — that is most of a handle's width away, and hit-testing the moved pointer grabbed nothing at all on a short drag. - The drag follows the pointer's motion from the handle's own centre, so a grab never makes the control jump by the distance from the pointer to that centre. - Splits are looked for before region handles: a notch sits on the bottom edge where the curve itself passes on the dark end of a shallow line, so on equal terms a region handle would always win and a notch could never be grabbed. - A split is kept a step clear of its neighbours, and a region handle saturates at ±100 rather than jumping when the pointer goes past what the region can reach. ⌥ is a tenth of the motion, as the point curve's drag is. Tests cover a region drag down and up, a split drag (including its bounds), a drag that starts off every handle moving nothing, the readout naming the control under the pointer, the level/amount inverse, and one undo step per gesture. Co-Authored-By: deepseek-flash <noreply@deepseek.com>
The graph now shows the Effective curve and nothing else, as the parametric tab should: the four region handles and three split notches are gone. You grab the line itself, anywhere, and drag it up or down. Which slider moves is decided by where on the line you grabbed — the region whose window that input level falls in — and that slider follows on the same frame, so the line, the handle-free graph and the sliders are one state. The mapping is the renderer's own: a point's curve level against the region's slider is a straight line, so the drag inverts it exactly and the line tracks the hand instead of drifting away from it. The four regions tile the graph, so any grab moves exactly one slider. ⌥ is still a tenth of the motion, ⌥ or not the grab itself moves nothing, and a press away from the line is not a gesture (no value change, no undo step). The whole gesture is still one `develop` interaction, so it is one undo step. Note: `ui.data` stores and loads one type, so the drag state is kept as `Option<(region, x)>` and loaded with `.flatten()` — storing one shape and loading another silently returns `None` every frame, which is what made the first attempt drop the drag after a single frame. Tests rewritten for the line: a drag down and up, which region each quarter of the graph belongs to, the level/amount inverse at off-centre points, the region tiling, hovering naming the region, and one undo step per gesture. Co-Authored-By: deepseek-flash <noreply@deepseek.com>
Lightroom Classic's histogram is a control surface: its plot is split into five
tonal zones and each one moves the Basic control it names. The Edit panel's
histogram now does the same, wired through the engine like every slider.
- Zones: Blacks 0.00-0.15, Shadows 0.15-0.35, Exposure 0.35-0.65, Highlights
0.65-0.85 and Whites 0.85-1.00 of the plot's width, each naming the develop
control it adjusts (light.blacks ... light.whites), so its range, default and
steps are the panel's own control specs -- no copy of them.
- The zone the press landed in stays locked for the whole drag (the new
Gesture::HistogramDrag), so the pointer may cross the others without switching
control. The strip under the plot (the readout and the EXIF line) and the
clipping buttons in the plot's top corners are not zones.
- A sideways drag dispatches develop.set between develop.beginInteraction and
develop.endInteraction -- the sliders' own path -- so the draft render follows
the drag live, nothing is committed while it goes on, and the release lands the
whole drag as one undo step. Travel of the plot's width sweeps the control's
whole range (Shift a tenth, as the sliders' fine drag) and clamps to its spec;
the unrounded value is carried from frame to frame so a slow drag adds up
rather than rounding back to the step it already has, and the first reported
frame takes the whole travel from the press, since egui withholds a drag until
the pointer has left its click threshold.
- Hovering a zone tints it and names it with its value in the strip under the
plot ("Exposure: +0.45 EV"), replacing the EXIF line, and the pointer shows the
sideways-resize cursor. A double-click in a zone puts that control back to its
default in one undo step.
Tests: the zone mapping at every boundary, the tiling and the controls' specs,
the drag/rounding/clamping arithmetic (hostile input included) and the readout
wording; end to end through the control channel: a drag per zone, the zone lock
across the plot, the Shift ratio, clamping at both ends, live dispatch with one
undo step on the release, the double-click reset, the hover highlight, readout
and cursor, and a drag on the readout strip or clipping chevrons changing nothing.
Docs: the tracker's LRC-DEV-HISTOGRAM-DRAG row added and LR-VIEW-HISTOGRAM's
"no drag-to-adjust" note replaced, with the summary regenerated by
`cargo xtask parity --write`; a dated entry in docs/whats-new.md.
Sources: own design; the zone layout and Lightroom Classic's histogram-region
behaviour as the reference (observed read-only).
Co-Authored-By: deepseek-flash <noreply@deepseek.com>
Found while testing crates/engine/src/cmd/library.rs:736 Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…n the catalog Catalog::apply noted the photos an op touches before checking they exist, and a batch that rolled back kept what its first ops and the rollback had noted. touched_since and aspects_since then named photos nothing changed, ids that do not exist among them, and a failed album op made earlier revisions unknown. apply now drops the notes made for the revision a failed op would have made and puts back the broad-change mark. A batch whose rollback itself fails keeps its notes and makes earlier revisions unknown, since the catalog did change.
library.source cleared the filter's library folder when a library folder became the source, but not the filter's album when an album did. LibrarySource::to_filter makes the album shown replace the filter's, so the grid was right; but the filter bar has no album chip, so the old album stayed in the filter unseen and narrowed the next source (All Photos, Picks). As for a library folder, the one shown now wins.
…evision The catalog changed, so caches keyed by its revision must not keep serving what they held for the one before.
…e revision The revision field and Catalog::apply said an error changes nothing and that the revision counts applied ops; a batch whose rollback fails changes the catalog and advances it.
…egions on drag - Expose ParametricCurve from lightcraft-pipeline and use it in both curve_luts and the UI curve editor, eliminating duplicate implementations and ensuring render and graph never drift. - Invert the parametric model while holding the other three regions fixed, converting vertical pointer motion relative to the grabbed region's initial amount so a horizontal drag with zero vertical travel leaves all sliders untouched even with heavy overlapping neighbouring bumps (fixes AlexChambers report: Darks=60, Lights=0 grabbed at x=0.51). - Replace all raw table indexing with .get() per never-crash rules. - Add unit and headless integration tests verifying that horizontal drag with other regions non-zero changes nothing. Co-Authored-By: deepseek-flash <noreply@deepseek.com>
…tric curve against hostile inputs - Reverse slider loop order in UI to match Lightroom layout (Highlights, Lights, Darks, Shadows). - Sanitize splits and amounts against NaN, inf, and inverted split bounds in ParametricCurve::new, at, and region_at. - Guard param_drag against zero/negative widget dimensions. - Update live region readout to display the current frame's dragged value immediately. - Add regression test for non-finite and inverted split values. Co-Authored-By: deepseek-flash <noreply@deepseek.com>
Found while testing crates/catalog/src/local.rs:62 (folder_of), used by forget_local_plan at :192 and :204 Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ls let through together, not their union
…els exclude each other
…om the catalog's values, and the Finnish pick/reject strings no longer have a coverage test (#2729)
A pass over all 2,565 interface strings and 299 formats messages of the
German catalogs (What's New lines not included). 108 messages change:
- Lightroom terms: Tönung (Tint), Beschneidung (Clipping)
- one word per thing: Bedienfeld (panel; Bereich stays for sidebar
sections), Begleitdatei (sidecar), Dia (slide), Zuschnitt (crop),
Farbmarkierung (label) where "Markierung" read as the pick/reject flag,
Verschlusszeit, Smart-Album, Perspektivkorrektur (Upright),
Aktivitätsstapel
- "Ihre Dateien/Fotos" at the start of a sentence read as the formal
"your" in a du catalog; rephrased
- double colons and "1 Fotos" in count messages, awkward phrasings
- spaced en dash instead of em dash, no space before a final ellipsis,
German quotes around {profile}
The terms are listed in docs/localization-de.md; localization-parity
records the review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # crates/engine/src/cmd/library.rs
main replaced "Show Clipping" with "Clipping": the PR's Beschneidung term moves to the new key. Also takes CodeRabbit's two wording suggestions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolves the parity summary (regenerated), drops a duplicated #[cfg(test)], files the What's New entry under today's date and bumps the checklist's Last updated line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…aph; the hover test compares with a frame away from the line Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # docs/whats-new.md
# Conflicts: # docs/whats-new.md
Contributor
|
Caution Review failedThe pull request is closed. Finishing Touches
Comment |
This was referenced Oct 24, 2026
Merged
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 44: 11 community PRs, each screened (contributor account age, security review of the full diff, core-contributor / CodeRabbit / security comments), checked for overlap with other open PRs and the last 24 h of main, and merged one by one with
--no-ffso each PR's commits and authorship are kept.photo.raterefuses fractional and out-of-range ratings (main merged into the branch; keeps main'scullwrapper)Clippingkey; CodeRabbit's two wording notes taken)#[cfg(test)]removed, What's New under today, parity summary regenerated; the fork refuses maintainer pushes)Other conflicts were docs only (
whats-new.md,parity-checklist.md,gaps.md; both sides kept) plus one test file where both sides only appended tests.Checked locally on Linux:
cargo fmt --check,clippy --workspace --all-targets -D warnings,cargo test --workspace,xtask parity,layers,assets,wasm: all green. One load flake seen:headless::tests::a_screenful_of_small_faces_is_not_evicted_and_left_blankfailed in 2 of 4 full ui-egui runs on a heavily loaded machine (load 16–72) and passed in the other two and alone; it also passes on main, and bisecting didn't tie it to any PR here.🤖 Generated with Claude Code