Commit Graph
842 Commits
Author SHA1 Message Date
dotCooCoo 72e99d1c3b Merge main into feat/scripts-layer-text-frames 2026-12-02 21:17:26 -08:00
dotCooCoo c1470adfc6 Merge main into feat/scripts-text-paint 2026-12-02 18:14:59 -08:00
dotCooCoo e4e6dd517d Merge main into feat/scripts-layer-text-frames 2026-12-02 17:49:12 -08:00
dotCooCoo 80eb658aa9 Merge main into feat/scripts-layer-text-frames 2026-12-02 14:12:48 -08:00
dotCooCoo 3140831da9 Merge main into feat/scripts-text-paint 2026-12-02 13:57:18 -08:00
dotCooCoo 499055bbbd Tools: show Edit Toolbar alone in the one-column rail
The one-column Tools rail stacked Search above Edit Toolbar in its
footer. The extra row made the default rail taller than a 1000 pt
window holds, so the rail scrolled and Edit Toolbar was out of view.

A one-column rail now shows Edit Toolbar alone. Search Commands stays
in the title bar, Help > Search Commands... and its shortcut. The
two-column rail keeps Search beside Edit Toolbar.

Tests: one_column_rail_shows_edit_toolbar_in_a_1000_point_window; the
#8758 layout test checks the one-column footer, and the search query
test runs on the two-column rail.
2026-12-02 13:16:38 -08:00
dotCooCoo 87ef847f14 Merge main into feat/scripts-text-paint 2026-12-01 04:42:44 -08:00
dotCooCoo 2c753edc01 Merge main into feat/scripts-layer-text-frames 2026-12-01 04:40:47 -08:00
dotCooCoo 1612fa7047 Merge main into feat/scripts-api-d8b-tracing 2026-12-01 02:46:12 -08:00
dd1f4d2936 Tools: add search beside Edit Toolbar (#8770)
* Tools: add search beside Edit Toolbar

Open the existing tool-aware command palette from the Tools footer, preserving the customization button and fitting both column layouts.

Closes #8758.

* Format the toolbar Search interaction regressions

* Format the native Search tooltip expectation

* Use the current stroke paint API in Properties

* Scope app-bar test lookups to the title bar

---------

Co-authored-by: FredApps <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-01 11:34:49 +01:00
dotCooCoo 7b6c730df6 Merge main into feat/scripts-api-d8b-tracing 2026-11-30 15:48:31 -08:00
dotCooCoo 59eff04041 Merge main into feat/scripts-text-paint 2026-11-30 15:21:19 -08:00
dotCooCoo ef52adf1b6 Merge main into feat/scripts-layer-text-frames 2026-11-30 15:18:10 -08:00
.CooCoo cb0a23d293 Merge pull request #9052 from dotCooCoo/feat/scripts-api-d6-save-export-open
Scripts: documents save, export and open through Document.saveAs, exportFile and app.open
2026-11-30 14:36:03 -08:00
dotCooCoo c1af5511fb Merge main into feat/scripts-api-d8b-tracing 2026-11-30 11:24:27 -08:00
dotCooCoo 312bee4731 Merge main into feat/scripts-layer-text-frames 2026-11-30 11:04:44 -08:00
dotCooCoo 8a5f206e3c Merge main into feat/scripts-api-d6-save-export-open 2026-11-30 10:55:42 -08:00
dotCooCoo 2821f7d2b9 Scripts: fix review points on layers and artboards
- hasSelectedArtwork = true on a layer with nothing to add runs no
  command even when the selection already holds more than 10,000
  objects; a layer whose art would take the selection past the limit
  still throws a RangeError.
- artboards.insert() returns undefined.
- Reflection gives Artboards.index an Artboard result and any key, and
  PageItems.parent any type, since layers, groups and compound paths
  have their own collections.
- The node.move test now requires the move of a clipping path to its
  own place to succeed, and the opacity test changes the item whose
  opacity it set.
- docs/mcp.md and the M13 roadmap line describe the changes and list
  Document.pathItems as available.
2026-11-30 09:50:18 -08:00
dotCooCoo ecdbad2d33 Merge main into fix/engine-tests-into-it 2026-11-30 08:18:55 -08:00
dotCooCoo 81cc0fc797 Tests: nine engine integration test files join the tests/it binary
blend_render_consistency, direct_handle_mirror, ellipse_drag_anchors,
eraser_open_fill, group3_reference, path_fill_hits, pen_space_handle,
preflight and scissors_snap were each a test binary of their own. They
now are modules of crates/engine/tests/it, with their tests unchanged,
so the engine's tests link nine fewer binaries.

The files that stay separate change process-wide state (installed
plug-ins, Safe Mode, the font database, color settings, the working
directory), are run by name from CI or xtask (the Affinity corpus
tests, script_corpus, import_fuzz), or compile for about a minute on
their own (command_sweep), which would make every edit to tests/it
rebuild it.

Docs that named the old paths name the new ones, and the preflight
command in docs/production-preflight.md runs `--test it preflight::`.
2026-11-30 06:19:13 -08:00
yoriswind 3d0183495c Merge upstream panel harness changes for Layers appearance markers 2026-11-30 05:40:00 -08:00
dotCooCoo a447847245 Merge main into feat/scripts-layer-text-frames
Main took its own host class engine, member descriptions for reflect, a
topmost-first pageItems order, revert-aware handles and the New Document
More Settings rework. The merge keeps main's versions of crates/js and
crates/ui-egui/src/dialogs/new_document.rs and moves the branch onto them:

- The layers, groups, compound paths and artboards members carry their
  reflect types, and Layer gains toString. The Layer class from layers.rs
  replaces main's name-only Layer class.
- Layer, Layers, Artboard and container collection handles carry the
  document's revert count, so they go stale after File > Revert as page
  items do (a layer then throws "Stale page item", as main's tests expect).
- A layer's or group's pageItems and the GroupItems and CompoundPathItems
  collections read names, index and toString as the document's pageItems
  does on main.
- controlBounds keeps the branch's rule (anchors and handles of shown
  paths, a clip group's clipping path only) and main's zeros for an empty
  object.
- areaText and pathText into a layer or group keep main's threading.
- group.clipped is refused on a locked artboard, a compound path keeps
  itself when its pathItems are cleared, a path in a locked layer is not
  converted into a layer's textFrames, layers.removeAll refuses more rows
  than layer.delete takes, and a path moved into a pixel-aligned compound
  path is snapped.
- A compound path's pathItems read the typename PageItems, the class they
  are, and the TextFrames reflect types name a TextFrame from index and any
  type from parent.

Tests whose rule main changed now assert main's rule: pageItems and
textFrames list topmost first, an empty selection is an empty list, a
segment-only path is restored with no anchors (the objects stay selected,
order not asserted), and the members not available yet are swatches, not
views or layers. The branch's tests of its own host class engine in
crates/js were dropped with that engine, since main's implementation
replaces it.
2026-11-30 04:27:16 -08:00
dotCooCoo b270b62416 Scripts: answer review points on selection, opacity, text ranges and host classes
- A path saved with only segments selected is restored with its segments
  and the anchors at their ends, in its place in the selection, not with
  every anchor.
- layer.opacity compares the new value with the rounded value the getter
  reports, so 50.00009 at 50% is set.
- characters.add with a range of a removed frame throws "Stale text
  range" instead of a wrong-type error.
- `i in object` of a host class reads the indexer's raw answer and makes
  no object of it.
- define_host_classes checks the whole batch and reserves heap for the
  prototypes, constructors and member functions first, each property key
  once; a batch that fails later takes its classes and globals out again,
  so a corrected batch installs.
- The receiver and the arguments that are objects of host classes count
  toward the crossing limits, with class names counted in UTF-16 units.
- A hosted answer is checked for its limits and references, in the order
  it is written, before any object is made, so a refused answer leaves
  existing objects of host classes as they were.
- A waiting member's answer that cannot be made (an unknown class) is
  thrown at the waiting call, where the script can catch it.
- The array methods visit an object with a host indexer index by index,
  so slice and map see every index it answers.
- docs/mcp.md and docs/roadmap.md: an omitted or null presetSettings uses
  the startup preset; PLACEATEND in a clip group or a clipped layer goes
  directly above the clipping path; layer opacity reads rounded to 4
  decimals, and assigning the same opacity runs no command.
- Tests: the selection test checks the refused assignment inside the
  script, and the Missing Glyph Protection test fails when a bundled
  face is missing or falls back to another face instead of returning.
2026-11-29 22:52:46 -08:00
dotCooCoo a4bd58e181 Merge main into feat/scripts-text-paint 2026-11-29 22:15:06 -08:00
dotCooCoo 0d81846481 Docs: docs/roadmap.md matches what main ships
The Set type row names Justification… (#2771) instead of calling the
justification options missing. The Alongside step names the one menu stub
left, Effect › 3D and Materials › Materials…, instead of 28. Both M7 rows
mark tab leaders done (#1880) and vertical type in progress with Type ›
Type Orientation (#5027).
2026-11-29 18:44:43 -08:00
dotCooCoo b1e9a4cbb3 Merge main into feat/scripts-api-d6-save-export-open
main's Document member list held saveAs and close as members that are not
available yet; this branch's save_open members implement them, so the
merge drops them from that list and keeps main's other entries. The
script host test lists take main's members together with this branch's
open, userInteractionLevel, fullName, path, saved and option classes,
and the heap accounting keeps main's ModuleNamespace arm beside the
FsEntry string arm.
2026-11-29 14:13:21 -08:00
dotCooCoo 73499bb62f Merge main into feat/scripts-api-d8b-tracing 2026-11-29 09:57:07 -08:00
dotCooCoo 8c642f6ee0 Merge main into feat/scripts-text-paint 2026-11-28 23:07:33 -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
dotCooCoo d052deb5ca Merge main into feat/scripts-text-paint
Ports the PathItem, color and text members to main's reflected member form (name, HostMember, MemberInfo), and builds the text paint members on main's TextFrame members.
2026-11-28 18:46:13 -08:00
dotCooCoo 44c89a7912 Merge main into feat/scripts-api-d4b-text-styles 2026-11-28 18:11:24 -08:00
dotCooCoo 52c731bb2f Merge main into feat/scripts-api-d6-save-export-open 2026-11-28 18:10:43 -08:00
.CooCoo 1fe4d824c8 Merge pull request #9064 from dotCooCoo/feat/scripts-api-d4c-threads-stories
Scripts: nextFrame, previousFrame, story and document.stories for threaded type
2026-11-28 17:38:38 -08:00
.CooCoo 774891d6ff Merge pull request #8088 from jmverges/fix/6983-followup-page-widths-pick-font-copy
.ai import: type takes the installed copy that sets its PDF part's widths
2026-11-28 17:25:40 -08:00
dotCooCoo 4999199bd5 Merge main into feat/scripts-api-d4c-threads-stories
# Conflicts:
#	crates/engine/src/script/dom.rs
#	crates/engine/src/script/dom/text.rs
#	crates/engine/src/tests.rs
#	crates/engine/src/tests/script_text.rs
#	crates/engine/tests/it/script_host_vs_scriptcheck.rs
#	docs/gaps.md
#	docs/mcp.md
#	docs/target-app-parity.md
2026-11-28 17:15:13 -08:00
dotCooCoo fbb0f2d5ff Merge main into feat/scripts-api-d4b-text-styles 2026-11-28 16:57:12 -08:00
dotCooCoo 31844b57dd Merge feat/scripts-api-d4-text into feat/scripts-api-d4b-text-styles 2026-11-28 16:13:51 -08:00
dotCooCoo 64c985d328 Merge main into feat/scripts-api-d4c-threads-stories
# Conflicts:
#	crates/engine/src/script/dom.rs
#	crates/engine/tests/it/script_host_vs_scriptcheck.rs
#	docs/target-app-parity.md
2026-11-28 14:36:12 -08:00
dotCooCoo 6f36d55234 Merge main into train/carry8496 2026-11-28 13:51:41 -08:00
FredApps 5306c70321 Merge current main into Layers appearance marker branch
Retain document-scoped targeting and drag guards, keep both test sets, and add the appearance notes without replacing main's progress history.

Assisted-by: Codex
2026-11-28 22:46:39 +01:00
jmvergesandClaude Opus 5.5 cbfb26b9ab Merge main (89a5b64170) into the font width import branch
Main now reads the editing copy decoded as its streams are read
(#9922: ai_alone_decoded, ai_layers_alone_decoded, AiLayers::decoded)
and renamed the text document's patterns to paints (#9782:
text_patterns, Texts::with_paints). The decoded entry points take the
PDF part's widths as the ones they wrap did, AiLayers::decode goes
through AiLayers::decoded, and the text document still takes the widths
when it is first read, before its paints. The docs keep both sides'
entries.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-28 20:50:55 +00:00
dotCooCoo 717ad768d8 Docs: drop the #7023 revision-history rows
The roadmap and parity revision-history tables are kept by the maintainers, so the carried change adds no rows to them.
2026-11-28 09:36:03 -08:00
dotCooCoo 2f1d7a2c8d Merge main into train/carry8496 2026-11-28 09:14:09 -08:00
dotCooCoo 83745a0231 Merge main into train/carry6115 2026-11-28 08:00:38 -08:00
HassanKhan 2974fedf23 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-28 12:33:38 +05:00
dotCooCoo 82c626f452 Merge main into feat/scripts-text-paint 2026-11-27 22:26:41 -08:00
dotCooCoo 629c5cc038 Merge main into feat/scripts-api-d8b-tracing
# Conflicts:
#	crates/engine/src/script/dom.rs
#	crates/engine/src/tests.rs
#	crates/engine/src/tests/script_dom.rs
#	crates/engine/tests/it/script_host_vs_scriptcheck.rs
#	crates/js/src/file_classes.rs
#	crates/js/src/heap.rs
#	crates/js/src/host_classes.rs
#	crates/js/src/interp.rs
#	docs/mcp.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-27 22:20:03 -08:00
dotCooCoo 13c44353cf Merge main into feat/scripts-api-d4b-text-styles 2026-11-27 22:13:49 -08:00
dotCooCoo fc48b42f71 Merge main into feat/scripts-api-d4c-threads-stories
# Conflicts:
#	crates/engine/src/script/dom.rs
#	crates/engine/src/tests.rs
#	crates/engine/tests/it/script_host_vs_scriptcheck.rs
#	docs/mcp.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-27 22:12:29 -08:00
dotCooCoo 887c67a8f1 Merge main into feat/scripts-api-d6-save-export-open 2026-11-27 21:58:18 -08:00