Commit Graph
13863 Commits
Author SHA1 Message Date
Dylan M. Taylor 0c7a1bcbdc Refuse implicit CUPS routing when default discovery is incomplete 2026-11-18 08:18:20 -05:00
Dylan M. Taylor e47d2375b4 Merge current PhotoCraft framework into shared CUPS cutover
Retain HostedPrint and adapt bounded background discovery to its receiver lifecycle. Preserve ahmedhosnypro shared CUPS attribution and existing cutover history. Regenerate scorecard from current source.
2026-11-18 08:04:11 -05:00
NetterSilver 5718a98c1f Record actions.conditional as one step with its predicate (#7583)
Fixes #7238.

`replayable` now also accepts `actions.conditional`, so a Conditional is recorded with its predicate instead of the branch that happened to play (or nothing). Playback then evaluates the condition again on the current document.
2026-11-18 16:43:03 +07:00
FredApps d1981cb616 Merge pull request #9184 from dotCooCoo/fix/stale-parity-rows
docs: mark tool flyout press-and-hold, Direct Selection nudge and two brush rows as built
2026-11-18 16:39:55 +07:00
FredApps 8d6a867925 Merge pull request #9607 from dotCooCoo/fix/rpc-deadline-test-no-clone
Tests: the control-channel TCP tests read and write through the stream, not a clone
2026-11-18 16:38:52 +07:00
FredApps 6dc20043a2 Merge pull request #14366 from yoriswind/codex/frame-content-under-drag-13860
Pick topmost eligible content under Frame Tool drags
2026-11-18 16:30:55 +07:00
FredApps 9d57ea4b1c Merge pull request #15095 from yoriswind/codex/define-brush-visible-source-14271
Define brush presets from the visible document composite
2026-11-18 16:28:32 +07:00
FredApps 7c5d0bc6ea Merge pull request #9750 from 1Git2Clone/ci/ast-grep-cli
ci(cli): check the command-line code with ast-grep rules (RFC-0012)
2026-11-18 16:28:06 +07:00
FredApps d43d2ae651 Merge pull request #8691 from switch87/fix/text-symbol-fallback
Type: fall back to the symbol and math fonts for signs like ⌖ and ⤒ (#8689)
2026-11-18 16:25:10 +07:00
FredApps 156b4f7e25 Merge pull request #11173 from hnoerenberg/fix/xmp-rdf-end-tag-flex-11116
fix(xmp): File Info keeps packets with a spaced or re-prefixed RDF end tag (#11116)
2026-11-18 16:24:44 +07:00
FredApps fef4f82e26 Merge pull request #9858 from NaufalDzz/convert-layers-knockout-isolation
Convert to Layers keeps a knockout layer isolated in a group (#9753)
2026-11-18 16:24:19 +07:00
FredApps cac9512877 Merge pull request #9833 from NaufalDzz/paste-release-orphan-clip
Copy releases a clipped layer copied without its base (#9736)
2026-11-18 16:23:53 +07:00
FredApps 68f3d9db8c Merge pull request #10570 from yoriswind/codex/layer-comp-capture
Skip unused property capture in Layer Comp updates
2026-11-18 16:23:28 +07:00
FredApps 8d0fcb1b29 Merge pull request #10306 from Lcoding15/fix/select-all-active-artboard
Select: All selects the active artboard (#10258)
2026-11-18 16:23:04 +07:00
FredApps f7938dc479 Merge pull request #10499 from yoriswind/codex/blend-if-parity
Fix GPU Blend If rounding at whole channel levels
2026-11-18 16:22:38 +07:00
FredApps 33acd45399 Merge pull request #10458 from hectorviov/fix/small-mask-feather
Small mask feathers spread as Photoshop's do (#9476)
2026-11-18 16:22:13 +07:00
FredApps afff03ebc7 Merge pull request #9860 from dotCooCoo/fix/manual-fuzz-nightly
Select nightly explicitly for the manual fuzz job
2026-11-18 16:21:14 +07:00
FredApps a8f39a54d9 Merge pull request #11712 from Triwarr/wintab-sys-pin
Pin wintab-sys to 0.1.0 next to wintab
2026-11-18 16:20:26 +07:00
FredApps 7cbc2b85e3 Build the craft UI framework below opt-level 2 in test builds (#15565)
* Build the craft UI framework at craft-libs' optimization levels in test builds

The test profile compiled the craft facade and its framework crates at the
opt-level 2 of package."*", serialised in front of every PhotoCraft crate
that uses craft. Build them at 0 (1 for the crates with per-frame or per-pixel
code), as craft-libs does. Test-profile build on 8 cores: 34m53s -> 21m32s.

* Build the framework at opt-level 1, not 0, in test builds

At opt-level 0 the framework's stack frames overflowed the 2 MiB test-thread
stack in ten more photocraft-ui-egui tests on the Windows runner
(0xc00000fd). Level 1 still shares generic instantiations across crates.

* Build the framework's panels, tools and services at opt-level 0 in test builds

At opt-level 1 throughout, the Windows unit leg still built for 67 minutes.
The runtime every frame passes through keeps level 1, so its stack frames
stay small; the panels, tools and services around it, most of the
framework's compile time, build at 0.

* Wrap the test-profile comment
2026-11-18 14:13:03 +07:00
David Mann c337d6e4e8 Merge pull request #15343 from davidmann4/docs/agents-naming-rules
docs(agents): link the names rule from craft-contrib (#15342)
2026-11-17 18:05:56 +01:00
David Mann 01a5b5a389 Merge pull request #15381 from davidmann4/perf/test-speed-quick-wins
Test speed: no font scan in test processes, CMYK profile once, raw-develop at one depth (#15377)
2026-11-17 16:49:07 +01:00
David Mann 4fe336a8c5 Merge pull request #15248 from davidmann4/ci/windows-gpu-tests-when-related
ci: run the Windows GPU tests only when their inputs change (#15247)
2026-11-17 16:48:42 +01:00
David Mann 2b170887fa Merge pull request #15234 from davidmann4/ci/windows-rust-cache-target
ci: let the Windows rust-cache find the short target directory (#15232)
2026-11-17 16:48:17 +01:00
aiongg ed14e1c413 PhotoCraft on the craft UI framework (#15449)
PhotoCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (next branch): shell, dock and panels, hosted dialogs, keyboard, focus, IME and pointer routing, the canvas's view commands, themes and tokens. The engine, document model, file formats, commands and automation stay. PhotoCraft pins storytold/craft-libs next.
2026-11-17 10:41:35 -05:00
FredApps 01b79958a7 ci(freebsd): build every target with the test profile so ui-egui's tests fit the VM (#15360)
* ci(freebsd): build with two cargo jobs so the aarch64 cross build fits the VM

The nightly aarch64 leg (a cold cross build of every target in the shared workflow's 12 GB
FreeBSD guest, CARGO_BUILD_JOBS=4) was killed with exit 137 twenty minutes into ui-egui's
targets, while photocraft-web compiled alongside them (run 43936108201). The same cold build
passed on 15 Nov, so it is at the edge of the guest's memory.

Pass `--jobs 2` through the existing cargo-build-extra-args input. It applies to the build step
of both legs; the x86_64 test commands keep the shared four jobs.

* ci(freebsd): build with the test profile, not two jobs

Two jobs didn't fix it: the x86_64 leg of the dispatched run was SIGKILLed the same way at
--jobs 2 (run 43963415772). The killed rustc was ui-egui's lib test target at -C opt-level=1:
`cargo build --all-targets` builds test targets with the dev profile, so Cargo.toml's
`[profile.test.package.photocraft-ui-egui] opt-level = 0` never applied to the build step. That
one optimised rustc over about 390k lines and 7700 tests ran the 12 GB guest out of memory, and
`cargo test` then rebuilt the same target at opt-level 0 (1m47s on x86_64) anyway.

Pass `--profile test` instead, so the build compiles every target as the tests do: ui-egui at
opt-level 0, debuginfo still off through CARGO_PROFILE_DEV_DEBUG=0 (test inherits dev), and the
test commands reuse the build's artifacts.

* ci(freebsd): test ui-egui with the build's package selection

`cargo test -p photocraft-ui-egui` resolves dependency features without the
other workspace members, so egui, epaint and everything above them got new
hashes. The test step then rebuilt ui-egui's lib tests instead of reusing
the build step's, and that rustc was SIGKILLed in the 12 GB guest.

Run ui-egui's lib, doc and integration tests through
`--workspace --features heif --exclude photocraft-gpu`, which resolves the
same units as the build (checked with cargo's unit graph: 0 units missing
from the build, against 146 for `-p photocraft-ui-egui --lib`). The
integration tests share one command, so all of them run one at a time.
2026-11-17 05:28:19 +01:00
Dylan M. Taylor addd222ca2 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	Cargo.lock
#	Cargo.toml
2026-11-16 23:12:13 -05:00
Dylan M. Taylor 2163bd45af security(doc): resolve slice visibility in one sweep, cap resolved slice count (#10959) 2026-11-16 21:59:41 -05:00
Dylan M. Taylor d71e9fd1bf text: bound copies of preserved style data and font names (#11046) 2026-11-16 21:59:36 -05:00
Dylan M. Taylor 43c2d1bd45 Camera Raw sidecar read: one nonblocking open judged by the opened handle (#13359) 2026-11-16 21:59:31 -05:00
Dylan M. Taylor 3ef7d5cf7a oracle_diff example: skip directory symlinks, refuse an oversized dump (#13362) 2026-11-16 21:59:26 -05:00
Dylan M. Taylor ba9ee03d45 docs: prefer shared craft-libs implementations (#15299) 2026-11-16 21:59:22 -05:00
David MannandClaude Opus 5.5 e3e97d17e0 text: nextest test processes skip the shared engine's system font scan (#15377)
cfg!(test) only covers photocraft-text's own tests; every other crate's
test binaries link it as a normal dependency, so each nextest test
process started a background scan of the installed fonts (on Windows
also a reg.exe child for the UI locale) beside the GPU tests, and tests
silently depended on the machine's fonts. Skip it when NEXTEST is set,
as CI runs every test through nextest. Tests that want installed fonts
already build their own engine with TextEngine::with_system_fonts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-17 02:37:53 +01:00
David MannandClaude Opus 5.5 484483b691 test: build the CMYK test profile once, run large raw-develop sizes at one depth
- cmyk_flatten_profile: synthesise the test profile once per process and
  share one Arc, so CmykSpace's per-allocation cache builds the transforms
  once; exact() reads both rows from one run (4 documents, not 8).
- camera_raw GPU tests: the 858x572 and 1600x900 comparisons run at one
  depth each. The depth only changes the input quantization (8 and 16 bits
  both develop with float = false) and every depth runs at 171x113 above.
- cols_timing is a benchmark without assertions: ignore it like its
  siblings.
- compose: delete clipped_dissolve_is_binary_and_preserves_the_base_shape,
  a byte-identical copy of clipped_dissolve_opacity_fill_is_binary_and_
  preserves_base_shape (whose doc comment names both issues).

Part of #15376.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-17 02:03:03 +01:00
FredApps 957b10cccb test(ui-egui): hold the background redraw in tests that need it still running (#15359)
`a_redraw_across_a_text_gamma_change_and_back_is_not_kept` stepped two frames and expected the
4096x3072 CPU redraw to still be running. Nothing holds the worker, so on the FreeBSD VM
(software Vulkan, 4 cores) the redraw finished within those frames ("the redraw finished before
the change back"; FreeBSD runs on eb3c99d65 and 02e9907f6).

Start the redraw with the existing test hold (`hold_redraws` + `wait_for_held_redraw`, already
used by `an_edit_during_a_redraw_is_not_overwritten_by_blocks_drawn_before_it`) in every test
that needs the redraw running at a later frame: the gamma change and back, the gamma change,
the hidden document's gamma change, Memory Usage dropping mid-redraw, and closing the document.
The hold is released before `settle`, so each redraw still finishes and the kept-composite
assertions still check what they guarded: without `forget_if_gamma_changed` the held redraw
draws every block with the original gamma and is kept, failing the test.
2026-11-17 00:12:23 +01:00
Dylan M. Taylor ee2482c662 Merge pull request #15341 from storytold/cutover/shared-tysh-fallback
psd: preserve lenient TySh recovery through craft-psd
2026-11-16 17:56:31 -05:00
FredApps 566375510e perf: open the benches' PSD files under a benchmark memory budget (#15340)
* perf: open the benches' PSD files under a benchmark memory budget

The PSD import budget (#10503, sized from free RAM since #10897) refuses
the 36 MP PSD in interactive_bench and the 2 GB PSD and 4.4 GB PSB in
large_file_bench on the hosted macOS runner, so P20, P63 and P40-P44 have
been missing from every nightly perf run since 2 November.

The benches time decoding, not admission. They now open these files
under an explicit budget: the app's policy for a machine whose free
memory can't be measured, with the high-memory approval given up front
as file.openAs does with approveHighMemory. Only the bench thread sees it
(photocraft-io's testgen seam), so the app's budget is unchanged.

A failed open is now a row error in the --json report instead of a
panic that lost every row of interactive_bench, and large_file_bench
exits 0 once its report holds the reasons, so cargo xtask perf fails
only the affected rows and says why.

* perf: large_file_bench reports no timing row for a case that failed in any repetition

With the report now read on success, a case whose first open worked and a later one failed would have shown its timing row and hidden the error (CodeRabbit review).
2026-11-16 22:23:24 +01:00
David MannandClaude Opus 5.5 12ba2a00ff docs(agents): rule 10 covers distinctive names, not descriptive words
Matches standards/naming.md rule 1: ordinary descriptive words that
several unrelated products use (Layers, Crop) are fine.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-16 22:11:58 +01:00
FredApps 6a82de1411 Content-Aware Fill: keep the workspace open while a background fill runs (#15338)
With background jobs on, Apply and OK start edit.contentAwareFill as a job
and get {"job", "pending": true} back. The workspace treated that as a
finished fill: OK closed at once, so a fill that then failed or was
cancelled left no workspace to fix and retry from, and Apply refreshed
before the fill had landed and let a second fill start meanwhile.

The workspace now records the job it started. While it runs, the
controls, tools, shortcuts and a second Apply/OK are refused; Cancel (the
button, Esc or the control channel) cancels the job and closes. When the
job ends, a successful OK closes the workspace and a successful Apply
refreshes it; a failed or cancelled fill keeps it open with the reason in
its panel, as a failed synchronous OK does. Jobs of another workspace or
document are ignored. describe() reports pending and pendingJob.

Taken from the Content-Aware Fill part of #8506.
2026-11-16 21:23:28 +01:00
David Mann 0dc498dbf5 docs(agents): link the craft-contrib names rule (standards/naming.md)
Adds golden rule 10: user-facing feature names are our own, taken from
standards/naming.md (RFC-0029), with its check for new names, labels-only
renames and accurate compatibility names.
2026-11-16 20:35:30 +01:00
hnoerenberg f11647cce3 fix(file-info): resolve a namespace prefix in the innermost scope first
rdf_end_scan searched the open scopes with iter().rev().flatten().rev(), which reverses the flattened list a second time, so an outer declaration won over an inner rebinding. An ancestor binding rdf to the RDF namespace then hid an inner xmlns:rdf="urn:other": the inserted rdf:Description landed in the foreign namespace, and a shadowed </r:RDF> could be taken for the RDF end tag. Search the scopes innermost first.

A parsed-XML regression covers an ancestor binding with an inner rebinding at the insertion point, and a shadowed closing tag in a later element.
2026-11-16 17:27:19 +01:00
FredApps 02e9907f68 Merge pull request #15162 from storytold/codex/photo-jpeg-notices
Retain IJG and SIMD notices for shared JPEG encoding
2026-11-16 17:24:14 +01:00
Yoris Wind ccfb68c86b Format outside-stroke scalar allocation controls 2026-11-16 06:07:06 -08:00
Yoris Wind 9cf0e44a53 Make outside-stroke scalar scratch allocations fallible 2026-11-16 05:53:57 -08:00
FredApps 097a7a7b79 Merge pull request #15301 from storytold/fredapps/psd-tysh-envelope
PSD type: take the TySh envelope from craft-psd (#778)
2026-11-16 14:48:12 +01:00
FredApps 6fce43018c io: drop an imported TySh when a type layer's block can't be rebuilt
With write_tysh refusing unsafe geometry, a layer without psd_raw can end up
with no generated TySh; the imported block (text from before the edit) was then
kept. Export now drops it so the layer is written as pixels with the existing
warning. TySh selection moves into type_tysh/type_blocks (cognitive complexity).
2026-11-16 13:41:10 +01:00
FredApps 193661aea3 io: keep PSD export's content_blocks under the cognitive-complexity limit 2026-11-16 12:59:29 +01:00
Dylan M. Taylor 619ee36fe5 Merge current main into JPEG notice branch 2026-11-16 06:52:40 -05:00
FredApps 421adc18cf io tests: forge hostile TySh transforms in the bytes (the shared writer refuses them) 2026-11-16 12:37:37 +01:00
FredApps a94e84dd8d text: take the TySh envelope from craft-psd (#778)
parse_tysh/write_tysh/translate_tysh/transform_is_safe become adapters over
craft_psd::text::envelope (extracted from here in craft-libs#1594); only the
Affine <-> [f64; 6] mapping stays. write_tysh/build_tysh return Option: a block
the shared writer refuses (unsafe transform, non-finite bounds, > 8 MiB) is not
written, and export falls back to pixels with its existing warning. craft-psd
re-pinned to craft-libs main eafb50af (additions only in crates/psd).
2026-11-16 12:35:11 +01:00
FredApps d53b5edb60 Merge pull request #11566 from hnoerenberg/fix/gaussian-blur-edge-parity-11528
test(algo): pin the Gaussian blur edge profile and its ATN identity
2026-11-16 11:57:45 +01:00