Commit Graph
629 Commits
Author SHA1 Message Date
dotCooCoo 41ab3908ef Dependencies: craft-libs moves to 2680a3b3f and egui to 07c20531
craft-libs main at 2680a3b3f adds #4364 (its egui pin moves to
07c20531, which VectorCraft's egui lines now match), #4425, #4409, #4414,
#4406, #4349, #4393, #4392, #4398, #4415, #4411, #4402, #4400, #4417,
#4399, #4407, #4375, #4428 and #4451. winit stays at 0dfcec0e, the rev
craft-libs pins. craft-nightly and craft-web-api move with the other
craft-libs crates, and xtask pdf-deps checks the new rev. Cargo.lock:
epaint_default_fonts now depends on brotli 9.1.3 and brotli-decompressor
6.3.2.
2026-11-30 02:52:53 -08:00
dotCooCoo 32a5fef78d Layers: a selection change keeps the panel's row order
The Layers panel built its row order again on every selection change:
each change made a new Tracked for the rows, and the rows reported no
order revision, so the panel asked every row for the rows inside it
(7 calls for the 6 rows of the new test's document).

- LayerRows reports LayerTree::order_revision: a hash of the document,
  the open rows, Show Layers Only and the isolated node. The selection,
  the highlighted rows, the current layer and the names are not in it.
- refresh_rows writes new rows into the kept Tracked while the document
  (uid and revert count) stays the same, and makes a new Tracked for
  another document or after File > Revert.
- The craft-libs pin moves from 186a229c8 to aa7e668ec, current
  craft-libs main, which has craft-libs#4319 (LayerTree::order_revision).
  The winit rev moves to 0dfcec0eb, as craft-libs pins it; egui stays
  at 14c39fed1. xtask pdf-deps checks the new rev. craft-nightly keeps
  the rev main pins it at.

Two tests failed on the new craft-libs:

- canvas::tests::a_selection_drag_draws_its_marks_in_the_frame_the_pointer_moves:
  since craft-libs#4143 a frame runs one pass where it ran two, and the
  bounding box, Live Corners, hollow corners and shape widgets were drawn
  before the tool host took the frame's pointer event, so the box showed
  at the old corner. They are now drawn after it, into paint slots kept
  in their old order.
- tests::nativemenu::applying_a_dialog_preview_reads_the_menus: since
  craft-libs#4350 the closed dialog's angle field gives up the keys one
  frame sooner, so the menus are sent again without the text-editing
  gate within the frames the test ran. The test now waits for the gate
  and counts the read and that send apart.
2026-11-29 21:37:32 -08:00
Dylan M. Taylor 970b34a727 feat(nightly): wire craft-nightly for self-isolated direct launch (#10088)
* feat(nightly): wire craft-nightly for self-isolated direct launch

* fix(nightly): answer plain version before resolving profile root

* test(nightly): retain exact version and saved profile coverage
2026-11-29 22:04:23 -05:00
FredApps 76948614e2 Merge pull request #10125 from storytold/fix/web-binaryen-133
Pin Binaryen 133 for the web release optimizer
2026-11-29 23:26:12 +01:00
Codex c3c8a0a17a Pin Binaryen 133 for the web release optimizer 2026-11-29 21:28:17 +01:00
.CooCoo cdafb992f3 Merge pull request #10095 from dotCooCoo/ci/warnings-G2
CI: app manifests and cdylib doc tests no longer warn
2026-11-29 10:57:43 -08:00
dotCooCoo c2230ee61e CI: app manifests and doc tests no longer warn
- apps/vectorcraft-web: egui_extras moves to the wasm32 dependencies.
  Its only use is src/web.rs, which builds only for wasm32, so cargo
  reported it unused on native builds.
- apps/vectorcraft: drop the socket2 dev-dependency. Its loopback
  tests left control_server in #8800 and nothing uses it now.
- xtask: the doc-test steps (`cargo xtask ci shard` and the workspace
  doctests) leave out packages whose only library target is a cdylib,
  dylib or staticlib. Cargo printed "doc tests are not supported for
  crate type(s) `cdylib`" for vectorcraft-thumbnail-handler. Packages
  without a library stay selected, so the shard keeps its features.

Warnings on the build host, before and after (cache warm shard
`cargo test -p vectorcraft-mcp -p vectorcraft -p vectorcraft-cli
-p vectorcraft-web -p xtask --lib --bins --no-run` on a fresh build, and
`cargo test -p vectorcraft-thumbnail-handler --doc`): 4 before, 1 after.
The one left is `vectorcraft-testkit` in apps/vectorcraft-cli: only the
integration tests use it, and the warm step builds only library and
binary tests.
2026-11-29 09:25:58 -08:00
ruchirguitar a4659724f6 Merge main into feat/spell-check
Cargo.toml: #10049 moved craft-libs to 186a229c; the font store crates this
branch adds move with it, so every craft-libs crate stays at one rev.
2026-11-29 22:41:45 +05:30
FredApps 69e325e462 Pin craft-libs 186a229c for the VectorCraft release
Carry the upstream properties-dialog tab retention and layout fixes into the tested release pin. Retain the same egui revision and dependency graph.
2026-11-29 15:09:23 +01:00
FredApps 36ec203ef5 Pin current craft-libs and its matching egui revision 2026-11-29 12:44:11 +01:00
FredApps 6f3703bbab Advance shared PDF pin and honor Standard-mode Tab hiding
Keep the native and web craft-libs pins, Cargo.lock and PDF source checks on 57c8c8d4. Preserve the matching egui pin. Consult the shared Standard-mode chrome state for visibility and for show-panel requests; the dock already honors that state when drawing.
2026-11-29 08:38:26 +01:00
FredApps 0488c58928 Pin VectorCraft to current craft-libs and its matching egui
Keep native and web manifests, the lockfile, and the PDF source guard on the same craft-libs revision. Align the egui patch revision with craft-libs to retain one crate source.
2026-11-29 07:48:25 +01:00
dotCooCoo 3b119db0d4 Merge main into fix/craft-libs-869c970 2026-11-28 22:31:06 -08:00
dotCooCoo a88b5ebe7e Dependencies: craft-libs 869c9704d9
Moves every craft-libs crate to 869c9704d9. The Image Trace test reads the dimmed Stroke row's slider by role, since the row now holds a slider and a number box under one name.
2026-11-28 22:31:06 -08:00
.CooCoo 67f9daecb8 Merge pull request #9932 from makesomethingshit/fix/9814-web-file-drop-once
Web: route each dropped file once
2026-11-28 22:17:33 -08:00
dotCooCoo cc7d17d70c Dependencies: craft-libs 8bea6009f9
Moves every craft-libs crate from 07a8c471ed to craft-libs main at
8bea6009f9.
2026-11-28 20:49:41 -08:00
dotCooCoo 3496bbc6a2 Dependencies: craft-libs 07a8c471ed 2026-11-28 19:36:20 -08:00
ruchirguitar 8d3895d491 Merge main into feat/spell-check
Cargo.toml: main moved craft-libs to 610c8679; the font store crates this
branch adds move with it, so every craft-libs crate stays at one rev.
2026-11-29 08:29:24 +05:30
makesomethingshit 52553034cc Web tests: assert the browser drop counts without explicit panics 2026-11-29 11:42:06 +09:00
dotCooCoo 19fecfb749 Dependencies: craft-libs 81bca5c8e2
Every craft-libs crate moves from f762f98a to 81bca5c8e2 (craft-libs
main). The new rev adds the title bar's item gap, docking of part of a
collapsed column, the tool rail's footer rule, disabled accessibility
nodes that ignore actions, and built-in themes that load without a
cycle search. VectorCraft builds on it without other changes.
2026-11-28 18:09:21 -08:00
makesomethingshit ed7a50825f Web: test that the shell takes each browser drop once 2026-11-29 10:54:13 +09:00
dotCooCoo 9ed5e06ff3 Dependencies: craft-libs f762f98a, with the status-bar zoom look and the compass clear of the scroll bars
- Every craft-libs crate moves from 610c86792a to f762f98a (craft-libs
  main), which adds the fixed corner-widget inset, the ruler corner's
  plus, popover padding, and a native window's move recorded once.
- The status bar's Zoom field uses ZoomField::status_bar, so it draws
  without an outline in the status bar's look.
- The Rotate View compass is placed in CanvasScrollbars::clear_of
  instead of a copy of the scroll bars' sizes.
- The tools' corner-widget inset is public, and a test holds it equal
  to CornerWidgets::INSET, the inset the canvas draws the widgets at.
2026-11-28 17:12:28 -08:00
dotCooCoo a7373ec7d6 Dependencies: take every craft-libs crate from craft-libs main at 610c86792a
Every storytold/craft-libs crate and the hayro, krilla and linesweeper
patches move from 51fcc3b041 to 610c86792a, the head of craft-libs main.
xtask pdf-deps expects the new rev.
2026-11-28 14:17:43 -08:00
Dylan M. Taylor 89a5b64170 ci(nightly): roll out signing pin, macOS docs layout, and profile reopen fix (#9935) 2026-11-28 14:37:16 -05:00
dotCooCoo c7893667de Fix #5311: on Wayland with no cursor theme, the tool cursor is not painted beside the system pointer
The framework port removed the check for a missing cursor theme. The
framework's cursor service paints a tool cursor only while the shell has
Caps::SYSTEM_CURSOR, and the shell always had it on Linux. On a Wayland
session where no cursor theme loads, winit cannot hide or set the
pointer, so the compositor's pointer stayed and the tool cursor was
painted next to it.

cursor_theme.rs gets theme_usable and theme_missing back, and
shell_caps leaves out Caps::SYSTEM_CURSOR on Wayland when no theme
loads. The window then shows the system pointer alone, as it did before
the port (#5734). Sessions with a cursor theme, X11 and XWayland are
unchanged.
2026-11-28 09:35:35 -08:00
ruchirguitarandClaude Opus 5.5 38da965223 Merge main into feat/spell-check
As asked in review. Cargo.toml: main moved craft-libs to 51fcc3b0; the font
store crates this branch adds move with it, so every craft-libs crate stays
at one rev.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 21:54:53 +05:30
.CooCoo 8cdd897b23 Merge pull request #9909 from dotCooCoo/feat/windows-thumbnail-handler
Windows: Explorer shows thumbnails of VectorCraft documents
2026-11-28 08:03:20 -08:00
makesomethingshit 0f19b358b0 Web: route each dropped file once 2026-11-29 00:16:33 +09:00
dotCooCoo 6e165be442 Windows: thumbnail leaves OUT unchanged when it can't rename into place
`vectorcraft-cli thumbnail` wrote OUT with `write_atomic`, which copies
into the target when the folder refuses the temporary file or the
rename, so a run stopped by the time limit during that copy could leave
a partial PNG. It now writes a temporary file beside OUT and renames it
over OUT; when the rename fails it returns the error, removes its own
temporary file and leaves OUT unchanged. A file already at the
temporary name is left in place.

docs/target-app-parity.md names the DLL in the `regsvr32 /u` command.
2026-11-28 06:16:18 -08:00
dotCooCoo 845a6fd68a Windows: Explorer shows thumbnails of VectorCraft documents
The new apps/vectorcraft-thumbnail-handler crate builds
vectorcraft_thumbnail_handler.dll, a thumbnail handler (IThumbnailProvider
with IInitializeWithStream) for .vectorcraft, .drawcraft and .vctemplate
files. Explorer passes it the file's bytes. It writes them to a file in
%USERPROFILE%\AppData\LocalLow\VectorCraft\Thumbnails (the temp folder when
that can't be made), runs `vectorcraft-cli thumbnail --size N` from the DLL's
folder on that file, and returns the PNG as a top-down 32-bit bitmap with
premultiplied alpha, at most 1024 pixels on its longer side. A file larger
than 256 MiB, a failed run, or a run longer than 25 seconds returns an error,
and Explorer shows the file's icon. Explorer gives the handler the file's
bytes and not its path, so a linked image found only relative to the
document's folder shows the preview saved with it.

`regsvr32 vectorcraft_thumbnail_handler.dll` registers the handler for the
current user under HKCU\Software\Classes, and `regsvr32 /u` removes the class
key and each extension's ShellEx key that names it. The Windows packages do
not build, ship or register the DLL yet.

The COM code is Windows-only and has a module-scoped unsafe_code allowance.
The registry values, the stream limit, the PNG conversion and the
vectorcraft-cli run build on every system, and their tests run in CI.
2026-11-28 03:59:10 -08:00
dotCooCoo bd833469ca Linux: thumbnail tests clean up their temp files
Each thumbnail test now writes its documents and PNGs into its own
tempfile::TempDir, which is removed when the test ends, instead of a
per-process folder in the temp folder that was never removed. The
progress-doc line now says the tests cover everything but the
20-second limit.
2026-11-28 03:47:13 -08:00
dotCooCoo b12c27e518 Linux: file managers show thumbnails of VectorCraft documents
The deb, rpm and tar.gz packages install
share/thumbnailers/ai.storyteller.vectorcraft.thumbnailer for
application/x-vectorcraft and application/x-vectorcraft-template. It runs
the new `vectorcraft-cli thumbnail --size N IN OUT`, which opens the
document as the app does and writes an 8-bit RGBA PNG of the first
artboard, N pixels (1 to 1024, default 256) on its longer side.

A file larger than 256 MiB, one that can't be opened, a document that
shows nothing, or a run longer than 20 seconds writes no PNG and exits
non-zero, so the file manager keeps the file's icon. The Nightly deb and
rpm leave the entry out, as they leave out the MIME package.

The render moves into vectorcraft_render::encode::first_artboard, which
the embedded native preview also uses.
2026-11-28 02:39:17 -08:00
dotCooCoo d7711e41bc Merge main into fix/prefs-dir-font-scans-own-root 2026-11-28 01:28:42 -08:00
.CooCoo 0b933e7a36 Merge pull request #9127 from dotCooCoo/feat/plugins-web-worker
Plug-ins: the web build checks plug-ins and runs filters in a Web Worker
2026-11-28 01:04:54 -08:00
.CooCoo 150998c32d Merge pull request #8990 from dotCooCoo/feat/web-stylus-wheel
Web: the Paintbrush records an airbrush pen's stylus wheel
2026-11-28 00:10:14 -08:00
.CooCoo c2b8d7ce75 Merge pull request #9822 from dotCooCoo/fix/automation-args-handshake
Tests: automation root tests wait for the app to exit, not for a 30 s deadline
2026-11-27 23:35:58 -08:00
dotCooCoo 689b44ff13 Web: the stylus wheel reads into the framework's pen source
main moved the pen input onto the craft UI framework's PenSource, which
queues each reading and pairs the readings with a frame's pointer moves.
The web build now writes one reading per move, coalesced positions
included, with the wheel from Pointer Events' tangentialPressure, in
place of the StylusFeed moves the branch used before. The wheel rules
are unchanged: 0 reads as no wheel until the pen reports another value,
and another pen, the other end, a canceled press or a pen that left the
hover range reads it afresh.

The canvas-side pairing (frame_moves, StylusFeed::set_move) is gone on
main, so the branch's two ui-egui tests for it are dropped; the
vectorcraft-web tests check the readings written for each move.
2026-11-27 23:15:28 -08:00
dotCooCoo 875f49fc8d Merge main into feat/plugins-web-worker
The plug-in runtime keeps main's JavaScript plug-ins beside the web worker's module bytes and checked loads: a JavaScript plug-in's bundle is kept for the worker like a module, and load_checked loads it from its bundle.
2026-11-27 23:05:07 -08:00
.CooCoo f15b8fc2bb Merge pull request #9821 from dotCooCoo/fix/macos-clippy-dead-code
macOS: clippy -D warnings passes on the desktop app again
2026-11-27 22:19:42 -08:00
.CooCoo d9abaae27b Merge pull request #9805 from dotCooCoo/fix/issue-6310
Fix #6310: macOS Copy puts the PDF and SVG on the pasteboard
2026-11-27 21:44:21 -08:00
dotCooCoo fa7016fa68 Tests: an app that exits by the deadline passes when its output arrives later
exit_output stopped the binary and failed the test whenever a pipe's output
had not arrived by the 120 s deadline, even when the binary had already
exited and its readers were still delivering. It now checks the exit status
first: a binary that has exited gets 10 more seconds for its output, and only
a binary still running at the deadline is killed, reaped and reported.
2026-11-27 21:42:42 -08:00
.CooCoo b4fbaf9826 Merge pull request #9819 from dotCooCoo/fix/single-instance-test-handshakes
Single instance: hand-off tests no longer depend on how fast the machine is
2026-11-27 21:38:30 -08:00
.CooCoo a628629f7d Merge pull request #9857 from dotCooCoo/fix/file-locks-unlock-on-drop
Locks: dropping a lock holder unlocks its file
2026-11-27 21:37:36 -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
dotCooCoo 74f5b8c1bd Nightly: a session that fails to start unlocks its lease
Session::begin locked the lease and could then return an error while
checking or writing the record, before a Session existed. On those
paths the lease file was dropped without unlocking, so a child process
that was starting kept the lock held.

The lock now lives in a Lease guard that unlocks on drop, and it covers
the ended session and both error paths. New tests hold a copy of the
handle while the record path is a folder and while the record cannot be
written.
2026-11-27 21:25:32 -08:00
dotCooCoo b3917f89e8 Locks: dropping a lock holder unlocks its file
The plug-in store turn, the Data Recovery area hold, the script grants
lock and the hang report file each released their file lock only by
closing the file. The lock stays held while any copy of the handle is
open, and a child process that any thread starts holds a copy until it
runs its program. While one was starting, the next turn on the plug-in
store waited, an app found its own recovery area busy, a grants change
timed out, and the next launch left a hang report alone.

Each holder now unlocks the file when it is dropped, as #9837 does for
the nightly session and the GPU start file. The engine's three locks
share one type, `store::LockedFile`. A left hang report that a launch
locks to read is held the same way.

Each new test keeps a copy of the handle open, drops the holder and
takes the lock again.
2026-11-27 18:58:40 -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 ee3e7611b4 GPU: an ended start unlocks the start file
The start file's lock had the same fault as the nightly lease: it was
freed only when the file was closed, so a child process that held a
copy of the handle until it ran its program kept the file locked. The
next start then took the file for another copy of the app that was
starting, and did not read or write it. Under cargo test,
gpu::tests::a_damaged_or_unreadable_start_file_is_ignored failed this
way while the installed-root test started its child process.

StartFile now unlocks the file when it is dropped, and a new test holds
a copy of the file's handle while a start ends. The test guard from
e94b74eea4 (by mockydevs), whose write side was removed in #8800, kept
only its read side and no longer stopped any test from starting a
program. The unlock replaces it, so the guard has been removed.
2026-11-27 16:54:40 -08:00
dotCooCoo 37567e8c5a Nightly: an ended session unlocks its lease
A nightly session's lease is a file lock, which the system frees only
when every copy of its handle is closed or the lock is unlocked. A
child process that any thread starts holds a copy of every handle until
it runs its program. When a session ended during that time, by its
controlled return or by the caught panic that frees the lease for the
successor a graphics restart starts, the next launch found the lease
held and kept no session record. Under cargo test, three
nightly_session tests failed this way while the installed-root test
started its child process.

Session now unlocks the lease when it is dropped. A new test holds a
copy of the lease's handle while a session completes and while one is
dropped, and the next session takes the lease each time.
2026-11-27 16:46:36 -08:00
dotCooCoo 51302b2de0 Tests: the installed profile root test runs in its own process
profile::tests::the_installed_root_is_used_once_and_must_be_absolute
(from #9233) installs the launch's profile root, which a OnceLock holds
for the rest of the process. Under cargo test the other tests of the
vectorcraft and vectorcraft-cli binaries run on threads of that process
and read the settings folder from it. When the root was installed while
prefs_dir::tests::the_font_scans_read_the_fonts_folder_next_to_the_settings
ran, the Fonts folder it had set and the settings folder it read next
differed, and the test failed. nextest runs each test in its own
process, so CI passed it.

The installed-root test now runs again in a child process of the test
binary, as crates/engine/src/tests.rs's in_own_process does, and the
font test asserts that no root was installed beside it. With one test
thread the font test runs after the installed-root test, so without
the change it fails on every run.
2026-11-27 16:29:40 -08:00