Commit Graph
24536 Commits
Author SHA1 Message Date
dotCooCoo d09d00fa25 Merge main into feat/scripts-export-autocad 2026-12-02 02:20:49 -08:00
.CooCoo 02ca7c1148 Merge pull request #10538 from dotCooCoo/fix/script-setters-measure-after-activate
Scripts: width, height and position setters measure after the document comes to the front
2026-12-02 01:45:21 -08:00
.CooCoo 1385fed88c Merge pull request #10518 from dotCooCoo/fix/panel-title-strip-corners
Dock: the docked Tools card keeps its rounded top corners
2026-12-02 01:40:36 -08:00
.CooCoo b62851f57a Merge pull request #10431 from dotCooCoo/fix/test-lint-hits
Tests: check nightly ids and panel places by behavior
2026-12-02 01:30:08 -08:00
.CooCoo b601a3bf44 Merge pull request #10540 from dotCooCoo/fix/script-write-holds-checked-folder
Save: checked writes go into the folder that was checked
2026-12-02 01:26:46 -08:00
.CooCoo d94c7477c5 Merge pull request #10544 from dotCooCoo/fix/js-host-class-install-atomic
JavaScript: a failed host class install adds none of its classes
2026-12-02 01:16:03 -08:00
.CooCoo 0c6aaa074d Merge pull request #10448 from dotCooCoo/fix/make-numbers-sequence
Type Tools: Make Numbers Sequence numbers the selected type objects
2026-12-02 01:10:32 -08:00
.CooCoo f3d8dee1d2 Merge pull request #10543 from dotCooCoo/fix/script-save-test-workspace
Tests: script save tests remove their folders when an assertion fails
2026-12-02 00:47:28 -08:00
dotCooCoo 125d5dd171 Merge main into fix/panel-title-strip-corners 2026-12-02 00:40:08 -08:00
dotCooCoo 0c8fd2021b Save: checked writes keep the file's backup, ACL and grant name
- A path written as a folder (`draft.svg/`, `draft.svg/.`) is refused
  instead of saving `draft.svg`.
- The second check uses the name the file is stored under, so on a
  volume that ignores letter case a grant for `Report.svg` allows a save
  to `report.svg`.
- Where the rename is refused, the copy of the old content is made
  beside the temporary file through the open folder, and in the system's
  temporary folder only when the folder takes no new file.
- The copy of the old content is read from the file that is then
  overwritten: when another file is at the name by then, nothing is
  overwritten and the new content stays in the temporary file.
- On Apple platforms the folder is opened with `O_SEARCH`, so a folder
  that can be written and searched but not listed takes the file.
- On Linux the replaced file's ACL is read through an `O_PATH` handle,
  so a file its owner can write but not read keeps its ACL.
- The moved-folder test expects the original folder in the message on
  FreeBSD, which does not report where an open folder is now.
2026-12-02 00:25:05 -08:00
dotCooCoo 8c6ce6d5c9 Tests: read-only fixture test checks it caught its own panic
The test caught any panic from its closure, so a failed set_permissions
would also pass it while the file was still writable. It now asserts
the file is read-only before its panic and checks the caught payload is
that panic's message.
2026-12-01 23:53:39 -08:00
dotCooCoo 2690d0e133 Merge main into fix/script-write-holds-checked-folder 2026-12-01 23:24:23 -08:00
dotCooCoo 6cf9145890 Save: checked writes check the open folder's path as it is
The second check of a checked write passed the open folder's path as
text and looked it up again. A path that was not valid UTF-8 was refused,
and a folder on that path replaced by a link into an allowed folder
between the two lookups could let a place outside pass.
check_write_real compares the open folder's real path with the write
roots and the script's grants as it is, without looking it up again.

- The folder is opened with O_PATH on Linux, Android and FreeBSD, so a
  folder that can be written and searched but not listed takes the file.
  The folder flush opens it for reading, and an error there still
  reports the completed write.
- The replaced file's permissions are read after the new content is
  written, as write_atomic_with reads them, so permissions taken away
  meanwhile stay taken away. Its ACL is read only from the same file.
- A folder that changed while it was opened is no longer reported as a
  read-only location.
- Errors name the kept temporary file where its folder is now, after
  the folder moved.
- A file already at the name the old content is copied to is left as it
  is: only a copy this save made and could not finish is removed.
2026-12-01 23:24:20 -08:00
dotCooCoo 0a66352e8c JavaScript: a failed host class install adds none of its classes
Realm::define_host_classes registered each class, and defined its global
constructor, before it checked the next one. A batch whose second class
named an unknown parent or a member twice failed with the first class
already installed, so a retry failed with "defined twice". A failed
instance did the same, and could leave an object scripts held with a
class the realm no longer had.

Every class's name, parent and members are now checked before any class
is added, so a child must still follow its parent in the batch. A
failure after that point removes the classes added, puts back each
global the call replaced and the class of each object an instance moved
to a new class. The replaced globals stay rooted until the call ends, so
a collection during the call does not free them.
2026-12-01 23:19:55 -08:00
dotCooCoo 19d9f5af3b Merge main into fix/panel-title-strip-corners 2026-12-01 23:01:55 -08:00
dotCooCoo 615d35f878 Merge main into fix/script-save-test-workspace 2026-12-01 22:54:36 -08:00
dotCooCoo 81c9588b26 Tests: read-only gate test sets up its cleanup before the first assertion
a_script_gate_does_not_write_over_a_read_only_file created its
ReadOnlyFixture guard after two assertions, so a failure in either left
the test folder behind. The guard is now created right after the file
path is made, before the file is written.
2026-12-01 22:54:36 -08:00
dotCooCoo c07cc5fdfc Merge main into fix/test-lint-hits
main's c58415b307 already rewrote swatch::tests::default_swatches_parse
to check the built swatches, so the conflict keeps main's version.
2026-12-01 22:50:14 -08:00
.CooCoo 7554b7fc30 Merge pull request #10196 from dotCooCoo/fix/script-module-scan-clock
Tests: the .mjs listing test lists the Scripts folder on a fixed clock
2026-12-01 22:48:46 -08:00
.CooCoo 1cf61e3015 Merge pull request #10299 from dotCooCoo/test/tab-overflow-footer-semantics
Tests: overflowing panel tabs work from the keyboard, and footer buttons announce their state
2026-12-01 22:48:29 -08:00
.CooCoo 6e8bd90a0f Merge pull request #10419 from dotCooCoo/fix/linked-corner-menu-width
Transform: Corner selects are as wide as the Corner Radius field
2026-12-01 22:46:25 -08:00
.CooCoo 01c35a3fa5 Merge pull request #10531 from dotCooCoo/fix/window-panels-stay-shown
Panels: a Window-menu panel keeps showing while art is selected and moved
2026-12-01 22:46:14 -08:00
.CooCoo ed6619523c Merge pull request #10504 from dotCooCoo/fix/toolbar-chips-one-line
Tools: Color, Gradient and None share one line in a one-column rail
2026-12-01 22:45:13 -08:00
dotCooCoo 46dbb1fb28 Tests: script save tests remove their folders when an assertion fails
folder() in tests/script_save_open.rs returned a PathBuf, and each test
removed its folder only on its last line, so a failed assertion or a
panicking script left the folder in the system's temporary folder. It now
returns a Workspace guard, as tests/script_print.rs does, which removes
the folder when it is dropped and clears read-only flags first when the
first removal fails (Windows does not delete a read-only file).

a_script_gate_does_not_write_over_a_read_only_file in file_access.rs made
its file writable again and removed its folder only after its last
assertion; a guard now does both when the test ends.
2026-12-01 22:41:20 -08:00
.CooCoo 9cfa3f1d13 Merge pull request #10525 from dotCooCoo/fix/engine-test-pass
Tests: engine command and integration tests check what they claim
2026-12-01 22:31:51 -08:00
.CooCoo 2f68b49692 Merge pull request #10534 from dotCooCoo/fix/test-lint-platform-only-tests
xtask: test-lint never-run lists tests that build on macOS or Windows without failing
2026-12-01 22:31:34 -08:00
.CooCoo 1010fd013d Merge pull request #10501 from dotCooCoo/fix/test-lint-sleep-polls
xtask: test-lint sleep rule leaves out condition polls and fallback releases
2026-12-01 22:31:17 -08:00
.CooCoo 2c60fc07f6 Merge pull request #10532 from dotCooCoo/fix/schema-phrases-follow-apischema
Tests: SCHEMA_PHRASES checked against the parameter schema's errors
2026-12-01 22:31:01 -08:00
.CooCoo 7387c46666 Merge pull request #10520 from dotCooCoo/fix/ui-egui-outside-panels-tests
Tests: ui-egui tests outside the panels check counts and waits
2026-12-01 22:30:43 -08:00
.CooCoo b15abf8a36 Merge pull request #10536 from dotCooCoo/fix/engine-src-tests-guards
Tests: engine tests that check every item also check the items exist
2026-12-01 22:30:11 -08:00
.CooCoo c45cdeff00 Merge pull request #10529 from dotCooCoo/fix/engine-src-tests-pass
Tests: engine tests assert results instead of only success
2026-12-01 22:29:55 -08:00
.CooCoo 95dd368c2c Merge pull request #10188 from dotCooCoo/fix/craft-fonts-pin-main
CI: move the craft-fonts pin to craft-fonts main in every workflow, so builds embed the tab-title face
2026-12-01 22:27:41 -08:00
.CooCoo 40b3f26d62 Merge pull request #10535 from dotCooCoo/fix/sysfonts-menu-family-held-scan
Tests: the menu family list test holds the font scan with a lister
2026-12-01 22:12:54 -08:00
dotCooCoo 4cb6f8f152 Save: checked writes go into the folder that was checked
While automation roots or a script's file grants are in force, a save,
export or print to a file checked its path and then wrote it by name: the
temporary file was created beside the target by name and renamed over it
by name. A folder on the path replaced by a link between the check and
the rename sent the file outside the allowed folders.

vectorcraft_format::write_atomic_checked opens the target's folder once,
checks the path that open folder has with the caller's check, and makes
the temporary file, the rename, the copy over the file where the folder
refuses the rename, and the folder flush through that open folder
(openat, renameat, fsync). A folder replaced before it is opened fails
the check; one replaced after it is opened does not receive the file. A
link put at the final name after the check is replaced, not followed.
The replaced file's permissions, group and ACL are copied through the
open handles.

write_file, write_file_with and write_save_file_with use it while writes
are checked, and keep write_atomic_with otherwise. Outside Unix the check
runs on the path and the write is unchanged.
2026-12-01 22:06:44 -08:00
dotCooCoo e727c01c13 Merge main into fix/test-lint-sleep-polls
main replaced the hit's per-file `also` ranges with `gates`, a list of
lines in the hit's own file. The sleep rule's loop and spawn spans now
add their lines to `gates`. The `last_literal` and `path_literal`
helpers that main replaced are left out.
2026-12-01 21:41:44 -08:00
dotCooCoo 906aa83b6c Merge main into fix/test-lint-platform-only-tests
main replaced Hit's `also` lines with `gates`; the merge keeps `gates`
and adds `report_only` beside it.
2026-12-01 21:41:39 -08:00
dotCooCoo 20bad5e8a9 Merge main into fix/engine-test-pass 2026-12-01 21:19:18 -08:00
dotCooCoo 45bd5bb967 Tests: the plain column drawn for a design past the budget is checked as a rectangle
graph_column_params_are_checked_and_designs_too_big_are_drawn_plain checked
only the plain column's height, so an ellipse of the same height passed. It
now also checks that the column's path is the rectangle of its bounds.
2026-12-01 21:19:18 -08:00
dotCooCoo 70d70ca909 Scripts: width, height and position setters measure after the document comes to the front
Setting width, height, left, top or position on an item in a document in
the back measured the item before its document was made active. Making a
document active measures its type again where it is not measured yet or
where a composite font of the same name changed, so the scale ratio or the
move distance applied to bounds that no longer held, and the item ended
at a different size or place than the one asked for.

The measurement now runs inside the edit, after the switch, through a new
edit_item_with that edit_item also uses.
2026-12-01 21:09:17 -08:00
BFlat f2f7727305 Merge pull request #10479 from ruchirguitar/feat/color-themes-row-menu
Color Themes: add a context menu to saved theme rows
2026-12-02 11:47:30 +07:00
BFlat 1e8e27fa16 Merge pull request #10481 from ruchirguitar/glyphs-cell-menus
Glyphs: right-click a cell to insert or apply it
2026-12-02 11:47:24 +07:00
BFlat 5ed86c0c45 Merge pull request #10482 from ruchirguitar/feat/resource-library-item-menus
Add item context menus to resource library panels
2026-12-02 11:47:18 +07:00
BFlat 3933b68868 Merge pull request #10521 from ruchirguitar/fix/ai-hidden-styled-text-visibility-binding
.ai import: a visibility variable on hidden styled type binds the group that hides it
2026-12-02 11:47:11 +07:00
BFlat cb7ff9ed78 Merge pull request #10524 from ruchirguitar/perf/ai-word-search-budget
.ai import: hold the page type's word searches to their own budget
2026-12-02 11:47:05 +07:00
dotCooCoo a7e5bcbaba Dependencies: pin craft-libs at 77ade517
storytold/craft-libs#4634 merged as b942e743. Every craft-libs rev in
Cargo.toml, apps/vectorcraft-web/Cargo.toml, Cargo.lock and
xtask/src/pdf_deps.rs moves from 965c7bee to craft-libs main at
77ade517, which contains that merge. The egui revs move from 07c20531
to 861d60a6, the revs craft-libs pins at 77ade517. winit stays at
0dfcec0e.
2026-12-01 20:39:46 -08:00
dotCooCoo b2cbd0ceaf Merge main into fix/linked-corner-menu-width 2026-12-01 20:39:18 -08:00
dotCooCoo b354c29de0 Type: Make Numbers Sequence keeps a seeded order and its doc line names skipped objects
A new test runs the same eight objects with seed 11, an end and
removeUnused in two fresh sessions and checks that each object gets the
same number and the same objects are removed. The progress doc line says
that in numbers and placeholder modes objects without a match are
skipped before ordering, so they take no number and are never deleted,
and that only a run that changes the document makes an undo step.
2026-12-01 20:31:43 -08:00
dotCooCoo bdf6454780 Merge main into fix/engine-test-pass 2026-12-01 20:28:57 -08:00
dotCooCoo 0a9ea7ad8d Merge branch 'fix/engine-test-pass' of github.com:dotCooCoo/vectorcraft into fix/engine-test-pass 2026-12-01 20:28:46 -08:00
dotCooCoo e97b699b95 Tests: folder search tests wait for the walker by handshake, not by sleeping
The deadline test and the kept-files test polled the search's progress
with a 2 ms sleep until the walker was blocked reading a file, which
test-lint rejects. The blocking visitors now send on a channel as their
read begins, and the tests wait on that channel instead.
2026-12-01 20:27:27 -08:00