Plug-ins: a run that changes nothing records no undo step

A filter run, a plug-in command, or a run that calls commands applied its
output through Session::edit, which records an undo step and marks the
document modified even when the output changes nothing. The output is now
applied to a copy first, as colorcmds::edit_if_changed does: only a copy
whose objects or kept documentData differ becomes the document, as one undo
step. Otherwise the document, its undo history and its saved state stay as
they were, and the run's objects are still selected.

Docs: params text of plugin.run and plug-in commands, docs/plugins.md,
docs/mcp.md, docs/target-app-parity.md.
This commit is contained in:
dotCooCoo
2026-11-22 05:40:50 -08:00
parent db9acab4da
commit 02ebfb7b8e
6 changed files with 141 additions and 28 deletions
+46 -15
View File
@@ -47,7 +47,7 @@
use std::sync::{Arc, Mutex, RwLock};
use serde_json::{Map, Value, json};
use vectorcraft_doc::{Effect, Node};
use vectorcraft_doc::{Document, Effect, Node};
use vectorcraft_plugins::{Budget, Command, Kind, Plugin, effect, export, objects, registry, safe_mode};
use super::{CommandSpec, EngineError, NodeId, Result, Session, always, bad, cmd, has_doc, ids_param, str_param, switch_or};
@@ -330,7 +330,8 @@ impl FilterRun {
/// Applies the plug-in's `output` to the active document as one undo step: its objects, and what
/// it keeps with the document from now on. An output its permissions don't allow, and one that
/// changes or leaves out a read-only object it was given, is refused, and the document stays as
/// it was.
/// it was. An output that changes neither the objects nor the kept data records no undo step and
/// leaves the document unmodified; its objects are still selected.
fn finish(self, s: &mut Session, output: &[u8]) -> Result<Value> {
let m = self.plugin.manifest();
let may = m.permissions();
@@ -342,18 +343,43 @@ impl FilterRun {
// A command's undo step is named after the command.
let label = self.label();
let (inputs, parent) = (self.inputs, self.parent);
let ids = s.edit(&label, |d, sel| {
let before = (!may_write).then(|| d.layers.clone());
let ids = objects::apply_output(d, &inputs, out.objects, parent, &admit_effects).map_err(err)?;
if before.is_some_and(|b| b != d.layers) {
return Err(not_granted(&m.name, Permission::DocWrite));
// The output is applied to a copy of the document, as `colorcmds::edit_if_changed` applies
// its pass: only a copy whose objects or kept data differ becomes the document, as one undo
// step. Otherwise the document, its undo and redo steps and its saved state stay as they
// were, and only the selection is set.
if s.script_running() {
return Err(EngineError::Busy);
}
if !s.previewing && super::typing_in_progress(s) {
super::settle_interaction(s)?;
}
let now = s.doc()?.doc.clone();
let mut d = (*now).clone();
let before = (!may_write).then(|| d.layers.clone());
let ids = objects::apply_output(&mut d, &inputs, out.objects, parent, &admit_effects).map_err(err)?;
if before.is_some_and(|b| b != d.layers) {
return Err(not_granted(&m.name, Permission::DocWrite));
}
if let Some(data) = out.document_data {
d.set_plugin_data(&m.id, data);
}
let selectable = |d: &Document| ids.iter().copied().filter(|&id| d.node(id).is_some_and(objects::selectable)).collect::<Vec<_>>();
if same_art(&d.layers, &now.layers) && d.plugin_data(&m.id) == now.plugin_data(&m.id) {
let st = s.doc()?;
let mut sel = st.selection.clone();
sel.set(selectable(&st.doc));
if sel != st.selection {
s.select(|_, selection| *selection = sel)?;
}
if let Some(data) = out.document_data {
d.set_plugin_data(&m.id, data);
}
sel.set(ids.iter().copied().filter(|&id| d.node(id).is_some_and(objects::selectable)));
Ok(ids)
})?;
} else {
// The document is shared with `now` no longer, so `s.edit` does not copy it again.
drop(now);
s.edit(&label, |doc, sel| {
*doc = d;
sel.set(selectable(doc));
Ok(())
})?;
}
let mut out = json!({"plugin": m.id, "ids": ids.iter().map(|i| i.0).collect::<Vec<_>>()});
if let Some(cmd) = &self.command {
out["command"] = json!(cmd.id);
@@ -362,6 +388,11 @@ impl FilterRun {
}
}
/// Whether layer lists `a` and `b` hold the same art: a layer that is shared is not compared again.
fn same_art(a: &[Arc<Node>], b: &[Arc<Node>]) -> bool {
a.len() == b.len() && a.iter().zip(b).all(|(x, y)| Arc::ptr_eq(x, y) || x == y)
}
/// The error of a filter `name` whose output needs `permission`, which it wasn't granted.
fn not_granted(name: &str, permission: Permission) -> EngineError {
let (name, p) = (permissions::display_text(name, permissions::MAX_SHOWN_NAME), permission.name());
@@ -483,7 +514,7 @@ fn spec_of(p: &Plugin, c: &Command) -> &'static CommandSpec {
fields.push_str(own);
}
let params = format!(
"{{{fields}}} run “{label}”, a command of plug-in {}, on the selected paths and compound paths as plugin.run runs a filter, with _context.command {:?}: one undo step → {{plugin, command, ids}}",
"{{{fields}}} run “{label}”, a command of plug-in {}, on the selected paths and compound paths as plugin.run runs a filter, with _context.command {:?}: one undo step, none when the run changes nothing → {{plugin, command, ids}}",
m.id, c.id
);
let mut made = MADE.lock().unwrap_or_else(|e| e.into_inner());
@@ -1288,7 +1319,7 @@ pub fn specs() -> Vec<CommandSpec> {
"Run Plug-in",
[],
None,
"{id, params?: {…} (the plug-in's parameters; or give them as top-level keys; missing ones take their defaults, see plugin.info), ids?: [object id] (left out or null: the selection), …the plug-in's parameters as top-level keys} run an object filter on the selected paths and compound paths (inside selected groups and layers too; hidden, locked, guide and clipping paths, compound paths that clip a clip group and paths inside a group that clips one are left out): it may change, delete or add objects, as one undo step; the result is selected, except the objects it locked or made guides. A filter whose manifest lists inputs (type, image, symbolInstance; it lists doc.read in permissions, so plugin.install needs grant) is also given the selected objects of those kinds to read, in paint order from the bottom, with at most 16 MiB of pixels and 16 MiB of type runs per run (an object that doesn't fit what the objects before it left comes with pixelsOmitted or truncated; an image that reaches the decoder counts toward the pixels even when decoding fails); every object counts toward the input's half of the plug-in's memory cap, ids, bounds, transforms and names included, and an object whose fields besides its pixels and runs don't fit fails the run with a memory-budget error naming it and its size (a path or compound path fails it with the memory-budget error for a selection too large to hand over), and more than 100,000 of these objects fail it with an object-budget error: its output returns each as {id} or exactly as given, or the run is refused and nothing changes. With nothing selected it gets no objects (generators add theirs to the current layer). A filter with a commandAllowlist runs the commands it names while it runs (vc_call, see docs/plugins.md): its calls and its output are one undo step, and a run that fails or makes a call that fails changes nothing → {plugin, ids}",
"{id, params?: {…} (the plug-in's parameters; or give them as top-level keys; missing ones take their defaults, see plugin.info), ids?: [object id] (left out or null: the selection), …the plug-in's parameters as top-level keys} run an object filter on the selected paths and compound paths (inside selected groups and layers too; hidden, locked, guide and clipping paths, compound paths that clip a clip group and paths inside a group that clips one are left out): it may change, delete or add objects, as one undo step (an output that changes no object and no kept data records none and leaves the document unmodified); the result is selected, except the objects it locked or made guides. A filter whose manifest lists inputs (type, image, symbolInstance; it lists doc.read in permissions, so plugin.install needs grant) is also given the selected objects of those kinds to read, in paint order from the bottom, with at most 16 MiB of pixels and 16 MiB of type runs per run (an object that doesn't fit what the objects before it left comes with pixelsOmitted or truncated; an image that reaches the decoder counts toward the pixels even when decoding fails); every object counts toward the input's half of the plug-in's memory cap, ids, bounds, transforms and names included, and an object whose fields besides its pixels and runs don't fit fails the run with a memory-budget error naming it and its size (a path or compound path fails it with the memory-budget error for a selection too large to hand over), and more than 100,000 of these objects fail it with an object-budget error: its output returns each as {id} or exactly as given, or the run is refused and nothing changes. With nothing selected it gets no objects (generators add theirs to the current layer). A filter with a commandAllowlist runs the commands it names while it runs (vc_call, see docs/plugins.md): its calls and its output are one undo step, and a run that fails or makes a call that fails changes nothing → {plugin, ids}",
has_doc,
run
),
+86 -7
View File
@@ -1808,6 +1808,86 @@ fn filters_keep_their_data_with_the_document() {
assert_eq!(data(&s), None);
}
/// A filter run whose output changes nothing (an echo) records no undo step, leaves a saved
/// document unmodified and the document as it was, and still selects its objects. One that changes
/// one of the objects records exactly one step, and running it again records none.
#[test]
fn a_filter_run_that_changes_nothing_records_no_undo_step() {
let mut s = session();
let a = rect(&mut s, 10.0, "#ff0000");
let b = rect(&mut s, 40.0, "#0000ff");
let echo = "test.engine.noop.echo";
install_wat(&mut s, &tpl::module(&tpl::manifest(echo, "filter", "{}"), tpl::ECHO, "", 1));
run(&mut s, "select.none", json!({}));
s.doc_mut().unwrap().mark_saved();
let (doc, undo) = (s.doc().unwrap().doc.clone(), s.doc().unwrap().history.undo.len());
let r = run(&mut s, "plugin.run", json!({"id": echo, "ids": [a.0, b.0]}));
assert_eq!(r["ids"], json!([a.0, b.0]));
let st = s.doc().unwrap();
assert!(std::sync::Arc::ptr_eq(&st.doc, &doc), "the document stays as it was");
assert_eq!((st.history.undo.len(), st.is_dirty()), (undo, false), "no undo step; still saved");
assert_eq!(st.selection.objects, [a, b], "its objects are selected");
// Renaming one object of the two is one undo step.
let renamer = "test.engine.noop.renamer";
let renamed = json!({"objects": [{"id": a.0, "name": "Renamed"}, {"id": b.0}]});
install_wat(&mut s, &tpl::returning(&tpl::manifest(renamer, "filter", "{}"), &renamed.to_string()));
run(&mut s, "plugin.run", json!({"id": renamer, "ids": [a.0, b.0]}));
let st = s.doc().unwrap();
assert_eq!((st.history.undo.len(), st.is_dirty()), (undo + 1, true));
assert_eq!(node(&s, a).name.as_deref(), Some("Renamed"));
// Run again, it renames nothing: no second step.
run(&mut s, "plugin.run", json!({"id": renamer, "ids": [a.0, b.0]}));
assert_eq!(s.doc().unwrap().history.undo.len(), undo + 1);
for id in [echo, renamer] {
run(&mut s, "plugin.remove", json!({"id": id}));
}
}
/// A filter that writes the data it already keeps with the document records no undo step; writing
/// other data, or removing it, records one, and removing data it does not keep records none.
#[test]
fn a_filter_that_keeps_the_same_data_records_no_undo_step() {
let mut s = session();
let id = rect(&mut s, 10.0, "#ff0000");
let pid = "test.engine.noop.data";
let keep = |s: &mut Session, data: Value| {
let out = json!({"objects": [{"id": id.0}], "documentData": data});
install_wat(s, &tpl::returning(&tpl::manifest(pid, "filter", "{}"), &out.to_string()));
run(s, "plugin.run", json!({"id": pid, "ids": [id.0]}));
s.doc().unwrap().history.undo.len()
};
let undo = s.doc().unwrap().history.undo.len();
assert_eq!(keep(&mut s, json!({"pen": 2})), undo + 1);
assert_eq!(keep(&mut s, json!({"pen": 2})), undo + 1, "the same data: no step");
assert_eq!(keep(&mut s, json!({"pen": 3})), undo + 2);
assert_eq!(keep(&mut s, Value::Null), undo + 3, "removed");
assert_eq!(keep(&mut s, Value::Null), undo + 3, "nothing kept to remove: no step");
assert_eq!(s.doc().unwrap().doc.plugin_data(pid), None);
run(&mut s, "plugin.remove", json!({"id": pid}));
}
/// A plug-in command whose run changes nothing records no undo step, and so does a filter or a
/// command that may call commands and hands back what it is given.
#[test]
fn a_plugin_command_that_changes_nothing_records_no_undo_step() {
let mut s = session();
rect(&mut s, 10.0, "#ff0000");
run(&mut s, "select.all", json!({}));
let undo = s.doc().unwrap().history.undo.len();
let id = "test.engine.noop.cmds";
install_wat(&mut s, &grower(id));
run(&mut s, &format!("plugin.{id}.tidy"), json!({}));
assert_eq!(s.doc().unwrap().history.undo.len(), undo, "tidy hands back its input");
run(&mut s, "plugin.remove", json!({"id": id}));
let calling = "test.engine.noop.calling";
install_echo_calling(&mut s, calling, r#"[{"id":"same","label":"Same"}]"#);
run(&mut s, &format!("plugin.{calling}.same"), json!({}));
run(&mut s, "plugin.run", json!({"id": calling}));
assert!(!s.in_interaction());
assert_eq!(s.doc().unwrap().history.undo.len(), undo, "an echo that may call commands");
run(&mut s, "plugin.remove", json!({"id": calling}));
}
#[test]
fn plugin_management_commands() {
let _folder = PREFS_FOLDER.lock().unwrap_or_else(|e| e.into_inner());
@@ -5299,13 +5379,12 @@ fn deferred_move(s: &mut Session) -> NodeId {
r
}
/// The rectangle a run named `label` during [`deferred_move`] left: moved, with the interaction
/// ended and the move an undo step of its own before the run's.
fn assert_moved_once(s: &Session, r: NodeId, label: &str) {
/// The rectangle a run that hands back what it is given left during [`deferred_move`]: moved, with
/// the interaction ended and the move the last undo step, since the run changed nothing.
fn assert_moved_once(s: &Session, r: NodeId) {
assert!(!s.in_interaction());
assert_eq!(node(s, r).geometric_bounds().unwrap().x0, 17.0, "the filter was given the moved rectangle");
let labels: Vec<&str> = s.doc().unwrap().history.undo.iter().rev().take(2).map(|e| e.label.as_str()).collect();
assert_eq!(labels, [label, "Move"]);
assert_eq!(s.doc().unwrap().history.undo.last().map(|e| e.label.as_str()), Some("Move"));
}
/// With Real-time Drawing off, `plugin.run` of a filter that calls commands during a drag applies
@@ -5317,7 +5396,7 @@ fn a_filter_that_calls_commands_is_given_a_deferred_move() {
install_echo_calling(&mut s, id, "[]");
let r = deferred_move(&mut s);
run(&mut s, "plugin.run", json!({"id": id}));
assert_moved_once(&s, r, &format!("Test {id}"));
assert_moved_once(&s, r);
run(&mut s, "plugin.remove", json!({"id": id}));
}
@@ -5330,6 +5409,6 @@ fn a_plugin_command_that_calls_commands_is_given_a_deferred_move() {
install_echo_calling(&mut s, id, r#"[{"id":"same","label":"Same"}]"#);
let r = deferred_move(&mut s);
run(&mut s, &format!("plugin.{id}.same"), json!({}));
assert_moved_once(&s, r, "Same");
assert_moved_once(&s, r);
run(&mut s, "plugin.remove", json!({"id": id}));
}
+2 -2
View File
@@ -562,7 +562,7 @@ fn installing_a_plugin_over_another_module_asks_first() {
app.run("plugin.remove", json!({"id": id})).unwrap();
}
/// A plug-in with two commands: Grow, which adds a triangle (`_context.command` is `grow`), and
/// A plug-in with two commands, each of which adds a triangle when run as a command: Grow, and
/// Size, with a parameter, whose `menu` names another menu.
fn commands_plugin(id: &str) -> Vec<u8> {
let manifest = format!(
@@ -570,7 +570,7 @@ fn commands_plugin(id: &str) -> Vec<u8> {
{{"id":"size","label":"Size","menu":"File","params":{{"by":{{"type":"number","min":0,"max":10,"default":2}}}}}}]}}"#
);
let triangle = r#"{"objects":[{"path":{"subpaths":[{"closed":true,"anchors":[{"p":[0,0]},{"p":[5,0]},{"p":[5,5]}]}]}}]}"#;
wat::parse_str(tpl::when_given(&manifest, tpl::Given::Params, r#""command":"grow""#, triangle)).unwrap()
wat::parse_str(tpl::when_given(&manifest, tpl::Given::Params, r#""mode":"command""#, triangle)).unwrap()
}
fn objects(app: &VectorcraftApp) -> usize {
+2 -1
View File
@@ -13245,7 +13245,8 @@ while it changes it, so installs, removals, grants and plug-in settings from two
be locked, `plugin.install` and `plugin.remove` fail and change nothing:
`plugin.install {path | dataBase64}` installs one, `plugin.list` / `plugin.info {id}` describe them (parameters,
schema, defaults). An object filter runs on the selected paths and compound paths with `plugin.run {id, params}` (one
undo step; it may change, delete or add objects, and the result is selected). A filter whose manifest lists `inputs`
undo step; it may change, delete or add objects, and the result is selected; a run that changes no object and no kept
data records no undo step and leaves the document unmodified). A filter whose manifest lists `inputs`
(`type`, `image`, `symbolInstance`; `inputs` in its `plugin.list` entry) also lists `doc.read` in its `permissions`, so
installing it needs a person's approval. It is also given the selected objects of those kinds to read, in paint order from the
bottom, with at most 16 MiB of pixels and 16 MiB of type runs over one run (an object that doesn't fit what the objects
+4 -3
View File
@@ -8,7 +8,8 @@ sandbox, same manifest and parameter schema), extended for vector documents.
There are four kinds of plug-in:
- **Object filters** read the selected paths and compound paths (geometry, fills, strokes, gradients, opacity)
and return the objects to keep, change or add. A run is one undo step. Use them for recolouring, path
and return the objects to keep, change or add. A run is one undo step, and a run that changes nothing records
none. Use them for recoloring, path
clean-up, halftones, generative patterns and the like.
- **Live effects** rewrite one object's geometry each time it is drawn, from its appearance stack, like the
built-in Distort & Transform effects. The art stays editable: move or reshape it and the effect follows. A live
@@ -29,7 +30,7 @@ in `crates/engine/src/cmd/plugin.rs`).
|---|---|---|
| `plugin.list` | `{}` | `{"plugins": [{id, name, version, kind, author, description, params, paramsSchema, effect?, format?, extensions?, budget?, commands?, commandAllowlist?, size, source, api, paintOutput?, permissions, hash, cacheBytes}], "folder": report}` (`api` is the manifest's [plug-in API level](#permissions); `budget: "heavy"` for a [heavy filter](#heavy-filters); `commands` lists its [commands](#commands); `commandAllowlist` lists the commands it may [call](#command-calls); `paintOutput: true` marks a [painted live effect](#painted-live-effects); `permissions` lists what it [may do](#permissions), `hash` is the module's SHA-256; `cacheBytes` is the size of its [cache](#settings-and-cache)) |
| `plugin.info` | `{"id"}` | One plug-in: the `plugin.list` entry plus `manifest`, `defaults` and `lastError` (a live effect's last failure). |
| `plugin.run` | `{"id", "params"?: {…}, "ids"?: [...]}` (plug-in params may also be top-level keys) | Runs an object filter on the selection (or `ids`; an `ids` that is not a list of object ids is an error). One undo step; the result is selected, except the objects it locked or made guides. |
| `plugin.run` | `{"id", "params"?: {…}, "ids"?: [...]}` (plug-in params may also be top-level keys) | Runs an object filter on the selection (or `ids`; an `ids` that is not a list of object ids is an error). One undo step; the result is selected, except the objects it locked or made guides. An output that changes no object and none of the data it keeps with the document ([`documentData`](#output)) records no undo step and leaves the document unmodified. |
| `plugin.install` | `{"path": "/x/y.wasm"}` (desktop) or `{"dataBase64": "…", "name"?}`, `"replace"?: bool`, `"allowHeavy": bool = false`, `"grant"?: [permission]`, `"hash"?: "sha256 hex"` | Validates and installs a module; returns its `plugin.list` entry. The desktop app and `vectorcraft-cli` keep it in the `Plug-ins` folder next to the preferences, so it is installed again after a restart (#2541). A module with other bytes than the plug-in installed with its id, or, with none installed, one whose id has [settings and a cache](#settings-and-cache) in the `Plug-ins` folder, installs only with `replace: true`, once the user agreed; it takes that plug-in's place and gets its settings and cache. The same module installs again without `replace`, and `replace: false` refuses a module whose id is installed. A [heavy filter](#heavy-filters) installs only with `allowHeavy: true`. A plug-in whose manifest lists [permissions](#permissions) installs only when `grant` lists every one of them, unless a grant is already recorded for a module with the same SHA-256. A request's `grant` and `allowHeavy` are refused except in a session started with `vectorcraft-cli --allow-plugin-grants`. With `hash`, a module whose SHA-256 differs is refused. A module whose `commandAllowlist` lists a command no plug-in may call is refused; ids no command has are listed as `unknownCommands` ([command calls](#command-calls)). |
| `plugin.inspect` | as `plugin.install`: `{"path"}` or `{"dataBase64", "name"?}` | Validates a module without installing it; returns the `plugin.list` entry it would have, plus `needsApproval` (true when installing it needs a person's approval), `needsReplace` (true when `plugin.install` needs `replace: true`), and the `commandAllowlist` ids no command has (`unknownCommands`) and those no plug-in may call (`refusedCommands`). |
| `plugin.remove` | `{"id"}` | Uninstalls, and deletes it from the `Plug-ins` folder with its [settings and cache](#settings-and-cache). |
@@ -101,7 +102,7 @@ replaced by a module without it.
`_context.command` set to the command's id ([Parameters](#parameters)), under the plug-in's
[permissions](#permissions): a live effect with commands may also hold `doc.write` and `state`, which only its
commands use. `ids` left out or null means the selection; an `ids` that is not a list of object ids is an error. One run
is one undo step named after the command. A run that traps, runs out of its instruction budget or fails leaves the
is one undo step named after the command, and a run that changes nothing records none. A run that traps, runs out of its instruction budget or fails leaves the
document and the undo history as they were, and the error starts with the plug-in's name and the command's label
(`“Cmd Test” › Grow: …`).
+1
View File
@@ -1227,6 +1227,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
- A script's error about answers in `answers` that it did not use, and Liquify's warning about the objects under the brush that it left as they were, show in the status bar in the interface language for one answer or object as well as for several, with the count's own form in each catalog that translates all status and error messages; the English the commands return stays as it was (`messages_with_one_or_several_items_translate_in_every_complete_catalog`, `unused_answers_are_counted_in_the_singular_and_the_plural`, `liquify_warns_about_one_or_several_skipped_objects`).
- In that Liquify warning, the tool's name and each kind of object it left (graphs, type, symbols, images, meshes, envelopes, repeats, placed documents, blends) are shown in the interface language too, in the order the command lists them and joined as the language joins a list, in each catalog that translates all status and error messages (`liquify-tool`, `liquify-kind` and `liquify-list-*` rows); a kind that Liquify does not list leaves the tool and the list in English (`liquify_warning_translates_its_tool_and_kinds_in_every_complete_catalog`).
- An effect a plug-in's output or an importer plug-in's objects carry that VectorCraft refuses (``[0] `id`: reason``) shows in the status bar with its reason in the interface language inside `plug-in output: …` and `can't open …`, in every catalog that translates all status and error messages; the index and the effect id stay as they are, and a JSON array in a message stays as it is (`nested_effect_refusals_translate_with_their_reason`, `bracketed_message_parts_translate_only_as_exact_messages`).
- A filter run (`plugin.run`) or plug-in command whose output changes no object and none of the data the plug-in keeps with the document records no undo step and leaves a saved document unmodified, with its objects still selected; a run that may call commands records none when its calls leave the document as it was (engine `plugins::a_filter_run_that_changes_nothing_records_no_undo_step`, `plugins::a_filter_that_keeps_the_same_data_records_no_undo_step`, `plugins::a_plugin_command_that_changes_nothing_records_no_undo_step`).
- The untranslated report lists the status and error messages of the effects, swatch libraries, raster sizes and encoders, 3D solids and path operations that a catalog lacks, the messages that a `.map_err` closure or a named error handler returns, and the phrases a parameter schema's error builds for what a value must be (`untranslated_report_checks_every_message_crate_and_schema_phrase`, `message_scan_reads_map_err_closures`, `message_scan_reads_named_map_err_handlers`).
- The Swedish catalog has rows for the Apply SVG Filter and Check Spelling command names, the SVG Filter effect's name, which also names its undo step, and the 3D and Materials panel's note that graphics map onto the Plane, Extrude and Revolve object types, so these show in Swedish instead of English (`swedish_svg_filter_spelling_and_3d_labels_are_complete`).
- Spanish messages (2026-11-13): the Spanish catalog (`crates/ui-egui/src/i18n/es.tsv`) has an `@msg` row for 114 of the 167 status and error messages that the untranslated report (`untranslated_report`) lists as missing in all 23 complete-message languages: the errors of the image encoders, color profiles, swatch exchange files and color books, 3D and Revolve, path operations, DXF import, the script engine and the parameter checks. Open #7211 and #7378 translate 51 of the others (the composite font and SVG filter errors), and 2 stay in English. The rows keep the placeholders, backticked names, accepted values and limits of their English (`spanish_translates_encoder_profile_swatch_revolve_and_parameter_errors`); native review remains; scores and estimates unchanged.