Commit Graph
4911 Commits
Author SHA1 Message Date
aiongg 6cef4c278a Merge pull request #15813 from aiongg/perf-15709b
Key document queries on revisions instead of per-frame walks (#15709)
2026-11-19 18:16:39 -05:00
aiongg f63ed56fe8 Merge pull request #15782 from aiongg/engine-split-registry
Engine install registry (#15710)
2026-11-19 18:16:25 -05:00
aiongg 60385cb15e Keep effects and group disclosure off the document revision
Opening or closing an effects list or a group is view state: the document
revision, which feeds the modified state, saves and every revision-keyed
cache, stays where it is. DocState::layers_view_revision moves instead, and
the Layers panel's rows key on it.
2026-11-19 21:47:28 +00:00
David Mann 4b64ec5198 Merge #15206 into the merge queue batch
fix(layer-style): keep Inner Shadow values inside the page's ranges
2026-11-19 22:27:53 +01:00
David Mann 484a2e2119 Merge #14456 into the merge queue batch
fix(engine): Color Balance action steps round tones and default Preserve Luminosity off
2026-11-19 22:27:51 +01:00
David Mann 49f5814430 Merge #14569 into the merge queue batch
fix(engine): Image Rotation Arbitrary refuses Bitmap documents

# Conflicts:
#	crates/engine/src/cmd.rs
2026-11-19 22:27:50 +01:00
David Mann 2aee1c0367 Merge #14555 into the merge queue batch
fix(engine): arbitrary canvas rotation keeps and turns its guides
2026-11-19 22:27:49 +01:00
David Mann e157e6e13d Merge #14779 into the merge queue batch
Import Notes: place notes by target height / source height, no clamping, alert off-canvas (#13914)

# Conflicts:
#	crates/ui-egui/src/tools/analysis_ui.rs
2026-11-19 22:27:49 +01:00
David Mann a5f968d021 Merge #14795 into the merge queue batch
Keep existing Image Processor folder outputs
2026-11-19 22:27:48 +01:00
David Mann 8587babd14 Merge #13130 into the merge queue batch
Match measured Sponge Saturate and Desaturate colors
2026-11-19 22:27:47 +01:00
David Mann 267148f755 Merge #14672 into the merge queue batch
Quick Selection: a stroke drops the active layer's transparent pixels from the selection (#12919)
2026-11-19 22:27:46 +01:00
David Mann a1b93266a9 Merge #14481 into the merge queue batch
Color Table: recolour by index, black past a shrunk table (#14342)
2026-11-19 22:27:46 +01:00
David Mann 44b13eae2a Merge #12284 into the merge queue batch
Mixer Brush: a load lasts for a length of stroke, not a number of dabs (#11943)
2026-11-19 22:27:44 +01:00
David Mann 3ebf128dd2 Merge #14123 into the merge queue batch
Package: a layer named after a renamed link takes the new name (#14079)
2026-11-19 22:27:40 +01:00
David Mann cf014b3b13 Merge #12276 into the merge queue batch
fix(engine): stack duplicated layers above the originals (#11915)
2026-11-19 22:27:38 +01:00
David Mann 38fba92c9f Merge #14879 into the merge queue batch
Artboard from Group: size the board to the group's visible layers

# Conflicts:
#	crates/engine/src/cmd/artboard_cmds.rs
2026-11-19 22:27:37 +01:00
David Mann b79457eca1 Merge #14856 into the merge queue batch
Canvas Size: truncate the half-pixel offset of a centred anchor
2026-11-19 22:27:32 +01:00
David Mann 198d3269da Merge #13952 into the merge queue batch
Import Data Sets: only `true` makes a Visibility variable visible (#13933)
2026-11-19 22:27:30 +01:00
David Mann 6dacd20f38 Merge pull request #15763 from davidmann4/automation/shared-live-client
automation: the MCP CLI uses the shared live client (#15762)
2026-11-19 22:09:37 +01:00
aiongg c4bcde98aa Merge remote-tracking branch 'upstream/main' into perf-15709b 2026-11-19 20:57:20 +00:00
aiongg 7e13375f52 Check layer.setExpanded's precondition without a walk
Any nested group sits inside a top-level one, so the top-level layers tell
whether a document has a group. The Layers panel's command states ask this
precondition every frame, and it was the last per-frame walk the idle trial
counted; the trial now expects none.
2026-11-19 20:56:48 +00:00
aiongg abedab1e4d Cache History rows, artboard pages and the snap moving set on revisions
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.
2026-11-19 20:51:32 +00:00
aiongg c5a3dffb9b Merge remote-tracking branch 'upstream/main' into perf-15709b 2026-11-19 20:23:25 +00:00
David Mann 6d58429c8d Merge #14369 into the merge queue batch
Lens Correction batch: close the open sources the run corrected
2026-11-19 21:04:33 +01:00
David Mann d253ce6b38 Merge #14986 into the merge queue batch
Straighten Layer: with a selection, the whole layer turns and the selection is kept
2026-11-19 21:04:31 +01:00
David Mann 190a337b5b Merge #14826 into the merge queue batch
fix(color): Convert to Profile is greyed and refused for Bitmap documents (#14263)
2026-11-19 21:04:30 +01:00
David Mann 65171d40e1 Merge #13708 into the merge queue batch
Batch: a file that fails doesn't use up a serial number (#13664)
2026-11-19 21:04:30 +01:00
David Mann a977e838ef Merge #14011 into the merge queue batch
Layers to Files: PNG file names use dashes for spaces (#13963)
2026-11-19 21:04:29 +01:00
David Mann 47c5abbecd Merge #13714 into the merge queue batch
Batch: the error log is UTF-16 big-endian with Start Batch / End Batch and native paths (#13665)
2026-11-19 21:04:29 +01:00
David Mann 6842f4966c Merge #13573 into the merge queue batch
Floating selection: a refused command leaves it floating (#13169)
2026-11-19 21:04:28 +01:00
aiongg 24bdb181f9 Key document queries on revisions instead of per-frame walks
- Thumbnails, bounds and selection masks key on Surface::generation();
  surface_fingerprint and the Debug-formatted fill revision are gone. Fill
  layers key on Fill::fingerprint, a hash of every field.
- Layers panel rows take parents and ancestors from the layer index, and the
  rows revision comes from the document revision and the index serial instead
  of hashing view-state lists each pass. Expanding a group and collapsing an
  effects list move a view revision, which keeps a clean document clean.
- isolation_shows, top_level and with_descendants read the layer index
  (LayerIndex::roots) instead of walking or scanning subtrees;
  Document::layer_count counts from the index.
- The status bar values, the title's copyright mark and the pasteboard's
  uncovered rects are computed once per document revision (DocQueries).
- photocraft_doc::walks() counts Document::walk calls per thread for count
  trials.

Part of #15709.
2026-11-19 19:59:04 +00:00
RickiNano f8dcccf7f3 Merge commit '86c2056d01ca55dd0295e314dd6f526e879155c5' into HEAD 2026-11-19 20:43:37 +01:00
David MannandClaude Opus 5.5 8edd769be3 Pin craft-libs to the merge of craft-libs#2391 on next
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-19 19:35:54 +01:00
David Mann 3152ed0703 Merge remote-tracking branch 'origin/main' into automation/shared-live-client 2026-11-19 19:16:17 +01:00
aiongg 71e84351e0 Engine install registry (#15710)
The command registry moves to `registry.rs`: `CommandSpec`, the `Install`
record, `install()`, `find`, `spec`, `command_specs` and the command-list
helpers. A process installs its command tables once; installing the same
tables again does nothing, and different tables are refused with
`InstallConflict`, which every later command then reports. A session that
runs a command before any install gets `NotInstalled`.

`install.rs` holds the full table list in today's order, `install()`, and
the `command_specs`/`find` wrappers that install first, which the public
`commands::` paths name. `Session::new()` installs. The order test and
`command_ids.txt` move with the list and read the ids from it.

The tables `install.rs` lists are public: the table fragments and seven
command modules that were private.

`scripts/engine_split/install_tables.py` moves a branch's added or removed
command tables (the old `v.extend(...)` lines or `SPECS` entries) into the
install list.
2026-11-19 18:15:14 +00:00
aiongg a2170375ac Merge pull request #15780 from aiongg/engine-split-commands
Engine command table in per-owner fragments (#15710)
2026-11-19 13:14:01 -05:00
David Mann f6af01fbd0 Merge pull request #12246 from hectorviov/fix/smoothing-lag
Brush smoothing: lag and pulled string as measured in the reference
2026-11-19 18:57:58 +01:00
David Mann 28f97e8870 Merge pull request #11874 from hnoerenberg/fix/perspective-crop-refusal-11799
fix(engine): Perspective Crop refuses type layers, smart objects and Bitmap images
2026-11-19 18:57:41 +01:00
David Mann 91a1a30f86 Merge pull request #14213 from davidmann4/fix/12638-art-history-refusal-alerts
Art History Brush: refusals use the reference application's alert texts (#12638)
2026-11-19 18:38:54 +01:00
David Mann cb07d8818c Merge pull request #14609 from davidmann4/fix/14474-apply-image-transparency-lock
Apply Image: a transparency-locked layer keeps its transparency (#14474)
2026-11-19 18:38:02 +01:00
David Mann f5872efff6 Merge pull request #14645 from davidmann4/fix/14476-apply-image-locked-layer
Apply Image: a locked layer takes the image and keeps its transparency (#14476)
2026-11-19 18:36:57 +01:00
David Mann ecee54a6f3 Merge pull request #14603 from davidmann4/fix/14473-apply-image-preserve-transparency
Apply Image: Preserve Transparency blends fully and keeps the alpha (#14473)
2026-11-19 18:35:51 +01:00
aiongg 7bffc1d271 Name the fragment type; codemod handles the ADJ table, single-entry fragments and rustfmt
The codemod three-way merges the adjustment table into table/image/adjustments.rs,
reports other build() edits as unhandled, compares entries without comments and
whitespace, adds the comma after a single-entry fragment, checks removals and
duplicate ids, and adds the imports new entries need. The order test's failure
message names the regeneration variable.
2026-11-19 17:02:37 +00:00
David MannandClaude Opus 5.5 8edff6734a Tests: follow the newer framework pin
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]>
2026-11-19 17:55:36 +01:00
David Mann a56a5bb217 Merge pull request #14144 from davidmann4/fix/12630-art-history-area-tolerance
Art History Brush: Area 0-500 px, field alerts and tooltips (#12630)
2026-11-19 17:52:56 +01:00
David Mann 7db1bdeadd Merge pull request #14237 from davidmann4/fix/13629-artboards-overlapping-areas
Artboards to Files: Include Overlapping Areas / Artboard Content Only (#13629)
2026-11-19 17:52:14 +01:00
David Mann 3bbc3dcb91 Merge pull request #14540 from davidmann4/fix/14499-apply-data-set-locked-text
Variables: Apply Data Set refuses a locked text layer (#14499)
2026-11-19 17:51:55 +01:00
aiongg 460958d807 Bring command_ids.txt up to main's commands; add a way to regenerate it 2026-11-19 16:48:09 +00:00
David Mann 810f4cb7eb Merge origin/main into automation/shared-live-client
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/engine/Cargo.toml
2026-11-19 17:40:46 +01:00
aiongg 1c97abb475 Split the command table into per-owner fragments
Fragments live in cmd/table/<owner>/<menu>.rs, one directory per future crate
(core, model, store, paint, image). SPECS names each fragment so the order test
can say which one a misplaced command comes from. scripts/engine_split/table_fragments.py
moves a branch's edits of the old inline table into the fragments.
2026-11-19 16:35:19 +00:00