Commit Graph
15989 Commits
Author SHA1 Message Date
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
Mex 65b3b20b24 test(engine): cover Exact indexed transparency capacity
Cover unchanged document state after refusal and successful conversion on both valid palette boundaries.
2026-11-19 22:26:31 +01:00
Mex 20ff6bc605 Validate palette size for exact transparency handling
Reject Exact conversion if the opaque palette uses every slot and the image needs a transparent entry. Leave the edit transaction uncommitted in that case.
2026-11-19 22:25:38 +01:00
Mex 81bf5826fe Add test for exact palette with forced colors
Exercise a full opaque image palette with forced black and white, a union that fits at 256 entries, and forced colours already present in the image.
2026-11-19 22:17:54 +01:00
yoriswind c56c5bfb5d Document implemented contextual task bar contexts and limits 2026-11-19 13:17:03 -08:00
Mex e31b356c63 fix(algo): reject Exact palettes that exceed 256 with forced colours
Count distinct image and forced colours before building the Exact palette. Report an overflow instead of dropping source colours.
2026-11-19 22:16:53 +01:00
yoriswind d23d2ee0bc Merge main CI and fixture repairs into PR #15167 2026-11-19 13:14:13 -08:00
Ivan Sanchez f137c271b7 Document tab menu: Close, Close Others and Reveal in Finder act on the clicked tab
Since the move to the craft UI framework, the document tab's right-click
menu sent the document's id as `document` to file.close,
file.closeOthers and file.revealInFinder, but those commands take the
document's index in the session's list. Ids come from a counter shared
with layers and other objects, so the command found no such document and
nothing happened. The menu now sends the tab's current index; Move to
New Window keeps the id it takes.

Test: three documents; the menu's Close on a tab that is not the active
one closes that document, then Close Others and Close run on the clicked
tab (fails before the change: "no active document").
2026-11-19 13:13:14 -08:00
Mex 9445f7a0b0 docs(cli): spell out doc.replaceSmartObject in serve help
Use the full RPC method name so users can search for it in help and the generated man page. The method list still matches all 19 entries in the RPC registry.
2026-11-19 22:10:10 +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
Mex e0e8c0fde2 fix(cli): reject lossy paths during flat batch discovery
Fail before output planning when a recognized input path cannot be represented in the headless API. Add a Linux CLI regression with the invalid-byte filename and its valid replacement-character alias.
2026-11-19 22:07:16 +01:00
aiongg a8982aafbd DocQueries: name the History rows' key type 2026-11-19 21:07:16 +00:00
yoriswind 0a7072b761 Merge main for PR #15102 CI reconciliation 2026-11-19 13:02:55 -08:00
yoriswind a5c2c62926 Merge main for PR #15101 CI reconciliation 2026-11-19 13:02:51 -08:00
Mex 63164a7a79 docs(cli): list doc.replaceSmartObject in serve help 2026-11-19 22:00:44 +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
Higgs32584andClaude Opus 5.5 e92804520d Merge upstream main into fix/8047-channel-mixer-cmyk
main moved the command table out of crates/engine/src/cmd.rs into crates/engine/src/cmd/table/. cmd.rs takes main's version; this PR's Channel Mixer params doc (cyan/magenta/yellow/black ink outputs, monochrome unsupported for CMYK outputs) now lives on the channelMixer entry in cmd/table/image/adjustments.rs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-19 15:53:45 -05:00
Mex df85542f8b fix(cli): discover GIMP XCF inputs in batch folders
Updated the input recognition logic to include new file extensions and added tests for GIMP XCF file handling.
2026-11-19 21:53:09 +01:00
David Mann 383d24fa00 Merge pull request #15811 from davidmann4/mq-batch-99d0630d-mwnyh2e7
Merge queue batch: 9 PRs (#13573, #13714, #14011, #13708, #14826, #14986, #15065, #13818, #14369)
2026-11-19 21:52:16 +01: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 aac8e37bec CI: one test archive per shard, balanced by recorded test times
The gate's build job writes one nextest archive per shard (craft-common-actions gate.yml
shard-archives), so each shard downloads only the test binaries it runs instead of the whole
2.4-2.6 GB archive.

`cargo xtask ci archive` builds and lists the tests once, then plans the shards
(xtask/src/shards.rs): whole binaries go to the lightest shard, heaviest first, by the times in
.config/ci-test-times.tsv; a binary heavier than half a shard's share is split by test filter along
its module tree, and its executable goes into each archive that runs part of it. On Linux shard 1
takes every binary with gpu-group tests. The build checks that every test runs on exactly one shard,
writes the plan into the target directory, which every archive carries, and archives each shard
with `cargo nextest archive -E`. A shard runs `xtask ci tests --shard <k>` with its part of the
plan; the slice partition is gone.

scripts/ci-test-times.py refreshes the times file from a CI run's shard logs; a missing or stale
row only costs balance.
2026-11-19 20:47:26 +00:00
aiongg a92d36e8f9 xtask: record the build units of the gate's test and doctest builds for the cache trim
In a gate leg that saves the dependency cache, craft-common-actions' rust-cache action names a
file in CRAFT_CACHE_UNITS, and cache-trim deletes every unit of the target directory the file
does not name before the entry is saved. ci archive (and the cargo test --no-run build) and ci
doctest print Cargo's JSON messages (json-render-diagnostics: diagnostics stay on stderr) and
append them to the file; ci archive first records xtask's own build, which cargo xtask builds
before xtask can record anything.
2026-11-19 20:47:25 +00:00
Mex 1008be1a69 fix(xtask): reject device names in PSD recipe IDs
Reject reserved Windows device names case-insensitively before the runner creates output artifacts. Cover all reserved IDs and ordinary near matches through recipe schema validation. Fixes #15822.
2026-11-19 21:41:36 +01:00
Mex 6acc50db72 test(automation): preserve Unix backslashes in native save names
Check the raw manifest and reopened .pcraft filename after a native filesystem save, and verify the source document name is unchanged.
2026-11-19 21:37:15 +01:00
hnoerenberg af04765acf Merge upstream/main into fix/pen-anchor-context-menu-12915 2026-11-19 21:35:54 +01:00
Mex 8909d97314 fix(automation): preserve native filenames in saved manifests
Derive the .pcraft snapshot name from the native Path leaf so Unix backslashes remain filename characters. Preserve portable byte-name handling. Fixes #15820.
2026-11-19 21:35:54 +01:00
hnoerenberg 16f0c9e026 Merge upstream/main into fix/atn-panel-menu-10706 2026-11-19 21:35:47 +01:00
aiongg c5a3dffb9b Merge remote-tracking branch 'upstream/main' into perf-15709b 2026-11-19 20:23:25 +00:00
aiongg 9406da9c6f engine_split: codemod usage says --head is pre-rebase, reports command_ids and private modules; contributing names TABLES 2026-11-19 20:22:30 +00:00
Mex 3bab5b5ae0 test(automation): preserve documents after malformed close requests
Check arrays, booleans, numbers and strings leave the session unchanged. Verify missing/null/default and explicit index requests close the intended document.
2026-11-19 21:19:50 +01:00
aiongg 6749fc1bb2 control_exit_code: drop the in-test exit deadline 2026-11-19 20:19:44 +00:00
aiongg 8ca6d3c767 web CI: skip wasm-opt --converge on pull requests 2026-11-19 20:19:35 +00:00
Mex 79ce13a573 fix(automation): reject malformed RPC close parameters
Reject non-object doc.close params before they can become an implicit close of the active document. Preserve null/default and valid index handling. Fixes #15815.
2026-11-19 21:17:52 +01:00
aiongg 9b6e89c20a Merge remote-tracking branch 'upstream/main' into engine-split-registry 2026-11-19 20:16:52 +00:00
aiongg 6764f138bb Keep the frame marks and the link watcher's check off per-frame walks
The canvas's empty-frame placeholders and the link watcher's has-links check
read DocQueries, once per document revision. The walk trial counts the panels'
command states, which task a of #15709 moves onto revisions, as their own.

Part of #15709.
2026-11-19 20:13:08 +00:00
RickiNano ae6c240f11 Merge remote-tracking branch 'origin/main' into fix/14214-auto-blend-keeps-background 2026-11-19 21:08:12 +01: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 91b81c36e1 Merge #13818 into the merge queue batch
Custom Shape: Alt at the press picks the foreground and Fill colour (#13467)

# Conflicts:
#	crates/ui-egui/src/canvas/cursors.rs
2026-11-19 21:04:32 +01:00
David Mann a05ef28416 Merge #15065 into the merge queue batch
Hue/Saturation: pick the range with seven swatches and show its centre (#14753)

# Conflicts:
#	crates/ui-egui/src/dialogs/adjust_editors/hue_saturation.rs
2026-11-19 21:04:31 +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
RickiNano a3a2a3db92 Merge commit '86c2056d01ca55dd0295e314dd6f526e879155c5' into HEAD 2026-11-19 20:43:34 +01:00