scripts/engine_split/slot_access.py rewrites the slot fields to their accessors
(Tracked presets deref through one more *), adds the trait imports, turns
s.presets_changed() into presets::presets_changed(s) and points Session::method doc
links at the trait methods. Its fix mode applies what cargo check reports; branch
mode serves open branches and lists their edits to the moved methods. The
definition-span helpers session_state.py uses move to rust_source.py so both
scripts share them (session_state.py's output is unchanged).
This commit is split plus the fix rounds against cargo check of engine-core,
engine, ui-egui and automation (lib and tests). Part of #15710.
Keep the parameter-schema dispatch, including Clean Brush refusing
unknown keys and the batch test that does not pass steps to Image
Processor. Take main's engine-core split and its new session helper.
crates/engine keeps the package photocraft-engine: src/facade.rs re-exports
photocraft-engine-core, and its Session wraps core's and installs every engine
command. Core's Session::new() installs nothing; core gets install() and session().
The command registry keeps main's behaviour (empty before an install).
The top crate's dev-dependencies cover tests/ and examples/, including
craft-develop-model (camera raw baseline test) and photocraft-testkit (the
corpus-gated Photoshop oracle test). Dependents that need the core type or
borrowed two fields through the wrapper are fixed at the call site, and tests
that reach the registry before any session install first.
Tooling follows the package: workspace dependency, cl selection, xtask layers,
i18n report, scorecard and corpus paths, nextest overrides, ci-test-times rows,
display-names roots, prefs_usage paths, the engine split scripts, docs, and the
two release-perf steps in ci.yml.
Corpus .atn paths, the layer_menu registry read and the craft-develop-model
dev-dependency are FredApps' fixes from #16431.
Part of #15710
Opening a .pat file always sends group (the file stem), as the other
preset import commands do, but the schema only listed path and data, so
dispatch rejected the import. Document the key; the handler still puts
patterns in the library and does not create a group.
Also stop the shared batch/Image Processor WebP test from passing
Batch's steps to Image Processor, which does not take that parameter.
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.
The dock keeps an Arc<Workspace> and a Tracked spec model, the toolbar rail
takes Tracked slots, the Layers panel holds its rows as plain data in a
Tracked, and the menu bar is a Tracked model keyed for the native menu's
sync. PhotoCraft states the Creative component set. Export As lists its
resample methods, and layer.exportAs describes them, in the engine's order.
Part of #15476
* 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]>
- A pass that cancels Free Transform no longer hands the canvas the captured
preview picture, so the moved pixels are not painted over the restored
document in that frame (new GPU/CPU canvas test fails without it).
- The preview canvas test skips only when the GPU harness fails before the
app callback; a panic in the app's own setup now fails the test.
- The layering check treats craft's keymap-egui as a UI feature and counts
dependency features turned on by a crate's own [features] table.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Re-express the Rotate Canvas dialog on the craft UI framework (#15449):
the old widgets/fields.rs scrub-step field and egui body are gone.
- dialogs/rotate_canvas_ui.rs: one full-width custom Param row keeping
`angle` and its companion `direction`: the Angle caption scrubs a craft
NumberField (degrees, two decimals, 0.01 a key press, Shift 0.1), then
the Clockwise and Counter clockwise radios. OK sends the angle in the
field's range at two decimals.
- filter_dialog.rs: Arbitrary leaves PREVIEWED but keeps its dialog; its
rows are that one row (no Interpolation), its title "Rotate Canvas",
and Alt keeps Cancel (alt_resets false). open_previewing opens a
dialog with the Preview box, so the size-changing preview the canvas
still places (#1436) stays tested.
- Tests: rotate_canvas_layout_tests ported to the hosted dialog; the
canvas, raster-source and GPU size-changing preview tests open through
open_previewing; the GPU Cancel/OK test now checks the menu's dialog
has no Preview and leaves the canvas as it is until OK; the ruler
rounding test no longer uses Alt+Reset.
The reference application scrubs 1 degree a point of drag on the label;
craft's NumberField scrubs by its key step, so that test is ignored until
the framework has a scrub step of its own.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each removed variant takes the same branch as one that stays, or is covered without the app or
oracle cost by a named lower-level test; the commit's comments say which for every test.
ui-egui: floating-document zoom (10 frames after Enter, not 60), Wide Angle (one depth per mode,
alpha kept), Brush panel sections (only those Brush Settings draws; Brushes ignores the section),
Camera Raw GPU (8 and 32 bits), enable rules (one app per world, a copied style for Paste only),
Content-Aware Move preview (selection just past the coarse budget, smaller canvas).
algo/compose/engine/gpu/format: Pixelate (Lab, cell 100, seed 37, tile 1), box blurs (Gaussian
40), Smart Blur (multichannel layouts cover every arm; Low and High), FFT sharpen gate (one
depth), panorama batching (budgets at every split instead of a 47-step sweep), bevel and chisel
threads (2 and 16), fused tone tiles (256 x 256, the U16 table threshold), live dabs (8 and 32
bits), Camera Raw GPU sizes (1600 x 240 wide case; the proxy-size per-pixel run lives in the
clarity test), directory bundle (two modes; zip_cases has the matrix).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The grayscale picker, filter mask and addressed mask tests started an app for
every case. Each now keeps one canvas harness and opens each case's fixture
document in it as a new document, after closing the last case's and clearing
what a case leaves: the actions, the Layers panel's mask targets and the tone
dialogs' last-used settings. Cases and assertions are kept.
- batch_export_options: the Batch harness no longer installs the GPU canvas; the dialog is form data and the batch an
engine job, so the first canvas refresh only built every compositor pipeline.
- canvas_16f: the two 32-bit preview documents share one harness (one device and compositor build, not two).
- ui_scale_canvas: UI scales 125% and 200% instead of 100/125/150/200; the canvas branches only on zoom x ppp being
below 1, whole or fractional, and 125% and 200% reach every branch the four did.
- pattern_preview_canvas: the points of one state are read from one settled render.
Co-Authored-By: Claude Opus 5.5 <[email protected]>