Commit Graph
21966 Commits
Author SHA1 Message Date
.CooCoo 2cabf8ddd6 Merge pull request #9854 from dotCooCoo/fix/cms-scoped-working-settings
Color: with_active keeps the working settings on its thread too
2026-11-27 21:37:24 -08:00
.CooCoo 61f41edbc3 Merge pull request #9851 from dotCooCoo/fix/complexity-tests-count-work
Tests: complexity tests in effects, brush, tools and trace count work instead of timing it
2026-11-27 21:37:11 -08:00
.CooCoo 4947e21b65 Merge pull request #9843 from dotCooCoo/fix/text-tests-no-wall-clock
Tests: text tests count work and wait on handshakes instead of the clock
2026-11-27 21:36:58 -08:00
.CooCoo 990637f30d Merge pull request #9839 from dotCooCoo/fix/plugins-tests-without-timing
Plug-ins: loader, registry and dialog tests wait on handshakes instead of spin counts
2026-11-27 21:36:45 -08:00
.CooCoo 0b07f8b0bd Merge pull request #9842 from dotCooCoo/fix/screenshot-test-app-clock
Tests: the screenshot trial steps the app's clock instead of the wall clock
2026-11-27 21:36:16 -08:00
.CooCoo 8529caaba7 Merge pull request #9855 from dotCooCoo/fix/dimension-preview-bounds-group-edges
Dimension: Linear points snap onto preview bounds edges, groups and stroked type
2026-11-27 21:36:07 -08:00
.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 c72b9c8f7a Color: with_active keeps the working settings on its thread too
cms::with_active put its settings in place of the active settings on
its thread, but cms::working() still read the process-wide working
settings. Code inside with_active could therefore read active settings
from one context and working settings from another, and a set_active
on another thread changed the working half while the scope ran.

Inside with_active, working() now gives the working settings of the
context it was given: the ones for_document put a document's profiles
in place of, else that context itself. use_document_profiles and
for_document still read the process working settings, because they
install or keep process-wide contexts. Outside with_active nothing
changes. The app calls with_active only with for_document contexts
(canvas panes and the color mode change on open), whose working
settings are the process ones, so the app reads the same working
settings as before.
2026-11-27 19:56:23 -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 2fc711da77 Dimension: Linear points snap onto preview bounds edges, groups and stroked type
With Use Preview Bounds on, a Linear point landed only on the four corners
of the preview bounds of a path or compound path. A group's own stroke or
effects and stroked type widen the bounds that W and H show, but gave no
corner to pick, and a click beside a stroked edge snapped to the stroke's
centerline.

- Stroked type, and a group or layer with fills, strokes or effects of
  its own, now give the corners of their preview bounds. A group's corner
  is held against the member path whose own box reaches nearest to it. A
  point on type has no link and stays where it was picked. A group or
  layer holding dimension artwork gives no corner, since its bounds take
  in the dimensions.
- A click that no anchor, corner, line end, guide, grid or pixel snapping
  places lands on the nearest point of an edge of the preview bounds
  within 8 pixels when no segment or dimension line is nearer. The point
  is held against the path holding the edge's nearer corner.
- Group members count against the same per-move member work as compound
  paths; a group holding more than one move may read is not read again
  for that revision.

Docs: docs/dimensions.md, docs/target-app-parity.md.
2026-11-27 18:55:32 -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 baad987df5 Tests: complexity tests count work instead of timing it
Eight tests in effects, brush, tools and trace bounded their run time
with Instant::elapsed. Each now counts the work the bounded code does
and asserts that count instead:

- effects: the subpaths Offset Path offsets after Transform copies
  move behind it (1 for the rectangle, 5 for five leaves)
- brush: the calls a misbehaving bend map gets, at most what the
  fitting depth and the chord count allow
- tools: the points Liquify's simplify measures (five per anchor) and
  the anchors it moves (one each), and the objects the eyedropper's
  hit tests may visit (within the work limit)
- trace: the named logo colors compared with those kept (ten per
  color), the lookups that drop repeated swatches (one each) and the
  swatch colors compared with the picture's colors (each distinct
  swatch once per color)

Each count fails when the bounded step is removed or made to repeat.
2026-11-27 17:58:50 -08:00
dotCooCoo 6e88608a4d Plug-ins: loader, registry and dialog tests wait on handshakes instead of spin counts
The plug-in loader, registry and dialog unit tests decided their results with
yield-count spins (up to 100,000,000 tries) and a 10 s recv_timeout. On a
loaded machine a spin could run out before a worker sent, and a test failed
without a fault.

- Loader tests block on the workers' outcome channel (Loads::record_next) and
  on the jobs' start channel. The stuck-thread tests keep the outcome channel
  of the dropped load and receive the stuck job's outcome, which its worker
  sends after it stops counting the thread as stuck. The window test checks
  that taking outcomes leaves the start limit where it was.
- The registry revision test holds the set and waits for a hook that install
  runs right before it asks for the write lock. The folder-order test drives
  the load on the test thread and receives the other two files' outcomes
  while the first file waits.
- The dialog test counts the conditions Manifest::visible checks and fails
  once it checks more than one per named parameter, so a check that does not
  end fails the test.

Every assertion is kept.
2026-11-27 17:11:33 -08:00
dotCooCoo 90749b1646 Tests: text tests count work and wait on handshakes instead of the clock
Six tests in vectorcraft-text passed or failed on how fast the machine
ran them. They now check work counts and handshakes:

- Layout speed (1,000 characters, and 10,000 under each composer):
  laying out twice the text takes at most 2.5 times the steps, and at
  most 32 steps a character. The steps are the bytes shaped, the clusters
  the single-line composer reads and the line starts the every-line
  composer weighs at each break, counted by a test-only counter.
- Many one-run paragraphs: the runs the paragraphs look through stay
  within 4 per paragraph.
- A contour-point caret on a huge composite reads no more glyphs than
  the lookup's budget, and a shape whose readings all fail tries no more
  readings than the cap.
- The font menu's quick list is read on the test thread while the font
  scan is held. A list that waited for the scan would hold the installed
  fonts, so the list's content decides the result. The 10 s timeout only
  releases a call that hangs.

Two font folder tests slept 50 ms to get past the file system's clock
tick. They now set the folder's modification time with
File::set_modified.
2026-11-27 17:10:42 -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 fec0e5ab75 Tests: the screenshot trial steps the app's clock instead of the wall clock
tests::automation::a_screenshot_is_issued_by_the_apps_frames_and_written
failed on a loaded machine with "screenshot 0 timed out: no frame was
presented within 8 s": the capture's settle delay and its 8 s deadline
started on the wall clock inside ControlChannel::settle, so a slow run
reached the deadline before a frame issued the capture.

The app now times control requests and captures on its own clock,
VectorcraftApp::instant: the monotonic clock, or now_override seconds
after the app was made when a test sets it. run_control admits each
screenshot with ControlChannel::settle_at at that instant, and the
drain, the request-expiry check and issue_captures read the same
clock. Behavior outside tests is unchanged.

The test starts the app's clock twice the deadline past the wall clock
and steps it one frame per pass, so the capture is issued after its
settle delay on that clock. With the admission or issue still on the
wall clock, the test fails with the timeout error above.
2026-11-27 16:45:53 -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