Commit Graph

665 Commits

Author SHA1 Message Date
.CooCoo 4596f1a8be Merge pull request #10374 from dotCooCoo/fix/swallowed-regression-guards
Tests: guards check the environment, not the output under test
2026-12-01 14:10:23 -08:00
.CooCoo a5a3e40c5e Merge pull request #9087 from dotCooCoo/feat/scripts-print-printer
Scripts: Document.print prints to an installed printer and app.printerList lists the printers
2026-12-01 13:11:17 -08:00
yoriswind 93286c8deb Dock panels inside the window on native Wayland (#10341) 2026-12-01 11:14:03 +01:00
yoriswind 45fd2a5347 Troubleshooting: report the active graphics driver (#10348) 2026-12-01 10:59:09 +01:00
dotCooCoo 1dbbf87436 Tests: guards check the environment, not the output under test
Several tests returned early when the code under test gave back nothing,
so the regression they guard against passed. Each of those guards now
checks only what the host provides (an installed face, the bundled
fonts), and the output itself is asserted:

- PDF live text: the lam-alef face is no longer picked by whether its
  type imports (#6072); Insert Kashidas asserts the kashida and the
  imported type.
- Effects and Expand Appearance on type assert the outlines and the
  drawn type when the default face is installed.
- The OpenType panel's Stylistic Sets test asserts sets with the
  bundled fonts.
- Thumbnail worker tests assert that the worker starts; the memory
  peak test asserts a reading.
- The json2 test checks the interpreter's Date, replace and RegExp on
  every run, before looking for json2.js.
- Devanagari arrow keys and the Arabic narrow-area wrap assert the
  layout they set up.
2026-11-30 21:56:24 -08:00
dotCooCoo ea8352c5d7 Merge main into feat/scripts-print-printer 2026-11-30 20:57:56 -08:00
dotCooCoo 1b2da536cc Merge main into feat/scripts-print-printer 2026-11-30 15:25:50 -08:00
.CooCoo 90e08df23f Merge pull request #10312 from dotCooCoo/fix/ui-frame-stability
Menus: a menu opens under its title on a monitor beside a portrait one
2026-11-30 15:02:38 -08:00
.CooCoo f4f42de9d8 Merge pull request #10239 from dotCooCoo/fix/plugins-whole-tree-reads
CI: declare the files each crate reads in other crates, for test selection
2026-11-30 14:05:36 -08:00
.CooCoo b470a4b65a Merge pull request #10130 from dotCooCoo/fix/wayland-pinch-zoom
Canvas: a touchpad pinch zooms on native Wayland
2026-11-30 12:38:20 -08:00
dotCooCoo 58923e0d78 Menus: a menu opens under its title on a monitor beside a portrait one
Moves craft-libs to a5669ed2f, which places overlays in the room of the
monitor the window is on (craft-libs f31beb26d, merged in #4506). The
old room assumed monitors tile the desktop by their size, so on a
landscape monitor to the right of a portrait one the File menu opened
at (726, 442), far from its title, with scroll arrows.

The new pin is craft-libs main just before #4278, whose dialog changes
need VectorCraft test updates that come with a later pin bump.

The new test menu_on_second_monitor opens the File menu with the window
on the landscape monitor at 1x and 1.5x; it fails on the old pin with
the menu at (726, 442).
2026-11-30 12:21:21 -08:00
.CooCoo b95ea7d0ce Merge pull request #10287 from dotCooCoo/fix/xwayland-tablet-stylus
Linux: the log says why a pen's window stays on Wayland, and names the pens XWayland lists
2026-11-30 12:20:06 -08:00
.CooCoo cbfeaab604 Merge pull request #10265 from dotCooCoo/fix/issue-2654
Graphics: start on Mesa's software renderer when no adapter can show the window
2026-11-30 12:01:10 -08:00
dotCooCoo b3def332ff Merge main into feat/scripts-print-printer 2026-11-30 11:40:16 -08:00
dotCooCoo ab4e56934b Linux: the log says why a pen's window stays on Wayland, and names the pens XWayland lists
Part of #5622. On a Wayland session winit 0.30 receives no input from a
pen, so the app opens its window through XWayland when a pen is attached
(#4967). When it did not, the log said nothing, and a report could not
tell a pen that was not found from a session with no X display.

- On a Wayland session the log now says why the window opens on Wayland:
  no pen in /proc/bus/input/devices, the device list could not be read,
  VECTORCRAFT_NATIVE_WAYLAND is set, or there is no X display (DISPLAY is
  unset, as in the Flatpak, which has --socket=fallback-x11). The
  pen-found line names the pen, and the missing-libraries warning no
  longer says Linux Display Server is X11 when a pen chose XWayland.
- Under X11 the tablet reader logs the pens the X server lists (for
  example XWayland's "xwayland-tablet stylus:16"), again when that list
  changes, and the first event from each pen.
- docs/development.md lists the new log lines, the Flatpak override that
  gives it an X display, and that GDK_BACKEND=x11 does not move the
  window to XWayland.
2026-11-30 07:48:08 -08:00
dotCooCoo 0b3cf56b81 Graphics: closing the window after a lost device no longer panics
After the graphics device is lost, a frame the device could not present
stays acquired by the window's surface. When the window closed, eframe
released the surface, and wgpu's Vulkan backend panicked with "Trying to
destroy a SwapchainAcquireSemaphore that is still in use by a
SurfaceTexture" (gfx-rs/wgpu#9277), so the app stopped with an error.

GraphicsLoss now remembers that a loss happened after the frame handled
the report. When the window closes after a loss, the process ends in
on_exit once the app has saved what it keeps on quitting, before the
window's graphics are torn down, on every platform. This is the exit the
macOS accessibility quit already takes (#661); a loss during start-up
still goes to the adapter restart (#651).

Fixes #6374
2026-11-30 06:59:34 -08:00
dotCooCoo 83a8e775d4 Graphics: start on Mesa's software renderer when no adapter can show the window
Part of #2654. On Linux and the BSDs, when no graphics adapter could
show the window (no wgpu backend started, or the restarts left no
adapter), the app ended. It now starts once more with
LIBGL_ALWAYS_SOFTWARE=1 and VECTORCRAFT_GPU_SOFTWARE=1 and says in the
status bar that it draws on the CPU. When that start also fails, or on
Windows and macOS, or with WGPU_BACKEND, WGPU_ADAPTER_NAME or
LIBGL_ALWAYS_SOFTWARE set, the error names the backends the driver
needs.

wgpu draws with Vulkan, OpenGL 3.3 or OpenGL ES 3.0. Intel's Ironlake
graphics (8086:0046) has OpenGL 2.1 alone, so the window's surface
failed with "Failed to create surface for any enabled backend: {}"
before any adapter was listed, and gpu::finish restarted only without
an adapter that had been picked.
2026-11-30 06:34:14 -08:00
dotCooCoo 506733c3b6 Merge main into fix/wayland-pinch-zoom 2026-11-30 05:01:07 -08:00
FredApps 68dbab8b90 Merge pull request #10236 from storytold/fix/vectorcraft-desktop-interactions
Restore desktop saving, Hand panning and font picker space
2026-11-30 13:24:15 +01:00
Codex 847e407ab6 Honor pre-refactor window preferences and preserve Hand placement clicks 2026-11-30 12:16:39 +01:00
Codex 99e8655ef6 Restore the main window on startup and enlarge tool rail icons 2026-11-30 12:09:59 +01:00
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 dcdbd3cc1b CI: declare the files each crate reads in other crates, for test selection
Test selection in the shared gate (`select-tests`) runs the tests of the
crates a change reaches. A crate that compiles or reads another crate's
files lists them under `[package.metadata.craft]` in its Cargo.toml:

- vectorcraft-plugins sets `reads-every-member = true`, because
  `tests/grant_sites.rs` reads the sources of every crate.
- vectorcraft-cli, vectorcraft-affinity, vectorcraft-engine,
  vectorcraft-mcp, vectorcraft-ui-egui and xtask list the files they
  compile through `#[path]` or read with `include_str!`/`include_bytes!`
  or from `CARGO_MANIFEST_DIR`.

Cargo ignores this table. Only the gate's selection step reads it, and that
step fails when a read is missing from it.
2026-11-30 02:38:02 -08:00
Codex 1937db57bf Restore native save dialogs, selected Hand panning and font list space 2026-11-30 11:33:11 +01: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
dotCooCoo be62563b59 Merge main into fix/wayland-pinch-zoom 2026-11-29 21:30:45 -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
dotCooCoo 6bde079ac9 Merge main into fix/wayland-pinch-zoom 2026-11-29 14:51:28 -08:00
dotCooCoo 60c1eb34af Merge main into feat/scripts-print-printer 2026-11-29 14:36:49 -08: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
dotCooCoo 8cd15651fb Canvas: a touchpad pinch zooms on native Wayland
Fixes #5981. The winit patch rev moves from a517b384 to 0dfcec0e
(storytold/winit craft/0.30.13, with storytold/winit#20), whose Wayland
backend binds zwp_pointer_gestures_v1 and reports a touchpad pinch and
rotation as PinchGesture and RotationGesture. egui-winit turns them into
Event::Zoom and Event::Rotate, which the canvas already reads, so a pinch
zooms about the pointer and a two-finger turn rotates the view. Before,
winit's Wayland backend never bound the protocol, so the gesture never
reached the app. X11 and XWayland still report no pinch.

The same winit range types an Alt + keypad code's character itself on
Windows (W36: the WM_CHAR after Alt's release becomes a key press with
that text). windows_alt_codes typed it too, which would type it twice, so
it now only takes the keypad digits typed with Alt out of the frame.

Docs: docs/hardware-parity.md (Trackpad row, Linux), docs/type-parity.md
(Alt + numeric-keypad codes row).
2026-11-29 12:33:55 -08: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 c70974d6bd Merge main into feat/scripts-print-printer 2026-11-28 18:21:29 -08: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