Skip to content

Fix 10 upstream PR review findings - #280

Merged
emmertex merged 12 commits into
mainfrom
fix/all-plans
Oct 18, 2026
Merged

emmertex merged 12 commits into
mainfrom
fix/all-plans

Conversation

@emmertex

Copy link
Copy Markdown
Owner

Batch of fixes for 10 upstream PR review findings from @AlexChambers (2026-10-17). Each fix addresses a specific P2 issue found during review.

Changes

PR #762 - Sharpening ceiling clamp

  • Removed ceiling clamp in sharpening sigma calculation (crates/pipeline/src/local.rs)
  • Distinct radii now produce different output at all scales (including enlarged exports)
  • Added regression test

PR #910 - External editor improvements

PR #1014 - LRC Smart Collections (already committed)

  • Fixed keyword "contains all" to create separate rules joined by All
  • Fixed fileFormat RAW to map to kind=raw (not format=RAW)
  • Fixed aperture APEX conversion (APEX → f-number)
  • Added tests

PR #1067 - Render to DNG

  • Fixed HDR option: set hdr: true in ExportOptions to preserve HDR edits
  • Fixed explicit targets: command now accepts explicit IDs without selection
  • Fixed library generation: validates library hasn't changed before importing results
  • Added tests

PR #1155 - Custom order descending drop

  • Fixed drop position when sort is descending (inverted left/right interpretation)
  • Added test

PR #1241 - Timelapse partial file handling

  • Fixed: use O_CREAT|O_EXCL for partial file (errors instead of truncating existing)
  • Fixed: defer mux.take() until after all finalization writes succeed
  • Added tests

PR #1699 - Crop respects zoom and pan

  • Fixed crop tool to use requested zoom/pan instead of always fitting
  • Added test

PR #1700 - HDR display improvements

  • Fixed screenshot capture stride for float surfaces (compute from format, not hardcoded u32)
  • Fixed headless screenshot to fall back to SDR texture when HDR not in CPU textures
  • Fixed double color-space conversion on macOS (skip monitor profile on ExtendedSrgbLinear)
  • Fixed HDR texture re-encoding on headroom change (include headroom in render key)
  • Added tests

PR #1735 - Smart preview migration

  • Fixed: migrate smart preview file when on-demand hash is computed for unhashed photo
  • Added regression test

PR #2006 - Nikon Z5II Kelvin lookup

  • Fixed covers_camera() to try all make/model splits (matching spectral::find_camera)
  • Added test

Verification

  • cargo check --workspace passes
  • Each fix includes its own regression test
  • All tests added pass locally

emmertex and others added 12 commits October 18, 2026 11:25
…h table cleanup

Fixes three P2 review findings from upstream PR #910:

P2 #1: Preserve launch errors - after_command now shows an error toast
when open_with fails, instead of silently setting the status bar.

P2 #2: Index embedded document IDs - stack_derived now indexes both
hash-derived and embedded xmpMM:DocumentID values, so edit-of-an-edit
re-stacks after a source file is renamed or moved.

P2 #3: Retire completed watches - the pump function now removes
watched entries when an editor process exits, preventing the 256-entry
watch table from filling up.

Adds regression tests for each fix.
- capture: drop duplicate/unused locals and redundant import (CI -D warnings);
  decode f16 with sign and encode linear to gamma sRGB, not raw linear bytes
- WindowHdr::extended was an inherent method, so HdrOutput's default (false)
  always won and the extended-linear display-profile skip never ran
- Render to DNG: clear the task on completion, not only on library change
  (it lingered and later reported "stopped unexpectedly")
- crop_view: keep the fit layout identical to before (rotated bbox centre),
  apply percent zoom in screen points and pan with the loupe's bounded_pan;
  drop the unused img_px parameter
- sequence: unused mut in test (CI error); kelvin covers_camera uses any()
- sharpen: remove the now-unused SHARPEN_SIGMA_MAX and debug eprintln
- clippy needless borrow in import test; cargo fmt
- remove committed .aider* files and ignore them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- SequenceWriter locks its partial file. A leftover from a crash (unlocked)
  is truncated and reused; one another export holds gets <out>.2.partial
  and on, instead of failing with "file exists" forever
- stack_derived reads embedded document IDs only when a link is still
  unresolved by file name and hash, and only from TIFF/PSD files (an edit's
  source is itself one), not every photo in the catalog on each import
- restore the line endings capture.rs and sequence.rs had on main

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@emmertex
emmertex merged commit 5ef4d46 into main Oct 18, 2026
6 checks passed
@emmertex
emmertex deleted the fix/all-plans branch October 18, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant