Commit Graph
418 Commits
Author SHA1 Message Date
aiongg 850e73c5fb Engine split step 7: the paint crate (installs per crate, registry order from command_ids.txt, helpers moved down, paint-only helpers moved up, live-stroke traits, admit hook, tooling) 2026-11-23 14:16:34 +00:00
FredApps 17db1ba448 Merge remote-tracking branch 'upstream/main' into inbox-15255 2026-11-23 10:57:42 +01:00
aiongg cf80a283f2 Engine split step 6: cargo fmt 2026-11-23 03:28:48 +00:00
aiongg 3cbd7b155a Engine split step 6: slot_access.py and its rewrite (slot fields to accessors, trait imports, doc links)
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.
2026-11-23 03:28:27 +00:00
aiongg 30bb60592b Engine split step 5: session_state.py and its rewrite (recording fields to s.recording, Clip::from_svg callers, preset store reads) 2026-11-23 01:05:50 +00:00
FredApps 01bce7a310 Merge branch 'main' into feat/param-schema-dispatch
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.
2026-11-23 05:55:52 +07:00
aiongg 519a0c22a3 Engine split step 3: top crate with the wrapper Session
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
2026-11-22 19:29:06 +00:00
FredApps 9f5d55c86c fix(engine): document pattern.import group in the dispatch schema
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.
2026-11-22 23:54:33 +07:00
David Mann 7ea2c5bbb4 Merge PR #14594: Variables: Apply Data Set alerts when a replacement file is missing (#14500) 2026-11-21 19:19:29 +01:00
David Mann 1f564782c2 Merge PR #14470: Rotate Canvas: the reference application's dialog layout (#14462) 2026-11-21 18:42:09 +01:00
David MannandClaude Opus 5.5 0e420ceea7 Merge origin/main into fix/14462-rotate-canvas-dialog-layout (#14470)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-21 17:57:21 +01:00
David MannandClaude Opus 5.5 370e763176 Merge origin/main into fix/14500-apply-data-set-missing-file (#14594)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-21 17:50:01 +01:00
David Mann ff602e1977 Merge PR #16110: Clear pending Crop state after canvas Enter 2026-11-21 17:24:33 +01:00
aiongg a3eb80d5dd Memoized views: options bar lead, Brush Preset field, Brush Settings toggle, paint members, Brushes and Color panels
The picker's and the Brushes panel's view states are Tracked; the trials count memoized views.
2026-11-21 14:07:15 +00:00
aiongg cf84333049 Brush and presets are 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.
2026-11-21 14:07:15 +00:00
Mex eeb92cef24 Verify Enter and Done clear pending Crop state 2026-11-21 12:24:03 +01:00
Mex c31a1dbbc9 Check that canvas Enter records exactly one Crop edit 2026-11-21 12:18:57 +01:00
Mex 2134254ad5 Restore crop ratio popup keyboard regression coverage 2026-11-21 11:09:03 +01:00
aiongg cfa1d0e7cf Pin craft-libs next 614f4d5f1
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
2026-11-21 03:55:47 +00:00
FredAppsandFredApps abad0deaea Hold the normalized layer selection across engine reads (#15907)
* 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]>
2026-11-20 18:11:54 +07:00
David Mann 53e11b4045 Merge #14529 into the merge queue batch
Variables: Preview checkbox in the Apply Data Set dialog (#14496)
2026-11-20 02:04:33 +01:00
yoriswind d23d2ee0bc Merge main CI and fixture repairs into PR #15167 2026-11-19 13:14:13 -08:00
David Mann ccf8f2aaab Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/engine/src/cmd/variables_cmds.rs
#	crates/ui-egui/src/app/commands.rs
2026-11-19 18:38:19 +01:00
David Mann 4a68fee948 Merge fix/14495-apply-data-set-dialog (with main) into fix/14496-apply-data-set-preview
# Conflicts:
#	crates/engine/src/cmd/variables_cmds.rs
#	crates/engine/src/lib.rs
2026-11-19 18:27:14 +01:00
David Mann fbd6fcbd29 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-19 18:09:48 +01:00
David Mann 79db3f0acb Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/ui-egui/tests/it/variables_data_sets.rs
2026-11-19 18:00:04 +01:00
David Mann 363f37f6c8 Merge pull request #15685 from davidmann4/integration-batch-21
Integration batch 21: EPIC-UI-REWORK PRs green on main (WIP)
2026-11-19 17:17:24 +01:00
aiongg 5e6d342b36 Merge pull request #15718 from FredApps/fix/15708-deterministic-spill
Give scratch tests a deterministic volume capacity
2026-11-19 09:58:09 -05:00
David MannandClaude Opus 5.5 252773ce8c Address CodeRabbit review: stale transform picture, setup panics, UI feature check
- 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]>
2026-11-19 13:35:20 +01:00
aiongg a8f95bd16d Document layer index and index-ordered selection (#15704)
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.
2026-11-19 10:07:19 +00:00
FredApps 236bc84a5e Give scratch tests a deterministic volume capacity 2026-11-19 08:01:25 +01:00
David MannandClaude Opus 5.5 56e818059f Integration: #15585: the Free Transform preview test harness holds the boxed app
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-19 01:47:43 +01:00
David Mann 9b0213f962 Merge PR #15585: Free Transform: the layer shows inside its box again (#15546) 2026-11-19 01:40:56 +01:00
David Mann 264d220e03 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-19 01:24:17 +01:00
David Mann 2cda31cd8d Merge remote-tracking branch 'origin/main' into test-speed/15652-unclaimed-slow-tests
# Conflicts:
#	crates/gpu/tests/it/camera_raw.rs
2026-11-19 00:31:06 +01:00
David Mann 5e172cbce1 Merge pull request #15649 from davidmann4/test-speed/tone-targets-glue-only
Tests: tone_targets builds the whole app only for the UI glue (#15648)
2026-11-19 00:30:02 +01:00
David MannandClaude Opus 5.5 3c7a5171e2 Merge main into fix/14500-apply-data-set-missing-file
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-11-18 23:57:22 +01:00
David MannandClaude Opus 5.5 d55b8d886f Merge origin/main into fix/14462-rotate-canvas-dialog-layout
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]>
2026-11-18 23:44:28 +01:00
David Mann c9c34e0660 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/ui-egui/tests/it/main.rs
2026-11-18 23:15:24 +01:00
David Mann bff6fb386f Merge remote-tracking branch 'origin/main' into test-speed/tone-targets-glue-only
# Conflicts:
#	crates/ui-egui/tests/it/tone_targets.rs
2026-11-18 22:41:54 +01:00
David Mann be1d0eb540 Merge branch 'merge/14505' into HEAD
# Conflicts:
#	crates/ui-egui/tests/it/main.rs
2026-11-18 22:37:02 +01:00
David Mann 532e72c72a Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/ui-egui/tests/it/main.rs
2026-11-18 22:36:54 +01:00
FredApps 31b4c3e704 Merge main lint repair into pending Remove input regression 2026-11-18 22:28:51 +01:00
David Mann 1fb5b51051 Merge remote-tracking branch 'origin/main' into test-speed/15652-unclaimed-slow-tests
# Conflicts:
#	crates/ui-egui/tests/it/batch_export_options.rs
2026-11-18 22:14:41 +01:00
David MannandClaude Opus 5.5 493d2df62f Tests: trim the loops of the unclaimed slow tests that reach no new code (#15652)
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]>
2026-11-18 22:14:12 +01:00
FredApps b61ad83ef6 Merge current main; retain complementary pending-input regression in consolidated test module 2026-11-18 21:41:06 +01:00
aiongg 662f2e24d5 Merge remote-tracking branch 'upstream/main' into slow-ui-tests
# Conflicts:
#	crates/ui-egui/src/dialogs/adjust_editors/ui_tests.rs
2026-11-18 20:40:54 +00:00
aiongg 3ae69e72b1 Merge remote-tracking branch 'pr/15639' into david-test-speed 2026-11-18 20:35:12 +00:00
aiongg d83654889e tests: the slow tone_targets tests run their cases on one app
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.
2026-11-18 20:34:40 +00:00
David MannandClaude Opus 5.5 6f0861cc23 Tests: no GPU canvas, harness or render the ui-egui integration tests do not need (#15652)
- 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]>
2026-11-18 21:25:52 +01:00