Commit Graph
15634 Commits
Author SHA1 Message Date
ljkx 3407dfd7d9 Merge main into fix/14543-canvas-gray 2026-11-23 09:42:27 +01:00
FredApps 59500607d3 Merge pull request #16490 from FredApps/fredapps/fix-panic-hunt-k8s-timeout
test: give panic_hunt 90s on the k8s gate
2026-11-23 09:10:19 +01:00
FredApps 12ef932cc3 test: give panic_hunt 90s on the k8s gate
The ci override still warned at 15s and killed the test at 45s. On
artcraft-k8s-main it already takes 31-33s when it passes, and current
main timed out at 45s after nearly finishing the registry. Keep the
15s warning and terminate after 90s, still well under the profile's
10-minute default.

Fixes #16489.
2026-11-23 14:22:34 +07:00
FredApps 30fdbef577 Merge pull request #16414 from FredApps/onee/k8s-gate-test-hardening
test: harden the three k8s gate flakes on GLES and memory pressure
2026-11-23 13:56:50 +07:00
FredApps 2fe012684e Merge remote-tracking branch 'upstream/main' into onee/k8s-gate-test-hardening 2026-11-23 13:21:39 +07:00
aiongg 715a8876b0 Merge pull request #16478 from aiongg/engine-split-step6
Engine split step 6: session slots and extension traits
2026-11-23 01:10:33 -05:00
FredApps c77a928370 Merge remote-tracking branch 'upstream/main' into onee/k8s-gate-test-hardening 2026-11-23 12:54:06 +07: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
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
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 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
aiongg 3298b955c9 docs/scorecard.md: regenerated (cargo xtask scorecard) 2026-11-23 01:25:51 +00: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
aiongg b9c9462462 Merge pull request #16466 from aiongg/engine-split-step4
Engine split step 4: pipeline hooks
2026-11-22 19:57:01 -05:00
FredApps 4921d3b5ff build: move craft-develop to craft-libs main 33be356 (craft-libs#778) (#16470)
Pick up the shared Camera Raw fixes #3091, #3088 and #3089. The pin
stays before craft-libs#3101, which PhotoCraft's GPU route cannot follow
until photocraft#13519 is ported.
2026-11-22 19:34:42 -05:00
David Mann dbad7de99a Merge pull request #16468 from davidmann4/fix/16467-toolbar-columns-only
Toolbar docks only in dock columns (#16467)
2026-11-23 00:35:40 +01:00
FredApps 3c7bcd4734 Test cropped DNG gain-map parity across RAW Open strips (#16464) 2026-11-22 18:01:17 -05:00
David Mann c870f51d5d Merge pull request #16416 from davidmann4/fix/floating-document-window-title-bar
A floating document window gets a title bar (#16415)
2026-11-22 23:56:45 +01:00
David Mann 5f83433d8b Merge pull request #16289 from aiongg/set-d-pin
Pin craft-libs next: dialogs, menus, panels, docking and frame-cost fixes from the release epic
2026-11-22 23:54:49 +01:00
David MannandClaude Opus 5.5 6ae2b47a18 Toolbar docks only in dock columns (#16467)
Dragging the toolbar over the canvas offered a box drop area beside it, and
a release there docked the toolbar in a frame of the docked tree, with a
panel header like a window. The toolbar now sets the dock permission
docks_outside_columns(false) (craft-libs#2099, in the pin): the model
refuses every frame placement, so no box shows, and a workspace saved with
the toolbar in a frame loads with it in a dock column.

Tests: the_toolbar_never_docks_beside_the_canvas,
a_saved_toolbar_below_the_canvas_loads_in_a_dock_column; both fail without
the permission.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-22 23:38:44 +01:00
David MannandClaude Opus 5.5 768fcf230f WIP: toolbar docks only in dock columns (#16467)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-22 23:25:22 +01:00
aiongg f0477a595f Engine split step 4: pipeline hooks
Core runs every command; the steps that belong to crates above core now run as hooks those
crates register with their command tables (Install.hooks, crates/engine-core/src/hooks.rs):
request params (batch open), redirect (Last Filter), parameter checks (file.new values, filter
params, through validate_params in dispatch and precheck), before the command (the floating
selection drops), run params (Shape Blur's path), after the command (mask view, Fade, script
events and slices, preset store sync), recorded steps keyed by command id with a default, step
origin, journal coalescing, recording flush and preferences applied. install.rs registers every
hook, grouped by the crate that will own it. Before an install there are no hooks, as the
registry lists no commands.

The recording predicates replayable, tool_stroke, shell_view_command and shell_save_command,
and recorded_params, move to actions_record, beside the rest of the recording normalisation;
actions_cmds re-exports the public ones.
2026-11-22 22:21:04 +00:00
aiongg 80d7c000a0 Engine split step 4: damage helpers to crates/engine-core/src/damage.rs
The redraw-area helpers (step_damage and the rest of cmd/layer_multi_cmds/damage.rs) are
pipeline logic that dispatch, edit, undo and redo use, so they leave the module the model
crate will take. layer_multi_cmds keeps its public re-exports.
2026-11-22 22:21:04 +00:00
aiongg 755bbdced7 Merge pull request #16449 from aiongg/engine-precheck-params
Precheck reports the same parameter errors as dispatch
2026-11-22 17:17:22 -05:00
aiongg 75cbe5c4eb Merge remote-tracking branch 'upstream/main' into set-d-pin
# Conflicts:
#	crates/engine/Cargo.toml
2026-11-22 21:49:29 +00:00
aiongg bc727036dd Merge remote-tracking branch 'upstream/main' into engine-precheck-params 2026-11-22 21:47:28 +00:00
aiongg ad51efbcb1 Merge pull request #16450 from aiongg/engine-split-step3
Engine split step 3: photocraft-engine-core and a thin photocraft-engine with the wrapper Session
2026-11-22 16:47:16 -05:00
Terra854andFredApps 6133bc3e4c io: use the shared PSD signature check (#16314)
Co-authored-by: FredApps <[email protected]>
2026-11-23 04:25:19 +07:00
aiongg 809604fb0b Type tool trials: the options bar harness waits for the font list's samples 2026-11-22 21:08:06 +00:00
David MannandClaude Opus 5.5 3c2089df94 Floating document windows: review fixes (#16415)
- Close in a floating window closes its document through the guarded
  close (a document with unsaved changes asks first, the window stays
  meanwhile), as in the reference application; a New Window for Document
  view still only closes itself.
- The placed rect is the outer origin with the inner size: the framework
  applies its size as the inner size, so a decorated window (system title
  bar) grew by its frame every pass.
- The floating status bar's zoom edit uses the window's own scale.
- The Home screen and the batch preview clear the dock target.
- The OS-move release reads the mapped primary button (swapped buttons).
- The window tests use a fixed app-drawn frame, whatever the OS.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-22 21:42:04 +01:00
David MannandClaude Opus 5.5 8a5eddb63f Floating document zoom test: the window's own status bar has a zoom field too (#16415)
The floating window's status bar adds a third zoom field beside the main
status bar's and the Navigator's; the test picks each by its place and
types into all three.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-22 21:30:18 +01:00
aiongg b132a7f9ff Merge remote-tracking branch 'upstream/main' into engine-split-step3 2026-11-22 20:20:50 +00:00
aiongg d21e2c031f Merge remote-tracking branch 'upstream/main' into set-d-pin
# Conflicts:
#	Cargo.toml
2026-11-22 20:19:52 +00:00
aiongg 567633c2f7 Engine split step 3: the Photoshop oracle tests install the commands first
Smart filter re-rendering looks the filters up in the command registry, and
these corpus tests create no session, so they install first like the other
tests that read the registry before a session.
2026-11-22 20:18:44 +00:00
aiongg 286bb67570 Pin craft-libs next 8d436f486a: lock 2026-11-22 20:18:26 +00:00
aiongg 7e3a68e867 Pin craft-libs next 8d436f486a: font picker keys, sample text 2026-11-22 20:18:14 +00:00
aiongg 2fbdb300e3 Merge main into set-d-pin 2026-11-22 20:18:14 +00:00
Dylan M. Taylor 33949ab5be fix(camera-raw): bound saved detail and tighten preview parity (#16443) 2026-11-22 15:16:58 -05:00
Dylan M. Taylor 976919707a algo: delegate Camera Raw Filter to craft_develop::camera_raw (#587) (#16444)
* algo: delegate Camera Raw Filter to craft_develop::camera_raw (#587)

* algo/camera_raw: put spatial module re-exports in pub mod spatial

* algo/camera_raw: put spatial module re-exports in pub mod spatial

* algo/photo_util: gate hash01 and bilinear to cfg(test)
2026-11-22 15:05:39 -05:00