* raw,camera_raw: bump craft-develop to 7631ed550 and add explicit parity tests (#587)
* raw,camera_raw: cut over develop_sensor demosaic and camera_raw::develop to craft_develop (#587)
* raw,camera_raw: fix craft_develop field names and test imports (#587)
* camera_raw: fix clippy excessive_precision and unnecessary cast lints
* raw,camera_raw: use exact gaussian_taps for sharpening, silence camera_raw_gpu dead_code, update post-cutover pins
* raw,camera_raw: fix highlights sign, <0.3px sharpen noop, non-Bayer/fused parity, and gpu test ignores
* engine: update camera_raw_filter_legacy_baseline_pixels to post-cutover craft_develop baseline
* raw,camera_raw: early-exit noop sharpen, exact full desat, PAD=6 fused margin
* raw,camera_raw: guard <0.3px texture/clarity blur and route fused band demosaic through craft_develop
* io: update default RAW Open baseline pins for craft_develop::sensor::demosaic reflect borders
* io: add Windows libm FNV-1a hash pins for RAW Open baselines
Normalize and deduplicate saved point-curve knots in the original f32 domain before using the shared spline. Regression tests pin the LUT and a generated native Smart Filter after save/reopen.
- cargo fmt for the merged Tool list in paint_mouse.rs.
- The #11516 fix refused an exported Image Size step with "percent": null,
which main's review test treats as omitted. Native playback now omits a
null percent like a null side or resolution, and export follows it, so
both still agree. The null case moves from the invalid-percent test to a
new native + round-trip test.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* test(raw): pin pre-cutover Camera Raw SmartFilter and filter baseline (#587)
* test(format): avoid json! macro recursion limit in camera_raw_roundtrip (#587)
* test(format): wrap SmartSource::Embedded bytes in Arc (#587)
* test(engine): use select.deselect in camera_raw_baseline_pin (#587)
* test(raw): capture legacy RAW Open and Camera Raw Filter pixel baselines (#587)
* test(raw): lock Camera Raw Filter baseline pixels and capture RAW Open values (#587)
* test(io): lock legacy RAW Open baseline pixels (#587)
* test(io): capture RAW Open camera WB legacy baseline pixels (#587)
* test(io): lock RAW Open camera WB legacy baseline pixels (#587)
The clipboards, the presets, the colour proofs and the image-assets list become
Tracked, so the menu's facts can key on their revisions. DocId derives PlainData
and MemoProps. UI: the recent files and the workspaces become Tracked.
The engine's ToolState.brush and ToolState.presets are Tracked, so a memoized view that shows them keys on their revisions; photocraft-paint's brush types derive PlainData.
Each command still meets every stroke case, colour mode and mask target
once, and every command and every case, mode or target still runs at 8,
16 and 32 bits: 90 -> 30, 72 -> 24 and 54 -> 18 strokes.
The panic hunt turns printing off so no command reaches a printer, but
file.print.page still asked the Windows driver for the default printer's
page. On a Windows runner that call hung while holding SPOOLER, so
file.printers, file.printOneCopy and file.package timed out behind it
and main went red (run 44791314463). It now refuses, after checking its
own parameters, when disable_printing or PHOTOCRAFT_NO_PRINT is set.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
tone::adjust now delegates to a private adjust_with that takes the U16
table area threshold (U16_TABLE_AREA, 65_536, unchanged for production).
The fused-tile oracle test passes the area of its small bounds, so U16
still takes the table path for the full area and the holes mask and the
tiled path for the sparse mask, without 256 x 256 areas.
Also drops the empty blocks left by the earlier loop removals in
multi_channel_editing, tone_target_picker and the tone dialog test.
The colour-channel tests looped over every mode, depth, command and
target, although the code under test is generic over mode and depth
(restrict_coords, scatter_selected, tone::adjust). Each case now runs a
rotation that keeps every mode, depth, command and target (and the
refusal branches) in at least one case, with all assertions unchanged.
- multi_channel_editing: adjustments/filters/drawing (22 commands, one
mode and depth each, plus both refusal sides), live brush/eraser, live
mixer, live retouching, colour adjustments, desaturate, CMYK grayscale
clips, mask view
- tone_target_picker: gray tone records, native gray pickers, filter mask
picker
- tone: the fused-tile oracle keeps the 256 x 256 area only for U16, whose
table needs it
- tone dialog: one depth per (subset, record)
- cmyk_flatten_profile: the synthesised profile uses coarse LUT grids
* Hold ordered layer selection across reads
* Migrate UI and automation to the borrowed document selection
* Fix held selection migration diagnostics
* Preserve held selection for unchanged active layer
* Keep owned selection snapshots in engine tests
* Allow consuming a document state without cloning
* Preserve document ownership on close and capture export selection
* Migrate engine integration tests to held selection
* Keep isolate-layer test selection snapshot
* Read the active layer before editing the gradient test document
* Remove redundant selection slice borrows
---------
Co-authored-by: FredApps <[email protected]>
History gets a generation that every change takes a fresh number from, and
the snapshot list one through DocState::snapshots_mut, so the History rows
rebuild only when either moves. Artboard pages and the layers a Move drag
takes along are computed once per document revision; set_active_layer moves
the revision like the other layer selection changes, through one
bump_selection_revision. The view-only revision steps of history options,
the channel eyes and Isolate Layers go through bump_view_revision; Isolate
Layers still marks the document modified.
DocQueries drops every entry when the open document set changes, and counts
what it computes, which the idle trial asserts stays unchanged. Fill layers'
thumbnails key on impl Hash for Fill. A new trial checks the Layers rows'
revision follows a rename and both disclosure toggles.
`cargo xtask test-binaries` refuses single-file test binaries under
crates/*/tests. The test sets the scratch disk and the memory budget for
the whole process, so it moves next to scratch_disk.rs in
tests/global_state and takes the same process lock and test volume.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The shared live client now reads integrations.whenAppClosed inside the
framework, so the preference audit lists it as read there. The pin also
brings #12709's Add Anchor Point change (Alt on an anchor no longer
deletes it), so the anchor test expects that, as #13977 does.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Actions panel menu kept offering Load Actions… while an action was
recording or a paced playback was waiting, although `actions.load` refuses
both: the person chose a file first and only then got the error, and a load
during a recording replaces the set the recording writes into. Measured on
#10706, the reference application greys that row beside Clear All, Reset and
Replace while recording.
`panels/actions/menu.rs::states` now greys the row with the rule the command
itself checks (the framework leaves `Load` always on), and
`files::load_dialog` reports the reason before the picker opens, so a
keyboard, shortcut or control-channel route never asks for a file the
command would refuse. Two panel-menu tests are red without this change; the
new engine test pins the command's own rule, which already held.
Document.layers is a LayerTree that builds an id index on first lookup and drops it on any mutable access. Layer lookups and selected_layers use the index instead of walking the document.
The three whole-app Levels/Curves tests ran the colour mode x bit depth
matrix that the engine's tone_target_picker tests already cover without
the app. They now run every dialog and target on an RGB document and the
grayscale, CMYK and Lab documents once each, where adjust_dialog::pick
branches; every selector form still runs for a layer mask and a filter
mask. A new engine test covers the Smart Filter mask picker in every mode,
depth and mask state, the one gray target the engine did not test yet.
Whole-app runs: 60 -> 25 (228 on main before #15637).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- parity.rs: the two paging tests use a 660x580 document (3x3 pages, one interior cell)
instead of 1100x900, and eviction runs 2 rounds; the residency tests that share the large
document keep it. 16-bit runs only where the GPU reads the 16-bit upload (one effect stack,
Dissolve and pattern cases). The disjoint-damage test paints 2 distinct series of 8 strokes
and isolates its layers so strokes capture checkpoints, which makes its bytes assert able to
fail. many_layers_submit_inside_one_chunk_paged is removed: its stats equal the whole test's.
- Coarse preview: drop an unchecked full-resolution solve; colour tests reuse solves and use
Extend where Move only adds an unread fill.
- Crop fill eligibility is a unit test on additional_target; the integration test keeps 3 cases.
- PSD write oracle: one run with a passing and a failing case instead of two runs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main moved the Artboards to Files dialog onto the craft framework's hosted parameter form.
The reference File Type list is now its own choice row (PSD chosen on open), main's JPEG
quality tests use PNG-24 for Artboards to Files, and the dialog tests drive the hosted form.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The modules that assert on the scratch pool, spill configuration, simulated memory, global caches or compositor settings move to tests/global_state, where one lock makes them take turns. test-binaries lists it with the reason.
Each crate's top-level tests/*.rs files become modules of tests/it/main.rs, and a new xtask check (test-binaries) refuses a new single-file test binary.
Replaces the ui-egui window test, whose order depended on wall time, with an engine test:
the job's result is applied only by poll_jobs/wait_job on the session's thread, so a
select_layer after start always comes first.
PhotoCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (next branch): shell, dock and panels, hosted dialogs, keyboard, focus, IME and pointer routing, the canvas's view commands, themes and tokens. The engine, document model, file formats, commands and automation stay. PhotoCraft pins storytold/craft-libs next.
- cmyk_flatten_profile: synthesise the test profile once per process and
share one Arc, so CmykSpace's per-allocation cache builds the transforms
once; exact() reads both rows from one run (4 documents, not 8).
- camera_raw GPU tests: the 858x572 and 1600x900 comparisons run at one
depth each. The depth only changes the input quantization (8 and 16 bits
both develop with float = false) and every depth runs at 171x113 above.
- cols_timing is a benchmark without assertions: ignore it like its
siblings.
- compose: delete clipped_dissolve_is_binary_and_preserves_the_base_shape,
a byte-identical copy of clipped_dissolve_opacity_fill_is_binary_and_
preserves_base_shape (whose doc comment names both issues).
Part of #15376.
Co-Authored-By: Claude Opus 5.5 <[email protected]>