diff --git a/apps/vectorcraft/src/main.rs b/apps/vectorcraft/src/main.rs index dc6e7fd7d6..4b1c77e0f1 100644 --- a/apps/vectorcraft/src/main.rs +++ b/apps/vectorcraft/src/main.rs @@ -432,6 +432,12 @@ fn opens_through_xwayland(pref: Option<&str>) -> bool { true } +/// The docking runtime needs the backend the desktop window is opened on. +fn desktop_shell_info(detected: Backend, forced_to_x11: bool) -> ShellInfo { + let backend = if forced_to_x11 { Backend::X11 } else { detected }; + ShellInfo::current().backend(backend) +} + /// The nightly channel this build is, as a string for the log. fn channel_name() -> &'static str { match build_flavor::COMPILED { @@ -718,10 +724,10 @@ fn main() -> std::process::ExitCode { // A window forced onto XWayland runs on X11, whose window manager draws the frame: the // framework decides the frame for that backend, from the platform, `VECTORCRAFT_TITLEBAR` and // Preferences › User Interface › System Title Bar. - let shell_info = if forced_to_x11 { ShellInfo::current().backend(Backend::X11) } else { ShellInfo::current() }; + let shell_info = desktop_shell_info(Backend::from_env(), forced_to_x11); // On Wayland with no cursor theme, the system pointer stays and no tool cursor is painted // beside it (#2450, #5311). - let wayland = !forced_to_x11 && Backend::from_env() == Backend::Wayland; + let wayland = shell_info.backend == Backend::Wayland; let caps = cursor_theme::shell_caps(shell_info.caps, wayland, cursor_theme::theme_missing); let shell_info = shell_info.caps(caps); let titlebar_pref = diff --git a/apps/vectorcraft/src/tests.rs b/apps/vectorcraft/src/tests.rs index 838d96845a..c28fb19c13 100644 --- a/apps/vectorcraft/src/tests.rs +++ b/apps/vectorcraft/src/tests.rs @@ -1,5 +1,18 @@ use super::*; +#[test] +fn desktop_shell_reports_the_backend_selected_for_docking() { + let wayland = desktop_shell_info(Backend::Wayland, false); + assert_eq!(wayland.backend, Backend::Wayland); + assert!(!wayland.window_positions(), "native Wayland keeps palettes inside the window"); + + for (detected, force_x11) in [(Backend::Wayland, true), (Backend::X11, false)] { + let x11 = desktop_shell_info(detected, force_x11); + assert_eq!(x11.backend, Backend::X11); + assert!(x11.window_positions(), "X11 and XWayland can place native palettes"); + } +} + /// The saved UI state of an old `ui.json`, as the legacy import reads it. fn legacy_ui(bytes: &[u8]) -> Option { vectorcraft_ui_egui::parse_legacy(bytes).ok().map(|(settings, _)| settings.ui) diff --git a/crates/engine/src/cmd/rasterfx.rs b/crates/engine/src/cmd/rasterfx.rs index d5f90d2411..f035ff55f5 100644 --- a/crates/engine/src/cmd/rasterfx.rs +++ b/crates/engine/src/cmd/rasterfx.rs @@ -149,17 +149,30 @@ pub(crate) fn clip_group(d: &mut Document, path: PathData, rule: FillRule, art: } /// Render `nodes` alone over transparency: (premultiplied pixels, width, height). -fn render(doc: &Document, nodes: Vec, region: Rect, scale: f64, anti_alias: AntiAlias) -> vectorcraft_render::Rendered { - let mut tmp = doc.clone(); +fn render(doc: &mut Document, nodes: Vec, region: Rect, scale: f64, anti_alias: AntiAlias) -> vectorcraft_render::Rendered { + struct RestoreLayers<'a> { + doc: &'a mut Document, + original: Vec>, + } + + impl Drop for RestoreLayers<'_> { + fn drop(&mut self) { + std::mem::swap(&mut self.doc.layers, &mut self.original); + } + } + let mut layer = Node::layer(NodeId(u64::MAX), "raster", vectorcraft_doc::LayerColor::Preset(0)); if let Some(ch) = layer.children_mut() { *ch = nodes.into_iter().map(Arc::new).collect(); } - tmp.layers = vec![Arc::new(layer)]; + // Keep the same resource tables, including images made by earlier effects, without + // copying them for each render. Restore the original layers even if rendering unwinds. + let original = std::mem::replace(&mut doc.layers, vec![Arc::new(layer)]); + let scoped = RestoreLayers { doc, original }; let mut r = vectorcraft_render::Renderer::new(); r.threads = 0; // Art Optimized is supersampled, as in exports: shapes meeting edge to edge leave no seam. - r.render_region_with(&tmp, region, scale, &RenderOptions { skip_templates: true, anti_alias, supersample: true, ..Default::default() }) + r.render_region_with(scoped.doc, region, scale, &RenderOptions { skip_templates: true, anti_alias, supersample: true, ..Default::default() }) } /// The note for pixels drawn since [`vectorcraft_render::decode_failures`] stood at `failed`, when diff --git a/crates/engine/src/tests/pdfraster.rs b/crates/engine/src/tests/pdfraster.rs index 957a6c3c2c..226bff66f1 100644 --- a/crates/engine/src/tests/pdfraster.rs +++ b/crates/engine/src/tests/pdfraster.rs @@ -104,6 +104,27 @@ fn assert_written(what: &str, d: &Document) { assert!(diff < 0.02 && diff < without / 4.0, "{what}: read back {:.2}% off ({:.2}% without the effects)", diff * 100.0, without * 100.0); } +#[test] +fn raster_pass_keeps_layers_and_a_previously_generated_image() { + use crate::cmd::rasterfx::effect_image; + + let mut d = Document::new(200.0, 200.0); + let art = rect(&mut d, Rect::new(40.0, 40.0, 80.0, 80.0), Color::rgb(1.0, 0.0, 0.0)); + let original_layer = Arc::clone(&d.layers[0]); + let first = effect_image(&mut d, &art, None, 1.0).unwrap(); + let second = effect_image(&mut d, &first, None, 1.0).unwrap(); + + assert_eq!(d.layers.len(), 1); + assert!(Arc::ptr_eq(&d.layers[0], &original_layer)); + assert_eq!(d.images.len(), 2); + + add(&mut d, second); + let rendered = render(&d); + let at = (60 * rendered.width as usize + 60) * 4; + let pixel = &rendered.pixels[at..at + 4]; + assert!(pixel[0] > 240 && pixel[1] < 15 && pixel[2] < 15, "the second pass still reads the first pass's image: {pixel:?}"); +} + #[test] fn groups_layers_type_images_and_symbols_keep_their_raster_effects() { // A group's shadow (one shadow of both members). diff --git a/crates/engine/src/tests/placed_document.rs b/crates/engine/src/tests/placed_document.rs index 00f976ab3f..3dd4959489 100644 --- a/crates/engine/src/tests/placed_document.rs +++ b/crates/engine/src/tests/placed_document.rs @@ -739,6 +739,8 @@ fn linked_pages_read_the_file_once_and_a_blank_page_keeps_its_crop_box() { let art = || PdfPage::new(100.0, 50.0, "1 0 0 rg 10 10 20 20 re f"); write(&src, &pdf(&[art(), PdfPage::new(80.0, 40.0, ""), art()], None)); let mut s = Session::new(); + // A freed buffer that had the blob's address may have been read before, in another test. + let mark = vectorcraft_pdf::read_mark(); s.execute("document.open", &json!({"path": src, "linkPages": true, "cropTo": "bounding"})).unwrap(); let d = &s.doc().unwrap().doc; let boards: Vec = d.artboards.iter().map(|a| a.rect).collect(); @@ -748,7 +750,7 @@ fn linked_pages_read_the_file_once_and_a_blank_page_keeps_its_crop_box() { // The pages are read from the one copy every page's blob keeps: a page that read the file // again would count here. let blob = d.images.values().next().map(|b| b.bytes.clone()).unwrap(); - assert_eq!(vectorcraft_pdf::reads_of(&blob), 0, "the pages are read from the file read once"); + assert_eq!(vectorcraft_pdf::reads_of_since(&blob, mark), 0, "the pages are read from the file read once"); } #[test] diff --git a/crates/pdf/src/lib.rs b/crates/pdf/src/lib.rs index 7c97651d1d..2dc6f1ec0a 100644 --- a/crates/pdf/src/lib.rs +++ b/crates/pdf/src/lib.rs @@ -90,12 +90,12 @@ pub use import_shading::function_evaluation_limit; pub use marks::{leaves_out_bleed, page_bleed, printer_marks}; pub use output::ActiveProfiles; pub use page_widths::{FontWidths, PageWidths}; -#[cfg(any(test, feature = "read-count"))] -pub use pages::reads_of; pub use pages::{ IllustratorData, Opened, PageInfo, PdfInfo, TrimPages, has_illustrator_data, illustrator_data, illustrator_data_without_pdf_part, info, is_postscript, open_pdf, read_illustrator_data_without_pdf_part, read_illustrator_data_without_pdf_part_with, }; +#[cfg(any(test, feature = "read-count"))] +pub use pages::{read_mark, reads_of, reads_of_since}; pub use piece_info::{PRIVATE_CHUNK, PrivateData}; pub use post::{THUMBNAIL_SIZE, Thumbnail}; pub use print::*; diff --git a/crates/pdf/src/pages.rs b/crates/pdf/src/pages.rs index a742070d20..7455c6d0f5 100644 --- a/crates/pdf/src/pages.rs +++ b/crates/pdf/src/pages.rs @@ -368,14 +368,33 @@ pub(crate) fn open_with_options(bytes: &[u8], password: Option<&str>, options: & }) } -/// How many times each buffer has been read as a PDF, by its address (tests). +/// The number the next read as a PDF gets, and every read of a buffer by the buffer's address with +/// its number (tests). A freed buffer's reads stay under its address, so a later buffer at the same +/// address starts with them: count from a [`read_mark`] taken before that buffer exists. #[cfg(any(test, feature = "read-count"))] -static READS: std::sync::Mutex> = std::sync::Mutex::new(std::collections::BTreeMap::new()); +type Reads = (u64, std::collections::BTreeMap>); + +#[cfg(any(test, feature = "read-count"))] +static READS: std::sync::Mutex = std::sync::Mutex::new((0, std::collections::BTreeMap::new())); /// How many times `bytes`, at its address, has been read as a PDF on any thread (tests). #[cfg(any(test, feature = "read-count"))] pub fn reads_of(bytes: &[u8]) -> usize { - READS.lock().ok().and_then(|r| r.get(&(bytes.as_ptr() as usize)).copied()).unwrap_or(0) + READS.lock().ok().and_then(|r| r.1.get(&(bytes.as_ptr() as usize)).map(Vec::len)).unwrap_or(0) +} + +/// The number the next read as a PDF gets, for [`reads_of_since`] (tests). +#[cfg(any(test, feature = "read-count"))] +pub fn read_mark() -> u64 { + READS.lock().map(|r| r.0).unwrap_or(0) +} + +/// How many times `bytes`, at its address, has been read as a PDF on any thread since `mark` was +/// taken with [`read_mark`] (tests). Reads made before `mark`, such as reads of a freed buffer +/// that had the same address, are not counted. +#[cfg(any(test, feature = "read-count"))] +pub fn reads_of_since(bytes: &[u8], mark: u64) -> usize { + READS.lock().ok().and_then(|r| r.1.get(&(bytes.as_ptr() as usize)).map(|reads| reads.iter().filter(|&&n| n >= mark).count())).unwrap_or(0) } /// [`open_with_options`] without looking at the file's objects ([`hostile`]): the reader builds its @@ -384,8 +403,9 @@ pub fn reads_of(bytes: &[u8]) -> usize { fn open_structural_with_options(bytes: &[u8], password: Option<&str>, options: &craft::pdf::OpenOptions) -> Result { #[cfg(any(test, feature = "read-count"))] if let Ok(mut reads) = READS.lock() { - let n = reads.entry(bytes.as_ptr() as usize).or_default(); - *n = n.saturating_add(1); + let n = reads.0; + reads.0 = n.saturating_add(1); + reads.1.entry(bytes.as_ptr() as usize).or_default().push(n); } if is_postscript(bytes) { return Err(PdfError::PostScript); @@ -763,4 +783,18 @@ mod tests { assert_eq!(super::decoded_size(1 << 30), "1 GB"); assert_eq!(super::decoded_size((1 << 30) + (1 << 20)), "1025 MB"); } + + /// Reads made before a mark, as of a freed buffer whose address a new one takes, are not + /// counted from that mark; reads after it are. + #[test] + fn reads_since_a_mark_leave_out_earlier_reads_at_the_same_address() { + let bytes = b"not a pdf".to_vec(); + let start = super::read_mark(); + let _ = super::open_structural_with_options(&bytes, None, &super::open_options()); + let mark = super::read_mark(); + assert_eq!(super::reads_of_since(&bytes, start), 1, "the read from the start"); + assert_eq!(super::reads_of_since(&bytes, mark), 0, "the read before the mark"); + let _ = super::open_structural_with_options(&bytes, None, &super::open_options()); + assert_eq!(super::reads_of_since(&bytes, mark), 1, "the read after the mark"); + } } diff --git a/crates/text/src/tests/sysfonts.rs b/crates/text/src/tests/sysfonts.rs index 32cb04c30c..1b1d90ee2b 100644 --- a/crates/text/src/tests/sysfonts.rs +++ b/crates/text/src/tests/sysfonts.rs @@ -536,21 +536,28 @@ fn the_menu_family_list_now_does_not_wait_for_the_scan() { db.scan_in_background(); // The scan can't end until the pipe is opened for writing, so a list that waited for it would // hold the installed fonts. This thread lets the scan go on once the calls return, or after 10 s - // if they are still waiting, so that such a test fails instead of hanging. + // if they are still waiting, so that such a test fails instead of hanging. It opens the pipe + // for reading and writing, which doesn't wait for a reader, and repeats that until the scan has + // ended: a single open for writing waits for any reader and lets only the readers already + // waiting go, so the test hung when the scan reached the pipe later, or ran on this thread + // because its own thread didn't start. let (returned, waiting) = std::sync::mpsc::channel::<()>(); let release = pipe.clone(); let guard = std::thread::spawn(move || { let _ = waiting.recv_timeout(std::time::Duration::from_secs(10)); - // The pipe is opened and closed with nothing written. - drop(std::fs::OpenOptions::new().write(true).open(&release).unwrap()); + while !db.installed_fonts_ready() { + // The pipe is opened and closed with nothing written. + drop(std::fs::OpenOptions::new().read(true).write(true).open(&release).unwrap()); + std::thread::yield_now(); + } }); let ready = db.installed_fonts_ready(); let listed = db.menu_family_list_now(); drop(returned); - guard.join().unwrap(); assert!(!ready && !has(&listed, FAMILY), "before the scan ends, only the fonts already loaded"); // Waits for the scan. assert!(has(&db.menu_family_list(), FAMILY)); + guard.join().unwrap(); assert!(db.installed_fonts_ready()); assert_ne!(db.generation(), generation, "a menu built from the short list is built again"); assert!(has(&db.menu_family_list_now(), FAMILY)); diff --git a/crates/ui-egui/src/chrome/tests.rs b/crates/ui-egui/src/chrome/tests.rs index 0a9e079f68..837c3d5e9a 100644 --- a/crates/ui-egui/src/chrome/tests.rs +++ b/crates/ui-egui/src/chrome/tests.rs @@ -110,12 +110,18 @@ impl Shown { self.find(label).unwrap_or_else(|| panic!("no {label:?} in {:?}", self.names())) } - /// The first node of the latest frame whose name starts with `prefix`, a control before a label. - fn starting(&self, prefix: &str) -> Option { + /// The named control in the window's title bar. The Tools panel can have a control with the same name. + fn app_bar_control(&self, prefix: &str) -> Option { let tree = self.fixture.tree(); - let named: Vec<_> = tree.keys().into_iter().filter(|key| tree.name_of(*key).is_some_and(|name| name.starts_with(prefix))).collect(); - let first = named.iter().find(|key| tree.role_of(**key) != Some(Role::LABEL)).or(named.first()); - first.and_then(|key| self.fixture.target(*key)) + let ctx = self.fixture.ctx(); + let window = ctx.content_rect(); + let title_height = craft::ui::runtime::env::Env::of_root(ctx).tokens.size.bar.title; + let title_bar = egui::Rect::from_min_size(window.min, egui::vec2(window.width(), title_height)); + tree.keys() + .into_iter() + .filter(|key| tree.role_of(*key) != Some(Role::LABEL) && tree.name_of(*key).is_some_and(|name| name.starts_with(prefix))) + .filter_map(|key| self.fixture.target(key)) + .find(|target| title_bar.contains(target.rect.center())) } /// The names the latest frame gives screen readers. @@ -452,7 +458,7 @@ fn the_app_bar_gives_up_its_right_hand_controls_in_order() { for width in (30..=160).rev().map(|w| w as f32 * 10.0) { bar.room(egui::vec2(width, 600.0)); bar.frame(Vec::new()).frame(Vec::new()); - let shown: Vec> = controls.iter().map(|c| bar.starting(c)).collect(); + let shown: Vec> = controls.iter().map(|c| bar.app_bar_control(c)).collect(); for (control, target) in controls.iter().zip(&shown) { if let Some(t) = target { assert!(t.rect.left() >= 0.0 && t.rect.right() <= width, "{width}: {control} at {:?} lies inside the window", t.rect); @@ -541,7 +547,7 @@ fn the_app_bar_keeps_its_right_hand_controls_an_item_gap_apart() { bar.frame(Vec::new()).frame(Vec::new()); assert!(gap.get() > 0.0, "the item gap is read from the theme"); let controls = ["Discord", "Search commands", "Choose a workspace"]; - let rects: Vec = controls.iter().map(|c| bar.starting(c).unwrap_or_else(|| panic!("{c} shows")).rect).collect(); + let rects: Vec = controls.iter().map(|c| bar.app_bar_control(c).unwrap_or_else(|| panic!("{c} shows")).rect).collect(); for pair in rects.windows(2) { let between = pair[1].left() - pair[0].right(); assert!(between >= gap.get() - 0.5, "neighboring controls {pair:?} are {between} apart, under the item gap {}", gap.get()); diff --git a/crates/ui-egui/src/toolbar.rs b/crates/ui-egui/src/toolbar.rs index e80ed26a77..34a7829ba9 100644 --- a/crates/ui-egui/src/toolbar.rs +++ b/crates/ui-egui/src/toolbar.rs @@ -2,8 +2,8 @@ //! Draw, Modify, Type, Navigate, Color). Window → Toolbars → Advanced shows every tool group; the //! double arrow at the top (or Window → Toolbars → Double Column, `window.toolbarColumns`) lays the //! tools out in one or two columns. -//! Bottom: fill/stroke proxy, colour/gradient/none, drawing modes, screen mode; the rail's own Edit -//! Toolbar button opens the All Tools drawer (`edit_toolbar`). +//! Bottom: fill/stroke proxy, colour/gradient/none, drawing modes, screen mode, Search and Edit +//! Toolbar. Edit opens the native All Tools drawer (`edit_toolbar`). //! //! The dock draws the rail ([`rail_view`]) for the Tools panel, for each toolbar made with New //! Toolbar and for each group torn off either of them (a `strip:` panel). @@ -21,7 +21,7 @@ use craft::ui::contract::{Bind, BodyCx, Entry, Gap, Props as _, Show as _, ShowC use craft::ui::display::Divider; use craft::ui::docking::{DockGrid, GroupAt}; use craft::ui::form::Field; -use craft::ui::layout_components::Row; +use craft::ui::layout_components::{Row, Stack}; use craft::ui::pickers::{Anchor9, ReferencePointLook, Select}; use craft::ui::rails::{LastUsed, RailDensity, RailFooter, RailTool, SlotId, ToolRail, ToolSlot}; use craft::ui::runtime::commands::{self, CommandRef}; @@ -263,12 +263,13 @@ fn strip_tools(app: &VectorcraftApp, parent: &Owner, first: &str) -> Vec<&'stati groups_of(app, parent).into_iter().find(|g| g.first().is_some_and(|f| *f == first)).unwrap_or_default() } -/// The dock grid of the rail panel `owner`: a cell for each of its slots and its Edit Toolbar button. Its rail draws at -/// the chrome's density, so the dock resolves the grid's steps in its own. +/// The dock grid of the rail panel `owner`: a cell for each tool slot and a custom toolbar's Edit Toolbar button. +/// The Tools panel keeps its actions in the host footer. The rail draws at the chrome's density. pub(crate) fn dock_grid(app: &VectorcraftApp, owner: &Owner) -> DockGrid { let cells = match owner { Owner::Strip(parent, first) => strip_tools(app, parent, first).len(), - _ => groups_of(app, owner).len() + 1, + Owner::Tools => groups_of(app, owner).len(), + Owner::Toolbar(_) => groups_of(app, owner).len() + 1, }; DockGrid::rail(cells).density(rail_density(app, owner)) } @@ -461,7 +462,10 @@ fn show_rail(app: &mut VectorcraftApp, ui: &mut Ui, owner: Owner, at: GroupAt, m rail = rail.footer_scrolls(); } if own_bar { - rail = rail.tear_off().edit_toolbar(tl!("Edit Toolbar")); + rail = rail.tear_off(); + if !tools_panel { + rail = rail.edit_toolbar(tl!("Edit Toolbar")); + } } if editing(app, &owner) { rail = rail.editing(); @@ -471,9 +475,11 @@ fn show_rail(app: &mut VectorcraftApp, ui: &mut Ui, owner: Owner, at: GroupAt, m _ => None, }; let measured = matches!(at, GroupAt::Measure(_)); + let mut tools_edit = None; let footer = |ui: &mut Ui, footer: RailFooter| { if tools_panel { bottom_controls(app, ui, footer); + tools_edit = search_and_edit_buttons(app, ui, footer); } else if let Some(id) = bar { crate::custom_toolbars::add_menu(app, ui, id, footer, measured); } @@ -482,7 +488,11 @@ fn show_rail(app: &mut VectorcraftApp, ui: &mut Ui, owner: Owner, at: GroupAt, m GroupAt::Measure(width) => return rail.measure_rail(ui, width, footer).y, GroupAt::Show(rect) => rect, }; - let out = rail.show_rail(ui, footer); + let mut out = rail.show_rail(ui, footer); + if tools_panel { + // The native footer opener follows the same drawer, focus and customization path. + out.edit_toolbar = tools_edit; + } if let Some(tool) = out.select.as_deref().filter(|tool| *tool != app.session.tool_id()) { // Not an error to report: a tool the command refuses stays unselected. app.run("tool.select", json!({ "tool": tool })).ok(); @@ -883,5 +893,33 @@ fn puppet_warp_options(app: &mut VectorcraftApp, ui: &mut Ui) { } pub(crate) mod card; +/// Search and Edit Toolbar share a row in a wide rail; a narrow rail keeps Edit Toolbar last. +fn search_and_edit_buttons(app: &VectorcraftApp, ui: &mut Ui, footer: RailFooter) -> Option { + let enabled = !crate::panel_docking::modal_window_up(app); + let mut edit = None; + let buttons = |ui: &mut Ui, _: &mut BodyCx<'_>| { + IconButton::command(IconId::new("search"), "help.commandPalette") + .label(tl!("Search commands")) + .tooltip(tl!("Search commands, tools, panels and effects")) + .selected(app.ui.palette_open) + .enabled(enabled) + .show(ui); + edit = Some( + IconButton::new(IconId::new("more")) + .label(tl!("Edit Toolbar")) + .selected(editing(app, &Owner::Tools)) + .enabled(crate::menus::enabled(app, "window.editToolbar")) + .show(ui) + .response, + ); + }; + if footer.columns > 1 { + Row::new().gap(Gap::Tight).id_salt("tools-footer-actions").show(ui, buttons); + } else { + Stack::new().gap(Gap::Tight).id_salt("tools-footer-actions").show(ui, buttons); + } + edit +} + #[cfg(test)] pub(crate) mod tests; diff --git a/crates/ui-egui/src/toolbar/tests.rs b/crates/ui-egui/src/toolbar/tests.rs index 9d8040e68f..34447647d9 100644 --- a/crates/ui-egui/src/toolbar/tests.rs +++ b/crates/ui-egui/src/toolbar/tests.rs @@ -579,6 +579,195 @@ fn the_rail_builds_its_slots_only_when_its_tool_groups_change() { assert_eq!(kept, Some(advanced), "the rail shows the Advanced toolbar's slots"); } +/// The real Tools dock column; distinguishes its footer Search from the app bar's Search. +fn review_8758_panel(app: &VectorcraftApp, ctx: &egui::Context) -> egui::Rect { + let report = crate::panel_docking::inspect(app, ctx); + let columns = report["columns"].as_array().expect("dock columns"); + let r = &columns.iter().find(|column| column["panel"] == "tools").expect("the Tools column")["rect"]; + egui::Rect::from_min_size( + egui::pos2(r[0].as_f64().unwrap() as f32, r[1].as_f64().unwrap() as f32), + egui::vec2(r[2].as_f64().unwrap() as f32, r[3].as_f64().unwrap() as f32), + ) +} + +fn review_8758_button<'a>(app: &VectorcraftApp, ctx: &egui::Context, nodes: &'a [Node], label: &str) -> &'a Node { + let panel = review_8758_panel(app, ctx); + nodes + .iter() + .find(|n| n.role() == Role::Button && n.label() == Some(label) && bounds(n).is_some_and(|r| panel.contains_rect(r))) + .unwrap_or_else(|| panic!("Tools footer button {label:?} is drawn")) +} + +fn review_8758_query(nodes: &[Node]) -> &str { + nodes + .iter() + .find(|n| n.role() == Role::TextInput && n.label() == Some("Search commands")) + .and_then(Node::value) + .expect("the native palette's query field") +} + +fn review_8758_unchanged_content(app: &VectorcraftApp) -> Value { + let st = app.session.active().unwrap(); + json!({"document": &*st.doc, "selection": format!("{:?}", st.selection), + "undo": st.history.undo.len(), "redo": st.history.redo.len(), "slots": slots(app)}) +} + +/// Paint the native tooltip over whole app frames, keeping the same window and dock measurements. +fn review_8758_hovered_texts(app: &mut VectorcraftApp, ctx: &egui::Context, t0: f64, at: Pos2) -> Vec { + fn texts(shape: &egui::Shape, out: &mut Vec) { + match shape { + egui::Shape::Text(text) => out.push(text.galley.text().to_string()), + egui::Shape::Vec(shapes) => shapes.iter().for_each(|shape| texts(shape, out)), + _ => {} + } + } + let mut shown = vec![]; + for i in 0..20 { + let events = match i { + 0 => vec![Event::PointerGone], + 1 => vec![Event::PointerMoved(at)], + _ => vec![], + }; + let out = crate::testing::app_frame( + app, + ctx, + egui::RawInput { + time: Some(t0 + f64::from(i) * 0.1), + events, + screen_rect: Some(egui::Rect::from_min_size(Pos2::ZERO, egui::vec2(1200.0, 1400.0))), + ..Default::default() + }, + ); + out.shapes.iter().for_each(|shape| texts(&shape.shape, &mut shown)); + } + shown +} + +fn review_8758_edit_control(app: &mut VectorcraftApp, ctx: &egui::Context, nodes: &[Node]) { + let edit = bounds(review_8758_button(app, ctx, nodes, "Edit Toolbar")).unwrap(); + let panel = review_8758_panel(app, ctx); + let before = slots(app); + let nodes = click(app, ctx, 1.0, edit.center(), 1400.0); + assert!(app.ui.tools_drawer && app.ui.drawer_toolbar.is_none(), "Edit opens the Tools customization drawer"); + let drawer = nodes + .iter() + .find(|n| n.role() == Role::Dialog && n.label() == Some("Edit Toolbar")) + .and_then(bounds) + .expect("the native customization drawer is drawn"); + // Main anchors its native drawer to the rail's canvas side; the footer button remains its focus opener. + assert!( + drawer.left() >= panel.right() - 1.0 && drawer.top() < panel.bottom() && drawer.bottom() > panel.top(), + "the customization drawer remains beside its Tools rail: {drawer:?}, {panel:?}" + ); + assert!(nodes.iter().any(|n| n.label() == Some("All Tools")), "the customization list is present"); + assert_eq!(slots(app), before, "opening customization does not change tool membership"); + assert!(before.iter().any(|(_, tools)| tools.contains(&"rectangle"))); + app.run("toolbar.removeTool", json!({"tool": "rectangle"})).unwrap(); + assert!(!slots(app).iter().any(|(_, tools)| tools.contains(&"rectangle")), "customization still edits the toolbar"); + // Use the native close control, which returns focus to this footer's Edit button. + let close = named_rect(&nodes, "Close"); + click(app, ctx, 2.0, close.center(), 1400.0); + assert!(!app.ui.tools_drawer); + let key = |pressed| Event::Key { key: egui::Key::Enter, physical_key: None, pressed, repeat: false, modifiers: egui::Modifiers::NONE }; + frame(app, ctx, 2.2, vec![key(true), key(false)], 1400.0); + settled(app, ctx, 2.3, 1400.0); + assert!(app.ui.tools_drawer, "focus returns to Edit: Enter reopens its customization drawer"); + app.run("window.editToolbar", json!({})).unwrap(); + settled(app, ctx, 2.6, 1400.0); +} + +fn review_8758_layout(double: bool) { + crate::i18n::set_current(crate::i18n::Lang::EN); + let mut app = app_with(300, 300); + app.run("window.toolbarColumns", json!({"double": double})).unwrap(); + let ctx = reader(); + let nodes = settled(&mut app, &ctx, 0.0, 1400.0); + review_8758_edit_control(&mut app, &ctx, &nodes); + let nodes = settled(&mut app, &ctx, 3.0, 1400.0); + let search = bounds(review_8758_button(&app, &ctx, &nodes, "Search commands")).unwrap(); + let edit = bounds(review_8758_button(&app, &ctx, &nodes, "Edit Toolbar")).unwrap(); + let panel = review_8758_panel(&app, &ctx); + assert!(panel.contains_rect(search) && panel.contains_rect(edit), "both controls fit the actual Tools panel"); + assert!(search.bottom() <= 1400.0 && edit.bottom() <= 1400.0, "both controls fit the window"); + if double { + assert!(search.right() <= edit.left() && (search.center().y - edit.center().y).abs() < 0.01, "Search left of Edit on one row"); + } else { + assert!( + search.bottom() <= edit.top() && (search.center().x - edit.center().x).abs() < 0.01, + "one column keeps both controls in a fitted stack" + ); + } + let chord = crate::menus::shortcut_of(&app, "help.commandPalette").expect("the native Search command has its current shortcut"); + let expected = craft::ui::contract::tooltip::with_chord("Search commands, tools, panels and effects", &chord, crate::keymap::platform()); + let tips = review_8758_hovered_texts(&mut app, &ctx, 4.0, search.center()); + assert!(tips.iter().any(|tip| tip == &expected), "the native Search tooltip includes its command shortcut: {tips:?}"); + let before = review_8758_unchanged_content(&app); + let tool = app.session.tool_id().to_string(); + click(&mut app, &ctx, 8.0, search.center(), 1400.0); + let nodes = frame(&mut app, &ctx, 9.0, vec![Event::Text("old query".into())], 1400.0); + assert_eq!(review_8758_query(&nodes), "old query", "the opened native search has keyboard focus"); + app.run("help.commandPalette", json!({})).unwrap(); + settled(&mut app, &ctx, 10.0, 1400.0); + let nodes = click(&mut app, &ctx, 11.0, search.center(), 1400.0); + assert!(app.ui.palette_open, "the actual footer button opens the existing command palette"); + assert!(review_8758_query(&nodes).is_empty(), "the native palette opens with a fresh query"); + let nodes = frame(&mut app, &ctx, 12.0, vec![Event::Text("focused".into())], 1400.0); + assert_eq!(review_8758_query(&nodes), "focused", "reopening gives the search field keyboard focus"); + assert!(!app.ui.tools_drawer, "Search is distinct from Edit Toolbar"); + assert_eq!(review_8758_unchanged_content(&app), before, "Search changes no document, history, selection or toolbar membership"); + assert_eq!(app.session.tool_id(), tool); +} + +#[test] +fn review_8758_toolbar_search_fits_beside_edit_and_opens_the_existing_palette() { + for double in [true, false] { + review_8758_layout(double); + } +} + +#[test] +fn review_8758_toolbar_search_accepts_a_tool_query_and_is_disabled_over_a_dialog() { + crate::i18n::set_current(crate::i18n::Lang::EN); + let mut app = app_with(300, 300); + let ctx = reader(); + let nodes = settled(&mut app, &ctx, 0.0, 1400.0); + let search = bounds(review_8758_button(&app, &ctx, &nodes, "Search commands")).unwrap(); + let before = review_8758_unchanged_content(&app); + click(&mut app, &ctx, 0.2, search.center(), 1400.0); + assert!(app.ui.palette_open); + let nodes = frame(&mut app, &ctx, 0.4, vec![Event::Text("Scissors".into())], 1400.0); + assert_eq!(review_8758_query(&nodes), "Scissors", "the actual focused query field receives typing"); + let nodes = settled(&mut app, &ctx, 0.5, 1400.0); + let tool = nodes + .iter() + .find(|n| n.role() == Role::ListBoxOption && n.label().is_some_and(|label| label.starts_with("Scissors"))) + .expect("the native palette lists the matching Scissors tool"); + assert!(!tool.is_disabled()); + click(&mut app, &ctx, 0.7, bounds(tool).unwrap().center(), 1400.0); + assert_eq!(app.session.tool_id(), "scissors", "activating the real result chooses the tool"); + assert!(!app.ui.palette_open, "a pick closes the palette"); + assert_eq!(app.ui.recent_commands.first().map(|command| command.key_text().into_owned()), Some("tool:scissors".to_string())); + assert_eq!(review_8758_unchanged_content(&app), before, "choosing a tool changes no artwork/history or toolbar membership"); + + // Current main owns query state inside CommandPalette and resets it on opening. A blocked footer press must not + // open that component at all, invoke a command, steal focus or change the existing real dialog's fields. + open_options(&mut app, "lineSegment").unwrap(); + let nodes = settled(&mut app, &ctx, 1.0, 1400.0); + let dialog = tool_dialog(&app).expect("the real Tool Options dialog"); + let focus = craft::ui::runtime::focus::focused_rec(&ctx); + let runs = app.run_count; + let recent = app.ui.recent_commands.clone(); + let search = review_8758_button(&app, &ctx, &nodes, "Search commands"); + assert!(search.is_disabled(), "screen readers find Search disabled while a modal window is open"); + click(&mut app, &ctx, 1.2, bounds(search).unwrap().center(), 1400.0); + assert!(!app.ui.palette_open, "the disabled footer cannot open Search over a dialog"); + assert_eq!(app.run_count, runs, "the disabled footer does not invoke the palette command"); + assert_eq!(craft::ui::runtime::focus::focused_rec(&ctx), focus, "the existing modal keeps focus"); + assert_eq!(app.ui.recent_commands, recent); + assert_eq!(tool_dialog(&app), Some(dialog)); + assert_eq!(review_8758_unchanged_content(&app), before); +} + /// A window too short for the tools shows the rail's scroll bar with the pointer away from the rail: a narrow bar, /// several times taller than wide, inside the rail's end edge. A window tall enough for every tool shows none. #[test] diff --git a/docs/gaps.md b/docs/gaps.md index 205b6161be..a98c869e44 100644 --- a/docs/gaps.md +++ b/docs/gaps.md @@ -27,6 +27,8 @@ History panel row context menus (2026-11-20, G12): Right-clicking any state offe OpenType panel feature-row context menus (part of G12): a secondary click on a feature row keeps the text selection and offers Turn Off when that feature is on for every character the panel acts on, or Turn On when it is off or mixed. Turn On and Turn Off use the same toggle as a click on the checkbox, so a mixed row turns the feature on for every character. Reset OpenType Features applies the same default as the panel menu and is enabled on the same condition. Each choice is one undo step. Evidence: `panels::opentype::tests::right_clicking_an_opentype_row_offers_turn_on_or_turn_off`, `panels::opentype::tests::clicking_turn_on_sets_that_feature_in_one_undo_step`, and `panels::opentype::tests::clicking_reset_opentype_features_clears_the_rows` in `crates/ui-egui/src/panels/opentype.rs`. Scores and estimates unchanged. +**Tools toolbar search (#8758):** Search sits beside Edit Toolbar in the two-column Tools panel and above it in one column. It opens the existing command palette, which finds and activates tools, and is disabled while a modal window is open. Edit Toolbar keeps the existing native customization drawer and focus opener. Focused toolbar-frame cases in `crates/ui-egui/src/toolbar/tests.rs` cover layout, actual search/tool activation, dialog admission and retained document/history/customization behavior. Scores and estimates are unchanged. + - **Implemented and tested (2026-11-20, G12):** Variables panel row context menus: 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. @@ -1052,6 +1054,7 @@ trap, and the defaults (0.25 pt, 100%, 40%) are VectorCraft's own, the pages giv | 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: Appearance panel: right-click item context menus for rows (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) with selection handling; headless tests in `crates/ui-egui/src/panels/tests_appearance.rs`; scores and estimates unchanged. | | 2026-11-19 | minor | Layers: hollow-diamond own-appearance marker and explanatory tooltip distinguish appearance from targeting and selected art (#8710), retaining targeting/drag/Alt-copy behavior and Hassan1305's #8757 ring-visibility fix/four-state coverage. Scores and estimates unchanged. | +| 2026-11-19 | minor | Tools toolbar: Search sits left of Edit Toolbar in two columns, stacks in one column, and opens the existing command palette to find and activate tools; disabled over a dialog. Edit Toolbar and customization are retained (#8758). Scores and estimates unchanged. | | 2026-11-19 | minor | Scissors previews its actual anchor or curve cut point with a native point marker while hovering, retaining existing snapping, Alt Add Anchor and cut behavior (#8655). Scores and estimates unchanged. | | 2026-11-19 | minor | G12: Brushes panel item right-click context menu offering Brush Options…, Duplicate Brush, and Delete Brush (disabled if the last remaining brush); right-clicking an unselected brush selects it first, and right-clicking within a multi-selection preserves it offering Duplicate Brushes / Delete Brushes; headless tests in `crates/ui-egui/src/panels/brushes/tests.rs`; scores and estimates unchanged. | | 2026-11-19 | minor | G12: Links panel row context menu (Relink…, Go To Link, Update Link, Edit Original, Show in Folder, Embed Image / Unembed…); right-clicking an unselected link row selects it first, and right-clicking within a multi-selection preserves it; headless tests in `crates/ui-egui/src/panels/tests_links.rs`; scores and estimates unchanged. | diff --git a/docs/roadmap.md b/docs/roadmap.md index 57b8cd1108..f669559fd2 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -33,6 +33,7 @@ ## Feature submission evidence Color conversion (#8804) builds one first-name index for the document's global swatch bases and uses indexed lookups for linked paints. Document Color Mode, new-art colors and text-style conversion keep first-record shadowing, spot handling, tint behavior and missing-link fallback. The base construction changes from quadratic name searches to O(N log N) index work; this is a source-complexity result, not a measured elapsed-time or budget improvement. Command-level semantic controls are in `crates/engine/src/tests/colormgmt.rs`; scores and estimates are unchanged. +**Tools toolbar search (#8758):** Search sits beside Edit Toolbar in the two-column Tools panel and above it in one column. It opens the existing command palette, which finds and activates tools, and is disabled while a modal window is open. Edit Toolbar keeps the existing native customization drawer and focus opener. Focused toolbar-frame cases in `crates/ui-egui/src/toolbar/tests.rs` cover layout, actual search/tool activation, dialog admission and retained document/history/customization behavior. Scores and estimates are unchanged. **Layers appearance marker (#8710):** A small hollow diamond marks an item's own appearance or transparency, distinct from the double ring for targeting and the selected-art square. A tooltip explains the current marker state. Existing targeting, dragging and Alt-copy behavior are retained. This follow-up depends on Hassan1305's #8757 and preserves its visible target ring and four-state coverage. Source and focused native Layers-panel coverage are in `crates/ui-egui/src/panels/layers/cells.rs`, `crates/ui-egui/src/panels/layers/rows.rs` and `crates/ui-egui/src/panels/layers/tests.rs`; runtime validation is pending. Scores and estimates are unchanged. @@ -209,7 +210,7 @@ Gujarati interface follow-up (2026-11-14): the catalog and zero/one plural rule | M11 | Artboards & views (selected-set deletion shared by Artboards menu, trash and Properties, retaining artboard 1 when all are selected; Artboard deletion keys keep the first of an all-selected set and protect artwork; history prunes invalid indices while preserving valid multiselection (history tests and full workspace CI pass); click-to-fit objects with the Artboard tool (#1227), artboard escape routing and document setup modal handoff done; artboard panel/tool with Move Artwork for X/Y fields and Artboard Options, Trim View (hiding the guides and the grid while it is on, #8363), middle-button pan, print tiling and the status bar's artboard navigator with synchronized Artboard tool selection done; Window › Arrange › Tile and Consolidate All Windows done; multiple windows, presentation polish) (cached canvas reprojection preserves scale during resize, rotation and DPI changes; regression-tested and contributor-confirmed 2026-10-19; estimates unchanged) (cached canvas dimensions match the renderer limit before cache-key creation, view construction and worker submission; regression-tested; estimates unchanged); status-bar pointer coordinates follow the active ruler origin and General units | 🟡; Artboard Options shares existing presets and orientation controls and can fit artwork without moving it; artwork fitting includes all drawn document art across artboards and off-board; artwork bounds are cached by active document and revision, and selection uses the shared bounds cache across artboards | 15–25 | | M12 | Advanced color & art (CMYK/ICC, separations, Gradient Mesh, Live Paint, Image Trace, Graphs) | 🟡 Gradient Mesh, Live Paint, Image Trace (junction-returning pieces retain their positioned boundaries; a simpler contour walk with identical output; an edge's sub-pixel shift is the same from either side; notches read only their own piece; collapsed loops keep few segments; large images trace with a warning; Auto Color keeps rare distinct colours; quick presets trace at once and the Image Trace button opens the adjustment controls; Properties reopens them; tiny fitted contours retain islands and holes; Create Strokes: exact crop EDT, Guo–Hall thinning and maximal-disc graph simplification; 15 presets, the 14 documented ones each with an enhanced version; Ignore Color (manual picker and canvas eyedropper from original pixels, no canvas View change, missed pixels keep the pick armed, Preview/Undo retained; #8068), Shapes, Auto Grouping and Gradients options; measured in `image-trace-quality.md`; closed outlines retain their interior after straightening; the Flat Logo mode places edges to a fraction of a pixel, restores sharp corners, snaps lines and circles, and refuses gradients; live trace result bounds and selection highlights exclude the retained bitmap except in source-image views), Recolor Artwork, colour management (ICC, soft proofing, separations preview), Graphs (all 9 tools, Graph Data/Type, group-selected series colours persist through regenerate/save/open) done; Graph Design and Marker designs, Transpose and Switch x/y, `\|` label line breaks, the pie options, drop shadows, the legend across the top, overlapping widths, First Row/Column in Front, filled lines, kept label formatting and the Graph Data worksheet done; graph Column designs pending; Vector Halftone Preview keeps the selection box without drawing dot selection marks (#6369); Live Paint Bucket fills faces crossed in one drag (#6373) Sampler-owned release/Zoom regression source uses the native canvas and covers ordinary navigation, dock rejection, accepted sampling, unchanged non-view state and no idle replay (#8744; all 25 cases passed in the e8f96d6 CI preview). | 6–10 | | M13 | Automation (Actions ✅ record/playback, persisted; variables, scripting, batch) | 🟡 MCP `add_text` exposes existing vertical point, area and path type; `script.run` and File › Scripts › Other Script… run JavaScript files, and Window › Script Console shows their output; scripts have `app`, the open documents, new documents, each document's selection and its page items, its text frames, text ranges and their attributes, its character and paragraph styles, the installed fonts, and its stories and threaded frames, and save, export, open and close documents with `Document.saveAs`, `Document.exportFile`, `app.open` and `Document.close`; the rest of the script document model (layers, artboards, paths, text lines and the other classes) and batch work remain | 18–27 | -| M14 | 1.0 polish (Properties Quick Actions follow the whole selection: Ungroup for any group, Isolate Group for one group, Unite only for selections of at least two objects, each a non-guide path or a compound path, G12, `panels::properties::tests::two_groups_offer_ungroup_without_isolate_group`, `one_group_offers_ungroup_and_isolate_group`, `several_paths_offer_group_clipping_mask_and_unite`; Asset Export tile context menus implemented for G12; preferences, shortcut editor, workspaces, accessibility, packaging for all OSes) (status messages and readouts use stable responsive allocations sized for localized labels and ordinary coordinates; sample widths cached by language/unit/DPI; regression-tested and contributor-confirmed 2026-10-19; estimates unchanged) | 🟡 Icon-strip flyouts resize on their free edges and retain sizes (#5713); interim macOS cursor delivery (#2292) uses existing artwork and host-owned AppKit cursors; headless coverage only, native menu/focus/handback and display validation pending. Dock groups collapse to their tabs by a double-click on a tab (UI.8); Preferences › General › Constrain Angle acts for the arrow keys, Shift drags and new objects (#394, 2026-10-21); numeric-field pointer selection and focus regression-tested (#1326; a release more than 1 pt from the press keeps the caret, a tap within 1 pt selects all, #6659); RPM runtime capabilities and glibc floor checked (#1275; real-distro install/start-up pending), Eyedropper cursor with precise-setting checks (#1269), Preferences, shortcut editor (chords with Shift and a punctuation key fire as typed; other apps' text shortcut sets imported), workspaces (each keeps its layout changes until Reset , UI.7), Window › Help Bar shown or hidden apart from the status bar and kept in saved workspaces, panels docked by dragging into any dock group (as tabs or a top/bottom split) or into the icon column, and closed from a dock tab's context menu (UI.6), a custom title bar on Windows/Linux with a Home button, content-sized dialogs, menus that scroll when longer than the window and macOS native menu dismissal done (M14.8), History row context menus (New Document from State, Step to This State, Clear History; G12, #8845), and native macOS save sheets with a Format menu (#866); titled PDF exports set `DisplayDocTitle` for viewers and accessibility checkers (#3646) and give the document language as the catalog's `/Lang` (#3644); accessibility and broader Windows/Linux packaging/QA pending; floating tab groups collapse into the side icon rail and opened rail panels fold back into it (#5925, in part), with pointer and native-window regression coverage; estimates unchanged; numeric spinner arrows keep repeating while held with the mouse (#6307); Swatches item context menus tested in all five views and rendered layouts inspected; Linux full CI passed, Windows engine baseline limitations documented (G12); Graphic Styles item context menus in thumbnail and list views with Options, Duplicate, Delete, Redefine, Break Link (#8755); Appearance panel row context menus for strokes, fills, effects, and root object row (Duplicate, Delete, Hide/Show, Edit Effect…, Clear Appearance, Reduce to Basic Appearance) with secondary click row selection (#8809); Character Styles and Paragraph Styles item context menus (panels::text_styles::tests::right_click_context_menu_*); Window > Toolbars > Compact Tools offers optional denser main Tools spacing in one or two columns, with the existing layout still the default (#7234) | 18–28 | +| M14 | 1.0 polish (Properties Quick Actions follow the whole selection: Ungroup for any group, Isolate Group for one group, Unite only for selections of at least two objects, each a non-guide path or a compound path, G12, `panels::properties::tests::two_groups_offer_ungroup_without_isolate_group`, `one_group_offers_ungroup_and_isolate_group`, `several_paths_offer_group_clipping_mask_and_unite`; Asset Export tile context menus implemented for G12; preferences, shortcut editor, workspaces, accessibility, packaging for all OSes) (status messages and readouts use stable responsive allocations sized for localized labels and ordinary coordinates; sample widths cached by language/unit/DPI; regression-tested and contributor-confirmed 2026-10-19; estimates unchanged); Tools toolbar Search opens the existing tool-aware command palette (#8758) | 🟡 Icon-strip flyouts resize on their free edges and retain sizes (#5713); interim macOS cursor delivery (#2292) uses existing artwork and host-owned AppKit cursors; headless coverage only, native menu/focus/handback and display validation pending. Dock groups collapse to their tabs by a double-click on a tab (UI.8); Preferences › General › Constrain Angle acts for the arrow keys, Shift drags and new objects (#394, 2026-10-21); numeric-field pointer selection and focus regression-tested (#1326; a release more than 1 pt from the press keeps the caret, a tap within 1 pt selects all, #6659); RPM runtime capabilities and glibc floor checked (#1275; real-distro install/start-up pending), Eyedropper cursor with precise-setting checks (#1269), Preferences, shortcut editor (chords with Shift and a punctuation key fire as typed; other apps' text shortcut sets imported), workspaces (each keeps its layout changes until Reset , UI.7), Window › Help Bar shown or hidden apart from the status bar and kept in saved workspaces, panels docked by dragging into any dock group (as tabs or a top/bottom split) or into the icon column, and closed from a dock tab's context menu (UI.6), a custom title bar on Windows/Linux with a Home button, content-sized dialogs, menus that scroll when longer than the window and macOS native menu dismissal done (M14.8), History row context menus (New Document from State, Step to This State, Clear History; G12, #8845), and native macOS save sheets with a Format menu (#866); titled PDF exports set `DisplayDocTitle` for viewers and accessibility checkers (#3646) and give the document language as the catalog's `/Lang` (#3644); accessibility and broader Windows/Linux packaging/QA pending; floating tab groups collapse into the side icon rail and opened rail panels fold back into it (#5925, in part), with pointer and native-window regression coverage; estimates unchanged; numeric spinner arrows keep repeating while held with the mouse (#6307); Swatches item context menus tested in all five views and rendered layouts inspected; Linux full CI passed, Windows engine baseline limitations documented (G12); Graphic Styles item context menus in thumbnail and list views with Options, Duplicate, Delete, Redefine, Break Link (#8755); Appearance panel row context menus for strokes, fills, effects, and root object row (Duplicate, Delete, Hide/Show, Edit Effect…, Clear Appearance, Reduce to Basic Appearance) with secondary click row selection (#8809); Character Styles and Paragraph Styles item context menus (panels::text_styles::tests::right_click_context_menu_*); Window > Toolbars > Compact Tools offers optional denser main Tools spacing in one or two columns, with the existing layout still the default (#7234) | 18–28 | | — | Interaction fidelity pass (every tool's modifiers, Properties panel per context, isolation, nuance; width-point creation and adjoining adjustment regression-tested; dialog layout reviewed) | ⬜ (new ruler-guide Alt orientation implemented; existing-guide Escape cancellation regression-tested; broader pass remains) | 60–90 | | — | Hardening at scale (big-file corpus, fuzzing, cross-platform + browser QA) | 🟡 PngSuite integrity and bounded fetching verified (#1729); real-world corpus/manual QA remain | 50–80 | | M14 follow-up | Color Picker layout (#2008) | ✅ Compact controls, centered header, stacked actions, aligned fields and screen sampling; narrow windows scroll vertically | Included above | @@ -265,6 +266,7 @@ not take the artwork yet. Overflow-menu drag remains separate. Scores and hours | 2026-11-19 | minor | M1: Layers: a target circle whose item is targeted and has an appearance of its own keeps its inner ring visible around a smaller appearance dot, so the four looks (not targeted, targeted, with an appearance, both) differ (#8711). Scores and estimates unchanged. | | 2026-11-19 | minor | M11: View › Trim View hides the ruler guides, guide paths and the grid while it is on and greys out Show/Hide Guides and Show/Hide Grid; a ruler drag or double-click makes no guide meanwhile (#8363). Scores and estimates unchanged | | 2026-11-19 | minor | Layers: hollow-diamond own-appearance marker and explanatory tooltip distinguish appearance from targeting and selected art (#8710), retaining targeting/drag/Alt-copy behavior and Hassan1305's #8757 ring-visibility fix/four-state coverage. Scores and estimates unchanged. | +| 2026-11-19 | minor | Tools toolbar: Search sits left of Edit Toolbar in two columns, stacks in one column, and opens the existing command palette to find and activate tools; disabled over a dialog. Edit Toolbar and customization are retained (#8758). Scores and estimates unchanged. | | 2026-11-19 | minor | Scissors previews its actual anchor or curve cut point with a native point marker while hovering, retaining existing snapping, Alt Add Anchor and cut behavior (#8655). Scores and estimates unchanged. | | 2026-11-19 | minor | M5: In the web build, an edit while the view of a heavy document moves (a tool drag held at an edge of the canvas, #8551, or a wheel scroll during a drag) draws only the part it changed into the last frame, which stays drawn moved with the view, instead of rendering the whole canvas each frame (an edit that changes more than half of the frame, or a change of more than the view and the document, still renders it whole at once), and edits that go on once the view is still don't put off its render (#8688). Scores and estimates unchanged. | | 2026-11-19 | minor | M14/G12: Character Styles and Paragraph Styles panels item context menus (Options…, Duplicate, Delete, Redefine, Clear Overrides); regression tests in crates/ui-egui/src/panels/text_styles/tests.rs; scores and estimates unchanged. | diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index 8e956a2c75..74789b33ba 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -75,6 +75,8 @@ Script appearance and geometry setters reject objects on locked artboards. Assig **Layers appearance marker (#8710):** A small hollow diamond marks an item's own appearance or transparency, distinct from the double ring for targeting and the selected-art square. A tooltip explains the current marker state. Existing targeting, dragging and Alt-copy behavior are retained. This follow-up depends on Hassan1305's #8757 and preserves its visible target ring and four-state coverage. Source and focused native Layers-panel coverage are in `crates/ui-egui/src/panels/layers/cells.rs`, `crates/ui-egui/src/panels/layers/rows.rs` and `crates/ui-egui/src/panels/layers/tests.rs`; runtime validation is pending. Scores and estimates are unchanged. +**Tools toolbar search (#8758):** Search sits beside Edit Toolbar in the two-column Tools panel and above it in one column. It opens the existing command palette, which finds and activates tools, and is disabled while a modal window is open. Edit Toolbar keeps the existing native customization drawer and focus opener. Focused toolbar-frame cases in `crates/ui-egui/src/toolbar/tests.rs` cover layout, actual search/tool activation, dialog admission and retained document/history/customization behavior. Scores and estimates are unchanged. + 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. @@ -368,7 +370,7 @@ dominate; 3D, graphs and automation are specialist). They sum to 105. Feature de | Export for Screens, Asset Export, slices, Save for Web | 3 | 87% | TIFF choices and settings are implemented; anti-aliasing ghost borders are fixed (#983) | 2–4 | estimated; depth not measured | | Print, colour management, separations, flattener | 3 | 80% | Production Preflight available; print preview fidelity remains | 2–4 | estimated | | Automation (Actions, Variables, scripting, batch) | 3 | 80% | script DOM classes for layers, artboards and gradient stops, `#engine` (#1183), Batch option depth (scripting, #9019, Batch, #1938, and image and graph variables are done) | 8–14 | estimated; MCP `add_text` exposes existing vertical type; score and hours unchanged | -| UI chrome (panels, Properties, workspaces, preferences) | 6 | 80% | Document Info Selection Only (`ui.docInfo.selectionOnly`) counts the selection through `document.info`, and with no artwork selected it shows (No artwork selected) and artboards the Artboard tool has selected still show (`panels::doc_info::tests::test_doc_info_counts_entire_document`, `test_doc_info_selection_only_toggles_and_filters_counts`, `test_doc_info_selection_only_keeps_selected_artboard`, `test_doc_info_panel_menu_toggles_state`); Properties Quick Actions offer Ungroup for any selected group, Isolate Group only for one group, and Unite only for selections of at least two objects, each a non-guide path or a compound path (`panels::properties::tests::two_groups_offer_ungroup_without_isolate_group`, `one_group_offers_ungroup_and_isolate_group`, `several_paths_offer_group_clipping_mask_and_unite`); Asset Export item context menus implemented (G12); Properties per context, 2 Preferences options stored but unused (#394, audited 2026-10-30: Scratch Disks, legacy vector clipboard), context menus in the remaining panels that have none (History rows implemented, #8845), accessibility | 13–20 | estimated; floating panels in OS windows of their own on the desktop (#4135), score and hours unchanged; macOS save Format menu implemented (#866), score and hours unchanged; Eyedropper cursor and precise setting checked (#1269), OS visual QA unverified; the line under the Preferences fields describes each General, Selection & Anchor Display, Guides & Grid, Smart Guides, Slices, Hyphenation, Plug-ins & Scratch Disks, User Interface, Performance, File Handling, Clipboard Handling, Appearance of Black and Devices setting on hover and keyboard focus (#8199, #8223, #8248, #8264, #8360, #8376, #8402, #8429, #8453, #8475, #8483, #8498), score and hours unchanged; numeric-field focus and normal text drags regression-tested (#1326); a focus click released more than 1 pt from its press keeps the caret and a tap within 1 pt selects all (#6659); artboard navigation synchronizes the tool selection before destructive actions; status messages and readouts use stable responsive allocations sized for localized labels and ordinary coordinates (sample widths cached by language/unit/DPI; regression and contributor original-file evidence below; scores/hours unchanged); effect dialogs' colour fields show a swatch that opens the Color Picker (#5365), score and hours unchanged; icon-strip flyouts retain user sizes (#5713); floating tab groups collapse into the side icon rail and opened rail panels fold back into it (#5925, in part), scores and hours unchanged ; interim macOS cursor delivery (#2292), headless coverage only; native validation pending, score and hours unchanged; Swatches item context menus have focused regressions and rendered-layout evidence below; Character Styles and Paragraph Styles item context menus have focused regressions (panels::text_styles::tests::right_click_context_menu_*); scores and estimates unchanged; History row context menus have snapshot, pending-edit, typing and clear-history headless regressions (panels::history::tests, #8845); swatches dropped on New Swatch or Delete Swatch carry the selected swatches the find field or kind filter hides (#8620); scores and estimates unchanged; the Artboards panel's list fills the panel, so it resizes with the window (#6085), score and hours unchanged; Layers appearance marker uses a hollow diamond and tooltip separate from targeting and selected art (#8710), based on Hassan1305's #8757; focused Layers coverage, runtime validation pending; scores and hours unchanged | +| UI chrome (panels, Properties, workspaces, preferences) | 6 | 80% | Document Info Selection Only (`ui.docInfo.selectionOnly`) counts the selection through `document.info`, and with no artwork selected it shows (No artwork selected) and artboards the Artboard tool has selected still show (`panels::doc_info::tests::test_doc_info_counts_entire_document`, `test_doc_info_selection_only_toggles_and_filters_counts`, `test_doc_info_selection_only_keeps_selected_artboard`, `test_doc_info_panel_menu_toggles_state`); Properties Quick Actions offer Ungroup for any selected group, Isolate Group only for one group, and Unite only for selections of at least two objects, each a non-guide path or a compound path (`panels::properties::tests::two_groups_offer_ungroup_without_isolate_group`, `one_group_offers_ungroup_and_isolate_group`, `several_paths_offer_group_clipping_mask_and_unite`); Asset Export item context menus implemented (G12); Properties per context, 2 Preferences options stored but unused (#394, audited 2026-10-30: Scratch Disks, legacy vector clipboard), context menus in the remaining panels that have none (History rows implemented, #8845), accessibility | 13–20 | estimated; floating panels in OS windows of their own on the desktop (#4135), score and hours unchanged; macOS save Format menu implemented (#866), score and hours unchanged; Eyedropper cursor and precise setting checked (#1269), OS visual QA unverified; the line under the Preferences fields describes each General, Selection & Anchor Display, Guides & Grid, Smart Guides, Slices, Hyphenation, Plug-ins & Scratch Disks, User Interface, Performance, File Handling, Clipboard Handling, Appearance of Black and Devices setting on hover and keyboard focus (#8199, #8223, #8248, #8264, #8360, #8376, #8402, #8429, #8453, #8475, #8483, #8498), score and hours unchanged; numeric-field focus and normal text drags regression-tested (#1326); a focus click released more than 1 pt from its press keeps the caret and a tap within 1 pt selects all (#6659); artboard navigation synchronizes the tool selection before destructive actions; status messages and readouts use stable responsive allocations sized for localized labels and ordinary coordinates (sample widths cached by language/unit/DPI; regression and contributor original-file evidence below; scores/hours unchanged); effect dialogs' colour fields show a swatch that opens the Color Picker (#5365), score and hours unchanged; icon-strip flyouts retain user sizes (#5713); floating tab groups collapse into the side icon rail and opened rail panels fold back into it (#5925, in part), scores and hours unchanged ; interim macOS cursor delivery (#2292), headless coverage only; native validation pending, score and hours unchanged; Swatches item context menus have focused regressions and rendered-layout evidence below; Character Styles and Paragraph Styles item context menus have focused regressions (panels::text_styles::tests::right_click_context_menu_*); scores and estimates unchanged; History row context menus have snapshot, pending-edit, typing and clear-history headless regressions (panels::history::tests, #8845); swatches dropped on New Swatch or Delete Swatch carry the selected swatches the find field or kind filter hides (#8620); scores and estimates unchanged; the Artboards panel's list fills the panel, so it resizes with the window (#6085), score and hours unchanged; Layers appearance marker uses a hollow diamond and tooltip separate from targeting and selected art (#8710), based on Hassan1305's #8757; focused Layers coverage, runtime validation pending; scores and hours unchanged; Tools toolbar Search entry and retained customization covered in `crates/ui-egui/src/toolbar/tests.rs` (#8758), scores and hours unchanged | | Libraries, Links, Package | 2 | 82% | shared libraries, linked graphics, gradients and patterns as library items (no cloud by design) | 2–3 | estimated; #5804: private native-picked raster editor (scores unchanged) | | Generative AI (Text to Vector, Generative Recolor, Shape Fill, Concept to Vector, Prompt to Edit, Rewrite Text) | 2 | 0% | a pluggable provider and the panels; needs an owner decision on models | 30–60 | measured (absent) | | **Feature depth** | **105** | **~79%** | | **~250–420** | | @@ -3410,6 +3412,7 @@ Edit › Copy and Cut put the selected ruler guides on the clipboard, with the s | 2026-11-19 | minor | Layers: a target circle whose item is targeted and has an appearance of its own keeps its inner ring visible around a smaller appearance dot, so the four looks (not targeted, targeted, with an appearance, both) differ (#8711). Scores and estimates unchanged. | | 2026-11-19 | minor | Guides, grids, smart guides, snapping, rulers: View › Trim View hides the ruler guides, guide paths and the grid while it is on and greys out their Show/Hide items; a ruler drag or double-click makes no guide meanwhile (#8363). Scores and estimates unchanged. | | 2026-11-19 | minor | Layers: hollow-diamond own-appearance marker and explanatory tooltip distinguish appearance from targeting and selected art (#8710), retaining targeting/drag/Alt-copy behavior and Hassan1305's #8757 ring-visibility fix/four-state coverage. Scores and estimates unchanged. | +| 2026-11-19 | minor | Tools toolbar: Search sits left of Edit Toolbar in two columns, stacks in one column, and opens the existing command palette to find and activate tools; disabled over a dialog. Edit Toolbar and customization are retained (#8758). Scores and estimates unchanged. | | 2026-11-19 | minor | Scissors previews its actual anchor or curve cut point with a native point marker while hovering, retaining existing snapping, Alt Add Anchor and cut behavior (#8655). Scores and estimates unchanged. | | 2026-11-19 | minor | Performance: In the web build, an edit while the view of a heavy document moves (a tool drag held at an edge of the canvas, #8551, or a wheel scroll during a drag) draws only the part it changed into the last frame, which stays drawn moved with the view, instead of rendering the whole canvas each frame, and edits that go on once the view is still don't put off its render (#8688). Evidence added; scores and estimates unchanged. | | 2026-11-19 | minor | Artboard tool: Shift held once a move or an Alt-drag copy of an artboard is under way keeps it to the level, upright or 45° line from General › Constrain Angle, and snaps slide it along that line; a Shift-press still draws an artboard inside another or marquee-selects (#2497), #8580. Scores and estimates unchanged. | diff --git a/docs/ui-parity.md b/docs/ui-parity.md index d699d6d282..8bb6c7b87a 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -27,6 +27,8 @@ **Layers appearance marker (#8710):** A small hollow diamond marks an item's own appearance or transparency, distinct from the double ring for targeting and the selected-art square. A tooltip explains the current marker state. Existing targeting, dragging and Alt-copy behavior are retained. This follow-up depends on Hassan1305's #8757 and preserves its visible target ring and four-state coverage. Source and focused native Layers-panel coverage are in `crates/ui-egui/src/panels/layers/cells.rs`, `crates/ui-egui/src/panels/layers/rows.rs` and `crates/ui-egui/src/panels/layers/tests.rs`; runtime validation is pending. Scores and estimates are unchanged. +**Tools toolbar search (#8758):** Search sits beside Edit Toolbar in the two-column Tools panel and above it in one column. It opens the existing command palette, which finds and activates tools, and is disabled while a modal window is open. Edit Toolbar keeps the existing native customization drawer and focus opener. Focused toolbar-frame cases in `crates/ui-egui/src/toolbar/tests.rs` cover layout, actual search/tool activation, dialog admission and retained document/history/customization behavior. Scores and estimates are 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/it/scissors_snap.rs`. Scores and estimates are unchanged. Draft enhancement #5804: Preferences › File Handling can select a raster editor through the native picker, with a private draft outside engine preferences and generic dialog fields. OK saves it, Cancel discards it, and Reset restores PhotoCraft. With Use System Defaults off, a missing chosen editor falls back to PhotoCraft, then the system default; validation and launch failures are reported. Control/MCP and synthetic input cannot choose an application or run external Edit Original. Web behavior, parity scores and estimates are unchanged; macOS/Linux smoke tests remain pending. @@ -486,6 +488,7 @@ next unit in the order a right-click on a ruler lists them, from Feet back to Po | The double triangle at the right end of a panel's tab strip cycles the panel's display sizes, the states its Show/Hide Options (and Transparency's Show/Hide Thumbnails) panel-menu items set ([archived user guide](https://web.archive.org/web/20220911143322/https://helpx.adobe.com/pdf/cs6/illustrator_reference.pdf#page=189), Transparency; [archived user guide](https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=479), Character and Paragraph) | done | `window.panel.cycleOptions {panel}`; Align, Attributes, Character, Color, Flattener Preview, Gradient, Info, Paragraph, Stroke, Transform and Transparency; the order of the sizes, the glyph and where it sits are VectorCraft's own (#3041) | | Panels outside the app window (another monitor) | done | floating groups in OS windows of their own on the desktop (#4135) | | Edit Toolbar (•••): the All Tools drawer opens beside the toolbar by its button (Escape or a click outside closes it), dims the tools already in the toolbar; while it is open, tools drag from it onto the toolbar (between two tools, or onto one to join its group), from the toolbar into it, and within the toolbar; each toolbar keeps its edits | done | #1018; `window.editToolbar`, `toolbar.addTool`/`removeTool`/`reset`; the drawer's Reset (Illustrator has it in a drawer menu); dragging a toolbar button moves the tool it shows, not its whole group; tool flyouts are as wide as their longest translated name and shortcut need (#1616) | +| Search beside Edit Toolbar (#8758) | implemented | Existing tool-aware command palette; search-left/edit-right in two columns and stacked in one, dialog-disabled, with retained customization. `crates/ui-egui/src/toolbar/tests.rs`. | | Window › Toolbars › New Toolbar… (also in the All Tools drawer's menu): a name and OK make a blank floating toolbar, listed under Window › Toolbars (its item shows or hides it); its title bar moves it, its × hides it and its double arrow shows its tools in one column or two; its ••• button opens the All Tools drawer beside it to fill it; kept with the workspace it was made in | done | #1759 in part; `window.toolbar.new`, `window.toolbar.custom`, `window.toolbar.list`, the `toolbar` param of `window.toolbarColumns`, `window.editToolbar` and `toolbar.addTool`/`removeTool`/`reset` | | Window › Toolbars › Manage Toolbars… (also in the All Tools drawer's menu): the dialog lists the toolbars made with New Toolbar; a new name typed for the selected one renames it, + copies it (none selected: a blank toolbar) and the trash can deletes it; the changes stay in the workspace | done | #1759 in part; `window.toolbar.manage`, `window.toolbar.rename`, `window.toolbar.duplicate`, `window.toolbar.delete` | | Quick Image Trace presets trace at once and leave the panel as it was; the Image Trace button (Control bar, Properties) opens the editable controls | done | Per the public documentation, choosing a preset traces the image with it straight away, and the panel is opened with the Image Trace button in the Control panel or in Properties' Image Trace section (). The controls show Threshold, Paths, Corners and Noise with Advanced open; `panels/image_trace.rs` headless tests (`a_quick_trace_leaves_the_panel_as_it_was`, `sketch_quick_trace_reveals_all_adjustments_and_keeps_the_source` for the button's route). No algorithm parity claim. | @@ -678,6 +681,7 @@ before release (#6373). [Paint faces and edges](https://helpx.adobe.com/illustra | 2026-11-19 | minor | Layers: hollow-diamond own-appearance marker and explanatory tooltip distinguish appearance from targeting and selected art (#8710), retaining targeting/drag/Alt-copy behavior and Hassan1305's #8757 ring-visibility fix/four-state coverage. Scores and estimates unchanged. | | 2026-11-19 | minor | Layers: a target circle whose item is targeted and has an appearance of its own keeps its inner ring visible, with a smaller appearance dot inside it and a gap between them, so not targeted, targeted, with an appearance and both look different, as the target icons in [Appearance attributes](https://helpx.adobe.com/illustrator/using/appearance-attributes.html) (Targeting items for appearance attributes) do. Before, the dot covered the ring and a targeted item with an appearance looked untargeted, #8711. Scores and estimates unchanged. | | 2026-11-19 | minor | View › Trim View hides the ruler guides, guide paths and the grid while it is on and greys out Show/Hide Guides and Show/Hide Grid until it is off; the choices come back as they were and the rulers stay, though dragging or double-clicking them makes no guide meanwhile (#8363). Scores and estimates unchanged. | +| 2026-11-19 | minor | Tools toolbar: Search sits left of Edit Toolbar in two columns, stacks in one column, and opens the existing command palette to find and activate tools; disabled over a dialog. Edit Toolbar and customization are retained (#8758). Scores and estimates unchanged. | | 2026-11-19 | minor | Scissors previews its actual anchor or curve cut point with a native point marker while hovering, retaining existing snapping, Alt Add Anchor and cut behavior (#8655). Scores and estimates unchanged. | | 2026-11-19 | minor | Artboard tool: Shift held once a move or an Alt-drag copy of an artboard is under way keeps it to the level, upright or 45° line from General › Constrain Angle, and snaps slide it along that line; a Shift-press still draws an artboard inside another or marquee-selects (#2497), #8580. Scores and estimates unchanged. | | 2026-11-20 | minor | Properties panel per context (G12): Quick Actions for text selection (Create Outlines, Retype, Find and Replace…); Retype reveals panel without toggling off if already open; headless tests in panels::properties::tests. Scores and estimates unchanged. |