Commit Graph
11425 Commits
Author SHA1 Message Date
Khawar Zamman Wani 27e0735af6 Revert "fix: apply special Fill semantics to CMYK adjustment layers"
This reverts commit b8621fd1ca.

The CMYK adjustment-layer Fill fix is independent of the PSD/TIFF memory
admission work and ships in its own PR. Reverting it here keeps this
branch's compose tree identical to main.
2026-11-03 08:36:10 +05:30
yoriswind d29cbec07e fix: consolidate action history after command transactions
Keep command-local history, purge and rollback intact, then consolidate affected documents at action completion or dialog suspension. Preserve semantic no-op identity and redo, visibility semantics and row identifiers. Bind dialog continuation to its exact document/history, inherit the setting in scratch sessions and carry droplet action names. Add the review counterexamples and focused continuation, Batch/droplet and history-option controls. Source is formatted; compilation and runtime qualification remain pending.
2026-11-02 19:02:08 -08:00
dotCooCoo a888c011ef Merge main into feat/layers-filter-by-artboard 2026-11-02 18:51:04 -08:00
Khawar Zamman Wani dcd21f81b4 fix: keep multipage TIFF page memory refusals typed
The multipage TIFF import loop mapped every page-import error to EngineError::Other, so a PsdApprovalRequired or PsdImportBudget from a layered page reached the UI, control channel and agents as text only, without the required/limit fields. Route those two through io_open_error and keep the page-specific text for every other error.
2026-11-03 08:21:00 +05:30
dotCooCoo ce0d165d42 Merge commit 'refs/check/w877-main' into rl-9211 2026-11-02 18:50:30 -08:00
yoriswind 182da545ee feat: start persisted single-action history grouping
Add the default-on Actions history setting and a grouping scope shared by ordinary engine and shell playback entry points. Define public regressions for whole-play Undo/Redo, the off setting, failure prefixes, nesting, no-op and repeated-play boundaries, and persistence. This is an unvalidated draft increment: dialog continuation, direct compound edits, Batch/droplet boundaries and the complete edge-case qualification remain unfinished.
2026-11-02 18:30:27 -08:00
yoriswind 8e17f90c06 Bound Shear action curves and preserve native precision 2026-11-02 18:26:17 -08:00
yoriswind 9011c6d704 fix: capture shared action descendants at minimum call depth
Use a FIFO dependency queue so a deep route cannot hide descendants reachable through a shallower call. Cover packaged Batch and Conditional replay, retain Custom exported enabled flags in regression coverage, and document the existing concurrent-writer limitation of Save and Close.
2026-11-02 18:14:50 -08:00
David MannandClaude Opus 5.5 3ce04b52f4 Address CodeRabbit review: Batch writes, recording and dialog edge cases
- CLI batch: recursive inputs keep the engine's tree order for {serial};
  --format picks the encoder whatever extension --naming writes; the
  summary prints before --error-log is written.
- Batch: a jobs.cancel during a write keeps that file in `files`;
  Opened Files refuses a default-named result that replaces another open
  document's file; a recorded Save leaves a document changed when Batch
  writes nothing for it.
- Recording: folded Move-tool nudges add whole-pixel steps; a null
  Check Spelling `action` is recorded as Check Spelling.
- Linked files: a document without links lists none missing; a look
  whose links changed while it ran is dropped.
- Save for Web: a null or empty destination opens the picker; a rename
  while the picker is open writes the picked file.
- Actions: a Check Spelling step fails instead of replacing a dialog
  opened by hand.
- Docs: desktop Batch cancel flow, Check Spelling step shape, filter row
  history count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 03:02:19 +01:00
yoriswind e6391775bc Protect paused Actions libraries and bound replacement staging 2026-11-02 17:51:33 -08:00
ljkx bbf0caa8c1 Crop: cover more Ctrl-held Straighten cases (#10870)
Review follow-up. The Ctrl-held tests now also start from a frame drawn
off the canvas's centre (it keeps its size and position, and a second
line on the turned frame sets its own angle), a 1:1 preset frame, Delete
Cropped Pixels off, Ctrl let go before the mouse button, a click or tiny
line, lines either side of 45 degrees, and Undo/Redo before and after
the commit. The button test also fits a 1:1 frame and checks it keeps
its ratio. Comments and test helpers documented.
2026-11-03 02:50:06 +01:00
ljkx 6c0f4d50b5 Crop: snap a Shift-corner drag where its handle is; test turned frames, Auto Center, presets
Snapping found the crop handle with the larger-extent rule, so during a
Shift corner drag it looked for guides next to a handle that wasn't
there: a guide 5.6 px from the handle on the diagonal didn't catch it,
and one 8.4 px away snapped the frame to the old rule's size.

The resize, Auto Center Preview and handle snapping now all read the
pointer through crop_ui::resize_point.

New tests: a turned frame in both modes, an exact size with Auto Center
Preview, a ratio preset keeping today's rule, and snapping to a guide.
Each fails when the piece it covers is reverted.
2026-11-03 02:06:27 +01:00
yoriswind 8c576e5f94 Use the recorded show-dialog mode in Shear flag fixture 2026-11-02 17:06:12 -08:00
yoriswind 1a00bffee8 Run public Shear regression tests in the integration harness 2026-11-02 17:04:30 -08:00
dotCooCoo fef15729aa Merge main into feat/pcraft-full-composite
Main now takes the manifest envelope from craft-pcraft-format, which has
no full_composite member. The save writes the member after the envelope
when it writes composite/full.png, and read_full_composite reads it back.
2026-11-02 17:02:14 -08:00
Brandon ThomasandClaude Opus 5.5 327c4cc82e Release 0.20.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v0.20.1
2026-11-02 19:47:05 -05:00
Brandon ThomasandClaude Opus 5.5 eed8bd27d2 Packaging: run the cross-built CLI's --version check without the malloc re-exec
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 19:47:01 -05:00
yoriswind c9fc8458b4 Map recorded Shear actions with measured curve settings 2026-11-02 16:40:07 -08:00
Brandon ThomasandClaude Opus 5.5 24d4f4db9f Release 0.20.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 19:27:12 -05:00
FredApps ed681787c3 Add a Scratch Size Limit preference and honour the web memory cap in the memory policy 2026-11-03 01:16:52 +01:00
David Mann 56870f5687 Merge #10905: the author's latest commits 2026-11-03 01:05:27 +01:00
David Mann 4f6a2c50f0 Merge #4579: the author's latest commits
# Conflicts:
#	docs/gaps.md
#	docs/target-app-parity.md
2026-11-03 01:05:27 +01:00
David MannandClaude Opus 5.5 6a63960ec6 Batch 13: settle the overlaps between the batched PRs
- Check Spelling: with #8726's measured form a `change` made in the dialog records no step
  (the reference application records one `spellCheck` step), so #4514's two tests that
  expected recorded `change` steps are removed; its portable recording stays for all else.
- Clippy `chunks_exact_to_as_chunks` in #10765's tests; a single-element loop in #10755's.
- docs/parity-checklist.md and docs/scorecard.md regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 01:04:44 +01:00
ljkxandClaude Opus 5.5 40a0928948 Merge origin/main into feat/raw-xmp-crop
Resolve docs/file-format-parity.md: keep main's entries and re-add this PR's status entry, table notes and revision-history row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 01:00:19 +01:00
FredApps c9478d0501 Expect the Windows scratch entry until its delete-on-close handle closes
Windows keeps delete-on-close (unlinking an open file is not portable there), so a
live scratch file still has a directory entry. Only Unix unlinks it right after
opening. Check that the directory is empty once the file is closed on both.
2026-11-03 00:54:09 +01:00
David MannandClaude Opus 5.5 072dfd3724 Batch 13: rustfmt the resolved files
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 00:51:18 +01:00
David MannandClaude Opus 5.5 55a8d917de Batch 13: #10755 and #10765 on top of batch 12
- Link Layers keeps main's measured toggle mapping (batch 12, #10628): played twice in the
  reference application it links, then unlinks. #10755's second, explicit `linked: true`
  entry for the same event was unreachable on import and contradicted that measurement, so
  it is dropped; Unlink stays explicit. Its tests now cover Unlink only, and `{}` exports.
- #10765: an ordinary Gradient Map now saves as `gradientMapEvent` (#10702 landed in batch 12).
- #10755: flattened pixels read with `Buffer::into_px()` since `Buffer` implements `Drop`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 00:50:41 +01:00
David Mann eb3c2044d4 Merge #10755: Support newer recorded Action events
# Conflicts:
#	crates/engine/src/cmd/artboard_cmds.rs
#	crates/engine/src/cmd/atn_cmds.rs
#	crates/engine/src/cmd/atn_cmds/events.rs
#	crates/engine/src/cmd/atn_cmds/steps_make.rs
#	crates/engine/tests/it/main.rs
#	docs/atn.md
#	docs/development.md
#	docs/file-format-parity.md
2026-11-03 00:44:15 +01:00
David Mann b0aa230ae8 Merge #10765: Actions: support direct Gradient Map and Lab-range Replace Color
# Conflicts:
#	crates/engine/src/cmd/atn_cmds.rs
#	crates/engine/src/cmd/atn_cmds/events.rs
#	crates/engine/tests/it/main.rs
#	docs/atn.md
#	docs/development.md
#	docs/file-format-parity.md
2026-11-03 00:38:44 +01:00
Fabio Lissi 1b561c02ca Separate Batch conformance table from following notes 2026-11-02 17:37:51 -06:00
Fabio Lissi a2c4ac0b0c Match Batch Esc flow and show read-only input preview 2026-11-02 17:36:55 -06:00
David Mann 2915849b07 Merge #4514: Record actions in a document-independent form (#219) [depends on #4496]
# Conflicts:
#	crates/engine/src/cmd/type_spell_cmds.rs
#	crates/engine/src/jobs.rs
#	docs/gaps.md
#	docs/target-app-parity.md
2026-11-03 00:36:40 +01:00
David Mann 98c2213e5c Merge #9211: Layers panel: the filter row lists linked, missing or embedded smart objects
# Conflicts:
#	crates/automation/src/server.rs
#	crates/ui-egui/src/control/tests.rs
#	crates/ui-egui/src/panels/layer_filter_ui.rs
#	crates/ui-egui/src/panels/layer_filter_ui/tests.rs
#	docs/control-protocol.md
#	docs/ui-parity.md
2026-11-03 00:34:07 +01:00
yoriswind 49ac4082b8 Classify Insert Path as document geometry in automation registry checks 2026-11-02 15:33:44 -08:00
ljkx c0b08120a6 Reveal All's crop passes the session gate; Crop doc names the Content-Aware exception (#10867)
Reveal All runs its crop through crop_keeping_background instead of
Session::execute, so the session's authorize gate no longer saw the
image.crop it runs on its behalf. It now calls the gate with the crop's
params before the crop, as dispatch would.

The image.crop params doc now says the Background becomes Layer 0 with
Delete Cropped Pixels off only when contentAware is false.

Tests: the action-step case now goes through a binary .atn (the Crop
descriptor carries Dlt false, import decodes it, actions.play runs it);
new tests for the Reveal All gate and for Content-Aware with Delete off
keeping the Background.
2026-11-03 00:32:25 +01:00
David Mann 3e8db12b49 Merge #9315: Layers panel: the filter row lists the artboards that hold the selected layers
# Conflicts:
#	crates/automation/src/server.rs
#	crates/ui-egui/src/panels/layer_filter_ui.rs
#	crates/ui-egui/src/panels/layer_filter_ui/tests.rs
#	docs/control-protocol.md
#	docs/ui-parity.md
2026-11-03 00:32:13 +01:00
David Mann 037450f71d Merge #10439: Layers panel: filter by Color, as in Photoshop (#5898)
# Conflicts:
#	crates/ui-egui/src/panels/layer_filter_ui/tests.rs
2026-11-03 00:31:20 +01:00
David Mann 29474646f4 Merge #4579: Batch: subfolders, open documents, file naming, stop on error, error log, progress and cancel (#219) 2026-11-03 00:30:53 +01:00
David Mann 222ba50635 Merge #5430: Actions: a recorded Save As or Save for Web with the suggested name saves each document under its own (#5305) 2026-11-03 00:30:52 +01:00
David Mann 7c17521aad Merge #8726: Actions: Check Spelling records and saves as the spellCheck event 2026-11-03 00:30:51 +01:00
David Mann 2f84f55158 Merge #10832: ATN: keep encoding fallbacks among the top-scoring candidates 2026-11-03 00:30:50 +01:00
David Mann c0cfcb4e38 Merge #10941: Crop: ⇧-corner drag follows the frame's diagonal (#10871) 2026-11-03 00:30:49 +01:00
David Mann b8bcc02cdb Merge #10905: Crop with Delete Cropped Pixels off turns the Background into Layer 0 (#10867) 2026-11-03 00:30:48 +01:00
David Mann 79ffb5711a Merge #10752: Layers panel: show the filter row in every theme 2026-11-03 00:30:45 +01:00
yoriswind 6182b5b0d2 fix: preserve TIFF channels omitted by decoder limits 2026-11-02 15:28:15 -08:00
ljkx cf651b7c2e Crop: a Ctrl-held Straighten line keeps the frame size (#10870)
A Straighten line drawn with Ctrl (Cmd) held now turns the frame by the
line's angle and leaves its size and position alone, so the commit fills
the corners the turn uncovers, as the reference application does. The
options-bar Straighten button keeps fitting the frame inside the turned
image.
2026-11-03 00:26:02 +01:00
FredApps 51e9bed8b7 Borrow guarded tile bytes in the profile dither from main
Main's new profile dither (8a0f959d2) matched on the tile bytes by value inside the
per-pixel loop. On this branch Tile::bytes returns a TileBytes guard rather than a
slice, so borrow it for the loop instead, and compare the test's tiles as owned
bytes since the guard has no Debug or PartialEq.
2026-11-03 00:13:34 +01:00
yoriswind f2e5d3f8fa Bound staged browser Load Actions selections before reading 2026-11-02 15:12:13 -08:00
FredApps fb684cd114 Merge remote-tracking branch 'upstream/main' into pr-5330 2026-11-03 00:02:18 +01:00
yoriswind 87238953ec Preserve imported menu item names when saving Actions 2026-11-02 14:57:49 -08:00