Commit Graph
23500 Commits
Author SHA1 Message Date
.CooCoo 033a829995 Merge pull request #10062 from dotCooCoo/fix/export-screens-artboard-list
Export for Screens: the items sit in a framed view, and checked items show selected
2026-11-29 09:07:20 -08:00
.CooCoo 006efe0e91 Merge pull request #10061 from dotCooCoo/fix/panel-menu-command-names
Panels: menu rows show their names instead of command ids
2026-11-29 09:07:03 -08:00
.CooCoo 778e9cea99 Merge pull request #10051 from dotCooCoo/fix/links-panel-row-thumbnails
Links: rows of images on layers show their thumbnails
2026-11-29 09:06:47 -08:00
.CooCoo 0fe52b0a19 Merge pull request #10050 from dotCooCoo/fix/pathfinder-disabled-shape-modes-dim
Pathfinder: Shape Modes buttons dim while they are off
2026-11-29 09:06:31 -08:00
.CooCoo a886bd1148 Merge pull request #10049 from dotCooCoo/fix/craft-libs-869c970
Dependencies: craft-libs 869c9704d9
2026-11-29 09:05:27 -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
FredApps a9c926ba84 Merge branch 'main' into fix/craft-libs-869c970 2026-11-29 16:35:33 +01: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
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
dotCooCoo fa1c0a8dc4 Tests: read retained paint chunks in every ui-egui shape walk
The pinned egui replays a region that did not change as one
Shape::PaintChunk of clipped shapes. Test helpers that walked
out.shapes by hand stopped at the chunk, so text, meshes, rects and
lines painted inside it were missed.

- Add painted_shapes and flat_painted_shapes next to text_shapes in
  tests/labels.rs. They open Shape::Vec and Shape::PaintChunk in paint
  order and compose each shape's transform and clip the same way.
- Route every remaining hand-written text and shape walk in the
  ui-egui tests through text_shapes or these helpers, keeping each
  test's assertions and its first-painted or last-painted order.
- panel_readout_copy: the Link Info Name check called the removed
  text_shape helper and did not compile; it now reads visible_paint.
  Format the file.
2026-11-29 06:01:24 -08: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
FredApps 98a8cda027 Track retained paint in VectorCraft menu and readout tests
Keep the existing pointer and text expectations on composed paint output. Preserve paint order and apply the retained transforms and clipping when finding drawn controls.
2026-11-29 14:25:08 +01: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
FredApps 267b55bfa5 Read retained paint chunks in UI label tests
Collect painted swatch labels from retained paint chunks as well as flat shapes. Keep the localized-label and physical pointer assertions unchanged in scope.
2026-11-29 13:40:19 +01:00
FredApps 36ec203ef5 Pin current craft-libs and its matching egui revision 2026-11-29 12:44:11 +01:00
Dylan M. Taylor d4d8da4544 chore(ci): allow manual workflow_dispatch for SonarCloud (#10070) 2026-11-29 06:43:03 -05:00
dotCooCoo ad0330f359 Merge main into fix/craft-libs-869c970 2026-11-29 02:37:56 -08:00
dotCooCoo 5ce0ab2e0d Tests: Save Options radio test measures the check box with its label
The check box and the text of its label are two accessibility nodes with the same name. The test now takes the bounds of every node so named on the same line, so it measures the gap from the check box row and not from its label text.
2026-11-29 02:37:49 -08:00
dotCooCoo 85d7248548 Window: Tab reads Standard Screen Mode's hidden chrome
In Standard Screen Mode the shell records Tab's hide as the chrome hidden, not as everything hidden. The Tab command and the tool lookup read only the second, so a second Tab hid again instead of showing the panels. Both now use panel_docking::tab_hidden.
2026-11-29 02:37:49 -08:00
dotCooCoo 7d9cd73f5f Toolbars: Rename Button works on a button whose command is dimmed
A context menu owned by a disabled button takes no clicks with the current craft-libs, so Rename Button... on a dimmed button opened no dialog. The row around the button now owns the menu, and a right click on the button opens it.
2026-11-29 02:37:49 -08:00
dotCooCoo cfa2bbb878 Dialogs: a style options dialog keeps its tab through its first measuring run
With the current craft-libs, the first show of a properties dialog is a measuring run that can end before the dialog's body runs, and it then sets the first tab as the shown one. A tab picked before the first frame (Tabs in Paragraph Style Options) was lost, so the Tabs pane and its Clear All Tabs button were not shown. The style options dialogs now keep the tab that was shown before a measuring run.
2026-11-29 02:37:49 -08:00
dotCooCoo 988edeabc6 Export for Screens: Space flips only the item it is pressed on
The items pane selects every checked item. Space on a selected item
flips that item and then the other selected items to its new value, so
Space on one checked artboard unchecked every checked artboard. The
pane now keeps only the flips of the first item a pass reports, which
is the lead item for Space. A test moves to a checked artboard with the
arrow keys, runs a frame and presses Space in the grid and the list.
2026-11-29 01:47:52 -08:00
dotCooCoo 4ce921dd1b Export for Screens: the items sit in a framed view, and checked items show selected
The Artboards and Assets panes drew their list and grid with no frame and
only as tall as their items, so with one artboard the view buttons, Clear
Selection and Prefix sat right under the thumbnail with empty space below.
The views were also shown without a selection, and the grid draws a tile's
check from the tile's selection, so a checked artboard had no outline and
its check box drew empty.

- The list and the grid sit on a sunken surface with control padding, and
  keep their height (9 rows, 4 tiles) when fewer items are shown.
- The checked items are bound as the view's selection, so they draw the
  selection outline and a checked box. The lead and anchor are kept per tab
  from pass to pass; the checks still decide which items are exported.
2026-11-29 00:59:38 -08:00
dotCooCoo b0b10c6109 Panels: tests compare the menu rows' flags now that rows are named
Four tests compared a panel menu row's whole state with one that had no
name, and failed once the rows were named: the Symbols view rows, the
Paragraph composer rows, the Links panel's Select rows and OpenType's
Reset row. They now compare the enabled and checked flags, or the state
with its name. The Links test also checks each Select row's Shift
alternate. Two lines in Align and CSS Properties are split to fit the
150-column width.
2026-11-29 00:46:50 -08: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
FredApps 452bf2013d Constrain the paragraph Tabs action row to the form width
Wrap the action buttons against the offered form width. Keep the accessibility lookup and pointer-click regression at both viewport sizes, and assert that the click target is inside the viewport.
2026-11-29 09:34:32 +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
dotCooCoo 0bd735f53d Merge main into feat/scripts-doc-defaults 2026-11-28 23:20:21 -08:00
dotCooCoo 5ff0885acb Merge main into fix/panel-menu-command-names 2026-11-28 23:14:11 -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
dotCooCoo 4aea768632 Merge main into fix/panel-menu-command-names 2026-11-28 22:56:24 -08:00
dotCooCoo 92b009d819 Panels: menu rows show their names instead of command ids
The menus of Swatches, Brushes, Symbols, Graphic Styles, Appearance,
Paragraph, OpenType, Align, Glyphs, Pathfinder, Links, Actions, Asset
Export, Image Trace, Separations, Tabs, Flattener Preview, Color Themes
and CSS Properties showed 137 rows by their command ids, such as
"ui.swatches.newSwatch" and "brush.new". A panel menu row takes its
label from the command catalog, which lists the keymap's commands and
the menu bar's rows only; the panels' own commands, and commands with
params, have no entry there.

Each panel's menu states now name its rows, as Stroke and Transform
already did. Symbols' New Symbol… and Symbol Options… rows share one
command and showed one name, and the Links menu's four Select rows all
read Select by Link Status; each now shows its own name. The Paragraph
menu's East Asian rows are named too.

A test opens every panel menu in a frame of the whole app and fails
on a row that shows its command id, or on two rows of one menu level
that show the same name, with the East Asian and Indic options off
and on.
2026-11-28 22:56:23 -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
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 fe968bfd33 Dependencies: Cargo.lock takes craft-libs 869c9704d9 2026-11-28 22:43:57 -08:00
dotCooCoo 5b76aa74fe Merge main into fix/links-panel-row-thumbnails 2026-11-28 22:34:59 -08:00
dotCooCoo 57e0e62971 Links: rows of images on layers show their thumbnails
The rows' thumbnail lookup searched only the objects outside the layer
tree, so every linked or embedded image on a layer drew an empty box.
A row now finds its object by the layer tree's index first, then among
the objects outside the tree.
2026-11-28 22:34:52 -08: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
dotCooCoo fa6e65f16a Merge main into fix/pathfinder-disabled-shape-modes-dim 2026-11-28 22:31:02 -08:00
dotCooCoo c0704b7bb0 Pathfinder: Shape Modes buttons dim while they are off
With nothing selected the four Shape Modes buttons are off, but their
icon was drawn through a glyph that paints the icon's own colors and
ignores the off color, so they stayed at full strength while the
Pathfinders row dimmed. The buttons now show the set icon, and the glyph
is used only while members with different modes are selected, where it
adds the question mark and the buttons are on.
2026-11-28 22:31:01 -08:00
dotCooCoo ea99ddfa63 Merge main into fix/scriptcheck-linear-steps 2026-11-28 22:20:45 -08:00