Commit Graph
15989 Commits
Author SHA1 Message Date
aiongg fb5728628a Merge pull request #16486 from aiongg/ui-dead-files
Restore features lost in files no module compiles; delete those files; strict dead-file guard
2026-11-23 08:55:00 -05:00
David Mann 81cc69f17e Address CodeRabbit review; follow main's colour state accessors
- Curves at 8 bit: evaluate the channel and composite curves at the 256
  exact levels instead of between two entries of the 4096-entry table, so
  a pencil step between levels 128 and 129 no longer gives level 128 a
  fraction that rounds to level 4.
- Color Settings: a later Monitor Profile change keeps "Monitor Color"
  only while the values still are what Monitor Color would set.
- Color Settings dialog: a control changed by ui.dialog.set before the
  first pass shows Custom instead of becoming the baseline.
- Stored-channel edits (Lab/CMYK, CMYK Channel Mixer) mix through the
  selection as v*(1-k) + o*k, exact at full coverage over huge 32-bit
  values.
- Action playback: a Channel Mixer step the editor refuses reports the
  refusal instead of opening the generic step editor.
- Shortcut set test: assert Cancel closes the confirmation.
- Merge follow-up: Session's colour state is reached through
  ColorExt::color()/color_mut() on main now.
2026-11-23 13:31:11 +01:00
Dylan M. Taylor b2e243cc50 paint: adapt mixer load swatch to the shared next API 2026-11-23 07:21:24 -05:00
David Mann a461a65ceb Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	Cargo.lock
#	Cargo.toml
2026-11-23 13:08:36 +01:00
Dylan M. Taylor 97daf92f58 Merge PhotoCraft main for live font updates
Resolve the manifest and lockfile by using canonical craft-libs next for the live font stack while preserving main’s Camera Raw dependency pins.
2026-11-23 07:05:53 -05:00
FredApps 9ee918fb9d Merge pull request #15255 from storytold/feat/param-schema-dispatch
engine: one typed parameter schema for dispatch, value checks and filter dialogs
2026-11-23 11:34:59 +01:00
aiongg 83d04ac4d9 Drop a link scan taken against another document folder
The scan now carries the file each stored link path resolved to, and the poll
drops it when the active document's current resolved files differ. Save As
to another folder changes what a relative link resolves to without changing
the stored path.
2026-11-23 10:22:10 +00:00
FredApps 17db1ba448 Merge remote-tracking branch 'upstream/main' into inbox-15255 2026-11-23 10:57:42 +01:00
FredApps 8c2526de74 Port Canvas Size readout to the current hosted dialog 2026-11-23 10:39:48 +01:00
ljkx 446dd0e38b Canvas Size: Gray keeps the background colour in an Indexed document
Indexed documents were not measured (#14543), so they keep today's behaviour.
2026-11-23 10:32:52 +01:00
FredApps 42ade5fc41 Merge pull request #16492 from FredApps/fredapps/fix-mcp-wait-run-alone
test: run mcp_wait tests alone in the gate shard
2026-11-23 10:21:03 +01:00
FredApps 53248aa860 Use the installed session fixture for FOGRA39 tests 2026-11-23 10:11:11 +01:00
ljkx 657abde676 Canvas Size: read the params doc from the installed registry in the test 2026-11-23 09:58:44 +01:00
ljkx 7557c44f48 Expect the picked paths to wait outside the frame in the place test 2026-11-23 09:55:05 +01:00
ljkx 9c6e55f7d7 Canvas Size: Gray is linear grey 128 in a 32-bit document
32-bit documents hold linear light, so the Gray extension colour there is grey 128
decoded as Image > Mode > 32 Bits/Channel decodes it (0.2159), not 128/255.
2026-11-23 09:48:26 +01:00
ljkx 02a6bee23d Show the Batch OK refusal in a Batch alert
As the reference does (#13669), a missing source or destination folder
now opens a one-button alert titled Batch with the message. The dialog
stays open with its values and nothing runs; the refusal still answers a
control-channel confirm.
2026-11-23 09:43:53 +01:00
ljkx 3c5c41ac5f Keep a multi-file Place Embedded out of the selected frame
Each chosen file is queued with "frame": false, so with a Frame layer
selected the files no longer fill it one over another; each gets its own
layer, Free Transform box and history state. A single file still fills
the frame.
2026-11-23 09:43:23 +01:00
ljkx 3407dfd7d9 Merge main into fix/14543-canvas-gray 2026-11-23 09:42:27 +01:00
FredApps 6541b5cdbf test: run mcp_wait tests alone in the gate shard
heavy-filter already caps mcp_wait at one concurrent test, but other
tests in the shard still ran beside them. On artcraft-k8s-main a
bridged jobs.list poll then missed the 300ms client timeout. Require
every test thread so these tests actually run alone, as the comment
already said.

Fixes #16491.
2026-11-23 09:39:05 +01:00
FredApps 73f27c9aa7 Sync FOGRA39 conversion tests with current main 2026-11-23 09:31:05 +01:00
ljkx f805c79c25 Cut the canvas across by the shown view's width in the place centring test 2026-11-23 09:29:29 +01:00
ljkx 752c9831ac Allow the pixel-aligned view centre in the place centring tests 2026-11-23 09:15:38 +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
ljkx 440f153c6e Merge main into place-embedded-centre
Main moved the engine to crates/engine-core and the UI to the craft
framework. The Place Embedded selection centring now lives in
engine-core's file_cmds/open.rs (beside main's new ppi field), and the
visible-canvas centre reads the view through
canvas::document_display::active_view (craft CanvasView::visible). The UI
tests answer the file dialog through ScriptedFiles and show the view with
canvas::testing::shown; the engine tests start from crate::session().
2026-11-23 09:03:24 +01:00
aiongg b15b1f29c4 Filter preview: the addressed document, layer and mask are part of the preview session 2026-11-23 07:55:40 +00:00
ljkx f5175404cf Rectangle Align Edges tests: read a rounded rectangle's radii from its live shape 2026-11-23 08:45:51 +01:00
aiongg e1e1eb8f01 Actions tests: a Paint Bucket step's explicit colour replays after an .atn round trip 2026-11-23 07:45:29 +00:00
ljkx a3774329f9 Shape options bar: the tools' own extras in their own function (clippy cognitive complexity) 2026-11-23 08:31:56 +01:00
ljkx 000a06cf02 Rectangle Align Edges tests: give finish_drag the drag's exact box 2026-11-23 08:31:26 +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
ljkx c44d05c694 Merge main into polygon-corner-radius-13302
Main moved the shape bar onto the craft framework: its Sides cell is the craft
ShapeBar's, so the Polygon tool's Radius is an options-bar number cell
(option_cells::number, with its out-of-range alert) right after the bar in
shape_options, as the Triangle's Align Edges is. The drag's geometry comes from
the craft tool, so shapes::with_tool_radius adds the tool's cornerRadius to a
Polygon drag's shape.create and outline (the Create Polygon dialog keeps its own).
Text that is no number now keeps the value without an alert, as every craft
number field does; that test and the arithmetic one are dropped.
2026-11-23 08:20:03 +01:00
ljkx dd1c3ef788 Align Edges tests: PhotocraftApp::new gives a Box 2026-11-23 08:11:38 +01:00
ljkx 912289b9ef Merge main into batch-ok-validation
Main moved the dialogs to the craft framework's hosted dialogs, so the
Batch OK check is now a ParamFamily check for file.automate.batch
(view_cmds::dialogs::batch_check): OK, and a confirm through the control
channel, are refused with the reference's message while a folder source
or its destination names no folder, and the dialog stays open. The
Error-dialog title override is dropped with the old dialog list.
2026-11-23 08:10:17 +01:00
ljkx 46f88e50cb Merge main into place-embedded-multiple-files
Ported to main's craft file service: pick_files_bytes asks with
PickRequest::open_many and maps craft::host::Picked into PickedFile;
the tests use ScriptedFiles instead of the removed fake dialog.
2026-11-23 08:10:16 +01:00
ljkx 4b86687a0e Merge main into rectangle-align-edges
Main moved the shape tools onto the craft framework: the drag's pixel snap is now
shapes::snaps_to_pixels, which takes the Rectangle with the Triangle, and the bar is
built with craft widgets, so the Rectangle's Align Edges is a craft Checkbox at the
end of vector_ui::options::bar, after the gear. The tests drive the drag through the
canvas tool.
2026-11-23 08:09:39 +01:00
aiongg e03e93e2df Fonts: tests offer a fixed catalog; installed fonts only where asked for
The process catalog the engine, font picker and Glyphs panel read follows the
shared engine's rule (uses_system_fonts): without the installed-font scan
(tests, nextest, PHOTOCRAFT_NO_SYSTEM_FONTS) it lists the bundled and added
fonts only, so a test's font list no longer depends on the machine. Code that
asks for installed fonts (load_system_fonts, installed_font_files) reads
installed_catalog(), the global Catalog. The options bar harness comment names
the real reason for its step limit.
2026-11-23 07:08:24 +00:00
aiongg 4c6008cfd3 Brush tests: a failed tools.setBrush pick of a preset with a broken tip keeps the current brush
The check moves here from the preset store's corrupt-file test, which loads the
tip through the store directly; tools.setBrush is a brush command, so its pick
test goes with the brush tests.

Part of #15710
2026-11-23 06:57:18 +00: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
aiongg 5ce2127686 Engine tests before the paint cut: failpoints feature, setups without paint commands
Step 7 of the engine split (#15710) moves the paint commands into their own
crate. These test changes land first, so the cut moves code and tests as they
are:

- photocraft-engine-core gets a `failpoints` feature (no default) that compiles
  the allocation failpoints outside core's own test build; the paint crate's
  dev-dependency on core will turn it on, so its allocation-failure tests keep
  their injected failures. `allocation` is a public module and the two arming
  functions are public under the feature.
- Core tests whose subject is core but whose setup ran a paint command set the
  pixels through the document (`tests::fill_active`) or use a core command:
  channel copy/paste/clear, Edit > Fade (setup: Invert), Actions import and
  playback, patterns, file revert/save/flatten, layer-style rasterize, tone
  targets, brush tip loading from the preset store, the filter mask target.
- Tests whose subject is a paint command move beside it: Edit > Fill's result
  reservation failure (fill_cmds), and the filter-mask brush stroke
  (brush_cmds/filter_mask_stroke_tests.rs); the filter mask save check stays in
  core with the mask set through the document.
- The sampler turn test spells out the expected coordinates instead of using a
  private core helper; the job cleanup test sets the live commit directly
  instead of through the Mixer Brush; the ignored fill timing drops its
  comparison with a private helper.
- The .atn table check accepts the paint commands it names when they are not
  installed.

No behaviour change in the app.

Part of #15710
2026-11-23 06:40:47 +00: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
aiongg 5dfd031e77 Gate: unreached .rs files fail in strict mode; drop unused test items 2026-11-23 06:06:58 +00:00
aiongg 6770b80ba6 Mixer Brush load swatch shows the sampled tip image or the loaded colour 2026-11-23 06:06:58 +00:00
aiongg 3098631a38 Hue/Saturation range swatches and spectrum run the engine's adjustment on one colour 2026-11-23 06:06:58 +00:00
aiongg 6afdd3c3d4 Pin craft-libs to ee30b17c21 (Select and Mask previews after a document edit, #3140, #3145) 2026-11-23 06:06:58 +00:00
FredApps c77a928370 Merge remote-tracking branch 'upstream/main' into onee/k8s-gate-test-hardening 2026-11-23 12:54:06 +07:00
aiongg ebb0a1c461 Restored adjustment and Select and Mask tests drive the app as a user does
The canvas presses clear the dialog that opens over the canvas first, the armed
Curves picker test drives ui.pointer again, the mask preview test reads the CPU
proxy preview, and the Select and Mask tests run the app's own frame, in which
the workspace asks for its preview and reads its remembered settings.

Selective Color keeps the chosen row (colors) in its parameters: only the
single-colour values and relative are dropped. Select and Mask is stale when no
document or another one is active, as before the framework move.
2026-11-23 05:50:07 +00:00
aiongg 6097755e17 Adjustment dialogs: live CPU preview on masks, channels and modes the layer path refuses
An Image > Adjustments dialog whose target is a layer mask, the Quick Mask, a
channel, or a document or layer the adjustment-layer preview refuses (CMYK, Lab,
Blend If, smart objects) showed no live preview. adjust_preview hands those
targets to the CPU proxy preview, but since the move to the framework's dialog
host (#15449) ensure_filter_preview took only Smart Filter adjustment edits and
parameter dialogs, so a plain adjustment dialog fell out.

ensure_filter_preview now takes every open adjustment dialog, with the command
and parameters OK runs (adjust_dialog::confirmed_command, shared with OK). A
compare hold shows the original for every adjustment preview, Smart Filter
edits included, as the layer path already did.
2026-11-23 05:50:07 +00:00
aiongg 9cf019ed37 Delete files no module compiles (widgets, point curve, brush controls, analysis_ui, old cursors, dead editors and tests, nefc tests) 2026-11-23 05:50:07 +00:00
aiongg e23da5f248 Tests: Notes panel, Count label size, adjustment dialog and Select and Mask tests mounted again, Command-click Auto-Select inversion 2026-11-23 05:50:07 +00:00