ui.dialog.confirm refuses an action whose button the open tab does not show. The ui.paramDialog params text (crates/mcp/src/ui_catalog.rs and crates/ui-egui/src/menus/ui_commands.rs) and docs/mcp.md now say so.
The gate's ui-commands step failed because crates/mcp/src/ui_catalog.rs
still held the old file.print params text after the change to
crates/ui-egui/src/menus/ui_commands.rs. The catalog now matches the
table (cargo xtask ui-commands --check).
On macOS and Linux the print job carried no media option, so the queue
printed on its default paper whatever Size the Print dialog showed. The
dialog now sends the driver's keyword for the chosen Size, and
file.print takes it as `paper`; the job passes it to CUPS as `media`.
A `paper` that is not a single keyword is an error, and so is `paper`
with file output, with directPdf or on Windows, where the spooler does
not apply it. While the chosen printer's sizes are still loading, Print
is refused and the dialog stays open.
A queue with no PPD on this machine (a driverless or remote printer)
listed no paper sizes. Its sizes now come from `lpoptions -p NAME -l`,
and when its server has no PPD either, from the queue's IPP
media-supported attribute on the scheduler CUPS uses. CUPS's B4 and B5
keywords are the JIS sizes, and ISOB4 and ISOB5 the ISO ones.
Builds on the printer paper lookup in apps/vectorcraft/src/printing.rs
(#10511).
Placement Options checked the document and its reverts before OK, but not
Undo or Redo. After undoing the place of the image it opened on, a new
image can take the same id, and OK then changed that image's Placement
Options. OK now refuses after an Undo or Redo in the opening document, as
Create Object Mosaic does, and asks to reopen the dialog.
The guard was missing since the dialog started applying to the images it
opened on (62199b98b3).
The app's file.print forwarded preset, settings, format, level and
flattenerPreset to the engine but dropped maxPages, so a script that set
a page limit through Document.print (added in #9087) still printed or
saved every page. The app now forwards it, returns the engine's
{pages, format} without printing or saving when the job is past the
limit, and passes an explicit null on so the engine rejects it instead
of treating it as no limit. The command text in both catalogs lists the
parameter.
The params text of ui.livePaintGapOptions in
crates/ui-egui/src/menus/ui_commands.rs gained the failed-preview
sentence, but crates/mcp/src/ui_catalog.rs was not regenerated, so
`cargo xtask ui-commands --check` failed in CI. This is the output of
`cargo xtask ui-commands`.
Common Tangents… now also does what Smooth Bridge… did (#10465).
- Connect tangents joins the two tangents of each kind into one closed
shape, along the chords between where they touch each path (a point's
two lines make a triangle). `connect` on
`addon.pathtools.commonTangents`.
- With External, the dialog shows Straight and Curved. Straight keeps
the tangent lines; Curved joins the circles along concave arcs, as
Smooth Bridge did, with Radius, Constant Gap, Reach and Keep
Originals, which take input only with Curved. `curved`, `radius`,
`gap`, `reach` and `keepOriginals` on the command; options of the
other mode are an error.
- The Smooth Bridge… menu item is gone. `addon.pathtools.bridge` still
runs for scripts and actions, opens the merged dialog with External
and Curved, and is left out of the command palette and Keyboard
Shortcuts. A palette search for "metaball" or "smooth bridge" finds
Common Tangents.
Docs: docs/mcp.md, docs/ui-parity.md, ROADMAP.
Locked or hidden type inside a selected group is no longer numbered or
deleted, and removeUnused keeps a type object that masks a clipping group
or layer and keeps the selection instead of selecting the numbered objects.
In Numbers mode a minus sign that does not follow a letter is part of the
number, and a number or placeholder that already reads the new number keeps
its text and style. Rows and columns are found among the objects that get a
number, with the true median for an even count. A run that would replace
more than 10,000 numbers or placeholders is refused before any text is
built, and a seed that is not a whole number is refused even with shuffle
off. ui.menuDialog lists the dialog, and the progress doc has its line.
ui.menuDialog opened the Flood Fill Artboards dialog with no document or in an
editing mode the command refuses, and OK then failed. The dialog now checks the
command first and returns its reason. A reopened dialog also rolled back the open
preview only after reading the current fill, so with New Art Has Basic Appearance
off it opened on the previewed fill instead of the fill from before; it now rolls
the preview back first. The params text and docs/mcp.md say when it is refused.
ui.menuDialog opens the Group by Row dialog, so its params text and the
MCP UI catalog name addon.arrange.groupRows with the other Arrange Tools
dialogs.
The gate failed in menu_dialog_params_text_lists_every_command_whose_dialog_it_opens,
which main added in 7eda2320: ui.menuDialog opens Flood Fill Artboards' dialog, but
its params text did not list addon.document.floodFillArtboards. The command is now
in the list in ui_commands.rs and in the generated ui_catalog.rs.
main now lists the Smooth and Simplify sliders in ui.inspect as dialogs
smoothSlider and simplifySlider, which ui.dialog.set, confirm and cancel
control, and Object › Plug-ins › Selection Tools › Edit Points Only…
opens through ui.menuDialog. The params text of ui.menuDialog,
ui.smoothAuto and ui.simplifyAuto, docs/mcp.md and the menu dialog key
test now say so.
Main added Object > Step and Repeat, whose dialog ui.menuDialog opens
under the key object.stepAndRepeat. The command list in ui.menuDialog's
params text (and its MCP mirror) did not name it, so
menu_dialog_params_text_lists_every_command_whose_dialog_it_opens failed
on the branch merged with main.
Cause: main gained the Arrange add-on's Offset Objects and Match Objects
dialogs (addon.arrange.offset, addon.arrange.match) after this branch
started. ui.menuDialog opens both, but its params text in
crates/ui-egui/src/menus/ui_commands.rs and crates/mcp/src/ui_catalog.rs
did not list them, so the branch's
menu_dialog_params_text_lists_every_command_whose_dialog_it_opens test
failed once main was merged in. Both lists now name the two commands; each
dialog's key is its command id.
Make set the wrap option on every selected object, the area type
included, and the wrap resolver never wraps an object that has the
option, so selecting the object and the type together and choosing Make
left the type as it was.
- Make leaves a selected type object with another selected object above
it in its layer out of the wrap objects, and takes the option off it
if an earlier Make set it there. Text Wrap Options leaves it out too.
- Make warns in the status bar when no area type lies below any of its
wrap objects (the object is below the type, or the type is point
type).
- Make and Options record no undo step when nothing changes.
Docs: docs/mcp.md, the text_wrap tool description and the command
params text.
Leaving the Shape Builder saved every one of its options, so preferences
from earlier versions hold pickColorFrom "artwork" whether or not it was
picked, and kept the old default after Color Swatches became the default.
The preferences now carry toolSettingsVersion, written as 1 once a tool
setting is stored. Applying preferences without it changes a saved
Shape Builder pickColorFrom "artwork" to "swatches" and writes the
version, so Artwork picked after that is kept at the next launch. A
saved "swatches" and preferences without a saved pickColorFrom are
unchanged.
Docs: docs/mcp.md and the tool options params text.
While the Shape Builder is active, a fill picked from a swatch or a color
changes only the current fill, and the selected art keeps its own. With
Pick Color From set to Artwork, a merge takes the look of the art, so the
picked color never reached the merged shape and the tool looked as if it
could not fill.
Pick Color From now defaults to Color Swatches: a merge fills with the
picked color, and the Left and Right arrow keys step through the color
swatches. A pickColorFrom saved with the preferences is kept, so a saved
Artwork stays Artwork; preferences saved without one take Color Swatches.
The shapeBuilder.merge command still defaults to artwork when its
pickColorFrom is left out.
Docs: docs/mcp.md and the tool options params text.
The params text of tool.options (in both command catalogs) and
docs/control-protocol.md named the dialogs' keys without saying that
they are the `key` ui.inspect reports. The `dialog` field tool.options
returns holds `rotate`, `scale`, `reflect` or `shear` for the transform
tools, `move` for the selection tools and `command` for the Type on a
Path tools.
- The text names both: the `key` in ui.inspect and the returned
`dialog` field.
- The tool.options test checks the returned `dialog` field against the
params text as well as the key.
- The ui.menuDialog test checks that the Simplify and Smooth popovers
are showing when the params text says those commands show a slider.
The params text of ui.simplifyAuto and ui.smoothAuto (in both command
catalogs) and docs/mcp.md described the Simplify and Smooth sliders as
dialogs `simplifySlider` and `smoothSlider` that ui.dialog.confirm
keeps. The sliders are canvas popovers: ui.inspect does not list them,
and the ui.dialog commands do not control them.
- The text says Enter or a click outside the popover keeps the result,
with one undo step when the paths changed and none otherwise, and
Escape restores the paths.
- The tool.options test compares each tool's dialog key with the key
the params text gives for that tool.
The params text of ui.menuDialog (and its copy in the MCP catalog) did
not list the add-on and other commands whose dialogs ui.menuDialog also
opens: Set Corners, Divide into Dashes, Bridge, Tangent Circle, Text
Tweaker, Color Legend, `addon.arrange.randomizeOpacity`,
`addon.arrange.sort`, Color Nearest, Select by Artboards,
`type.smartPunctuation`, and the variable and data set dialogs.
- The list now names those commands. The text says the variable and
data set dialogs report the key `variables`, that the Color Nearest
and Select by Artboards dialogs have no `key`, when Rename Variable,
Set Data Set and Rename Data Set open, and that ui.dialog.set,
ui.dialog.confirm and ui.dialog.cancel take the dialog's `id`.
- A test runs ui.menuDialog for every command and fails when one opens
a dialog that the params text does not list. The key test compares
each dialog's key with the key the params text gives for its command.
ui.inspect lists each open dialog with a key. The params text of these
commands, and docs/mcp.md and docs/control-protocol.md, named a key that
no open dialog reports:
- Layer Options (ui.layerOptions, ui.newLayer): layerOptions, now
ui.layerOptions.
- The Layers panel's Panel Options: layersPanelOptions, now
ui.layersPanelOptions.
- The Navigator panel's Panel Options: navigatorPanelOptions, now
ui.navigatorPanelOptions.
- Document Raster Effects Settings (ui.rasterEffectsSettingsDialog):
rasterEffectsSettings, now document.rasterEffectsSettings.
- The PDF preset editor (ui.pdfPresetDialog): pdfPreset, now pdf-export.
- Save for Web (file.saveForWeb): saveForWeb, now save-for-web.
- The Actions panel's Reset Actions question (ui.actionSet.reset):
resetActions, now actionsQuestion.
Each command now has a test that opens the dialog and checks that its
params text names the key ui.inspect lists.
Since the move to the craft UI framework, the dialogs ui.menuDialog
opens report their command id as their `key` in ui.inspect and
ui.dialog, except Transform Each and the envelope dialogs. The params
text, docs/mcp.md and docs/control-protocol.md still named the earlier
kinds (`move`, `scale`, `vectorHalftone`, `rearrangeArtboards`,
`renameArtboards`, `arrangeGrid`, `divideDashes`, `smoothBridge`,
`tangentCircle`, `textTweaker`, `command` and others), which no dialog
reports.
- The params text of ui.menuDialog (and its copy in the MCP catalog)
says the key is the command id and names the four exceptions, and
says Smooth, and Simplify until its dialog keeps its settings, show a
slider rather than a dialog. ui.simplifyAuto and
ui.simplifyMoreOptions name the Simplify dialog's key
`object.path.simplify`.
- The params text of tool.options names the keys of the dialogs the
Rotate, Scale, Reflect, Shear, selection and Type on a Path tools
open: `object.rotate`, `object.scale`, `object.reflect`,
`object.shear`, `object.move` and `type.pathOptions`.
- docs/mcp.md and docs/control-protocol.md name the keys the dialogs
report, Type on a Path Options and Rasterize included.
- Tests open every command the ui.menuDialog params text lists, each of
those tools' options and Simplify's More Options, and check the key
against the params text, and that every key the ui.menuDialog text
names is one a listed command opens.