Commit Graph
12289 Commits
Author SHA1 Message Date
aiongg 750129f09b ui-egui builds on its own: egui serde and toml display asked for by the crate
`cargo test -p photocraft-ui-egui` failed to compile because egui's serde feature and toml's
display feature came only from other workspace crates. Also drops the stale allowlist note in
AUTO-219-8 (the panel-commands allowlist is empty).
2026-11-18 15:38:06 +00:00
aiongg bfaf39780b test(engine): a background job applies to the layer and channels it started on (#7366)
Replaces the ui-egui window test, whose order depended on wall time, with an engine test:
the job's result is applied only by poll_jobs/wait_job on the session's thread, so a
select_layer after start always comes first.
2026-11-18 15:12:05 +00:00
aiongg 9ec396231e fix(text): skip the OS locale query in nextest test processes 2026-11-18 14:59:39 +00:00
Dylan Taylor 9e934c6e0e fix(web): consume unsupported RAW and wide-angle workspace controls
Prevent ui requests from falling through to engine defaults on WASM. Preserve native controls, ordinary menu opening and plain filter parameters. Exercise browser handlers through the same dispatch core in native tests with document/history and workspace preservation assertions.
2026-11-18 08:04:05 -05:00
FredApps faf4398de2 test(paste): align board clipping expectation with base-aware copy
Apply only the edit_cmds/tests.rs subset of FredApps commit 955cf65ae2 (#15596). The ActionList subset was integrated separately. Merged #9833 releases a copied group when its external clipping base is omitted; retain both populated and empty destination-board assertions.

Source independently reviewed; original #10538 author accepted this correction. No production behavior or test suppression.
2026-11-18 07:50:30 -05:00
FredApps 6bbe4cc1df fix(cli): retain typed errors through launch option validation 2026-11-18 07:04:49 -05:00
FredApps 35cfb1c6d8 test(actions): adapt conditional tests to ActionStep API
Apply only the actions_edit_cmds.rs portion of FredApps commit 955cf65ae2 (PR #15596). Preserve predicate/replay/layer assertions; unrelated clipping expectation change is not included.
2026-11-18 07:03:31 -05:00
aiongg 435d6e5a51 Match storytold main's profile tables, fix merged frame-tool tests for the boxed app, report withdrawn injected input in remove_channel_target
The Remove-channel-target control-pointer test now asserts the injected press was delivered rather than withdrawn, and its assertion messages include the active layer, text-edit state and job state.
2026-11-18 11:28:36 +00:00
aiongg 8bc1e51260 Merge storytold main into main-gate-fixes 2026-11-18 11:06:37 +00: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 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 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
aiongg d6ca99a146 Tests: the app lives in one Box, so test frames no longer hold copies of it
PhotocraftApp::new and with_context return Box<Self>, and the test harness
holds the Box (a forwarding eframe::App impl for Box<PhotocraftApp>). The 85 KiB
app was held by value in the test, its helper, build_app, build_eframe and
from_builder, all under the first egui pass. The 11 overflowing tests need
0.34-0.78 MiB of stack instead of 1.7-2.0 MiB (mask_click 2032 -> 748 KiB,
navigator_gpu 1956 -> 760, native_tests 1848 -> 748, keys_run 1708 -> 776).
The 8 MiB test thread for the Type Mask click test is removed.
2026-11-18 07:11:02 +00:00
dotCooCoo 8d509835ef Tests: the Type Mask click test runs on an 8 MiB stack
a_type_mask_click_on_text_edits_that_layer_as_the_type_tool_does runs
three apps through two full app frames each. In the unoptimized Windows
build it overflows the 2 MiB stack of a test thread, which aborts the
whole test process (STATUS_STACK_OVERFLOW), so the Windows unit leg
fails. The test body now runs on its own thread with an 8 MiB stack,
and a panic in it is passed on to the test.
2026-11-18 00:05:59 -05:00
FredApps 937f33504a fix(ui): refuse controls for closed workspaces on every target 2026-11-18 02:40:03 +01:00
FredApps 0fa91fb1f5 test(ui): preserve frame assertions without helper expect 2026-11-18 02:09:13 +01:00
Dylan M. Taylor 9f6731f004 test(control): await queued pointer input before checking selection 2026-11-17 19:47:22 -05:00
dotCooCoo 7d25f232e8 Print: keep the saved printer while the hosted dialog's printer list is pending
The Print dialog now picks its printer through the shared print panel, which
replaces the chosen printer whenever a list it receives does not name it.
While another print holds the spooler, the dialog sent its cached (or empty)
list, so a saved printer that list did not name was replaced and its driver
settings went with the next print.

While the spooler is busy, a cached list without the chosen printer is no
longer sent: the chosen printer and its driver settings stay, and Print stays
unavailable until a fresh list arrives. A fresh list without the chosen
printer replaces it, and the replaced printer's driver settings are dropped.
Driver settings remembered without a printer (the system default) stay.

The saved-settings tests now read the chosen printer from the dialog's
settings and run on every platform.
2026-11-17 19:46:12 -05:00
Dylan M. Taylor df4872078f Merge commit 'refs/pull/15510/head' of https://github.com/storytold/photocraft into dot/photo-font-fixture-20261117 2026-11-17 19:43:50 -05:00
Dylan M. Taylor 75dd7312e1 test(ui): exercise choice edits and preserve first-pass timing invariant 2026-11-17 19:43:50 -05:00
Dylan M. Taylor 484671de15 test(fonts): use a supported script for runtime fallback fixture 2026-11-17 17:43:04 -05:00
dotCooCoo 08dcd6ba90 Tests: file dialog and histogram tests pass on Windows again
The file dialog tests rebuilt a Save request's suggested path with
Path::join, which puts a backslash between the folder and the name on
Windows, while the expected paths use "/". The helper now joins with "/".

The histogram throttle test set the last count's time to 0, but each test
pass moves the context's clock on by one frame, so a run that took more
than 15 frames to settle was already past the 250 ms throttle. The test
now sets the time to the context's current time.
2026-11-17 13:38:00 -08:00
Dylan M. Taylor f22e6e39b5 fix(prefs): clone shared catalog for preview words 2026-11-17 16:03:34 -05:00
Dylan M. Taylor b4c6ef3814 fix(web): retain verified runtime fonts across UI rebuilds 2026-11-17 15:49:24 -05:00
Dylan M. Taylor f22d5a8113 fix(ui): retain WASM workspace refusal and preview preference buttons 2026-11-17 15:41:52 -05:00
aiongg 2b1b049db9 Menus: the English-name map's doc names its key 2026-11-17 19:23:47 +00:00
aiongg f9847af8d2 Palette: English names for the Appearance rows, looked up by command id and parameters
The theme rows all run app.theme, so the English-name map is keyed by id and params. The framework's theme submenu is laid out once in English to fill it.
2026-11-17 19:23:30 +00:00
aiongg 1d490ea99a Web app: the brush-preset warning takes a notice Tone, and served_fonts::install no longer takes the context 2026-11-17 17:46:50 +00:00
aiongg 0df7ad11c4 Web build: desktop-only control, settings store and file panels are gated with their callers; dialog ids serialise as numbers; the shortcut-set save writes through Services::write; FileDialogFn and friends are exported again 2026-11-17 17:46:50 +00:00
aiongg f698beef33 Prefs: the settings store options and read_saved are desktop-only, as craft-settings' store is 2026-11-17 17:46:50 +00:00
aiongg d8591f9d58 Layer folder export tests: the planted-link test and its helpers build on Unix only 2026-11-17 17:46:50 +00: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
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
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
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