Commit Graph
15989 Commits
Author SHA1 Message Date
aiongg 18bb80398f Notes panel empty state and counter, Import Notes outside alert, Count Label Size, Select and Mask stale-document reason, Selective Color drops stale single-colour keys 2026-11-23 05:50:07 +00:00
aiongg b21f59905d Tool presets: use Tool::id for the engine tool id 2026-11-23 05:50:07 +00:00
aiongg ec81d5e5b3 Engine split scripts: only crate roots and mod.rs hold children beside them; children of a cfg(test) inline module are test code 2026-11-23 05:25:57 +00:00
p0rpsandfjamesprice 6fff6629f9 build: move craft-develop to craft-libs main b2d2a1e9 (craft-libs#3101) (#16485)
* build: move craft-develop to craft-libs main b2d2a1e9 (craft-libs#3101)

craft-develop and craft-develop-model move from 33be356 to b2d2a1e9,
which includes craft-libs#3101 (Detail's resolved parameters) and four
sensor commits (white-balanced demosaic with a clip mask; existing
signatures unchanged). Cargo.lock changes only craft-libs git sources.

per_pixel() no longer refuses Detail: it returns the stages with
`detail` set. RAW Develop's GPU pass has no Detail stage yet (#6916), so
the dialog now goes through gpu_stages(), which keeps a sharpened or
noise-reduced frame on the CPU. A device-free test covers it on hosted
CI; the GPU test adds Detail-only cases; the gpu crate's test follows
the new per_pixel contract.

* style(camera-raw): rustfmt gpu_stages' signature

---------

Co-authored-by: fjamesprice <[email protected]>
2026-11-23 00:20:24 -05:00
skylartaylor 5cd4bc3d1c Merge main into nightly/windows-flavor (picks up #16483) 2026-11-23 05:57:20 +01:00
FredApps 26665e2797 Merge pull request #16483 from FredApps/fredapps/fix-huge-canvas-time-bound
Keep the huge-canvas selection time bound at 90s
2026-11-23 11:54:56 +07:00
aiongg 5cc65b5b6a Engine split scripts: imports keep their attributes; module paths from crate roots and inline #[path]
add_import inserts before the first import's outer attributes and after multi-line inner
attributes; fix mode moves inline-module offsets past the edits it applied above them.
module_file resolves a crate root's children beside it whatever the file's name, and
inline_mods takes an enclosing module's #[path] as its directory.
2026-11-23 04:44:15 +00:00
skylartaylor 4bd2624279 Build archive headers from the opened stage file
Each tar header now comes from fstat of the stage file this run opened, with the
same fields TarFile.gettarinfo records, and its name is checked to be a flat
entry inside the stage in the same helper. Nothing in the header is read back
from the archive being written.
2026-11-23 05:14:54 +01:00
FredApps 5b1214ab8a Keep the huge-canvas selection time bound at 90s
The 20s bound failed main's required artcraft-k8s-main gate after 26.86s
while the tile-count and sample assertions passed. Coverage runs have
been 20.6-24.8s. 90s still fails a canvas-wide paint.

Fixes #13620
2026-11-23 11:10:23 +07:00
aiongg 7ea8b7c8a9 Engine split step 6: trait imports where only CI's builds use them (Linux print, app tests, GPU trials) 2026-11-23 03:56:31 +00:00
aiongg 62263bc7b8 Engine split step 6: rewrite only files a crate target compiles
compiled_files walks each crate's targets (standard paths and Cargo.toml target paths) through
mod lines, inline modules included. tools/analysis_ui.rs, which no module reaches, keeps main's text.
2026-11-23 03:38:36 +00:00
aiongg cf80a283f2 Engine split step 6: cargo fmt 2026-11-23 03:28:48 +00:00
aiongg 3f9eb0d59d Engine split step 6: compile fixes the script can't make
presets::patterns::sync keeps the library's ids in a local while the presets
change (the accessor borrows the whole session); two atn_cmds tests read a step
into a local before pushing it, and clone an ActionState out of the other session.
Part of #15710.
2026-11-23 03:28:27 +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 f314928e1d Engine split step 6: session slots for colour, presets, actions, Object Finder, Select Subject, print; extension traits for the upper crates' Session methods
ColorState, Tracked<PresetState>, ActionState, ObjectFinderCache, SubjectCache,
Option<Spooler> and Option<PrinterSource> leave Session and become slots, registered
in their owner crate's group of install.rs. Each owner module reads its slots through
one extension trait (ColorExt, PresetsExt, ActionsExt, SmartSelectExt, PrintExt), and
the inherent Session methods outside core-bound files move onto traits (ColorExt,
LinkWatchExt, PresetsExt, PresetStoreExt, SavedPrefsExt). Private helpers become free
functions; presets_changed stays crate-private as a free function.

A session without a slot (made before the install, or after a conflicting one) reads
it at its default and gets it on the first write, as its fields did; its commands
still fail with the install's error. Part of #15710.
2026-11-23 03:10:48 +00:00
aiongg b2811c4c04 Merge pull request #16473 from aiongg/engine-split-step5
Engine split step 5: session slots, Session state types in core, action recording split
2026-11-22 21:57:00 -05:00
aiongg 280de1fbf2 Pin craft-libs at 7ab3cf8196 (a rescan with no changes keeps the catalog generation) 2026-11-23 02:43:24 +00:00
skylartaylor 3ed1b1709c Record archive members under their checked stage name
The name written to each tar header is now the basename of its realpath-checked
destination inside the stage, checked in the same function as addfile.
2026-11-23 03:37:14 +01:00
aiongg aedabc93fa Merge PhotoCraft main; keep craft-libs at bb7e01295d 2026-11-23 02:25:25 +00:00
skylartaylor 3f28d14411 Keep an unshown Nightly interruption notice across a failed start
If the previous session was interrupted and renderer initialization fails before
the window opens, the controlled return no longer clears the session record, so
the CPU retry (or the next start) still shows the notice. A session that showed
it clears the record as before.
2026-11-23 03:16:43 +01:00
aiongg 601d576033 session_state.py: report edits inside a moved definition's body
The relocation check matched only the definition's name in the changed
lines, so a branch that changed a line inside builtin() got no report.
It also compares each hunk's old-side line range with the definition's
lines (doc comments and attributes included) in the base version.
2026-11-23 02:11:31 +00:00
skylartaylor 50eba6f012 Check resolved build paths and archive member names before each file operation
Each helper path is now resolved and compared against the fixed build root
(realpath and commonpath), and a path whose resolved form differs from its
written form is refused. Every name passed to a descriptor-relative open or
unlink is checked to be a single component. Archive members must be flat
names that stay inside the stage before they are added.
2026-11-23 02:38:18 +01:00
David MannandClaude Opus 5.5 c684dad549 test(ui-egui): cover #14493's Use Legacy reset where tests compile
dialogs/adjust_dialog/tests.rs has had no mod line since the craft UI port
(#15449), so the dialog test #14493 added there never compiled (lint:
unreached file). The file goes back to main's text, and adjust_editors.rs
tests reset_legacy_toggle directly: a toggle in the dialog resets both
sliders, an edit in the same mode and the Properties panel keep them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-23 02:35:27 +01:00
aiongg 3298b955c9 docs/scorecard.md: regenerated (cargo xtask scorecard) 2026-11-23 01:25:51 +00:00
David MannandClaude Opus 5.5 3d914bce78 Pin craft-libs next a4e08cdaf2: crop move of a turned document, docked toolbar column and grip cursor (craft-libs#3104, #3105)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-23 02:22:09 +01:00
David MannandClaude Opus 5.5 859fd07b24 test(engine-core): the batch's new tests start from crate::session() after the engine split
In engine-core a bare Session::new() has no commands installed (NotInstalled);
main's tests use crate::session() / crate::install(), so the 33 tests the
batch added under crates/engine now do the same.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-23 02:22:09 +01:00
David MannandClaude Opus 5.5 877982cb0c fix(compose): CMYK split stand-ins keep ink Curves off whole levels
#14650 puts 8-bit RGB Curves output on whole levels. The CMYK split route
renders ink Curves as RGB stand-ins, so they were rounded too, while the
exact ink path is not: the two routes parted by one level
(cmyk::tests::the_split_route_agrees_with_the_exact_path). The stand-in
contexts now build unrounded Curves tables; RGB documents are unchanged.
The shrunk failing case is kept as a proptest regression seed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-23 02:22:09 +01:00
David MannandClaude Opus 5.5 66428d818e Move the batch's Color Settings preset tests to crates/engine-core with the engine split
crates/engine/src keeps only facade.rs on main; color_cmds.rs in engine-core
already includes the file at ../color_settings_presets_tests.rs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-23 02:22:08 +01:00
David Mann 0888f27f1d Merge #15187 into the merge queue batch 2026-11-23 02:22:08 +01:00
aiongg f9438dbdad Engine split step 5: session slots, state types in core, action recording split, prefs file document, closing hooks
- slots.rs: SlotInit, Install::slot, Session::slot/slot_mut (a missing slot is the registry's error); the preset store is the first slot (preset_store::PresetStoreExt)
- state.rs: the small Session state types and what they need; their modules re-export them
- actions_record.rs: ActionRecording (s.recording) takes the recording and playback fields out of ActionState
- action_history::history_policy_in_use; Clip::from_svg becomes edit_cmds::clip_from_svg
- prefs/saved.rs: SavedPrefs, its readers and the methods that combine preferences, colour settings and presets; ScriptEvents and ShortcutSet move into prefs
- hooks: document_closing, doc_id_reserved, pixels_edited
- tests that compare a whole ActionState also compare s.recording
2026-11-23 01:12:57 +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
aiongg 691d27ae39 Engine split step 5: action history bookkeeping to crates/engine-core/src/action_history.rs 2026-11-23 01:05:31 +00:00
FredApps 7d433e98ef Merge branch 'main' into feat/param-schema-dispatch 2026-11-23 08:04:41 +07:00
FredApps b6241783b4 fix(engine): accept Action layer selectors in adjustment param checks
#7597 started value-checking image.adjustments.*. The new checker only
allowed layer to be an id or a string, so a recorded Action's
{"name":"Receiver"} was rejected and preview_document returned None
in review_mask_action_context_matches_the_addressed_layer. Accept the
same selectors explicit_layer already reads.
2026-11-23 08:04:37 +07:00
David Mann a6f2911256 Merge #14748 into the merge queue batch
Report when Image Processor cannot open any source files

# Conflicts:
#	crates/engine-core/src/cmd/file_cmds/image_processor_empty_source_tests.rs
2026-11-23 01:58:10 +01:00
David Mann 5893d55bf8 Merge #14492 into the merge queue batch
Confirm before deleting a custom shortcut set
2026-11-23 01:58:09 +01:00
David Mann 1b96d102cb Merge #14493 into the merge queue batch
Reset Brightness and Contrast when toggling Use Legacy
2026-11-23 01:58:08 +01:00
David Mann 236fad6194 Merge #15653 into the merge queue batch
Make Duplicate Layer into a new document undoable

# Conflicts:
#	crates/engine-core/src/cmd/layer_duplicate_new_document_history_tests.rs
2026-11-23 01:58:08 +01:00
David Mann e92bba44eb Merge #15948 into the merge queue batch
Save and load Image Processor XML settings (#13903)
2026-11-23 01:58:07 +01:00
David Mann d3adcfd00c Merge #15632 into the merge queue batch
Keep the Line Tool History label when adding to a shape
2026-11-23 01:58:06 +01:00
David Mann f8b36cc923 Merge #15515 into the merge queue batch
Keep Find and Replace Text available without type layers (#14671)

# Conflicts:
#	crates/engine-core/src/cmd/edit_menu_cmds/find_replace_enabled_tests.rs
2026-11-23 01:58:05 +01:00
David Mann b20bbba5c5 Merge #15921 into the merge queue batch
fix(type): a new Type Mask takes the active text layer's style
2026-11-23 01:58:04 +01:00
David Mann bd5515513f Merge #14650 into the merge queue batch
fix(compose): round the channel curve before the composite curve at 8 bit
2026-11-23 01:58:03 +01:00
David Mann a104f83587 Merge #15435 into the merge queue batch
Convert to Profile: sRGB to Coated FOGRA39 gives the reference inks (#14267)

# Conflicts:
#	crates/engine-core/src/cmd/color_cmds/convert_profile_fogra39_tests.rs
2026-11-23 01:58:03 +01:00
David Mann 8d479ee9c2 Merge #15311 into the merge queue batch
fix(compose): Outer Glow Range 1 % follows the measured reach and hardness (#14958)
2026-11-23 01:58:02 +01:00
David Mann bdb839e835 Merge #15308 into the merge queue batch
fix(layer-style): start a new Satin at the measured factory values (#14977)

# Conflicts:
#	crates/engine-core/src/layer_style/satin_defaults_tests.rs
2026-11-23 01:58:01 +01:00
David Mann d321a2db62 Merge #15085 into the merge queue batch
fix(compose): Inner Shadow size 1 draws the measured pixel
2026-11-23 01:58:00 +01:00
David Mann 06c90a7549 Merge #15796 into the merge queue batch
fix(canvas): Pen right-click heads the path menu with the anchor row
2026-11-23 01:57:59 +01:00
David Mann 0cf81b45b5 Merge #8222 into the merge queue batch
Channel Mixer in CMYK documents mixes cyan, magenta, yellow and black (#8047)
2026-11-23 01:57:59 +01:00
David Mann 6c5711dc4c Merge #14491 into the merge queue batch
Round Rotate Canvas angles to hundredths of a degree

# Conflicts:
#	crates/engine-core/src/cmd/rotate_canvas_tiny_angle_tests.rs
2026-11-23 01:57:58 +01:00