diff --git a/crates/engine/src/cmd/variablecmds.rs b/crates/engine/src/cmd/variablecmds.rs index ea6647b7a4..db1a641f2f 100644 --- a/crates/engine/src/cmd/variablecmds.rs +++ b/crates/engine/src/cmd/variablecmds.rs @@ -23,7 +23,10 @@ use vectorcraft_doc::{DataSet, DataValue, Document, NodeId, NodeKind, Selection, use super::edit::selected_roots; use super::fileio::{absolute_path, read_file_head, write_file}; use super::textedit::set_story_text; -use super::{CommandSpec, EngineError, Result, Session, bad, bool_or, checked_ids_or_selection, cmd, has_doc, has_selection, links, str_param}; +use super::{ + CommandSpec, EngineError, Result, Session, bad, bool_or, checked_ids_or_selection, checked_ids_param, cmd, has_doc, has_selection, links, + str_param, +}; mod csv; mod library; @@ -435,7 +438,8 @@ fn bind(s: &mut Session, p: &Value) -> Result { fn unbind(s: &mut Session, p: &Value) -> Result { const C: &str = "variable.unbind"; - let ids = checked_ids_or_selection(s, p, C)?; + // Explicit bindings can include both a group and its children; retain every supplied ID. + let ids = if p.get("ids").is_some_and(|v| !v.is_null()) { checked_ids_param(s, p, "ids", C)? } else { checked_ids_or_selection(s, p, C)? }; let name = defined_variable(s, p, C)?; let n = edit_variables(s, "Unbind Variable", |vars| { let mut n = 0; diff --git a/crates/ui-egui/src/panels/variables.rs b/crates/ui-egui/src/panels/variables.rs index 1b6561f550..2d7e7568ac 100644 --- a/crates/ui-egui/src/panels/variables.rs +++ b/crates/ui-egui/src/panels/variables.rs @@ -94,12 +94,16 @@ fn headers(ui: &mut Ui, sort: VariableSort) -> Option { fn variable_row(ui: &mut Ui, row: &VarRow, selected: bool) -> Response { let t = Tokens::get(ui.ctx()); let h = ui.spacing().interact_size.y; - let (rect, r) = ui.allocate_exact_size(vec2(ui.available_width(), h), Sense::click()); + let (_, rect) = ui.allocate_space(vec2(ui.available_width(), h)); + let r = ui.interact(rect, ui.scope_id().with(("variable-row", &row.name)), Sense::click()); if selected { ui.painter().rect_filled(rect, 0.0, t.row_selected); } else if r.hovered() { ui.painter().rect_filled(rect, 0.0, t.hover); } + if r.has_focus() { + ui.painter().rect_stroke(rect, 0.0, egui::Stroke::new(1.0, t.accent), egui::StrokeKind::Inside); + } // The kind's own icon, so a text variable and a visibility one read apart. let icon = match row.kind { VariableKind::Text => "type", @@ -389,6 +393,51 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) { if r.double_clicked() && !locked { crate::dialogs::variables::open(app, "variable.rename", Some(&row.name)); } + // Highlight without selecting the bound art: dynamic actions use the canvas selection. + let keyboard_menu = r.has_focus() && ui.input_mut(|i| i.consume_key(egui::Modifiers::SHIFT, egui::Key::F10)); + if r.secondary_clicked() || keyboard_menu { + app.run("variable.highlight", json!({"variable": row.name})).ok(); + r.request_focus(); + } + let popup_id = egui::Popup::default_response_id(&r); + if keyboard_menu { + egui::Popup::open_id(ui.ctx(), popup_id); + } + let popup = egui::Popup::context_menu(&r); + // Keyboard-opened menus have no saved pointer position: anchor them to the row. + let popup = if r.context_menu_opened() && egui::Popup::position_of_id(ui.ctx(), popup_id).is_none() { popup.anchor(&r) } else { popup }; + popup.show(|ui| { + if widgets::menu_item(ui, tl!("Select Bound Object"), !row.bound.is_empty(), false) { + app.run("variable.highlight", json!({"variable": row.name})).ok(); + select_bound_object(app); + ui.close(); + } + if widgets::menu_item(ui, tl!("Variable Options…"), !locked, false) { + crate::dialogs::variables::open(app, "variable.rename", Some(&row.name)); + ui.close(); + } + if widgets::menu_item(ui, tl!("Unbind Variable"), !row.bound.is_empty() && !locked, false) { + app.run("variable.unbind", json!({"ids": row.bound, "variable": row.name})).ok(); + ui.close(); + } + ui.separator(); + for (label, command, enabled) in [ + (tl!("Make Text Dynamic"), "variable.makeTextDynamic", single_type), + (tl!("Make Visibility Dynamic"), "variable.makeVisibilityDynamic", has_selection), + (tl!("Make Image Dynamic"), "variable.makeImageDynamic", single_image), + (tl!("Make Graph Dynamic"), "variable.makeGraphDynamic", selection_graph), + ] { + if widgets::menu_item(ui, label, enabled && !locked, false) { + app.run(command, json!({})).ok(); + ui.close(); + } + } + ui.separator(); + if widgets::menu_item(ui, tl!("Delete Variable"), !locked, false) { + app.run("variable.delete", json!({"names": [row.name]})).ok(); + ui.close(); + } + }); } widgets::subheader(ui, tl!("Data Sets")); @@ -684,10 +733,14 @@ mod tests { /// Clicks the center of `node`. fn click(&mut self, app: &mut VectorcraftApp, node: &egui::accesskit::Node) { - use egui::{Event, Modifiers, PointerButton}; + self.click_button(app, node, egui::PointerButton::Primary); + } + + fn click_button(&mut self, app: &mut VectorcraftApp, node: &egui::accesskit::Node, button: egui::PointerButton) { + use egui::{Event, Modifiers}; let b = node.bounds().expect("bounds"); let pos = egui::pos2((b.x0 + b.x1) as f32 * 0.5, (b.y0 + b.y1) as f32 * 0.5); - let (button, none) = (PointerButton::Primary, Modifiers::default()); + let none = Modifiers::default(); self.frame(app, vec![Event::PointerMoved(pos), Event::PointerButton { pos, button, pressed: true, modifiers: none }]); self.frame(app, vec![Event::PointerButton { pos, button, pressed: false, modifiers: none }]); self.frame(app, vec![]); @@ -707,6 +760,155 @@ mod tests { } } + fn open_row_menu(d: &mut Driver, app: &mut VectorcraftApp, name: &str) -> Vec { + let nodes = d.nodes(app); + let row = nodes.iter().find(|(_, n)| n.role() == egui::accesskit::Role::ListItem && n.label() == Some(name)).expect("variable row"); + d.click_button(app, &row.1, egui::PointerButton::Secondary); + d.nodes(app).into_iter().filter(|(id, _)| !nodes.iter().any(|(before, _)| before == id)).map(|(_, n)| n).collect() + } + + fn menu_button(nodes: &[egui::accesskit::Node], label: &str) -> egui::accesskit::Node { + nodes.iter().find(|n| n.role() == egui::accesskit::Role::Button && n.label().is_some_and(|s| s.trim() == label)).expect(label).clone() + } + + #[test] + fn right_click_highlights_row_and_select_bound_object_uses_it() { + let mut app = app_with_data(); + app.run("variable.define", json!({"name": "Other", "kind": "visibility"})).unwrap(); + app.run("variable.highlight", json!({"variable": "Other"})).unwrap(); + app.run("select.set", json!({"ids": []})).unwrap(); + let mut d = Driver::new(); + let nodes = open_row_menu(&mut d, &mut app, "Name · Alice"); + let st = app.session.active().unwrap(); + assert_eq!(highlighted_row(st).as_deref(), Some("Name")); + assert!(st.selection.objects.is_empty(), "right click must preserve canvas selection"); + let bound = st.doc.variables.objects_of("Name"); + app.run("variable.highlight", json!({"variable": "Other"})).unwrap(); + d.click(&mut app, &menu_button(&nodes, "Select Bound Object")); + assert_eq!(app.session.active().unwrap().selection.objects, bound); + } + + #[test] + fn keyboard_opens_focused_row_menu_without_changing_canvas_selection() { + use egui::{Event, Key, Modifiers}; + let mut app = app_with_data(); + let selected = app.session.active().unwrap().selection.objects.clone(); + let mut d = Driver::new(); + let nodes = d.nodes(&mut app); + let row_id = nodes.iter().find(|(_, n)| n.role() == egui::accesskit::Role::ListItem).unwrap().0; + let key = |key, modifiers| Event::Key { key, physical_key: None, pressed: true, repeat: false, modifiers }; + for _ in 0..20 { + if d.ctx.memory(|m| m.focused()).is_some_and(|id| id.value() == row_id.0) { + break; + } + d.frame(&mut app, vec![key(Key::Tab, Modifiers::NONE)]); + d.frame(&mut app, vec![]); + } + assert!(d.ctx.memory(|m| m.focused()).is_some_and(|id| id.value() == row_id.0), "Tab must focus the variable row"); + d.frame(&mut app, vec![key(Key::F10, Modifiers::SHIFT)]); + let nodes = d.nodes(&mut app).into_iter().map(|(_, n)| n).collect::>(); + assert!(egui::Popup::is_any_open(&d.ctx)); + assert!(!menu_button(&nodes, "Select Bound Object").is_disabled()); + assert_eq!(highlighted_row(app.session.active().unwrap()).as_deref(), Some("Name")); + assert_eq!(app.session.active().unwrap().selection.objects, selected); + d.frame(&mut app, vec![key(Key::Escape, Modifiers::NONE)]); + assert!(!egui::Popup::is_any_open(&d.ctx)); + } + + #[test] + fn context_menu_deletes_clicked_variable_in_one_undo_step() { + let mut app = app_with_data(); + app.run("variable.define", json!({"name": "Other", "kind": "visibility"})).unwrap(); + app.run("variable.highlight", json!({"variable": "Other"})).unwrap(); + let before = undo_steps(&app); + let mut d = Driver::new(); + let nodes = open_row_menu(&mut d, &mut app, "Name · Alice"); + // A command can change the highlight while this row's menu remains open. + app.run("variable.highlight", json!({"variable": "Other"})).unwrap(); + app.run("variable.sort", json!({"by": "name", "descending": true})).unwrap(); + d.frame(&mut app, vec![]); + d.click(&mut app, &menu_button(&nodes, "Delete Variable")); + let st = app.session.active().unwrap(); + assert!(st.doc.variables.variable("Name").is_none()); + assert!(st.doc.variables.variable("Other").is_some()); + assert_eq!(undo_steps(&app), before + 1); + app.run("edit.undo", json!({})).unwrap(); + assert!(app.session.active().unwrap().doc.variables.variable("Name").is_some()); + assert!(!app.session.active().unwrap().doc.variables.objects_of("Name").is_empty()); + } + + #[test] + fn context_menu_unbinds_only_clicked_variable() { + let mut app = app_with_data(); + let bound = app.session.active().unwrap().doc.variables.objects_of("Name"); + app.run("variable.define", json!({"name": "Visible", "kind": "visibility"})).unwrap(); + app.run("variable.bind", json!({"variable": "Visible", "ids": [bound[0].0]})).unwrap(); + let before = undo_steps(&app); + let mut d = Driver::new(); + let nodes = open_row_menu(&mut d, &mut app, "Name · Alice"); + d.click(&mut app, &menu_button(&nodes, "Unbind Variable")); + let st = app.session.active().unwrap(); + assert!(st.doc.variables.objects_of("Name").is_empty()); + assert_eq!(st.doc.variables.objects_of("Visible"), bound); + assert_eq!(undo_steps(&app), before + 1); + app.run("edit.undo", json!({})).unwrap(); + assert_eq!(app.session.active().unwrap().doc.variables.objects_of("Name"), bound); + } + + #[test] + fn context_menu_unbinds_both_group_and_nested_object() { + let mut app = app_with_data(); + let text = app.session.active().unwrap().doc.variables.objects_of("Name")[0]; + let rect = app.run("shape.rectangle", json!({"x": 100, "y": 100, "width": 20, "height": 20})).unwrap()["id"].as_u64().unwrap(); + app.run("select.set", json!({"ids": [text.0, rect]})).unwrap(); + let group = app.run("object.group", json!({})).unwrap()["id"].as_u64().unwrap(); + app.run("variable.define", json!({"name": "Visible", "kind": "visibility"})).unwrap(); + // Bind separately so both the group and its child have the variable. + for id in [group, text.0] { + app.run("variable.bind", json!({"variable": "Visible", "ids": [id]})).unwrap(); + } + assert_eq!(app.session.active().unwrap().doc.variables.objects_of("Visible").len(), 2); + let before = undo_steps(&app); + let mut d = Driver::new(); + let nodes = open_row_menu(&mut d, &mut app, "Visible · Multiple objects"); + d.click(&mut app, &menu_button(&nodes, "Unbind Variable")); + assert!(app.session.active().unwrap().doc.variables.objects_of("Visible").is_empty()); + assert_eq!(undo_steps(&app), before + 1); + assert_eq!(app.session.active().unwrap().doc.variables.objects_of("Name"), vec![text]); + app.run("edit.undo", json!({})).unwrap(); + assert_eq!(app.session.active().unwrap().doc.variables.objects_of("Visible").len(), 2); + } + + #[test] + fn context_menu_disables_edits_when_locked_and_selection_actions_when_empty() { + let mut app = app_with_data(); + app.run("variable.lock", json!({})).unwrap(); + let mut d = Driver::new(); + let nodes = open_row_menu(&mut d, &mut app, "Name · Alice"); + assert!(!menu_button(&nodes, "Select Bound Object").is_disabled()); + for label in [ + "Variable Options…", + "Unbind Variable", + "Make Text Dynamic", + "Make Visibility Dynamic", + "Make Image Dynamic", + "Make Graph Dynamic", + "Delete Variable", + ] { + assert!(menu_button(&nodes, label).is_disabled(), "{label}"); + } + let mut app = app_with_data(); + app.run("variable.define", json!({"name": "Unbound", "kind": "visibility"})).unwrap(); + app.run("select.set", json!({"ids": []})).unwrap(); + let nodes = open_row_menu(&mut Driver::new(), &mut app, "Unbound"); + for label in + ["Select Bound Object", "Unbind Variable", "Make Text Dynamic", "Make Visibility Dynamic", "Make Image Dynamic", "Make Graph Dynamic"] + { + assert!(menu_button(&nodes, label).is_disabled(), "{label}"); + } + assert!(!menu_button(&nodes, "Delete Variable").is_disabled()); + } + fn set_names(app: &mut VectorcraftApp) -> Vec { let sets = app.run("dataset.list", json!({})).unwrap(); sets["datasets"].as_array().unwrap().iter().map(|d| d["name"].as_str().unwrap_or_default().to_string()).collect() diff --git a/docs/gaps.md b/docs/gaps.md index 618b48ff4c..ce471c2c73 100644 --- a/docs/gaps.md +++ b/docs/gaps.md @@ -10,6 +10,8 @@ ## Feature submission evidence +Variables panel row context menus (2026-11-20, G12): Right-click highlights the clicked variable without changing the canvas selection and offers Select Bound Object, Variable Options…, Unbind Variable, the four Make Dynamic actions, and Delete Variable. Shift+F10 opens the same menu for the focused row; Escape dismisses it. Row actions target that variable; dynamic actions use the canvas selection. Lock and selection checks disable unavailable actions. Headless pointer/accessibility tests cover opening the menu, highlighting, bound-object selection, deletion in one undo step and restoration, and disabled actions. Scores and estimates unchanged. + Actions panel item context menus (2026-11-20): Right-clicking an Action Set row selects it and presents a context menu with New Action…, New Set…, Duplicate Set, Delete Set, and Set Options…. Right-clicking an Action row selects it and presents a context menu with Play, Record, Duplicate, Delete, Action Options…, and Batch…. Duplicate on an action duplicates that action and selects the duplicate; Delete removes it. Headless tests in `crates/ui-egui/src/panels/actions.rs`: `right_clicking_an_action_set_selects_it_and_presents_set_context_options`, `right_clicking_an_action_selects_it_and_presents_action_options`, and `clicking_duplicate_on_an_action_duplicates_that_action_in_the_set`. Scores and estimates unchanged. **Scissors cut-point preview (#8655):** A native point marker shows the anchor or position on a curve that the current Scissors click targets, including the existing snapping rules. Hovering changes no artwork; an ineligible or stale hover has no marker. Existing cut and Alt Add Anchor behavior are retained. Focused tool and Session regressions live in `crates/tools/src/draw2/anchor/tests.rs` and `crates/engine/tests/scissors_snap.rs`. Scores and estimates are unchanged. @@ -58,6 +60,7 @@ Artboard Options forwards the active Artboard tool's Scale Artwork with Artboard | Date | Change | Summary | |---|---|---| +| 2026-11-20 | minor | G12: Variables panel row context menus implemented with row highlighting, bound-object selection, options, unbinding, selection-based dynamic actions and single-step deletion; headless regression coverage. Scores and estimates unchanged. | | 2026-11-20 | minor | G12: Asset Export tiles have item context menus for Export, Remove, Rename, Select Artwork on Canvas and collecting selected artwork; right-click selects an unselected tile and preserves an existing multi-selection. Headless regressions: panels::tests_asset_export. Scores and estimates unchanged. | | 2026-11-20 | minor | G12: Properties panel Quick Actions include contextual text actions (Create Outlines, Retype, Find and Replace…); headless tests in crates/ui-egui/src/panels/properties/tests.rs; scores and estimates unchanged. | | 2026-11-20 | minor | G12: Actions panel item context menus for action sets (New Action…, New Set…, Duplicate Set, Delete Set, Set Options…) and actions (Play, Record, Duplicate, Delete, Action Options…, Batch…) with selection handling; clicking Duplicate on an action duplicates that action; headless tests in `crates/ui-egui/src/panels/actions.rs`; scores and estimates unchanged. | @@ -522,6 +525,8 @@ macOS cursor delivery (#2292) is narrowed to a native host adapter using the exi ## G12 Preferences and panels that don't act yet +Variables panel row context menus (2026-11-20, G12): Right-click highlights the clicked variable without changing the canvas selection and offers Select Bound Object, Variable Options…, Unbind Variable, the four Make Dynamic actions, and Delete Variable. Shift+F10 opens the same menu for the focused row; Escape dismisses it. Row actions target that variable; dynamic actions use the canvas selection. Lock and selection checks disable unavailable actions. Headless pointer/accessibility tests cover opening the menu, highlighting, bound-object selection, deletion in one undo step and restoration, and disabled actions. Scores and estimates unchanged. + - **Implemented (2026-11-20):** Asset Export tiles have item context menus: Export and Remove act on the asset selection (plural labels for multiple assets), Rename opens the clicked tile's inline field, Select Artwork on Canvas selects that tile's source nodes, and Add Selected Artwork as One Asset / Multiple Assets are enabled with canvas selection. A right-click selects an unselected tile, clearing the previous asset selection, and preserves a multi-selection when the tile is already selected. Export reuses the raster/3D export path; Remove is one undo step and keeps the artwork. Headless regression coverage: `crates/ui-egui/src/panels/tests_asset_export.rs`. Other G12 panel gaps remain; scores and estimates unchanged. - **Implemented and tested (2026-11-20):** Appearance panel row context menus: right-clicking stroke and fill rows offers Duplicate Stroke / Duplicate Fill, Delete Stroke / Delete Fill, and Hide Stroke/Show Stroke / Hide Fill/Show Fill; effect rows offer Edit Effect…, Duplicate Effect, Delete Effect, and Hide Effect / Show Effect; the root object row offers Clear Appearance and Reduce to Basic Appearance. Right-clicking an unselected row targets that row before presenting the menu. Item actions run in one undo step. Headless regression coverage: `crates/ui-egui/src/panels/tests_appearance.rs`. Scores and estimates unchanged. diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index 57ac87a396..c9a3f6c22f 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -30,6 +30,8 @@ ## Feature submission evidence +Variables panel row context menus (2026-11-20, G12): Right-click highlights the clicked variable without changing the canvas selection and offers Select Bound Object, Variable Options…, Unbind Variable, the four Make Dynamic actions, and Delete Variable. Shift+F10 opens the same menu for the focused row; Escape dismisses it. Row actions target that variable; dynamic actions use the canvas selection. Lock and selection checks disable unavailable actions. Headless pointer/accessibility tests cover opening the menu, highlighting, bound-object selection, deletion in one undo step and restoration, and disabled actions. Scores and estimates unchanged. + Actions panel item context menus (2026-11-20): Right-clicking an Action Set row selects it and presents a context menu with New Action…, New Set…, Duplicate Set, Delete Set, and Set Options…. Right-clicking an Action row selects it and presents a context menu with Play, Record, Duplicate, Delete, Action Options…, and Batch…. Duplicate on an action duplicates that action and selects the duplicate; Delete removes it. Headless tests in `crates/ui-egui/src/panels/actions.rs`: `right_clicking_an_action_set_selects_it_and_presents_set_context_options`, `right_clicking_an_action_selects_it_and_presents_action_options`, and `clicking_duplicate_on_an_action_duplicates_that_action_in_the_set`. Scores and estimates unchanged. **Scissors cut-point preview (#8655):** A native point marker shows the anchor or position on a curve that the current Scissors click targets, including the existing snapping rules. Hovering changes no artwork; an ineligible or stale hover has no marker. Existing cut and Alt Add Anchor behavior are retained. Focused tool and Session regressions live in `crates/tools/src/draw2/anchor/tests.rs` and `crates/engine/tests/scissors_snap.rs`. Scores and estimates are unchanged. @@ -77,6 +79,7 @@ Artboard Options forwards the active Artboard tool's Scale Artwork with Artboard | Date | Change | Summary | |---|---|---| +| 2026-11-20 | minor | G12: Variables panel row context menus implemented with row highlighting, bound-object selection, options, unbinding, selection-based dynamic actions and single-step deletion; headless regression coverage. Scores and estimates unchanged. | | 2026-11-20 | minor | G12: Asset Export tiles have item context menus for Export, Remove, Rename, Select Artwork on Canvas and collecting selected artwork; right-click selects an unselected tile and preserves an existing multi-selection. Headless regressions: panels::tests_asset_export. Scores and estimates unchanged. | | 2026-11-20 | minor | G12: Actions panel item context menus for action sets (New Action…, New Set…, Duplicate Set, Delete Set, Set Options…) and actions (Play, Record, Duplicate, Delete, Action Options…, Batch…) with selection handling; clicking Duplicate on an action duplicates that action; headless tests in `crates/ui-egui/src/panels/actions.rs`; scores and estimates unchanged. | | 2026-11-20 | minor | G12: Appearance panel row context menus (Duplicate Stroke/Fill, Delete Stroke/Fill, Hide/Show Stroke/Fill, Edit Effect…, Duplicate Effect, Delete Effect, Hide/Show Effect, Clear Appearance, Reduce to Basic Appearance); right-clicking an unselected row targets that row first. Headless regressions: `panels::tests_appearance`. Scores and estimates unchanged. | @@ -947,6 +950,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur - **Command API reference:** `engine.apiReference` returns a Markdown reference written from the parameter schemas when it is asked for, and MCP serves the same text as the resource `vectorcraft://commands/reference` (`text/markdown; charset=utf-8`). Each command that has a schema gets a section in registry order with its label, menu path, API levels, what it writes, summary and return, and a table of its parameters (type, range with its ends marked included or not, unit, default, required, levels and description; members of objects as dotted rows). Commands without a schema, plug-in commands included, are left out. Schema text is escaped so it stays plain text in its table cell, the same build always returns the same bytes, and a reference past 1 MiB is an error rather than a cut-short text. The command's own schema raised the API level to 2. This is a VectorCraft documentation feature; no score changes. Tests: `cmd::apiref::tests` and `schemas::tests` in `vectorcraft-engine`, `resources::tests` in `vectorcraft-mcp`. - **Tool option errors:** `tool.setOption` checks every option it is given before it sets any: an option the tool doesn't have, a value of the wrong type, a number outside the tool's range or an unknown choice is an error naming the tool and the option (``tool `smooth`: `fidelity` must be a number from 0.05 to 100``), and no option, saved preference or undo step changes; `{}` only reads. Most ranges are the ones each tool's setter clamped to; the Arc tool's `lengthX` and `lengthY` take more than 0 up to 1e6 and the Line tool's `length` 0 to 1e6, where a negative length was taken as its absolute value. The Live Paint tools' `width` and the Shape Builder's `gapLength` are still set to the nearest end of their range. A Tool Options dialog with a refused value stays open. This is VectorCraft's own rule; no score changes. Tests: `option_check::tests` in `vectorcraft-tools`, `tests::toolsettings` in `vectorcraft-engine`, `tests::liquify` in `vectorcraft-mcp`, `dialogs::freehand::tests::a_refused_fidelity_keeps_the_dialog_open`. - **Automation:** + - Variables panel row context menus (2026-11-20, G12): Right-click highlights the clicked variable without changing the canvas selection and offers Select Bound Object, Variable Options…, Unbind Variable, the four Make Dynamic actions, and Delete Variable. Shift+F10 opens the same menu for the focused row; Escape dismisses it. Row actions target that variable; dynamic actions use the canvas selection. Lock and selection checks disable unavailable actions. Headless pointer/accessibility tests cover opening the menu, highlighting, bound-object selection, deletion in one undo step and restoration, and disabled actions. Scores and estimates unchanged. - Variables: Update Data Set writes what the art holds into the active data set for the variables that data set holds, and keeps the data set's value for a text, image or graph variable whose objects are locked or inside a locked layer or group; `dataset.update {all: true}` also adds the other variables that the art reports a value for. - Variables: `dataset.select`, `dataset.next` and `dataset.prev` rewrite type and apply the other values on hidden objects and in hidden layers and groups, which stay hidden unless a visibility value shows them, so a layer shown later holds the selected data set's text; objects that are locked or in a locked layer or group are skipped, except by a visibility value. - Variables: a visibility variable binds a locked layer, a locked object and objects inside a locked layer or group, and `dataset.select`, `dataset.next` and `dataset.prev` show and hide them without unlocking them; `dataset.list`, `dataset.capture` and `dataset.update` read whether they show. A text, image or graph variable refuses locked art.