Commit Graph
21954 Commits
Author SHA1 Message Date
.CooCoo 77a609eed6 Merge pull request #9820 from dotCooCoo/chore/craft-libs-pin-51fcc3b0
Dependencies: take every craft-libs crate from craft-libs main at 51fcc3b041
2026-11-27 21:35:36 -08:00
.CooCoo 2fcaec65e8 Merge pull request #9817 from dotCooCoo/chore/ci-cache-workspace-crates
CI: the gate keeps the compiled workspace crates between runs
2026-11-27 21:24:28 -08:00
.CooCoo 35e192f177 Merge pull request #9836 from dotCooCoo/chore/wasmi-2-0-3
Plug-ins: a multi-value br_table gives every target its values (wasmi 2.0.3)
2026-11-27 21:15:11 -08:00
.CooCoo 3737ccdc9a Merge pull request #9838 from dotCooCoo/fix/script-folder-scan-clock
Scripts: folder listings take their time limit from the session's clock
2026-11-27 21:14:30 -08:00
.CooCoo 7c67dfb344 Merge pull request #9815 from dotCooCoo/fix/clipboard-test-handshakes
Clipboard: tests wait for each read's answer instead of a time limit
2026-11-27 21:13:49 -08:00
.CooCoo dd6a8b6123 Merge pull request #9834 from dotCooCoo/fix/plugins-abi-tests-no-wall-clock
Plug-ins: hostile, time budget and cancel tests check errors, not elapsed time
2026-11-27 21:13:04 -08:00
BFlat edc4fe00fa Merge pull request #9716 from dotCooCoo/fix/graph-design-manager-draft-drawing
Keep Graph Design manager edits with their drawing
2026-11-28 11:20:47 +07:00
BFlat 783f541183 Merge pull request #9715 from dotCooCoo/fix/placement-preserve-translations
Translate Preserve choices in Placement Options
2026-11-28 11:20:33 +07:00
BFlat adc4ec0e66 Merge pull request #9714 from dotCooCoo/fix/color-themes-commit-choices
Color Themes: apply dropdown changes only on commit
2026-11-28 11:20:18 +07:00
BFlat 7ee99a0ef0 Merge pull request #9713 from dotCooCoo/fix/text-import-options-after-accepted-place-mac2
Remember Text Import settings after Place accepts
2026-11-28 11:20:04 +07:00
BFlat ba613b1167 Merge pull request #9711 from dotCooCoo/fix/arrange-tools-hosted-form-edits
Apply edited settings in the Arrange add-on dialogs
2026-11-28 11:19:50 +07:00
BFlat 54a3e18cf9 Merge pull request #9710 from dotCooCoo/fix/xmp-property-read-fuel
Charge fuel before reading XMP property values
2026-11-28 11:19:37 +07:00
BFlat e5f02d3220 Merge pull request #9709 from dotCooCoo/fix/variable-drafts-after-file-revert
Require fresh Variable and Data Set edits after File Revert
2026-11-28 11:19:25 +07:00
BFlat b6ae850283 Merge pull request #9706 from dotCooCoo/fix/swatch-legend-live-form-fields
Apply live Create Swatch Legend settings
2026-11-28 11:19:11 +07:00
BFlat 29860cebec Merge pull request #9702 from dotCooCoo/fix/new-toolbar-typed-name
Show and apply names in New Toolbar
2026-11-28 11:18:57 +07:00
BFlat cd4dfe2d63 Merge pull request #9657 from dotCooCoo/fix/blend-options-opening-drawing
Keep Blend Options previews and approval on their opening drawing
2026-11-28 11:18:44 +07:00
BFlat e548209fca Merge pull request #9626 from dotCooCoo/fix/standalone-effect-opening-drawing
Keep standalone effect edits in their opening drawing
2026-11-28 11:18:28 +07:00
BFlat 2257e51824 Merge pull request #9625 from dotCooCoo/fix/graphic-style-options-refusal-locale
Localize Graphic Style Options duplicate-name feedback
2026-11-28 11:18:13 +07:00
BFlat f59a5a1892 Merge pull request #9621 from dotCooCoo/fix/panel-artwork-drop-file-revert
Reject panel artwork drags started before File Revert
2026-11-28 11:18:00 +07:00
BFlat 46e9359bea Merge pull request #9509 from dotCooCoo/fix/transform-each-opening-document
Keep Transform Each in its opening document
2026-11-28 11:17:31 +07:00
BFlat fca7b7811d Merge pull request #9489 from dotCooCoo/fix/ui-slice-dialog-selection
Keep Slice Options and Divide Slices on the original selection
2026-11-28 11:17:12 +07:00
BFlat 3db1b3c96a Merge pull request #9660 from makesomethingshit/fix/7872-convex-inside-bevel
3D: Keep inside bevels within collapsing convex outlines
2026-11-28 11:13:55 +07:00
BFlat 1bc87afc7b Merge pull request #9796 from jmverges/fix/ai-save-type-spot-ink
.ai save: type in a spot ink keeps its swatch link
2026-11-28 11:12:55 +07:00
BFlat 1411d28618 Merge pull request #9782 from jmverges/fix/ai-type-spot-ink
.ai import: type set in a spot ink keeps its ink
2026-11-28 11:12:05 +07:00
BFlat 721582b419 Merge pull request #9813 from jmverges/fix/pdf-stencil-hard-mask
PDF export: a black-and-white colorized image is never smoothed
2026-11-28 11:11:43 +07:00
BFlat efdb0fbfe5 Merge pull request #9757 from Hassan1305/fix-9227-offset-pasted-clip
Paste: a pasted copy of a clipping path is an ordinary path, so Offset Path works on it (#9227)
2026-11-28 11:10:32 +07:00
BFlat c693786275 Merge pull request #9759 from Hassan1305/fix-9320-random-uniform-scale
Transform Each: Random with the same horizontal and vertical scale keeps proportions (#9320)
2026-11-28 11:10:18 +07:00
BFlat 1e413f5368 Merge pull request #9845 from dotCooCoo/fix/placed-document-tests-without-timing
Tests: placed document tests wait on handshakes instead of timers
2026-11-28 11:02:05 +07:00
.CooCoo e883b8a49c Merge pull request #9789 from dotCooCoo/fix/fontlist-test-global-fonts
Tests: the font list tests hold back other threads' font changes
2026-11-27 19:58:32 -08:00
.CooCoo 4c376b6914 Merge pull request #9790 from dotCooCoo/fix/canvas-tests-profiles-generation
Tests: ui-egui tests that load a color profile run in their own process, so the profiles generation stays fixed
2026-11-27 19:57:48 -08:00
.CooCoo bdcc2d92de Merge pull request #9825 from dotCooCoo/fix/panel-readout-copy-language-guard
Tests: panel readout copy cases hold the language guard
2026-11-27 19:57:09 -08:00
dotCooCoo 6927affc24 CI: the cold cache clear waits for the warm leg's own save and reads every cache page
scripts/ci-clear-rolling-cache.py:
- The 160-minute wait is timed from the cache warm leg's start, not from
  the script's start. The clear job starts with the run, and the leg
  starts after gate / select legs and a free runner. The job's timeout
  goes from 170 to 200 minutes to leave room for that delay.
- The leg counts as saving when its Post Setup step (the gate-setup
  action's cache save) starts, not when any Post step starts. A leg that
  ends canceled or failed before that step succeeds deletes nothing and
  exits 1, as a leg that failed before its save already did.
- actions/caches is read one page at a time, sorted by creation, until a
  page holds fewer than 100 entries.

scripts/ci-clear-rolling-cache-tests.py checks the script with recorded
API answers, and Nightly check runs it when either file changes.
2026-11-27 19:55:45 -08:00
dotCooCoo b3d19b5760 Clipboard: the Wayland pipe tests send with no idle limit
a_read_stops_at_its_limit and a_copys_data_is_sent_through_the_pipe_and_closed
send more than a pipe holds through a default `Sends`, whose idle limit is
the app's 2 s `IDLE_WAIT`. When the test thread took more than 2 s between
reads, the send gave up: the first test then got the bytes sent so far
instead of the "larger than 2 MiB" error, and the second got only part of
the data.

Both tests now send through `Sends { idle: LONG, .. }`, as
pastes_that_read_nothing_hold_a_few_sends_at_most does, so each send ends
when the reader takes the data or closes the pipe. The second test still
checks that a default `Sends` uses `IDLE_WAIT`. Every assertion is kept.
2026-11-27 18:00:50 -08:00
dotCooCoo 8b02390a61 Tests: placed document tests wait on handshakes instead of timers
The render crate's placed-document tests decided results by wall-clock
time:

- The gate that holds the background worker opened by itself after 10 s,
  so a test that forgot to open it still passed. It is now a mutex and a
  condition variable with no time limit, opened when the guard that
  shut_gate returns is dropped (also when the test fails).
- settle polled busy() every 5 ms for up to 10 s. It now waits on
  placed_document::wait_idle, which a condition variable signals when
  the last pending bitmap is finished.
- The self-placing document test asserted that drawing took under 10 s.
  It now asserts how deep the drawing went (at least 2 levels, at most
  MAX_DEPTH), read from a test-only counter kept by the depth guard.
2026-11-27 17:03:49 -08:00
dotCooCoo a70c571415 CI: a cold cache warm leg fits its timeout and the old rolling entry goes first
After Rust stable moved to 1.100.1, main's cache warm leg built cold
and was canceled at the 90-minute timeout with three steps still to
run, so no entry was saved and every leg stayed cold. The legs now get
150 minutes, and the cache prune watch runs for 160.

The nightly cold run restores nothing, so the old rolling entry and the
new one would be in the cache together while it saves, over the 10 GB
limit. A cold cache clear job deletes the old rolling entries when the
cache warm leg starts saving (scripts/ci-clear-rolling-cache.py). It
deletes nothing when the leg fails or is canceled, and fails itself so
that re-running the failed jobs runs it again with the leg.

cache-prune.yml prunes after every CI attempt on main, so a re-run of
the cache warm leg does not leave the entry it replaced in place.
2026-11-27 16:29:27 -08:00
dotCooCoo a93ba163b6 Plug-ins: hostile, time budget and cancel tests check errors, not elapsed time
Three tests in crates/plugins/tests/abi.rs passed or failed on how long a
run took (under 5 s or 3 s), so a slow or loaded runner could fail them and
a fast one could hide a run stopped by the wrong limit.

- hostile_modules_fail_within_their_budget (was _fail_quickly) checks each
  module's error. The endless ones must end with the instruction budget, so
  a run stopped by the 60 s time budget fails the test.
- wall_clock_budget_stops_runaway_plugins gives an endless loop two slices
  of instructions: with a time budget of 0 it ends with the time budget at
  the end of the first slice, and with the default one it ends with the
  instruction budget.
- cancelling_stops_a_run_between_two_slices_of_its_budget gives the loop
  two slices: cancelled, it comes back Cancelled; not cancelled, the same
  plug-in ends with the instruction budget.

Each test fails when its check in Plugin::call_with is removed.
2026-11-27 16:25:42 -08:00
dotCooCoo a354d09af4 Scripts: folder listings take their time limit from the session's clock
script::folder::list and script::startup::list measured the 250 ms
listing limit (MAX_SCAN) with a real Instant. script.listInstalled,
script.startup.run and the File > Scripts menu read the folders through
them, so a test that went through any of these got a truncated listing
and missing scripts whenever the disk stalled for 250 ms.

- folder::Clock is either Wall (the real time since the listing started,
  the default) or Fixed (the same time at every check). Both list
  functions take one.
- Session::set_script_listing_clock sets the clock the two commands and
  the menu's listing job use; the app keeps the real clock.
- The script folder, startup script, scripts menu, script run and Safe
  Mode tests list with a fixed zero time, so a slow disk cannot cut a
  listing short. Direct listing calls use the test file's list helper.
- New tests check that script.listInstalled, script.startup.run and the
  menu stop at the session's clock once it is past the limit and list
  everything at the limit.
2026-11-27 16:10:28 -08:00
dotCooCoo a0d922c0f2 Dependencies: take every craft-libs crate from craft-libs main at 51fcc3b041
All storytold/craft-libs crates and the hayro, krilla and linesweeper
patches move from b0d422cf0c to 51fcc3b041, the head of craft-libs main
(craft-libs#3718). craft-libs main now holds what was on next, so the
pin follows main as AGENTS.md rule 10 asks. The move brings the .cmx
writer (craft-libs#2807) and the macOS Save sheet Format menu
(craft-libs#3565). xtask pdf-deps expects the new rev.

The egui patches move from b15ffe9bfc to 932a73b285, the egui rev
craft-libs main pins: craft-ui-contract at 51fcc3b041 calls
Context::set_pointer_move_gate and Context::widgets_at, which
storytold/egui adds after b15ffe9bfc.

App changes the move needs:
- AppShell's title, options, status and hint slots take a version
  function (craft-libs c417cd3050). Each passes |_| None, so every slot
  still runs in every pass.
- PartResult::hover_pos is private (craft-libs 27e8a77145). The track
  cube reads the pointer through Cx::hover_pos, which is None when the
  cube is not hovered, as the old filter on hovered was.
- craft_dxf::write_binary returns a Result (craft-libs#3347, binary DXF
  writing fails on an invalid integer). The binary DXF import test
  unwraps it.

Test changes the move needs:
- An inline slider field now shows its slider before its number field,
  and both carry the field's name (craft-libs#3553). The panel harness
  types into the number field, the part that takes typing, and the
  plug-in effect test reads the number field's value.
- A painted tool cursor's marks use the overlay.cursor token (craft-libs
  a830ff539b), so the cursor test looks for that color.
- The Keyboard Shortcuts area tabs are named by their visible label,
  "Show:" (craft-libs 702cb295c6).
- The gradient stop's color mode menu now opens over part of the stop
  editor. The test clicks the Web Color Sliders row where it lies
  outside the editor, as before, and keeps the same checks.

Cargo.lock adds what the new craft-libs crates depend on
(craft-control-protocol, craft-font-os-windows, ed25519-dalek and its
dependencies, jpeg-encoder 0.7.1 for craft-image-codecs).
2026-11-27 15:53:24 -08:00
dotCooCoo 57230b2fe4 Plug-ins: a multi-value br_table gives every target its values (wasmi 2.0.3)
wasmi 2.0.0 miscompiles a multi-value br_table whose targets take the
same values when another operand sits under those values: the targets
read their values from slots the branch never wrote
(https://github.com/wasmi-labs/wasmi/pull/2106, fixed in 2.0.2). A
plug-in that branched that way got wrong results. 2.0.1 to 2.0.3 also
fix other miscompilations, a use-after-free on resuming a call on
another store, and memory.grow past a declared maximum bypassing the
resource limiter
(https://github.com/wasmi-labs/wasmi/blob/main/CHANGELOG.md).

Only Cargo.lock changes: the workspace requirement "2.0.0" allows
2.0.3, and wasmi 2.0.3 still uses wasmparser 0.228.

The new abi test runs such a branch table for each of its targets; it
fails on 2.0.0 with the plug-in's unreachable trap.
2026-11-27 15:53:05 -08:00
dotCooCoo 7120dd34e7 Tests: panel readout copy cases hold the language guard
The integration binary from #8826 draws the Links panel's Location case in
French and German, and in an integration binary the UI language is one
value for the whole process. Under `cargo test`, which runs the cases on
threads of one process, the other five cases drew frames in French or
German, or reset the language to English under the Location case. Taps
then missed the moved readouts, and two cases failed on each run (on the
Location case and on the first-click copy cases). nextest runs each case
in its own process, so CI passed them.

Each App now holds the same language guard as control_bar_corners.rs and
selection_tools_toggle.rs: the cases run one at a time and the previous
language comes back when the app drops.
2026-11-27 15:51:37 -08:00
dotCooCoo 2eef0b81b5 CI: the gate keeps the compiled workspace crates between runs
Turn on the shared gate's cache-workspace-crates. Each main run's
cache warm leg saves a rolling entry that also holds the workspace
crates' compiled libraries and test executables, and every leg restores
the newest one, so a pull request's shards rebuild only the crates its
changes reach. A cache prune job keeps one rolling entry on main, and a
nightly cold build restores nothing and starts the entry afresh.
2026-11-27 15:32:51 -08:00
dotCooCoo a996a37bec Clipboard: tests wait for each read's answer instead of a time limit
Nine clipboard tests passed only when the test worker answered within
the app's own read limits (2 s for text and file lists, 10 s for a
paste's bitmap): on a loaded machine a slow answer failed them.

The read limits are now a `Waits` value that each `Loads` carries, set
to `Waits::APP` (`LOAD_WAIT`, `IMAGE_WAIT`) where the app opens its
clipboard. A read kept for a later paste takes the same limits, and
the core protocol's paste and reads use them instead of the constants.
Tests pass `Waits::UNTIL_ANSWERED`, so each wait ends when the answer
comes, the owner is released or the worker stops. A wait past the
clock's range has no limit. The values the app uses are unchanged.

The tests' own 5 s and 600 s waits are also unbounded now. Every
assertion is kept.
2026-11-27 15:14:56 -08:00
jmvergesandClaude Opus 5.5 3ce7a70811 PDF export: a black-and-white colorized image is never smoothed
A 1-bit image mask opens as a grayscale image of black and white pixels
colorized by its fill color. The PDF export wrote it as its ink with the
pixels as an 8-bit soft mask and /Interpolate true on both. A RIP that
honors /Interpolate smooths the mask and grays its edges, so where the
same mask is drawn over itself in another ink, as separated garment art
stacks its plates, the ink below shows along every edge. The file's own
PDF part and the EPS export keep the mask hard.

A colorized image whose coverage is only 0 or 255 (the test the
Monochrome compression settings already use, now
`images::bilevel_coverage`) is written without /Interpolate. Grayscale
images keep it. krilla has no 1-bit soft mask or /ImageMask, so the
mask stays 8-bit and just isn't smoothed.

The pixelated colorized image test now uses gray pixels, since a
black-and-white image no longer asks for smoothing whether or not it is
pixelated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:35:24 +00:00
FredApps 5d70217e0c Merge pull request #8826 from yoriswind/codex/8432-panel-readout-copy
M3: Copy complete information-panel readouts on click
2026-11-27 23:29:02 +01:00
FredApps 5aed2d4cfa Merge pull request #8779 from yoriswind/codex/8687-status-bar-snapping
Status bar: add quick snapping controls
2026-11-27 23:28:36 +01:00
FredApps 24e5b56373 Merge pull request #5439 from Taha-Mahmoodi/fix/outline-stroke-context-menu
Fix #5267: Outline Stroke is in the canvas context menu
2026-11-27 23:28:10 +01:00
dotCooCoo 2e2fd7f874 Tests: the font list tests hold back other threads' font changes
Three tests in crates/engine/src/tests/fontlist.rs read the process-wide
font database twice while other tests in the same binary add fonts and
composite fonts to it. A font added between the two reads made the
lists differ, and the installed-family filter did not hide it, because
fonts added with `add_font` count as installed. A stress run of the
engine's font tests failed 4 times in 60.

The font list, Show Similar Fonts and Refresh Font List tests now hold
`test_fonts::steady_fonts` across their reads, as the font menu's tests
do, and compare whole lists. The installed-family filter and the 20-try
generation loop are removed.
2026-11-27 12:34:42 -08:00
jmvergesandClaude Opus 5.5 c2cfb90f4b .ai save: no orphan styles for type written as outlines
The styles that link type's colors to their swatches were made before
the writer knew whether the type's story would be written. Type written
as its outlines after all (a thread the text document can't hold) left
its style behind, named by nothing. Such a style is now written only
when a story names it.

Since the previous commit they are written on a large canvas too,
where no other art style is: they hold no lengths to scale. The large
canvas warning now says "no art styles of objects", the comment beside
it says why, and the large canvas test (renamed) checks that spot type
there reads back linked with no warning.

A note on the previous commit's message: "the saved file opened with
the type in a plain process color" is only true when the saved file is
read from its editing data (another app, or VectorCraft once the
VectorCraft document it carries no longer matches its pages). A plain
reopen in VectorCraft restores that document and already kept the ink.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:32:20 +00:00
dotCooCoo 2d20f54607 Tests: ui-egui tests that load a color profile run in their own process
The canvas's frame key holds the loaded profiles' generation
(cms::profiles_generation), which every profile load or removal in the
process raises. Four ui-egui tests loaded and removed a profile in the
shared test process, so a canvas test running beside them saw its color
key change between two frames:
a_worker_frame_of_other_color_settings_is_not_shown saw the generation go
from 0 to 2, and a_pan_after_the_settling_frame_copies did not copy the
pan because its key no longer matched the kept frame. Both fail in the
same way when a profile is loaded and removed on another thread in the
middle of the test.

- testing::in_own_process runs one test alone in a child test process,
  as the crate's other tests that change process-wide color state
  already do.
- The color wheel gamut reload test, the two Proof Setup tests with a
  removed profile and the Save PDF summary test with a removed profile
  call it first.
2026-11-27 12:30:23 -08:00
jmvergesandClaude Opus 5.5 68fdaf8e79 .ai save: type in a spot ink keeps its swatch link
Type in a spot ink or a global process color was saved to the text
document as its process values alone (a /SimplePaint with key 0), so
the saved file opened with the type in a plain process color: off its
ink's plate on separations, and white type in a white ink on none.
Saving warned about it ("swatch links of its colors").

A run's fill or stroke now names (key 5 of a /CAITextPaint) an art
style of one paint, its fill alone on (`0 1 Xd`), whose paint is the
color as a path's fill writes it (`x`, `Xx`, `Xk`, or `Xs` for
Registration). That is the form the .ai reader takes the ink and the
tint from since the previous change; key 0 keeps the process values.
Each style is read back with the reader's own parser before it is
used, and a link is kept only when it gives the same swatch and tint.
Those runs no longer count among the attributes of type left out;
a link to a process swatch that isn't global still does, and the
warning's text now says so.

Test in crates/eps/src/ai_editing/tests.rs. The parity doc has the row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 19:02:54 +00:00