Commit Graph
23460 Commits
Author SHA1 Message Date
dotCooCoo 59b4e54710 Build: the workspace manifest prints no unused-dependency or unused-patch warnings
Every cargo command printed seven manifest warnings, and clippy on all
targets printed one more. Each entry below had no reader on main.

- peniko (workspace dependency): no member crate has ever declared it.
  It has been in the list since the workspace skeleton (bfee80a22c).
  crates/render reaches peniko through vello_cpu::peniko.
- rfd and webbrowser (workspace dependencies): #8800 moved the app onto
  the craft UI framework and removed their last declarations in
  apps/vectorcraft and crates/ui-egui. The folder picker and the browser
  links now come from craft-libs. The rfd name in xtask's layer check
  is a crate name to reject, so it does not read this entry.
- workspace.package.repository: no member crate sets
  repository.workspace = true, and no packaging script, xtask command or
  workflow reads the field.
- egui_demo_lib, egui_inspection and egui_system_font_provider
  ([patch.crates-io]): #8800 copied these from craft-libs' own patch
  list, and nothing in VectorCraft's graph depends on them. Cargo.lock
  listed them under [[patch.unused]]. A dependency's [patch] does not
  apply in this workspace, so removing them does not change how
  craft-libs builds. The egui crates that are in the graph keep their
  patches at 932a73b285.
- apps/vectorcraft-web declared egui_extras for every target, but only
  the wasm32 module web.rs calls it. It now sits under the wasm32
  target dependencies.

Cargo.lock drops the three [[patch.unused]] entries.
2026-11-29 09:08:57 -08:00
.CooCoo 3264cd3b21 Merge pull request #10086 from dotCooCoo/ci/print-windows-cache
CI: Desktop printing saves its Windows cache on main and builds the tests once
2026-11-29 08:43:19 -08:00
.CooCoo c2125cee83 Merge pull request #10083 from dotCooCoo/fix/ui-egui-shard-threads
CI: the two ui-egui shards take about the same time
2026-11-29 08:43:16 -08:00
.CooCoo aea9cd7a32 Merge pull request #9288 from dotCooCoo/feat/scripts-doc-defaults
Scripts: Document default fill and stroke members and scaleFactor
2026-11-29 07:24:43 -08:00
dotCooCoo b5affe3a0b CI: Desktop printing saves its Windows cache on main and builds the tests once
The Windows leg found no cache on every pull request, because only a push or manual run on
main saves one and the workflow had no push trigger. A push to main that touches the same
paths now saves the entry that pull requests restore.

Both test runs now select the app and the UI crate together, so Cargo resolves features once
and the printps run reuses the first run's dependencies instead of rebuilding 94 crates. The
first run keeps every app test (the binary's unit tests and `tests/it`).
2026-11-29 07:16:18 -08:00
dotCooCoo c10031537b Merge main into feat/scripts-doc-defaults 2026-11-29 06:45:39 -08:00
dotCooCoo 6ef6df3407 Scripts: round artboard rows as main's New Document test expects, and drop pathItems= from the host table
Cause of the CI failures on 212090fd7a:
- main's dialogs::new_document test a_presets_rows_reach_the_document_create_makes
  sets artboardLayout.rows to 3.6 and expects 4, but this branch refused a
  rows value that was not a whole number. rows now rounds like columns and is
  still refused outside 1 to 1000.
- script_host_vs_scriptcheck listed Document.prototype.pathItems=, the
  setter of main's placeholder. This branch makes pathItems a read-only
  collection, like pageItems, so the row goes.
2026-11-29 06:45:32 -08:00
dotCooCoo 6a6fa5056c CI: the two ui-egui shards take about the same time
Each ui-egui part ran its pinned tests with --test-threads 3 beside its
counted share with --test-threads 1. On the 4-CPU runners the pinned
tests finished in about 40 s, and the counted share of about 2,640 tests
then ran on one thread for 9 to 12 minutes (run 46267439238).

A part now runs its counted share and then its pinned tests, one after
the other, each with nextest's default thread count. The help F1 test
moves to part 1's pinned list, which leaves the two parts with closer
test totals.
2026-11-29 06:20:45 -08:00
.CooCoo 3ad283b9b0 CI: ui-egui tests run on two shards (#10080)
vectorcraft-ui-egui's tests were one leg that set the pull request run's
length (33.2 min median over 20 runs: about 19 min compiling and 11.9 min
running 5,288 tests). The gate now has six legs. Shards 1 and 2 each
build vectorcraft-ui-egui's tests and run half of them with nextest's
count partition. Each part also runs its own pinned slow tests, so the
slowest tests do not land on one leg. Part 1 alone runs the doctests and
the i18n report, and `cargo xtask ci warm` builds the split once.

Before running, a part lists the tests and stops with an error when a
pinned test name no longer exists. The xtask shard tests check that
every test of a split runs on exactly one part.

The nightly signing policy and its preparation doc list the new job
names (`test N/6`).
2026-11-29 09:10:57 -05:00
dotCooCoo 212090fd7a Merge main into feat/scripts-doc-defaults 2026-11-29 05:51:56 -08:00
dotCooCoo 7a71837dea Scripts: keep new-art defaults and direct selections through path edits
- PathPoint.remove() renumbers the direct-selected anchors and segments
  after the removed point, and drops the removed anchor and the selected
  segments it ended, through selection commands after the points are
  written. A removed anchor no longer stays selected, and the same index
  no longer selects a different point.
- pathItems.add() reads new art's paint after the target document is
  active, so a path added to a document in the back keeps the stroke
  that document's selection gives new art.
- Paths a script draws put new art's paint back afterwards, so a
  defaultStrokeWidth the script set applies to every path it draws, not
  only the first.
- appearance.setNewArt refuses a fill or stroke paint with a setting a
  paint does not take, such as opacity, instead of applying the rest.
2026-11-29 05:51:46 -08:00
Dylan M. Taylor b3514b6277 fix(packaging): resolve SonarCloud regex reliability findings in nightly-release-tests.py (#10076) 2026-11-29 08:26:47 -05:00
dotCooCoo dd93247cbf Scripts: tests index page items topmost first and check the preset fallback
Cause of the script_dom and script_dom_paths failures: main's 9872e6b679
("page items report their own members, and lists start with the topmost
object") made pageItems, pathItems and the selection list art topmost first.
The branch's tests still indexed the objects bottom first, so pageItems[1]
and pathItems[0] named the other object. The tests now make the objects in
the order the lists read them, and index them topmost first.

The own-members test asked about rotate, which this branch makes available,
so it now asks about transform, which is not available yet.

The fallback test for addDocument relied on five 1,000,000 pt artboards not
fitting, but a new DocumentPreset puts them in one column. It now unsets the
layout so the built-in preset puts them in one row, and the test fails when
addDocument falls back to the saved preset of the same name.
2026-11-29 04:41:14 -08:00
Dylan M. Taylor d4d8da4544 chore(ci): allow manual workflow_dispatch for SonarCloud (#10070) 2026-11-29 06:43:03 -05:00
dotCooCoo 4b7ac69692 Scripts: fix path handles after main's revert count and review findings on path edits
PathItem handles carry the document's revert count, as page item
handles on main do, so path members find their path again.

setEntirePath and the path point setters throw a RangeError for a point
off the canvas. Opening a path whose closing segment is selected keeps
the edit. pathItems.add() leaves new art's paint as it was with New Art
Has Basic Appearance off. addDocument reports settings the built-in
preset refuses. appearance.setNewArt refuses a swatch that is not a
name. Writing one path's points looks only at that path afterwards.
2026-11-29 00:42:20 -08:00
dotCooCoo 0bd735f53d Merge main into feat/scripts-doc-defaults 2026-11-28 23:20:21 -08:00
.CooCoo 5f92d8987f Merge pull request #10040 from dotCooCoo/fix/scriptcheck-linear-steps
Script check: a script whose only finding is unsure names is scanned once
2026-11-28 23:02:49 -08:00
.CooCoo 81e7545e1b Merge pull request #10045 from dotCooCoo/fix/set-corners-commit
Set Corners: typed values reach the preview
2026-11-28 22:55:49 -08:00
dotCooCoo ea99ddfa63 Merge main into fix/scriptcheck-linear-steps 2026-11-28 22:20:45 -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
.CooCoo c62571e073 Merge pull request #8822 from Hassan1305/fix-8531-snap-budget-edges
Smart Guides: the topmost objects keep their snap targets in a document past the anchor budget (#8531)
2026-11-28 22:17:29 -08:00
.CooCoo 8f719e5186 Merge pull request #10046 from dotCooCoo/fix/speed-i13854-menu-rebuilds
Menus: a key press rebuilds the menu states once
2026-11-28 22:15:15 -08:00
dotCooCoo 9e5e698372 Merge main into fix/speed-i13854-menu-rebuilds 2026-11-28 21:55:13 -08:00
.CooCoo 88772eefd1 Merge pull request #10043 from dotCooCoo/fix/panel-drags-after-file-revert
Drag and drop: panel drags held across File › Revert are not dropped on the restored drawing
2026-11-28 21:53:55 -08:00
dotCooCoo e6ffa5cc9e Merge main into fix/panel-drags-after-file-revert 2026-11-28 21:43:03 -08:00
.CooCoo 677414e15e Merge pull request #8131 from dotCooCoo/feat/color-wheel-copy-color-as
Part of #978: Copy Color As in the Color Wheel panel copies the color as hex, hex with alpha, CSS or CMYK values
2026-11-28 21:39:54 -08:00
dotCooCoo 288c14310d Merge main into feat/color-wheel-copy-color-as 2026-11-28 21:39:07 -08:00
.CooCoo 8ea80cb3bf Merge pull request #9093 from dotCooCoo/feat/hairline-slivers
Clean Up: remove hairline slivers thinner than a set width
2026-11-28 21:38:18 -08:00
.CooCoo 208185a7cf Merge pull request #10039 from dotCooCoo/fix/speed-i13930-global-edit-preview
Global Edit: the preview after an edit compares only the changed objects again
2026-11-28 21:38:02 -08:00
.CooCoo f9769056a1 Merge pull request #10041 from dotCooCoo/fix/save-options-radio-rows
Save options: All/Range and Transparent/Opaque radios have no empty caption over them
2026-11-28 21:37:46 -08:00
.CooCoo 3d5a154ed0 Merge pull request #10042 from dotCooCoo/fix/scriptcheck-linear-work
Scripts: the checker scans a script that binds no name once
2026-11-28 21:37:31 -08:00
dotCooCoo 63f1b5d45f Merge main into fix/speed-i13854-menu-rebuilds 2026-11-28 21:33:25 -08:00
HassanKhan 78795e188b Merge remote-tracking branch 'upstream/main' into fix-8531-snap-budget-edges
# Conflicts:
#	docs/roadmap.md
#	docs/target-app-parity.md
#	docs/ui-parity.md
2026-11-29 10:20:07 +05:00
.CooCoo 7da0740ae9 Merge pull request #10029 from dotCooCoo/fix/speed-i13929-dimmed-rows
Menus: a dimmed row runs its command's check once per rebuild
2026-11-28 21:13:40 -08:00
dotCooCoo 5f99cb7ebb Libraries: a swatch row held across File › Revert is not added to a library
The Libraries panel accepted a swatch row dragged before File › Revert and added the restored swatch of that name. Membership::grabbed now refuses stale rows, for the hover marker and on release.
2026-11-28 21:05:01 -08:00
dotCooCoo 1930ef33dd Set Corners: typed values reach the preview
The Set Corners dialog did not bind its values to the host fields that
the preview reads, so after typing a radius of 7 and a lower angle of
120 the host fields still held 10 and 0. The dialog now binds its
values with Bind::bound(fields), as the Arrange dialogs do.
2026-11-28 21:01:35 -08:00
.CooCoo 7a8866e036 Merge pull request #9251 from dotCooCoo/feat/scripts-app-undo-redo
Scripts: app.undo and app.redo step through the run's own edits
2026-11-28 20:55:35 -08:00
dotCooCoo a3ccd60b5b Script check: a script whose only finding is unsure names is scanned once
A script without includes whose declarations give names values the analysis
does not read came back from its first scan with `Known::unsure` set and no
names. `settle` counted that as something known and scanned the script again,
which found the same and doubled the scan's steps. The proptest
`any_bytes_are_checked_in_linear_work` shrank one such input to 104 bytes that
took 550 steps, over its bound of 536.

`settle` now keeps the first scan when it found no bound names and no File
objects: the flag comes from the script's own declarations, which the first
scan already read.
2026-11-28 20:55:33 -08:00
dotCooCoo 967f83c442 Merge main into fix/scriptcheck-linear-work 2026-11-28 20:50:15 -08:00
dotCooCoo 30d22d07c8 Scripts: the checker scans a script that binds no name once
A script whose only finding about its variables was that a name in
brackets is not one literal (o[k]) was scanned a second time. That
finding comes from the names the script declares, which the first scan
has already read, so the second scan gave the same report and added up
to three steps a byte. A 104-byte input of single-character tokens took
550 steps against the 536 the property test allows.

The check now repeats a scan only when a variable holds a member chain
or a File or Folder object. The property tests take their bound from
the number of scans: five steps a byte for a script scanned once, and
seventeen for one scanned up to five times.
2026-11-28 20:50:13 -08:00
dotCooCoo d81c6f85ba Merge main into fix/speed-i13929-dimmed-rows 2026-11-28 20:49:48 -08:00
dotCooCoo cb75bb73fc Merge main into feat/scripts-app-undo-redo
# Conflicts:
#	crates/engine/src/cmd/scripts.rs
2026-11-28 20:45:40 -08:00
.CooCoo 2255484d45 Merge pull request #9132 from dotCooCoo/feat/js-es2015-modules
JavaScript: a .mjs script runs as an ECMAScript 2015 module
2026-11-28 20:44:58 -08:00
dotCooCoo cac93ca107 Merge main into feat/js-es2015-modules 2026-11-28 20:44:06 -08:00
.CooCoo eaad35e231 Merge pull request #9108 from dotCooCoo/feat/plugin-api-localized-labels
Plug-ins: names and labels show in the UI language from the manifest's translations
2026-11-28 20:41:55 -08:00
.CooCoo 197ffe8a78 Merge pull request #10037 from dotCooCoo/fix/stroke-panel-label-column
Stroke: the panel's rows share one label column, so their controls start at one x
2026-11-28 20:37:42 -08:00
.CooCoo 95cecd4881 Merge pull request #10038 from dotCooCoo/fix/undo-row-names-action
Menus: Edit › Undo and Redo name the step in the menu bar and the context menu
2026-11-28 20:37:27 -08:00
dotCooCoo bcb4ab729a Merge main into fix/save-options-radio-rows 2026-11-28 20:11:35 -08:00
dotCooCoo 8b30502be9 Save options: All/Range and Transparent/Opaque radios have no empty caption over them
The All and Range radios under the artboard check box of the .ai,
VectorCraft and EPS save options, and EPS's Transparent and Opaque
radios, were radio rows with an empty name, which the form draws as an
empty caption: a blank band about one row tall above the radios. Both
rows now use stacked options, so the radios follow the row above them.
The Transparent/Opaque row carries the option's label as the group's
accessible name.
2026-11-28 20:11:28 -08:00
dotCooCoo 5a8f56dc4e Merge main into feat/hairline-slivers 2026-11-28 20:07:16 -08:00