From 63278b5bacd1d9075e337e3db37a1f6ee36d8598 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 19 Nov 2026 23:32:41 -0800 Subject: [PATCH 01/26] M3: Copy information-panel readouts on click (#8432) --- crates/ui-egui/src/i18n/bg.tsv | 3 + crates/ui-egui/src/i18n/bs.tsv | 3 + crates/ui-egui/src/i18n/ca.tsv | 3 + crates/ui-egui/src/i18n/cs.tsv | 3 + crates/ui-egui/src/i18n/da.tsv | 3 + crates/ui-egui/src/i18n/de.tsv | 3 + crates/ui-egui/src/i18n/el.tsv | 3 + crates/ui-egui/src/i18n/es.tsv | 3 + crates/ui-egui/src/i18n/fi.tsv | 3 + crates/ui-egui/src/i18n/fr.tsv | 3 + crates/ui-egui/src/i18n/gu.tsv | 3 + crates/ui-egui/src/i18n/hi.tsv | 3 + crates/ui-egui/src/i18n/hu.tsv | 3 + crates/ui-egui/src/i18n/id.tsv | 3 + crates/ui-egui/src/i18n/it.tsv | 3 + crates/ui-egui/src/i18n/ja.tsv | 3 + crates/ui-egui/src/i18n/ka.tsv | 3 + crates/ui-egui/src/i18n/ko.tsv | 3 + crates/ui-egui/src/i18n/nl.tsv | 3 + crates/ui-egui/src/i18n/pl.tsv | 3 + crates/ui-egui/src/i18n/pt-br.tsv | 3 + crates/ui-egui/src/i18n/ru.tsv | 3 + crates/ui-egui/src/i18n/sv.tsv | 3 + crates/ui-egui/src/i18n/tr.tsv | 3 + crates/ui-egui/src/i18n/uk.tsv | 3 + crates/ui-egui/src/i18n/vi.tsv | 3 + crates/ui-egui/src/i18n/zh-hans.tsv | 3 + crates/ui-egui/src/i18n/zh-hant.tsv | 3 + crates/ui-egui/src/panels/doc_info.rs | 13 +- crates/ui-egui/src/panels/info.rs | 39 +-- crates/ui-egui/src/panels/links.rs | 28 +- crates/ui-egui/src/widgets.rs | 2 +- crates/ui-egui/src/widgets/labels.rs | 77 +++++ crates/ui-egui/tests/panel_readout_copy.rs | 365 +++++++++++++++++++++ docs/gaps.md | 6 +- docs/roadmap.md | 5 +- docs/target-app-parity.md | 10 +- docs/ui-parity.md | 9 +- 38 files changed, 592 insertions(+), 46 deletions(-) create mode 100644 crates/ui-egui/tests/panel_readout_copy.rs diff --git a/crates/ui-egui/src/i18n/bg.tsv b/crates/ui-egui/src/i18n/bg.tsv index 167737554d..2093575c54 100644 --- a/crates/ui-egui/src/i18n/bg.tsv +++ b/crates/ui-egui/src/i18n/bg.tsv @@ -8039,3 +8039,6 @@ breakText Glyphs Глифи # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Редактиране на оригинала с: file-filter Applications Приложения + +# #8432 information readout copy confirmation. + Copied to clipboard Копирано в клипборда diff --git a/crates/ui-egui/src/i18n/bs.tsv b/crates/ui-egui/src/i18n/bs.tsv index a9d6e35ed8..8925975e9c 100644 --- a/crates/ui-egui/src/i18n/bs.tsv +++ b/crates/ui-egui/src/i18n/bs.tsv @@ -8094,3 +8094,6 @@ shape Open Otvoren # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Uredi original pomoću: file-filter Applications Aplikacije + +# #8432 information readout copy confirmation. + Copied to clipboard Kopirano u međuspremnik diff --git a/crates/ui-egui/src/i18n/ca.tsv b/crates/ui-egui/src/i18n/ca.tsv index e4271f7926..a6fdf89b21 100644 --- a/crates/ui-egui/src/i18n/ca.tsv +++ b/crates/ui-egui/src/i18n/ca.tsv @@ -9082,3 +9082,6 @@ breakText Glyphs Glifs # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Edita l’original amb: file-filter Applications Aplicacions + +# #8432 information readout copy confirmation. + Copied to clipboard Copiat al porta-retalls diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv index 488df173c3..0ad698983e 100644 --- a/crates/ui-egui/src/i18n/cs.tsv +++ b/crates/ui-egui/src/i18n/cs.tsv @@ -10871,3 +10871,6 @@ breakText Glyphs Glyfy # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Upravit originál v: file-filter Applications Aplikace + +# #8432 information readout copy confirmation. + Copied to clipboard Zkopírováno do schránky diff --git a/crates/ui-egui/src/i18n/da.tsv b/crates/ui-egui/src/i18n/da.tsv index 302ab6aa69..80e7c820f5 100644 --- a/crates/ui-egui/src/i18n/da.tsv +++ b/crates/ui-egui/src/i18n/da.tsv @@ -10967,3 +10967,6 @@ breakText Glyphs Glyffer # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Redigér original med: file-filter Applications Programmer + +# #8432 information readout copy confirmation. + Copied to clipboard Kopieret til udklipsholder diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv index 9482345f18..bfef7cb649 100644 --- a/crates/ui-egui/src/i18n/de.tsv +++ b/crates/ui-egui/src/i18n/de.tsv @@ -10513,3 +10513,6 @@ breakText Glyphs Glyphen # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Original bearbeiten mit: file-filter Applications Anwendungen + +# #8432 information readout copy confirmation. + Copied to clipboard In die Zwischenablage kopiert diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv index 434d0cc0b8..64e040535d 100644 --- a/crates/ui-egui/src/i18n/el.tsv +++ b/crates/ui-egui/src/i18n/el.tsv @@ -9055,3 +9055,6 @@ breakText Glyphs Γλύφοι # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Επεξεργασία πρωτοτύπου με: file-filter Applications Εφαρμογές + +# #8432 information readout copy confirmation. + Copied to clipboard Αντιγράφηκε στο πρόχειρο diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsv index 3f83e928e4..f6c3dbf461 100644 --- a/crates/ui-egui/src/i18n/es.tsv +++ b/crates/ui-egui/src/i18n/es.tsv @@ -10799,3 +10799,6 @@ breakText Glyphs Glifos # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Editar original con: file-filter Applications Aplicaciones + +# #8432 information readout copy confirmation. + Copied to clipboard Copiado al portapapeles diff --git a/crates/ui-egui/src/i18n/fi.tsv b/crates/ui-egui/src/i18n/fi.tsv index a4d85b23e8..a697cbb338 100644 --- a/crates/ui-egui/src/i18n/fi.tsv +++ b/crates/ui-egui/src/i18n/fi.tsv @@ -9138,3 +9138,6 @@ breakText Glyphs Merkit # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Muokkaa alkuperäistä sovelluksella: file-filter Applications Sovellukset + +# #8432 information readout copy confirmation. + Copied to clipboard Kopioitu leikepöydälle diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv index 8f56486157..35b3b4c36b 100644 --- a/crates/ui-egui/src/i18n/fr.tsv +++ b/crates/ui-egui/src/i18n/fr.tsv @@ -10857,3 +10857,6 @@ breakText Glyphs Glyphes # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Modifier l’original avec : file-filter Applications Applications + +# #8432 information readout copy confirmation. + Copied to clipboard Copié dans le presse-papiers diff --git a/crates/ui-egui/src/i18n/gu.tsv b/crates/ui-egui/src/i18n/gu.tsv index 0bb7c9b71f..1fe448b025 100644 --- a/crates/ui-egui/src/i18n/gu.tsv +++ b/crates/ui-egui/src/i18n/gu.tsv @@ -5773,3 +5773,6 @@ swatch [Registration] [રજિસ્ટ્રેશન] Pulse Stroke ધબકતો ઘસારો Round Flow ગોળ પ્રવાહ Chisel Flow ત્રાંસો પ્રવાહ + +# #8432 information readout copy confirmation. + Copied to clipboard ક્લિપબોર્ડ પર કૉપિ કર્યું diff --git a/crates/ui-egui/src/i18n/hi.tsv b/crates/ui-egui/src/i18n/hi.tsv index e9509d9202..57d6316ba2 100644 --- a/crates/ui-egui/src/i18n/hi.tsv +++ b/crates/ui-egui/src/i18n/hi.tsv @@ -10477,3 +10477,6 @@ theme Appearance अपीयरेंस # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: मूल फ़ाइल इसमें एडिट करें: file-filter Applications ऐप्स + +# #8432 information readout copy confirmation. + Copied to clipboard क्लिपबोर्ड पर कॉपी किया गया diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsv index 87f050ef0d..0c980daaf2 100644 --- a/crates/ui-egui/src/i18n/hu.tsv +++ b/crates/ui-egui/src/i18n/hu.tsv @@ -10860,3 +10860,6 @@ breakText Glyphs Glifák # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Eredeti szerkesztése ezzel: file-filter Applications Alkalmazások + +# #8432 information readout copy confirmation. + Copied to clipboard A vágólapra másolva diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsv index 924d3d80b5..2938e01f09 100644 --- a/crates/ui-egui/src/i18n/id.tsv +++ b/crates/ui-egui/src/i18n/id.tsv @@ -9091,3 +9091,6 @@ file-filter Applications Aplikasi @msg image {_1} cannot be distorted this way: its corners would not make a convex shape gambar {_1} tidak dapat didistorsi dengan cara ini: sudut-sudutnya tidak akan membentuk bangun cembung @msg image {_1} cannot be distorted this way: its corners would cross the warp's horizon gambar {_1} tidak dapat didistorsi dengan cara ini: sudut-sudutnya akan melewati cakrawala distorsi @msg image {_1} cannot be distorted this way: its corners would be too close together for a perspective map gambar {_1} tidak dapat didistorsi dengan cara ini: sudut-sudutnya terlalu berdekatan untuk pemetaan perspektif + +# #8432 information readout copy confirmation. + Copied to clipboard Disalin ke papan klip diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv index 5f47e3f117..ee8940e816 100644 --- a/crates/ui-egui/src/i18n/it.tsv +++ b/crates/ui-egui/src/i18n/it.tsv @@ -10547,3 +10547,6 @@ breakText Glyphs Glifi # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Modifica originale con: file-filter Applications Applicazioni + +# #8432 information readout copy confirmation. + Copied to clipboard Copiato negli appunti diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv index 9a1b5f6354..0e7ceee360 100644 --- a/crates/ui-egui/src/i18n/ja.tsv +++ b/crates/ui-egui/src/i18n/ja.tsv @@ -10610,3 +10610,6 @@ breakText Glyphs 字形 # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: 元のファイルを編集するアプリ: file-filter Applications アプリケーション + +# #8432 information readout copy confirmation. + Copied to clipboard クリップボードにコピーしました diff --git a/crates/ui-egui/src/i18n/ka.tsv b/crates/ui-egui/src/i18n/ka.tsv index 8eeacee621..bc8672c8d1 100644 --- a/crates/ui-egui/src/i18n/ka.tsv +++ b/crates/ui-egui/src/i18n/ka.tsv @@ -11190,3 +11190,6 @@ font-script Japanese იაპონური # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: ორიგინალის რედაქტირება პროგრამით: file-filter Applications აპლიკაციები + +# #8432 information readout copy confirmation. + Copied to clipboard დაკოპირდა ბუფერში diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv index 57e0b8be10..839135a888 100644 --- a/crates/ui-egui/src/i18n/ko.tsv +++ b/crates/ui-egui/src/i18n/ko.tsv @@ -10510,3 +10510,6 @@ breakText Glyphs 글리프 # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: 원본 편집 앱: file-filter Applications 응용 프로그램 + +# #8432 information readout copy confirmation. + Copied to clipboard 클립보드에 복사됨 diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsv index 5ed5cdc3e0..bece69038a 100644 --- a/crates/ui-egui/src/i18n/nl.tsv +++ b/crates/ui-egui/src/i18n/nl.tsv @@ -10910,3 +10910,6 @@ breakText Glyphs Glyphs # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Origineel bewerken met: file-filter Applications Programma’s + +# #8432 information readout copy confirmation. + Copied to clipboard Gekopieerd naar klembord diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv index 74029133dc..d528ff7447 100644 --- a/crates/ui-egui/src/i18n/pl.tsv +++ b/crates/ui-egui/src/i18n/pl.tsv @@ -10736,3 +10736,6 @@ breakText Glyphs Glify # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Edytuj oryginał w: file-filter Applications Aplikacje + +# #8432 information readout copy confirmation. + Copied to clipboard Skopiowano do schowka diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv index a1747af0b2..446394cbad 100644 --- a/crates/ui-egui/src/i18n/pt-br.tsv +++ b/crates/ui-egui/src/i18n/pt-br.tsv @@ -10943,3 +10943,6 @@ swatch Yellow Green Verde-amarelado # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Editar original com: file-filter Applications Aplicativos + +# #8432 information readout copy confirmation. + Copied to clipboard Copiado para a área de transferência diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv index ca0c8d5145..3385197b51 100644 --- a/crates/ui-egui/src/i18n/ru.tsv +++ b/crates/ui-egui/src/i18n/ru.tsv @@ -10960,3 +10960,6 @@ shape Open Открытый # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Редактировать оригинал в: file-filter Applications Приложения + +# #8432 information readout copy confirmation. + Copied to clipboard Скопировано в буфер обмена diff --git a/crates/ui-egui/src/i18n/sv.tsv b/crates/ui-egui/src/i18n/sv.tsv index c26474cf93..b6c2c7c54b 100644 --- a/crates/ui-egui/src/i18n/sv.tsv +++ b/crates/ui-egui/src/i18n/sv.tsv @@ -10997,3 +10997,6 @@ digits Hindi Hindi # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Redigera original med: file-filter Applications Program + +# #8432 information readout copy confirmation. + Copied to clipboard Kopierat till urklipp diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsv index 82186ebcdd..93bab8aebd 100644 --- a/crates/ui-egui/src/i18n/tr.tsv +++ b/crates/ui-egui/src/i18n/tr.tsv @@ -10829,3 +10829,6 @@ breakText Glyphs Glifler # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Orijinali şununla düzenle: file-filter Applications Uygulamalar + +# #8432 information readout copy confirmation. + Copied to clipboard Panoya kopyalandı diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv index de3329ef10..18603393f3 100644 --- a/crates/ui-egui/src/i18n/uk.tsv +++ b/crates/ui-egui/src/i18n/uk.tsv @@ -10523,3 +10523,6 @@ breakText Glyphs Гліфи # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Редагувати оригінал у: file-filter Applications Програми + +# #8432 information readout copy confirmation. + Copied to clipboard Скопійовано до буфера обміну diff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsv index 675143a8d6..8758d3fef5 100644 --- a/crates/ui-egui/src/i18n/vi.tsv +++ b/crates/ui-egui/src/i18n/vi.tsv @@ -8755,3 +8755,6 @@ breakText Glyphs Glyph # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: Chỉnh sửa bản gốc bằng: file-filter Applications Ứng dụng + +# #8432 information readout copy confirmation. + Copied to clipboard Đã sao chép vào bảng nhớ tạm diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsv index 57f6a4403b..0ac95d77b1 100644 --- a/crates/ui-egui/src/i18n/zh-hans.tsv +++ b/crates/ui-egui/src/i18n/zh-hans.tsv @@ -10747,3 +10747,6 @@ breakText Glyphs 字形 # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: 编辑原稿所用应用: file-filter Applications 应用程序 + +# #8432 information readout copy confirmation. + Copied to clipboard 已复制到剪贴板 diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv index 9834c17ea6..0306dfb20e 100644 --- a/crates/ui-egui/src/i18n/zh-hant.tsv +++ b/crates/ui-egui/src/i18n/zh-hant.tsv @@ -10563,3 +10563,6 @@ breakText Glyphs 字符 # #5804 native-picked raster editor (draft translations; native review welcome). Edit Original with: 編輯原稿所用應用程式: file-filter Applications 應用程式 + +# #8432 information readout copy confirmation. + Copied to clipboard 已複製到剪貼簿 diff --git a/crates/ui-egui/src/panels/doc_info.rs b/crates/ui-egui/src/panels/doc_info.rs index ed6bdcdaab..9fd2e0488c 100644 --- a/crates/ui-egui/src/panels/doc_info.rs +++ b/crates/ui-egui/src/panels/doc_info.rs @@ -21,13 +21,13 @@ struct Cache { /// A `label: value` row. `label` is shown as given: translate an interface label first, a name /// stays as it is. -pub(crate) fn row(ui: &mut Ui, label: &str, value: String) { +pub(crate) fn row(ui: &mut Ui, session: &mut vectorcraft_engine::Session, label: &str, value: String) { let t = Tokens::get(ui.ctx()); ui.horizontal(|ui| { ui.label(egui::RichText::new(label).size(12.0).color(t.text_dim)); ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| { // Long values (paths) are cut to the panel's width; hovering shows them whole. - ui.add(egui::Label::new(egui::RichText::new(value).size(12.0).color(t.text)).truncate()); + widgets::copyable_readout(ui, session, egui::RichText::new(&value).size(12.0).color(t.text), &value, true); }); }); } @@ -80,10 +80,15 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) { for (k, r) in rows.iter().enumerate() { let (label, value) = (r[0].as_str().unwrap_or_default(), r[1].as_str().unwrap_or_default()); if value.is_empty() { - widgets::dim_name(ui, super::label_or_name(label, !named.contains(&k))); + if named.contains(&k) && !label.is_empty() { + let t = Tokens::get(ui.ctx()); + widgets::copyable_readout(ui, &mut app.session, egui::RichText::new(label).color(t.text).size(12.5), label, false); + } else { + widgets::dim_name(ui, super::label_or_name(label, !named.contains(&k))); + } } else { let shown = shown_value(&i, id, k, (label, value), named.contains(&k)).unwrap_or_else(|| value.to_string()); - row(ui, super::label_or_name(label, !named.contains(&k)), shown); + row(ui, &mut app.session, super::label_or_name(label, !named.contains(&k)), shown); } } } diff --git a/crates/ui-egui/src/panels/info.rs b/crates/ui-egui/src/panels/info.rs index 753a4cc20b..9bbaa071b1 100644 --- a/crates/ui-egui/src/panels/info.rs +++ b/crates/ui-egui/src/panels/info.rs @@ -6,6 +6,7 @@ use egui::{Sense, Ui, vec2}; use vectorcraft_color::{Color, Paint}; use vectorcraft_doc::{NodeKind, Unit}; +use vectorcraft_engine::Session; use vectorcraft_geom::Point; use vectorcraft_tools::Readout; @@ -43,7 +44,7 @@ fn paint_name(p: &Paint) -> Option { /// One paint's row: its tile and values, and with `options` its name ([`paint_name`]). A paint the /// selected objects do not share (`mixed`) leaves the row empty. -fn paint_block(ui: &mut Ui, p: &Paint, mixed: bool, options: bool) { +fn paint_block(ui: &mut Ui, session: &mut Session, p: &Paint, mixed: bool, options: bool) { let t = Tokens::get(ui.ctx()); ui.horizontal(|ui| { let (r, _) = ui.allocate_exact_size(vec2(16.0, 16.0), Sense::hover()); @@ -54,17 +55,18 @@ fn paint_block(ui: &mut Ui, p: &Paint, mixed: bool, options: bool) { match p { Paint::Solid { color, .. } => { for (k, v) in color_values(color) { - ui.label(egui::RichText::new(format!("{k}: {v}")).monospace().color(t.text)); + let value = format!("{k}: {v}"); + widgets::copyable_readout(ui, session, egui::RichText::new(&value).monospace().color(t.text), &value, false); } } other => { let name = paint_name(other).filter(|_| options).unwrap_or_else(|| other.label()); - ui.label(egui::RichText::new(name).color(t.text_dim)); + widgets::copyable_readout(ui, session, egui::RichText::new(&name).color(t.text_dim), &name, false); } } }); if let (false, true, Paint::Solid { .. }, Some(name)) = (mixed, options, p, paint_name(p)) { - ui.label(egui::RichText::new(name).color(t.text_dim)); + widgets::copyable_readout(ui, session, egui::RichText::new(&name).color(t.text_dim), &name, false); } } @@ -166,39 +168,38 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) { readout: readout.as_ref(), options, }); - let mono = |ui: &mut Ui, s: String| { - ui.label(egui::RichText::new(s).monospace().color(t.text)); + let mono = |ui: &mut Ui, session: &mut Session, s: String| { + widgets::copyable_readout(ui, session, egui::RichText::new(&s).monospace().color(t.text), &s, false); }; ui.columns(2, |cols| { for s in rows.left { - mono(&mut cols[0], s); + mono(&mut cols[0], &mut app.session, s); } for s in rows.right { - mono(&mut cols[1], s); + mono(&mut cols[1], &mut app.session, s); } }); if app.session.tool_id() == "zoom" { let zoom = app.view().map_or(1.0, |v| v.zoom); - mono(ui, format!("{} {}", crate::i18n::colon(tl!("Zoom")), crate::state::zoom_label(zoom, app.session.prefs.display_print_size))); + let value = format!("{} {}", crate::i18n::colon(tl!("Zoom")), crate::state::zoom_label(zoom, app.session.prefs.display_print_size)); + mono(ui, &mut app.session, value); } if let Some(Readout::Brush { name: Some(name) }) = readout { - mono(ui, name); + mono(ui, &mut app.session, name); } widgets::divider(ui); let (f, s) = current_paints(app); let (fill_mixed, stroke_mixed) = mixed_paints(app, ui.ctx()); - paint_block(ui, &f, fill_mixed, options); - paint_block(ui, &s, stroke_mixed, options); + paint_block(ui, &mut app.session, &f, fill_mixed, options); + paint_block(ui, &mut app.session, &s, stroke_mixed, options); if let Some((font, size, tracking)) = shared_type(app) { widgets::divider(ui); - mono(ui, font); - mono( - ui, - crate::i18n::fmt( - tl!("Size: {size} Tracking: {tracking}"), - &[("size", &app.session.type_unit().format(size)), ("tracking", &format!("{tracking:.0}"))], - ), + mono(ui, &mut app.session, font); + let value = crate::i18n::fmt( + tl!("Size: {size} Tracking: {tracking}"), + &[("size", &app.session.type_unit().format(size)), ("tracking", &format!("{tracking:.0}"))], ); + mono(ui, &mut app.session, value); } } diff --git a/crates/ui-egui/src/panels/links.rs b/crates/ui-egui/src/panels/links.rs index 4c491efb6b..38de2297a9 100644 --- a/crates/ui-egui/src/panels/links.rs +++ b/crates/ui-egui/src/panels/links.rs @@ -721,7 +721,7 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) { } if o.info { let units = app.session.general_unit(); - link_info(ui, cache.info.as_ref().map(|(_, i)| i), units); + link_info(ui, &mut app.session, cache.info.as_ref().map(|(_, i)| i), units); } let sel = selected_rows(&cache.list, &selected); let modified = ids(&sel, |r| status_is(r, "modified") || r["preview"] == true && !status_is(r, "missing")); @@ -877,7 +877,7 @@ pub(crate) fn date_label(ms: u64) -> String { } /// The Link Info section: the details of `info` (`links.info`), or a hint. -fn link_info(ui: &mut Ui, info: Option<&Value>, units: vectorcraft_doc::Unit) { +fn link_info(ui: &mut Ui, session: &mut vectorcraft_engine::Session, info: Option<&Value>, units: vectorcraft_doc::Unit) { widgets::divider(ui); let Some(i) = info else { widgets::dim_label(ui, tl!("Select an image to see its Link Info.")); @@ -892,16 +892,16 @@ fn link_info(ui: &mut Ui, info: Option<&Value>, units: vectorcraft_doc::Unit) { } }; let row = super::doc_info::row; - row(ui, tl!("Name"), i["fileName"].as_str().or(i["name"].as_str()).unwrap_or_default().into()); - row(ui, tl!("Format"), i["format"].as_str().unwrap_or_default().into()); - row(ui, tl!("Color Space"), i["colorMode"].as_str().unwrap_or_default().into()); + row(ui, session, tl!("Name"), i["fileName"].as_str().or(i["name"].as_str()).unwrap_or_default().into()); + row(ui, session, tl!("Format"), i["format"].as_str().unwrap_or_default().into()); + row(ui, session, tl!("Color Space"), i["colorMode"].as_str().unwrap_or_default().into()); if let Some(l) = i["location"].as_str() { - row(ui, tl!("Location"), l.into()); + row(ui, session, tl!("Location"), l.into()); } // A placed document has no resolution: its rows are left out. for (label, k) in [(tl!("PPI"), "ppi"), (tl!("Effective PPI"), "effectivePpi")] { if i.get(k).is_some() { - row(ui, label, pair(k)); + row(ui, session, label, pair(k)); } } // Pixels, or a placed document's artboard size. @@ -910,22 +910,22 @@ fn link_info(ui: &mut Ui, info: Option<&Value>, units: vectorcraft_doc::Unit) { (None, Some(w), Some(h)) => format!("{} × {}", units.format(w), units.format(h)), _ => String::new(), }; - row(ui, tl!("Dimensions"), dims); + row(ui, session, tl!("Dimensions"), dims); let scale: Vec = i["scale"].as_array().into_iter().flatten().filter_map(Value::as_f64).collect(); if let [x, y] = scale[..] { - row(ui, tl!("Scale"), format!("H: {x:.1}% V: {y:.1}%")); + row(ui, session, tl!("Scale"), format!("H: {x:.1}% V: {y:.1}%")); } - row(ui, tl!("Rotation"), format!("{:.1}°", i["rotation"].as_f64().unwrap_or(0.0))); + row(ui, session, tl!("Rotation"), format!("{:.1}°", i["rotation"].as_f64().unwrap_or(0.0))); if let Some(b) = i["fileSize"].as_u64() { - row(ui, tl!("Size"), size_label(b)); + row(ui, session, tl!("Size"), size_label(b)); } for (k, label) in [("created", tl!("Created")), ("modified", tl!("Modified"))] { if let Some(ms) = i[k].as_u64() { - row(ui, label, date_label(ms)); + row(ui, session, label, date_label(ms)); } } if let Some(p) = i["page"].as_u64() { - row(ui, tl!("Page"), p.to_string()); + row(ui, session, tl!("Page"), p.to_string()); } let status = match i["status"].as_str().unwrap_or_default() { "ok" => tl!("Linked"), @@ -933,7 +933,7 @@ fn link_info(ui: &mut Ui, info: Option<&Value>, units: vectorcraft_doc::Unit) { "modified" => tl!("Modified"), _ => tl!("Embedded"), }; - row(ui, tl!("Status"), status.into()); + row(ui, session, tl!("Status"), status.into()); } /// The panel's flyout menu: the link commands for the selected rows, Select Linked / Embedded / diff --git a/crates/ui-egui/src/widgets.rs b/crates/ui-egui/src/widgets.rs index b67df13c7f..4e543cb854 100644 --- a/crates/ui-egui/src/widgets.rs +++ b/crates/ui-egui/src/widgets.rs @@ -60,8 +60,8 @@ pub use dropdowns::{ }; #[cfg(test)] pub(crate) use dropdowns::{menu_floor, menu_room_either}; +pub(crate) use labels::{copyable_readout, dim_label_width, field_panel_label, label_field, take_previous_label, text_width}; pub use labels::{dim_label, dim_name, divider, field_label, label_row, link_label, section_header, section_toggle, section_toggle_name, subheader}; -pub(crate) use labels::{dim_label_width, field_panel_label, label_field, take_previous_label, text_width}; pub(crate) use numeric::{ANY, round_to, set_bare_numbers_are_points, typed_unit}; pub use numeric::{ SpinPick, mixed_field, mixed_field_named, num_field, num_field_live, num_field_named, num_field_refusing, num_field_within, diff --git a/crates/ui-egui/src/widgets/labels.rs b/crates/ui-egui/src/widgets/labels.rs index d7c0d9813d..865bbdc6ed 100644 --- a/crates/ui-egui/src/widgets/labels.rs +++ b/crates/ui-egui/src/widgets/labels.rs @@ -159,6 +159,83 @@ pub fn dim_name(ui: &mut Ui, text: &str) -> Response { ui.label(egui::RichText::new(text).color(t.text).size(12.5)) } +/// A single click waits for egui's double-click interval: copying immediately would also +/// copy the first click of a word-selection double-click. The record belongs to this label in +/// this viewport, and expires if the label is not rendered in the next pass or its value changes. +#[derive(Clone, Default)] +struct PendingReadoutCopy { + value: String, + deadline: f64, + pass: u64, +} + +/// A readonly panel value with native label selection and an accessible Copy click action. +/// Only a completed primary single-click copies the entire value, including elided text. +pub(crate) fn copyable_readout( + ui: &mut Ui, + session: &mut vectorcraft_engine::Session, + text: egui::RichText, + value: &str, + truncate: bool, +) -> Response { + let mut label = egui::Label::new(text).sense(Sense::click()); + if truncate { + label = label.truncate(); + } + let response = ui.add(label); + let ctx = ui.ctx(); + let id = response.id.with(("pending-readout-copy", ctx.viewport_id())); + let pass = ctx.cumulative_pass_nr(); + let mut pending = ctx.data_mut(|d| d.remove_temp::(id)); + let pressed = ctx.input(|i| i.pointer.button_pressed(egui::PointerButton::Primary)); + let interrupted = ctx.input(|i| { + i.events.iter().any(|event| match event { + egui::Event::Key { .. } | egui::Event::Text(_) | egui::Event::Copy | egui::Event::Cut | egui::Event::Paste(_) | egui::Event::Ime(_) => { + true + } + egui::Event::AccessKitActionRequest(request) => request.action == egui::accesskit::Action::SetTextSelection, + _ => false, + }) + }); + let cancelled = pressed || response.dragged() || response.double_clicked() || response.triple_clicked() || interrupted; + let eligible = ui.is_enabled() && ui.is_rect_visible(response.rect) && !value.is_empty(); + let had_pending = pending.as_ref().is_some_and(|p| p.value == value && p.pass.saturating_add(1) >= pass); + pending = pending.filter(|p| eligible && p.value == value && p.pass.saturating_add(1) >= pass && !cancelled); + let accessible_click = eligible && ctx.input(|i| i.num_accesskit_action_requests(response.id, egui::accesskit::Action::Click) > 0); + if eligible { + ctx.accesskit_node_builder(response.id, |node| node.set_description(tl!("Copy"))); + } + let now = ctx.input(|i| i.time); + if eligible + && !interrupted + && !ctx.input(|i| i.modifiers.shift) + && !response.double_clicked() + && !response.triple_clicked() + && !(had_pending && pressed) + && response.clicked_by(egui::PointerButton::Primary) + { + pending = + Some(PendingReadoutCopy { value: value.to_string(), deadline: now + ctx.options(|o| o.input_options.max_double_click_delay), pass }); + } + let ready = pending.as_ref().is_some_and(|p| now >= p.deadline); + if accessible_click || ready { + copy_readout(ctx, session, value); + } else if let Some(mut pending) = pending { + pending.pass = pass; + if let Ok(delay) = std::time::Duration::try_from_secs_f64((pending.deadline - now).max(0.0)) { + ctx.request_repaint_after(delay); + ctx.data_mut(|d| d.insert_temp(id, pending)); + } + } + response +} + +fn copy_readout(ctx: &egui::Context, session: &mut vectorcraft_engine::Session, value: &str) { + use vectorcraft_engine::cmd::toast::{Level, Toast}; + ctx.copy_text(value.to_string()); + session.toast(Toast { seconds: 1.5, ..Toast::new(tl!("Copied to clipboard"), Level::Success) }); +} + /// A form row: `label` in a column `label_width` wide, then what `add` draws. pub fn label_row(ui: &mut Ui, label: &str, label_width: f32, add: impl FnOnce(&mut Ui)) { ui.horizontal(|ui| { diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs new file mode 100644 index 0000000000..78fcecc1fd --- /dev/null +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -0,0 +1,365 @@ +//! Copy actual information-panel readouts without replacing them with artwork SVG. +//! These frames prove host clipboard intent; they do not access the OS clipboard. +#![allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)] + +use std::cell::Cell; +use std::io::Cursor; +use std::rc::Rc; +use std::sync::{Arc, mpsc}; +use std::time::Duration; + +use egui::{Event, Modifiers, PointerButton, Pos2, Rect, Shape, vec2}; +use serde_json::{Value, json}; +use vectorcraft_engine::Session; +use vectorcraft_engine::cmd::clipboard::Flavour; +use vectorcraft_ui_egui::{Services, SystemClipboard, VectorcraftApp, background}; + +const COPIED: &str = "Copied to clipboard"; +const LENGTH: &str = "234 pt"; + +struct Board(Rc>); + +impl SystemClipboard for Board { + fn write(&mut self, _: &[Flavour]) -> Result<(), String> { + self.0.set(self.0.get() + 1); + Ok(()) + } + + fn holds_ours(&mut self) -> bool { + false + } + + fn read(&mut self, _: &[&'static str]) -> Option { + None + } + + fn has(&mut self, _: &[&'static str]) -> bool { + false + } +} + +struct App { + app: VectorcraftApp, + ctx: egui::Context, + time: f64, +} + +impl App { + fn new() -> Self { + let mut app = VectorcraftApp::new(Session::new(), Services::default()); + app.run("file.new", json!({"width": 400, "height": 300})).unwrap(); + app.run("shape.rectangle", json!({"x": 200, "y": 150, "width": 20, "height": 20})).unwrap(); + app.run("shape.rectangle", json!({"x": 20, "y": 20, "width": 37, "height": 40})).unwrap(); + let ctx = egui::Context::default(); + ctx.enable_accesskit(); + let mut a = Self { app, ctx, time: 0.0 }; + a.settle(); + a + } + + fn frame_after(&mut self, seconds: f64, events: Vec) -> egui::FullOutput { + self.time += seconds; + let mut raw = egui::RawInput { + events, + time: Some(self.time), + focused: true, + screen_rect: Some(Rect::from_min_size(Pos2::ZERO, vec2(1600.0, 1000.0))), + ..Default::default() + }; + self.app.raw_input_hook(&self.ctx, &mut raw); + let mut out = self.ctx.run_ui(raw, |ui| { + self.app.logic(ui.ctx()); + self.app.ui(ui); + }); + out.textures_delta.clear(); + out + } + + fn frame(&mut self, events: Vec) -> egui::FullOutput { + self.frame_after(0.02, events) + } + + fn settle(&mut self) -> egui::FullOutput { + let mut out = self.frame(vec![]); + for _ in 0..3 { + out = self.frame(vec![]); + } + out + } + + fn delay(&self) -> f64 { + self.ctx.options(|o| o.input_options.max_double_click_delay) + } + + fn deadline(&mut self) -> egui::FullOutput { + self.frame_after(self.delay() + 0.05, vec![]) + } + + fn snapshot(&self) -> Value { + let st = self.app.session.active().unwrap(); + json!({"doc": st.doc, "selection": st.selection, "undo": st.history.undo.len(), "redo": st.history.redo.len()}) + } + + fn tap(&mut self, at: Pos2) -> egui::FullOutput { + self.frame(vec![Event::PointerMoved(at), button(at, true)]); + self.frame(vec![button(at, false)]) + } + + fn panel(&mut self, panel: &str) -> egui::FullOutput { + self.app.run("window.panel", json!({"panel": panel})).unwrap(); + self.settle() + } + + fn close_panel(&mut self, panel: &str) { + self.app.run("window.panel.close", json!({"panel": panel})).unwrap(); + self.settle(); + } + + fn document_category(&mut self, category: &str) -> egui::FullOutput { + let out = self.panel("docInfo"); + let title = painted(&out, "Document Info").0; + let update = out.platform_output.accesskit_update.as_ref().expect("actual panel accessibility"); + let at = update + .nodes + .iter() + .filter(|(_, n)| n.label() == Some("Panel menu")) + .filter_map(|(_, n)| n.bounds()) + .map(|b| Rect::from_min_max(egui::pos2(b.x0 as f32, b.y0 as f32), egui::pos2(b.x1 as f32, b.y1 as f32))) + .filter(|r| (r.center().y - title.center().y).abs() < 16.0 && r.center().x > title.center().x) + .min_by(|a, b| a.center().distance(title.center()).total_cmp(&b.center().distance(title.center()))) + .expect("the Document Info title's own Panel menu") + .center(); + let menu = self.tap(at); + let item = painted(&menu, category).0.center(); + self.tap(item); + self.settle() + } +} + +fn button(at: Pos2, pressed: bool) -> Event { + Event::PointerButton { pos: at, button: PointerButton::Primary, pressed, modifiers: Modifiers::NONE } +} + +fn copies(out: &egui::FullOutput) -> Vec { + out.platform_output.commands.iter().filter_map(|c| if let egui::OutputCommand::CopyText(s) = c { Some(s.clone()) } else { None }).collect() +} + +fn text_shape<'a>(shape: &'a Shape, text: &str) -> Option<&'a egui::epaint::TextShape> { + match shape { + Shape::Text(t) if t.galley.text() == text => Some(t), + Shape::Vec(v) => v.iter().rev().find_map(|s| text_shape(s, text)), + _ => None, + } +} + +fn painted(out: &egui::FullOutput, text: &str) -> (Rect, bool) { + out.shapes + .iter() + .rev() + .find_map(|s| { + let t = text_shape(&s.shape, text)?; + let r = t.galley.rect.translate(t.pos.to_vec2()); + s.clip_rect.intersects(r).then_some((r.intersect(s.clip_rect), t.galley.elided)) + }) + .unwrap_or_else(|| panic!("fixture: no visible actual readout {text:?}")) +} + +fn visible_text_count(out: &egui::FullOutput, text: &str) -> usize { + fn count(shape: &Shape, clip: Rect, text: &str) -> usize { + match shape { + Shape::Text(t) if t.galley.text() == text => usize::from(t.galley.rect.translate(t.pos.to_vec2()).intersect(clip).is_positive()), + Shape::Vec(v) => v.iter().map(|s| count(s, clip, text)).sum(), + _ => 0, + } + } + out.shapes.iter().map(|s| count(&s.shape, s.clip_rect, text)).sum() +} + +fn copy_at(a: &mut App, at: Pos2, value: &str) -> egui::FullOutput { + let before = a.snapshot(); + let release = a.tap(at); + assert!(copies(&release).is_empty(), "the first release cannot yet exclude a double-click"); + let commit = a.deadline(); + let next = a.frame(vec![]); + let mut all = copies(&commit); + all.extend(copies(&next)); + assert_eq!(all, [value], "exactly one full value, never the art's SVG"); + assert_eq!(visible_text_count(&next, COPIED), 1, "one actual nonmodal confirmation is painted"); + assert_eq!(a.snapshot(), before, "readout copy leaves document, selection and history intact"); + assert!(copies(&a.frame(vec![])).is_empty(), "no copy on the next frame"); + next +} + +fn drag_text(a: &mut App, rect: Rect) { + let from = rect.left_center() + vec2(1.0, 0.0); + let to = rect.right_center() - vec2(1.0, 0.0); + assert!(copies(&a.frame(vec![Event::PointerMoved(from), button(from, true)])).is_empty()); + for k in 1..=4 { + assert!(copies(&a.frame(vec![Event::PointerMoved(from + (to - from) * k as f32 / 4.0)])).is_empty()); + } + assert!(copies(&a.frame(vec![button(to, false)])).is_empty()); + assert!(copies(&a.deadline()).is_empty(), "drag selection never auto-copies"); +} + +#[test] +fn panel_readout_existing_label_keyboard_and_art_copy_remain_independent() { + let mut a = App::new(); + let out = a.document_category("Objects"); + let before = a.snapshot(); + drag_text(&mut a, painted(&out, LENGTH).0); + for event in [Event::Copy, Event::Cut] { + let out = a.frame(vec![Event::ModifiersChanged(Modifiers::COMMAND), event]); + assert_eq!(copies(&out), [LENGTH], "the existing label selection owns Copy and Cut"); + assert!(copies(&a.frame(vec![Event::ModifiersChanged(Modifiers::NONE)])).is_empty()); + assert!(a.app.session.clipboard.is_empty(), "the art was not copied or cut"); + assert_eq!(a.snapshot(), before); + } + a.close_panel("docInfo"); + let first = a.frame(vec![Event::Copy]); + let next = a.frame(vec![]); + let mut copied = copies(&first); + copied.extend(copies(&next)); + assert_eq!(copied.len(), 1, "ordinary art Copy still runs when no label consumes it"); + assert!(copied[0].contains(" (Rc>, mpsc::Sender<()>) { + let writes = Rc::new(Cell::new(0)); + a.app.services.system_clipboard = Some(Box::new(Board(writes.clone()))); + a.app.services.write_shared = Some(Arc::new(|_: &str, _: &[u8]| Err("no fixture file writes".into()))); + let (hold, held) = mpsc::channel(); + background::run( + &mut a.app, + true, + String::new(), + None, + move |_| { + let _ = held.recv_timeout(Duration::from_secs(10)); + Ok(Value::Null) + }, + |_, r| r, + ) + .unwrap(); + a.app.run("edit.copy", json!({})).unwrap(); + assert!(!a.app.session.clipboard.is_empty(), "ordinary art Copy really queued its formats"); + assert_eq!(writes.get(), 0, "the existing worker holds those formats"); + (writes, hold) +} + +#[test] +fn panel_readout_document_value_copies_once_with_feedback_and_cancels_pending_art() { + let mut a = App::new(); + let out = a.document_category("Objects"); + let (writes, hold) = hold_art_formats(&mut a); + let before = a.snapshot(); + copy_at(&mut a, painted(&out, LENGTH).0.center(), LENGTH); + drop(hold); + background::wait_all(&mut a.app); + assert_eq!(writes.get(), 0, "unwritten art formats cannot replace the new readout text"); + assert_eq!(a.snapshot(), before); + let next = a.frame(vec![]); + assert_eq!(visible_text_count(&next, COPIED), 1, "no duplicate confirmation was queued"); + assert!(copies(&next).is_empty()); +} + +fn dismiss_feedback(a: &mut App, out: &egui::FullOutput) { + a.tap(painted(out, COPIED).0.center()); + assert_eq!(visible_text_count(&a.frame(vec![]), COPIED), 0, "the previous confirmation cannot satisfy the next readout's oracle"); +} + +fn copy_graphic_style_name(a: &mut App) { + let name = "Original information-panel style"; + a.app.run("graphicStyle.new", json!({"name": name})).unwrap(); + let out = a.document_category("Graphic Styles"); + let copied = copy_at(a, painted(&out, name).0.center(), name); + dismiss_feedback(a, &copied); + a.close_panel("docInfo"); +} + +fn place_original_png(a: &mut App, name: &str) { + let pixels = image::RgbaImage::from_pixel(8, 8, image::Rgba([17, 54, 128, 255])); + let mut bytes = Cursor::new(Vec::new()); + image::DynamicImage::ImageRgba8(pixels).write_to(&mut bytes, image::ImageFormat::Png).unwrap(); + a.app.run("file.place", json!({"name": name, "dataBase64": vectorcraft_format::base64_encode(bytes.get_ref()), "link": false})).unwrap(); +} + +fn copy_long_link_value(a: &mut App) { + let name = format!("{}.png", "Original linked-information fixture ".repeat(6)); + place_original_png(a, &name); + let out = a.panel("links"); + let label = painted(&out, "Name").0; + let (value, elided) = out + .shapes + .iter() + .find_map(|s| { + let t = text_shape(&s.shape, &name)?; + let r = t.galley.rect.translate(t.pos.to_vec2()).intersect(s.clip_rect); + (r.is_positive() && (r.center().y - label.center().y).abs() < 8.0).then_some((r, t.galley.elided)) + }) + .expect("the actual selected image's Link Info Name value"); + assert!(elided, "this fixture really truncates the painted readout"); + copy_at(a, value.center(), &name); +} + +#[test] +fn panel_readout_info_names_and_truncated_link_metadata_copy_full_displayed_text() { + let mut a = App::new(); + let out = a.panel("info"); + let width = "W: 37 pt"; + let copied = copy_at(&mut a, painted(&out, width).0.center(), width); + dismiss_feedback(&mut a, &copied); + a.close_panel("info"); + copy_graphic_style_name(&mut a); + copy_long_link_value(&mut a); +} + +fn assert_no_delayed_copy(a: &mut App) { + assert!(copies(&a.deadline()).is_empty()); + assert!(copies(&a.frame(vec![])).is_empty()); +} + +fn cancelled_gesture(kind: &str) { + let mut a = App::new(); + let out = a.document_category("Objects"); + let at = painted(&out, LENGTH).0.center(); + let before = a.snapshot(); + match kind { + "outside" => { + a.frame(vec![Event::PointerMoved(at), button(at, true)]); + let up = a.frame(vec![button(at + vec2(-80.0, 0.0), false)]); + assert!(copies(&up).is_empty(), "release outside does not accept the value"); + } + "double" => { + assert!(copies(&a.tap(at)).is_empty()); + let second = a.frame_after(a.delay() * 0.25, vec![button(at, true)]); + assert!(copies(&second).is_empty()); + assert!(copies(&a.frame(vec![button(at, false)])).is_empty()); + } + "hidden" => { + assert!(copies(&a.tap(at)).is_empty()); + a.close_panel("docInfo"); + assert_no_delayed_copy(&mut a); + a.panel("docInfo"); + } + "changed" => { + assert!(copies(&a.tap(at)).is_empty()); + a.app.run("shape.rectangle", json!({"x": 70, "y": 70, "width": 1, "height": 1})).unwrap(); + let changed = a.frame(vec![]); + painted(&changed, "238 pt"); + } + _ => panic!("unknown fixture"), + } + assert_no_delayed_copy(&mut a); + if kind != "changed" { + assert_eq!(a.snapshot(), before, "cancelled gestures do not edit the document or selection"); + } +} + +#[test] +fn panel_readout_double_click_release_outside_and_stale_values_do_not_auto_copy() { + for kind in ["outside", "double", "hidden", "changed"] { + cancelled_gesture(kind); + } +} diff --git a/docs/gaps.md b/docs/gaps.md index df988ebe81..bb9cb14f8b 100644 --- a/docs/gaps.md +++ b/docs/gaps.md @@ -1,6 +1,6 @@ # Gaps -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (Scissors shows the actual proposed cut point while hovering, using its existing snapping and cut target (#8655); scores and estimates unchanged; previously: G12: Brushes panel: item right-click context menu (Brush Options, Duplicate Brush, Delete Brush) with selection handling; scores and estimates unchanged; previously: G12: Links panel row context menu (Relink…, Go To Link, Update Link, Edit Original, Show in Folder, Embed Image / Unembed…) with selection handling; scores and estimates unchanged; previously: Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: SVG export preserves document units on root width/height for physical units, #864; G11 estimate 8–15 → 6–13 h; G4 and G13 Missing lists drop the shipped Touch Type, Snap to Glyph and Dimension tool, and G13's snapping entry keeps only what is still missing, the partial Snapping panel and the items not yet checked (#8387); G13 keeps one estimate (13–23 h); estimates unchanged; previously: Retype phase 1 (#4934): Type › Retype (`type.retype`) turns outlined text that exactly matches an available font back into point text; scores and estimates unchanged; previously: Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: PDF export writes the document language as the catalog's `/Lang`, #3644; Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: G4 type: modal Check Spelling dialog (Edit › Spelling › Check Spelling…), #4936; spell check complete; previously: Type: the Middle Eastern & South Asian composers are done as a per-paragraph choice with the Standard composers (#4935); G5: built-in Neon & Glow graphic style library (Cyan Neon, Magenta Laser, Amber Tube, Electric Lime, Pulse Violet, Cobalt Phosphor); estimate unchanged (3–13 h); previously: Tech Circuit brush library, G5; previously: G5: built-in Weather Icons symbol library (Sun, Moon, Cloud, Rain, Thunder, Snow); estimate 5–15 → 4–14 h; previously: 3D: the seams of white-light Extrude & Bevel, Inflate and Rotate, and the face seams of the 3D (Classic) effects, have round joins instead of miters; previously: PDF import: preserve Type 3 font text runs as named groups , or as live text in TextAs::Text mode if ToUnicode exists on non-colour fonts (TextAs::Outlines produces grouped outlines), #6740; scores and estimates unchanged; previously: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: #6865: oversized editing artboard import; Glyphs panel: Alternates for Current Selection applies an OpenType feature value (`salt=2`) to the selected letter alone, so an Arabic word stays joined, and Entire Font lists the unencoded glyphs, #5514; #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: G5: built-in Energy Beams brush library; estimate 5–15 → 4–14 h; previously minor: G5: built-in Skill Icons symbol library; estimate 6–16 → 5–15 h; previously minor: ruler double-click adds a guide at the pointer, #5239; G5: built-in Status Effects graphic style library; estimate 7–17 → 6–16 h; MCP docs catch-up for UI Frames and Map Markers; previously minor: G5: built-in Inventory Icons symbol library; estimate 8–18 → 7–17 h; previously minor: G9: `.ai` save names a variable font instance's design-space setting, #6388; previously minor: G5: built-in Game Trails brush library; estimate 9–19 → 8–18 h; previously minor: Edit › Edit Custom Dictionary…: its dialog adds, deletes and changes the custom dictionary's words, #4936; previously minor: docs tidy-up, no content change: stray notes at the top moved into the revision table; scores and estimates unchanged; previously minor: G5: built-in Game HUD graphic style library; estimate 10–20 → 9–19 h; previously minor: G5: built-in Map Markers symbol library; estimate 11–21 → 10–20 h; previously minor: right-click on type: Spelling › Auto Spell Check, with its check mark, #4936; previously minor: right-click on a word Auto Spell Check underlined: its suggestions, Ignore All and Add to Dictionary, #4936; previously minor: G2: Effect Gallery thumbnails and in-dialog preview; estimate 1–2 h → 0; Auto Spell Check: `edit.autoSpellCheck` underlines the unknown words, #4936; previously minor: PDF editable import preserves authored ActualText once, including empty/nested spans and authored ordering (#6165); cross-line/style layout remains approximate; scores and estimates unchanged; PDF marked-text export (#6309): compatible glyphs stay on one layout line with per-glyph offsets; scores and estimates unchanged; G5: built-in UI Frames symbol library with default 9-slice; estimate 11–21 h; previously minor: G5: dynamic symbol part on-canvas takes opacity, blend, gradient and pattern; docs Overlap/auto-corners sync; estimate 12–22 h; previously minor: interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; previously minor: Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; previously minor: G5 docs: Art brush Overlap, Pattern brush auto corners and Global Edit Shift-click leave-out moved from Missing to Done (code already shipped); previously minor: custom dictionary and Ignore All: `text.spelling.addWord`, `removeWord`, `changeWord`, `dictionary` and `ignoreAll`, #4936; previously minor: EPS import: embedded fonts (composite, Type 42, CID-keyed, Type 1, CFF FontSet) draw their glyphs; spell check engine: `text.spelling.check` and `text.spelling.suggest` on craft-proof, #4936; previously minor: floating tab groups collapse into the side icon rail and opened rail panels fold back into it, #5925 in part; G9: EPS gradients drawn as abutting strips import as one gradient, without seams; Tools stays beside the canvas with left-side panels; new gradients follow document color mode; Selection QoL: marquee modes and visible feedback, #5313; #3380 deletion-only review follow-up: independent survivors keep gradient placement, owned subpaths avoid discarded copies, and contracts/status/evidence are clarified; endpoint highlighting remains open; scores and estimates unchanged; Indian-language hyphenation review and license allowlist, #4947; opening a slow file shows a progress window, part of #5930; Hindi catalog and contributor loanword preferences; agent wording pass complete; wider native proofreading welcome; an image zoomed in on is separated, colorized or proofed only where it shows (#4155); scores and estimates unchanged; a document's first frame renders on the render worker, so opening a heavy file no longer freezes the window; scores and estimates unchanged; large images in CMYK documents are shrunk before they are separated into ink planes (#4155); scores and estimates unchanged; `.ai` paths with a Calligraphic brush open brushed, with the 6D Art Pen's channels, and Windows reads the pen's tilt and barrel rotation, #372; scores and estimates unchanged; Compound Shapes add-on, beyond Illustrator; scores and estimates unchanged; Contour add-on, beyond Illustrator; scores and estimates unchanged; a slow first frame is waited for instead of restarting without the graphics adapter, and the menu bar no longer waits for the installed fonts' scan; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x) +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-20 · **Change:** minor (Information readouts copy their complete values on click with confirmation (#8432); scores and estimates unchanged; previously: Scissors shows the actual proposed cut point while hovering, using its existing snapping and cut target (#8655); scores and estimates unchanged; previously: G12: Brushes panel: item right-click context menu (Brush Options, Duplicate Brush, Delete Brush) with selection handling; scores and estimates unchanged; previously: G12: Links panel row context menu (Relink…, Go To Link, Update Link, Edit Original, Show in Folder, Embed Image / Unembed…) with selection handling; scores and estimates unchanged; previously: Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: SVG export preserves document units on root width/height for physical units, #864; G11 estimate 8–15 → 6–13 h; G4 and G13 Missing lists drop the shipped Touch Type, Snap to Glyph and Dimension tool, and G13's snapping entry keeps only what is still missing, the partial Snapping panel and the items not yet checked (#8387); G13 keeps one estimate (13–23 h); estimates unchanged; previously: Retype phase 1 (#4934): Type › Retype (`type.retype`) turns outlined text that exactly matches an available font back into point text; scores and estimates unchanged; previously: Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: PDF export writes the document language as the catalog's `/Lang`, #3644; Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: G4 type: modal Check Spelling dialog (Edit › Spelling › Check Spelling…), #4936; spell check complete; previously: Type: the Middle Eastern & South Asian composers are done as a per-paragraph choice with the Standard composers (#4935); G5: built-in Neon & Glow graphic style library (Cyan Neon, Magenta Laser, Amber Tube, Electric Lime, Pulse Violet, Cobalt Phosphor); estimate unchanged (3–13 h); previously: Tech Circuit brush library, G5; previously: G5: built-in Weather Icons symbol library (Sun, Moon, Cloud, Rain, Thunder, Snow); estimate 5–15 → 4–14 h; previously: 3D: the seams of white-light Extrude & Bevel, Inflate and Rotate, and the face seams of the 3D (Classic) effects, have round joins instead of miters; previously: PDF import: preserve Type 3 font text runs as named groups , or as live text in TextAs::Text mode if ToUnicode exists on non-colour fonts (TextAs::Outlines produces grouped outlines), #6740; scores and estimates unchanged; previously: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: #6865: oversized editing artboard import; Glyphs panel: Alternates for Current Selection applies an OpenType feature value (`salt=2`) to the selected letter alone, so an Arabic word stays joined, and Entire Font lists the unencoded glyphs, #5514; #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: G5: built-in Energy Beams brush library; estimate 5–15 → 4–14 h; previously minor: G5: built-in Skill Icons symbol library; estimate 6–16 → 5–15 h; previously minor: ruler double-click adds a guide at the pointer, #5239; G5: built-in Status Effects graphic style library; estimate 7–17 → 6–16 h; MCP docs catch-up for UI Frames and Map Markers; previously minor: G5: built-in Inventory Icons symbol library; estimate 8–18 → 7–17 h; previously minor: G9: `.ai` save names a variable font instance's design-space setting, #6388; previously minor: G5: built-in Game Trails brush library; estimate 9–19 → 8–18 h; previously minor: Edit › Edit Custom Dictionary…: its dialog adds, deletes and changes the custom dictionary's words, #4936; previously minor: docs tidy-up, no content change: stray notes at the top moved into the revision table; scores and estimates unchanged; previously minor: G5: built-in Game HUD graphic style library; estimate 10–20 → 9–19 h; previously minor: G5: built-in Map Markers symbol library; estimate 11–21 → 10–20 h; previously minor: right-click on type: Spelling › Auto Spell Check, with its check mark, #4936; previously minor: right-click on a word Auto Spell Check underlined: its suggestions, Ignore All and Add to Dictionary, #4936; previously minor: G2: Effect Gallery thumbnails and in-dialog preview; estimate 1–2 h → 0; Auto Spell Check: `edit.autoSpellCheck` underlines the unknown words, #4936; previously minor: PDF editable import preserves authored ActualText once, including empty/nested spans and authored ordering (#6165); cross-line/style layout remains approximate; scores and estimates unchanged; PDF marked-text export (#6309): compatible glyphs stay on one layout line with per-glyph offsets; scores and estimates unchanged; G5: built-in UI Frames symbol library with default 9-slice; estimate 11–21 h; previously minor: G5: dynamic symbol part on-canvas takes opacity, blend, gradient and pattern; docs Overlap/auto-corners sync; estimate 12–22 h; previously minor: interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; previously minor: Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; previously minor: G5 docs: Art brush Overlap, Pattern brush auto corners and Global Edit Shift-click leave-out moved from Missing to Done (code already shipped); previously minor: custom dictionary and Ignore All: `text.spelling.addWord`, `removeWord`, `changeWord`, `dictionary` and `ignoreAll`, #4936; previously minor: EPS import: embedded fonts (composite, Type 42, CID-keyed, Type 1, CFF FontSet) draw their glyphs; spell check engine: `text.spelling.check` and `text.spelling.suggest` on craft-proof, #4936; previously minor: floating tab groups collapse into the side icon rail and opened rail panels fold back into it, #5925 in part; G9: EPS gradients drawn as abutting strips import as one gradient, without seams; Tools stays beside the canvas with left-side panels; new gradients follow document color mode; Selection QoL: marquee modes and visible feedback, #5313; #3380 deletion-only review follow-up: independent survivors keep gradient placement, owned subpaths avoid discarded copies, and contracts/status/evidence are clarified; endpoint highlighting remains open; scores and estimates unchanged; Indian-language hyphenation review and license allowlist, #4947; opening a slow file shows a progress window, part of #5930; Hindi catalog and contributor loanword preferences; agent wording pass complete; wider native proofreading welcome; an image zoomed in on is separated, colorized or proofed only where it shows (#4155); scores and estimates unchanged; a document's first frame renders on the render worker, so opening a heavy file no longer freezes the window; scores and estimates unchanged; large images in CMYK documents are shrunk before they are separated into ink planes (#4155); scores and estimates unchanged; `.ai` paths with a Calligraphic brush open brushed, with the 6D Art Pen's channels, and Windows reads the pen's tilt and barrel rotation, #372; scores and estimates unchanged; Compound Shapes add-on, beyond Illustrator; scores and estimates unchanged; Contour add-on, beyond Illustrator; scores and estimates unchanged; a slow first frame is waited for instead of restarting without the graphics adapter, and the menu bar no longer waits for the installed fonts' scan; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x) > Scissors snapping update (2026-11-11): with Alt released, hover and cuts use the Pen's path, alignment, intersection and anchor snaps (#6470). Scores and estimates unchanged. @@ -361,6 +361,9 @@ macOS cursor delivery (#2292) is narrowed to a native host adapter using the exi ## G11 Correctness bugs in core tools +- **Narrowed (#8432, information readouts):** Document Info values and names, Info readouts and Links metadata copy their complete displayed text on a simple click, including the full value when a path is truncated, and show a short confirmation (#8432). Info includes the readout label and units. Dragging or double-clicking still selects text; the existing selected-label keyboard Copy/Cut routing from #8512 remains in place. The already merged keyboard-copy repair and the remaining menu-specific limitations are separate; estimates unchanged. + + - **Resolved redraw-bounds defect (#5179):** a curved-spine blend's renderer bounds include its rotated keys and steps after Replace Spine; `crates/engine/tests/blend_render_consistency.rs` keeps the straight-blend control and checks all changed pixels against the advertised area. Both focused CPU regressions pass; broader G11 scope and estimates unchanged. - **Improved (#6582), fill-only scope:** the Eraser subtracts its swept area or Alt-drag marquee from filled open contours with no visible painted stroke, preserving fill outside the sweep. Fill-only open compound members are cut together under their compound fill rule so holes stay empty. The result keeps the existing path/compound piece structure and whole appearance. Bounds-fitted gradients on ordinary paths, compounds, groups and layers keep their original evaluated placement when it can be reproduced in the stored paint. Effects that draw replacement artwork, effect plug-ins, Rasterize, gradients along or across a stroke, and flattened placements or placements that cannot reproduce the original appearance keep their existing fitted behavior. Hidden Rasterize rows and hidden strokes with gradients along or across their paths do not block preserving a visible gradient. Already placed gradients and live-effect settings are retained; changes to a live effect's geometry can still move its paint. Path or Compound clipping masks keep every surviving contour in the same mask node; full erasure leaves an empty mask without promoting clipped contents. The mask identity, fill rule, appearance and parent child order are retained. Path Eraser uses the same preservation of the clipping role. Filled-and-stroked open paths deliberately retain the outline-splitting behavior from main. Public reference semantics for those stroked paths were not established, and their fill behavior is not claimed fixed here. Focused engine integration tests cover fixed and varied tips and Alt-drag marquees on fill-only open/closed geometry and pixels, compound holes and self-crossing fill, plus painted-stroke paths that keep the outline route and clipping-mask split, empty-mask and Path Eraser controls. `crates/engine/tests/eraser_open_fill.rs` also includes container-own paint and evaluated-placement regression cases. Scores and estimates unchanged. @@ -965,6 +968,7 @@ trap, and the defaults (0.25 pt, 100%, 40%) are VectorCraft's own, the pages giv | Date | Change | Summary | |---|---|---| +| 2026-11-20 | minor | Information readouts: click-to-copy for Document Info values and names, Info readouts and shared Links metadata, with short confirmation (#8432, remaining feature request). Existing selected-label keyboard Copy/Cut routing from #8512 is retained; 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 a518e3a35a..4e9a4bb0d3 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -1,6 +1,6 @@ # Roadmap: milestones and what's next -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-20 · **Change:** minor (M1: Layers: a targeted item with an appearance of its own keeps its inner ring visible around a smaller appearance dot, so the target circle's four looks differ, #8711; scores and estimates unchanged; previously: M11: 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, #8363; scores and estimates unchanged; previously: Scissors shows the actual proposed cut point while hovering, using its existing snapping and cut target (#8655); scores and estimates unchanged; previously: 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; previously: Image Trace Ignore Color keeps the canvas View and stays armed on a missed pixel (#8068); M11: a tool drag held near an edge of the canvas scrolls the view, #8551; scores and estimates unchanged; previously: All Tools drawer: a tool the toolbar holds is dimmed in the readable dim text colour, not the disabled colour that was unreadable against the panel, and a hovered dimmed row takes the panel's darker fill so it stays readable, #8294; scores and estimates unchanged; previously: Layers: selected guide rows stay highlighted after the pointer leaves (#7344); scores and estimates unchanged; previously: M4: PDF import: type filled and stroked after a page of type filled only comes in filled and stroked, #8549 follow-up; scores and estimates unchanged; previously: selected Dimension extension-line color and weight in Properties (#7078; four focused UI regressions passed); scores and estimates unchanged; previously: Brush Options Key Color: restore canvas input for the existing one-shot pick, then resume the retained draft and previous tool (#8284; six full-app input regressions passed); scores and estimates unchanged; previously: M4: `.ai` and EPS import: an Art brush in Tints of a swatch-linked stroke color comes in brushed, #8200; scores and estimates unchanged; previously: Ellipse: Up/Down changes Anchors while drawing (#7840); scores and estimates unchanged; previously: Windows/Linux menu access keys and localized cues (#6596); previously: Backquote/~ arrow pattern nudges (#7717); scores and estimates unchanged; previously: Window > Toolbars > Compact Tools offers optional denser main Tools spacing (#7234); default layout, scores and estimates unchanged; previously: Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: M4: `.ai` and EPS import: clipping paths grouped in a compound path are its subpaths, #8128; scores and estimates unchanged; previously: import: type filled and stroked by a `TJ` whose kerning starts a new line comes in filled and stroked, #8543; PDF Retype phase 1 (#4934): Type › Retype (`type.retype`) turns outlined text that exactly matches an available font back into point text; scores and estimates unchanged; previously: M1: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: PDF export writes the document language as the catalog's `/Lang`, #3644; M1: an Alt-drag in the Layers panel copies a row above or below its own place, #8237; scores and estimates unchanged; previously: PDF import: a glyph filled only after a glyph filled and stroked comes in filled only, not stroked, #8300; PDF import: translucent type filled and stroked comes in as a filled type object and a stroked one, as the file composites them, and an upright glyph is never kept as the outline of its glyph alone, #8015; PDF import: type filled and stroked by one text-showing operator comes in as one type object, filled and stroked, not a stroked copy over a filled one, #8015; M1: Layers panel Alt-drag shows the copy cursor, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; scores and estimates unchanged; previously: M7: Check Spelling modal dialog (Edit › Spelling › Check Spelling…), #4936; spell check complete; previously: PDF import: stroked type keeps the line cap, line join and miter limit the file strokes it with, a glyph stroked otherwise than the run it joins coming in as a run of its own, #7741; M10/G5: Neon & Glow built-in graphic style library (Cyan Neon, Magenta Laser, Amber Tube, Electric Lime, Pulse Violet, Cobalt Phosphor); previously: Tech Circuit brush library, G5; previously: Graphic Styles list fills a taller panel, #2992; scores and estimates unchanged; previously: PDF import: glyphs in a span with an empty ActualText come in as outlines, #6971; scores and estimates unchanged; previously: library panels' lists fill a taller panel, #2992; scores and estimates unchanged; previously: Swatches list fills a taller panel, #1638; scores and estimates unchanged; previously: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: #6865: explicitly requested oversized editing artboard; Live Paint Bucket fills faces crossed in one drag (#6373); previously: #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: M10/G5: Energy Beams brush library; MCP docs list Energy Beams; previously minor: M10/G5: Skill Icons symbol library; MCP docs list Skill Icons; previously minor: M10/G5: Status Effects graphic style library; MCP docs catch-up for symbol libraries; previously minor: M10/G5: Inventory Icons built-in symbol library; previously minor: Edit › Edit Custom Dictionary…: its dialog adds, deletes and changes the custom dictionary's words, #4936; previously minor: M10/G5: Game HUD graphic style library; previously minor: resizable icon-strip flyouts and bottom-aligned panel footers, #5713; previously minor: M10/G5: Map Markers built-in symbol library; previously minor: right-click on type: Spelling › Auto Spell Check, with its check mark, #4936; previously minor: right-click on a word Auto Spell Check underlined: its suggestions, Ignore All and Add to Dictionary, #4936; previously minor: G2: Effect Gallery thumbnails and in-dialog preview are in; Auto Spell Check: `edit.autoSpellCheck` underlines the unknown words, #4936; previously minor: PDF editable import preserves authored ActualText once, including empty/nested spans and authored ordering (#6165); cross-line/style layout remains approximate; scores and estimates unchanged; PDF marked-text export (#6309): compatible glyphs stay on one layout line with per-glyph offsets; scores and estimates unchanged; interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; custom dictionary and Ignore All: `text.spelling.addWord`, `removeWord`, `changeWord`, `dictionary` and `ignoreAll`, #4936; previously minor: EPS import: embedded fonts (composite, Type 42, CID-keyed, Type 1, CFF FontSet) draw their glyphs; spell check engine: `text.spelling.check` and `text.spelling.suggest` on craft-proof, #4936; previously minor: floating tab groups collapse into the side icon rail and opened rail panels fold back into it, #5925 in part; M4/M7: `.ai`/EPS type keeps its tab stops, and right-aligned lines with tabs lay out as the file's page, #6147; M4/M7: `.ai`/EPS type from the text document lays its lines out closer to the file's page, within limits, #6137; numeric fields step on wheel hover without taking keyboard focus, #5949; Character Styles panel: a double-click on a style's row opens its Character Style Options; the dialog keeps a fixed width and scrolls its sections, so its buttons stay on screen; Selection QoL: marquee modes and visible feedback, #5313; SVG CSS classes survive export and repeated import in all four styling modes (#2480); current-main integration retains event attributes and scripts; #3380 deletion-only review follow-up: independent survivors keep gradient placement, owned subpaths avoid discarded copies, and contracts/status/evidence are clarified; endpoint highlighting remains open; scores and estimates unchanged; Indian-language hyphenation review and license allowlist, #4947; Hindi catalog and contributor loanword preferences; full wording review in progress; Effect dialogs: a colour swatch beside a hex colour opens the Color Picker, #5365; shape tools move the selection from its centre point and turn it from the zone outside a box corner, #5477; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x) +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-20 · **Change:** minor (Information readouts copy their complete values on click with confirmation (#8432); scores and estimates unchanged; previously: M1: Layers: a targeted item with an appearance of its own keeps its inner ring visible around a smaller appearance dot, so the target circle's four looks differ, #8711; scores and estimates unchanged; previously: M11: 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, #8363; scores and estimates unchanged; previously: Scissors shows the actual proposed cut point while hovering, using its existing snapping and cut target (#8655); scores and estimates unchanged; previously: 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; previously: Image Trace Ignore Color keeps the canvas View and stays armed on a missed pixel (#8068); M11: a tool drag held near an edge of the canvas scrolls the view, #8551; scores and estimates unchanged; previously: All Tools drawer: a tool the toolbar holds is dimmed in the readable dim text colour, not the disabled colour that was unreadable against the panel, and a hovered dimmed row takes the panel's darker fill so it stays readable, #8294; scores and estimates unchanged; previously: Layers: selected guide rows stay highlighted after the pointer leaves (#7344); scores and estimates unchanged; previously: M4: PDF import: type filled and stroked after a page of type filled only comes in filled and stroked, #8549 follow-up; scores and estimates unchanged; previously: selected Dimension extension-line color and weight in Properties (#7078; four focused UI regressions passed); scores and estimates unchanged; previously: Brush Options Key Color: restore canvas input for the existing one-shot pick, then resume the retained draft and previous tool (#8284; six full-app input regressions passed); scores and estimates unchanged; previously: M4: `.ai` and EPS import: an Art brush in Tints of a swatch-linked stroke color comes in brushed, #8200; scores and estimates unchanged; previously: Ellipse: Up/Down changes Anchors while drawing (#7840); scores and estimates unchanged; previously: Windows/Linux menu access keys and localized cues (#6596); previously: Backquote/~ arrow pattern nudges (#7717); scores and estimates unchanged; previously: Window > Toolbars > Compact Tools offers optional denser main Tools spacing (#7234); default layout, scores and estimates unchanged; previously: Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: M4: `.ai` and EPS import: clipping paths grouped in a compound path are its subpaths, #8128; scores and estimates unchanged; previously: import: type filled and stroked by a `TJ` whose kerning starts a new line comes in filled and stroked, #8543; PDF Retype phase 1 (#4934): Type › Retype (`type.retype`) turns outlined text that exactly matches an available font back into point text; scores and estimates unchanged; previously: M1: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: PDF export writes the document language as the catalog's `/Lang`, #3644; M1: an Alt-drag in the Layers panel copies a row above or below its own place, #8237; scores and estimates unchanged; previously: PDF import: a glyph filled only after a glyph filled and stroked comes in filled only, not stroked, #8300; PDF import: translucent type filled and stroked comes in as a filled type object and a stroked one, as the file composites them, and an upright glyph is never kept as the outline of its glyph alone, #8015; PDF import: type filled and stroked by one text-showing operator comes in as one type object, filled and stroked, not a stroked copy over a filled one, #8015; M1: Layers panel Alt-drag shows the copy cursor, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; scores and estimates unchanged; previously: M7: Check Spelling modal dialog (Edit › Spelling › Check Spelling…), #4936; spell check complete; previously: PDF import: stroked type keeps the line cap, line join and miter limit the file strokes it with, a glyph stroked otherwise than the run it joins coming in as a run of its own, #7741; M10/G5: Neon & Glow built-in graphic style library (Cyan Neon, Magenta Laser, Amber Tube, Electric Lime, Pulse Violet, Cobalt Phosphor); previously: Tech Circuit brush library, G5; previously: Graphic Styles list fills a taller panel, #2992; scores and estimates unchanged; previously: PDF import: glyphs in a span with an empty ActualText come in as outlines, #6971; scores and estimates unchanged; previously: library panels' lists fill a taller panel, #2992; scores and estimates unchanged; previously: Swatches list fills a taller panel, #1638; scores and estimates unchanged; previously: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: #6865: explicitly requested oversized editing artboard; Live Paint Bucket fills faces crossed in one drag (#6373); previously: #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: M10/G5: Energy Beams brush library; MCP docs list Energy Beams; previously minor: M10/G5: Skill Icons symbol library; MCP docs list Skill Icons; previously minor: M10/G5: Status Effects graphic style library; MCP docs catch-up for symbol libraries; previously minor: M10/G5: Inventory Icons built-in symbol library; previously minor: Edit › Edit Custom Dictionary…: its dialog adds, deletes and changes the custom dictionary's words, #4936; previously minor: M10/G5: Game HUD graphic style library; previously minor: resizable icon-strip flyouts and bottom-aligned panel footers, #5713; previously minor: M10/G5: Map Markers built-in symbol library; previously minor: right-click on type: Spelling › Auto Spell Check, with its check mark, #4936; previously minor: right-click on a word Auto Spell Check underlined: its suggestions, Ignore All and Add to Dictionary, #4936; previously minor: G2: Effect Gallery thumbnails and in-dialog preview are in; Auto Spell Check: `edit.autoSpellCheck` underlines the unknown words, #4936; previously minor: PDF editable import preserves authored ActualText once, including empty/nested spans and authored ordering (#6165); cross-line/style layout remains approximate; scores and estimates unchanged; PDF marked-text export (#6309): compatible glyphs stay on one layout line with per-glyph offsets; scores and estimates unchanged; interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; custom dictionary and Ignore All: `text.spelling.addWord`, `removeWord`, `changeWord`, `dictionary` and `ignoreAll`, #4936; previously minor: EPS import: embedded fonts (composite, Type 42, CID-keyed, Type 1, CFF FontSet) draw their glyphs; spell check engine: `text.spelling.check` and `text.spelling.suggest` on craft-proof, #4936; previously minor: floating tab groups collapse into the side icon rail and opened rail panels fold back into it, #5925 in part; M4/M7: `.ai`/EPS type keeps its tab stops, and right-aligned lines with tabs lay out as the file's page, #6147; M4/M7: `.ai`/EPS type from the text document lays its lines out closer to the file's page, within limits, #6137; numeric fields step on wheel hover without taking keyboard focus, #5949; Character Styles panel: a double-click on a style's row opens its Character Style Options; the dialog keeps a fixed width and scrolls its sections, so its buttons stay on screen; Selection QoL: marquee modes and visible feedback, #5313; SVG CSS classes survive export and repeated import in all four styling modes (#2480); current-main integration retains event attributes and scripts; #3380 deletion-only review follow-up: independent survivors keep gradient placement, owned subpaths avoid discarded copies, and contracts/status/evidence are clarified; endpoint highlighting remains open; scores and estimates unchanged; Indian-language hyphenation review and license allowlist, #4947; Hindi catalog and contributor loanword preferences; full wording review in progress; Effect dialogs: a colour swatch beside a hex colour opens the Color Picker, #5365; shape tools move the selection from its centre point and turn it from the zone outside a box corner, #5477; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x) > > Oversized artboard import update (2026-11-12): Explicit editing-data import retains a single artboard beyond a capped 14,400 pt PDF page (#6865). > @@ -178,7 +178,7 @@ Gujarati interface follow-up (2026-11-14): the catalog and zero/one plural rule | # | Milestone | Status | Est. remaining, one agent (h) | |---|---|---|---| | M0 | Skeleton + vertical slice | ✅ done | — | -| M1 | Selection, transform, layers, MCP (common command tools, strict keys, session resources and version-aware result hints) | ✅ mostly done (a targeted Layers item with an appearance of its own shows its inner ring around a smaller appearance dot (#8711); path and compound-path interior selection follows enabled fill rows (#6625); a marquee leaves locked or hidden guide paths out inside groups, as clicks do (#8538); hidden-fill and no-fill stroke cap/join CPU regressions passed; document-tab artwork drag with lossless resource transfer and one target Undo; malformed MCP app replies discard the connection without replay, #1761; bounded control socket waits and connection-slot recovery, #1726; bounded synthetic control input, #1709; no-op anchor Align keeps Undo, Redo and saved state (#1180 follow-up); transform reference point snaps to anchors/centres; rotated objects keep a rotated bounding box and their angle; Free Transform, Scale and Reflect along a rotated box pending; the Transform fields take one Tab each, the W/H link after them) | 4–6 | +| M1 | Selection, transform, layers, MCP (common command tools, strict keys, session resources and version-aware result hints) | Information readouts copy complete values on click with short confirmation (#8432; estimates unchanged); ✅ mostly done (a targeted Layers item with an appearance of its own shows its inner ring around a smaller appearance dot (#8711); path and compound-path interior selection follows enabled fill rows (#6625); a marquee leaves locked or hidden guide paths out inside groups, as clicks do (#8538); hidden-fill and no-fill stroke cap/join CPU regressions passed; document-tab artwork drag with lossless resource transfer and one target Undo; malformed MCP app replies discard the connection without replay, #1761; bounded control socket waits and connection-slot recovery, #1726; bounded synthetic control input, #1709; no-op anchor Align keeps Undo, Redo and saved state (#1180 follow-up); transform reference point snaps to anchors/centres; rotated objects keep a rotated bounding box and their angle; Free Transform, Scale and Reflect along a rotated box pending; the Transform fields take one Tab each, the W/H link after them) | 4–6 | | M2 | Drawing tools + smart guides | ✅ mostly done (Eraser preserves fill outside fixed and varied tip sweeps and Alt-drag marquees on fill-only open paths and keeps their compound holes; clipping masks retain surviving contours or empty geometry in the same node; ordinary Group/Layer paints and evaluated gradient placements are preserved when the stored paint reproduces their appearance; hidden Rasterize and Along/Across stroke rows do not block visible gradients; replacement-art effects, plug-ins/Rasterize, along/across-stroke gradients and placements that cannot be reproduced keep their existing fitting; stroked open paths retain main behavior (#6582); #3380 deletion creates independent selected path pieces and keeps bounds-fitted gradients in place; endpoint highlighting remains open; Polygon/Star exact-size count persistence, with repeated-drag, tool-switch and Cancel regression coverage; Curvature point markers without direction handles (#1236, in part); Direct Selection segment click/Delete preserves neighboring edges, #1278; Flare, Reshape, Live Corners widget dragging and per-corner radii and kinds landed, on any path's corners; Shaper rough-shape recognition and orientation steps, the remaining Pen modifier nuances; Shaper Groups with editable sources and separate fill/stroke edits landed; custom ruler origin with drag preview, active-artboard reset, relative X/Y fields and native round-trip (#1212); construction widget/refinements pending); a shape just drawn moves by its centre point and turns from the zone outside a corner with its tool still active (#5477); Tangent and straight-segment perpendicular snapping use saved Smart Guides Geometric Guides preferences and Control bar quick access (#2537), including the existing Snap to Glyph and Alignment Guides toggles (#6164); no View submenu; Copy and Cut with the Pen or Curvature tool take the anchors a Cmd/Ctrl-lent Direct Selection picked (#6123); Scissors hover and cuts use the Pen's path/align/intersect/anchor snaps, with Alt Add Anchor and cut endpoint selection retained (#6470); Scissors previews the current anchor or curve cut point (#8655) | 12–18 | | M3 | Paint & appearance (swatches, color, gradient, stroke, appearance, transparency, styles) | ✅ done (M3.7–M3.98): swatches, groups, libraries, tints, Lab spots and Registration; Eyedropper copies transformed character dimensions (#6404) and styles highlighted text only (atomic transparency rejection); Eyedropper reads visible locked and outside-isolation sources (#1251); Color Picker, Color panel (its spectrum grows with a resized panel, #8005), Color Guide, Color Themes, Edit Colors and Recolor Artwork (screen-bounded Edit chip list, #3416; native Lab entry and swatch libraries in the picker, Assign-row menus, #8031/#4028); gradients that follow every transform, the annotator, linked stops, freeform gradients, focal points, gradients on strokes and Expand; visible strokes when paint is added to inherited None/zero-width art (#1253); stroke geometry, arrowheads, dashes fitted to corners, stroke on type, width profiles and the Width tool (Shift-double-click enables adjoining adjustment in Width Point Edit; finite-arithmetic follow-up regressions and full CI passed ([Validation evidence](target-app-parity.md#evidence-what-ships-today-by-area))), Scale Strokes and preview bounds; Appearance targeting, container appearance, target circles, Expand Appearance; knockout, isolation, blend accuracy, CMYK blending, overprint, Attributes, masks and clipping, Flatten Transparency; graphic styles, links and libraries; CSS library export preserves fractional linear and radial gradient stop positions. Left: freeform gradients in SVG/PDF, mixed spot/process gradients in SVG and PDF gradients mixing a spot color with RGB or Lab stops export as stops or process colors; PDF export writes dithered gradient fills with spot stops, and Perceptual spot gradients with RGB or Lab stops other than white or more than 4,096 stops on their curve, as images in process colors; confirm the Scale Strokes & Effects default; Recolor model selection is available through the engine and MCP only (#2520); the dialog retains its existing controls; Library panels' lists (swatch, Color Book, brush, symbol and graphic style libraries) fill a taller panel above its footer (#2992; scores and estimates unchanged); Graphic Styles list fills a taller panel above its footer (#2992; scores and estimates unchanged); Swatches list fills a taller panel above its footer (#1638; `the_list_fills_a_tall_panel_above_its_footer`; scores and estimates unchanged); | 4–8 | | M4 | Files (native, SVG, PDF, raster, Export for Screens, clipboard interop) | `.ai` and EPS import: clipping paths grouped in a compound path are its subpaths (#8128; estimates unchanged); Production Preflight checks fonts, overflow, links and image resolution with clickable findings and automatic rechecking (VectorCraft addition; estimates unchanged); PDF import: a glyph filled only after a glyph filled and stroked comes in filled only, not stroked (#8300; estimates unchanged); PDF import: type filled and stroked by one text-showing operator comes in as one filled and stroked type object (#8015; not for type filled and stroked at less than full opacity, which still comes in as a filled object and a stroked one, as the file composites them; estimates unchanged); PDF import: type filled and stroked by a `TJ` whose kerning starts a new line part way through comes in filled and stroked, a type object for each part, also where it draws a glyph again where it drew one, in an `ActualText` span too, where it stays one replacement type object on the first glyph's line and in its style; a `TJ` over more than 65 lines (the 64 its fill pass finished, kept back, and the open one) stays a filled object and a stroked one for each part (#8543; estimates unchanged); PDF import: type filled and stroked after a page of type filled only (more than 64 lines) comes in as one filled and stroked type object again, with or without a path between, and a `TJ` over more lines than are kept with a glyph kept as an outline still stays a filled object and a stroked one for each part (#8549 follow-up; estimates unchanged); PDF import: stroked type keeps the file's line cap, line join and miter limit (#7741; estimates unchanged); Rename artboards in Export for Screens (#7275); Explicit editing-data import keeps oversized capped-page artboards (#6865; estimates unchanged); Save refusal continuation (#6146): ordinary Save offers Save As; unchanged format keeps options, changed format opens its Save options; cancellation/automation isolation; focused UI regressions passed, native acceptance pending; PDF authored ActualText preserved once in editable import (#6165; first-glyph line/style, bounded input; estimates unchanged); PDF export keeps harakat and zero-advance Noto Arabic dot glyphs in one compatible batch per layout line, with per-glyph vertical offsets (#6309). `crates/pdf/src/tests/realtext.rs` (`mark_text_*`) checks decoded cluster mappings, mixed Arabic/Latin/digits, contour placement against outline export, vertical columns, differing path rotations and PDF/X-1a/3/4. Editable-text import preserves authored ActualText separately (#6165), with cross-line/style layout limits; separately styled or differently rotated clusters and external viewer search/copy remain outside this export-only evidence. `.ai`/EPS type from the text document keeps its paragraphs' tab stops (#6147); `.ai`/EPS type from the text document keeps auto leading per line, its hyphenation options, and may show more of the last lines the file sets in an area frame of its own, when growing the frame by its lines' deepest descent plus 0.05 pt shows them (#6137); ✅ done (M4.14–M4.98 on 2026-10-05): Save As/Save a Copy/Revert/templates, Data Recovery and background save, SVG import and export fidelity (units, text, symbols, filters, SVGZ, Preserve Editing, SVG Options), shared guarded PDF writer and windowed reader ([pdf-backend.md](pdf-backend.md)), PDF import (colours, layers, masks, editable text, security) and export (presets, marks, bleed, ICC and output intent, raster effects, subset fonts, PDF/X-1a, X-3 and X-4, PDF layers, overprint, page thumbnails, fast web view, PDF 1.3), Place and Links, Package, EPS and DXF in and out (EPS legacy mesh corners, vector opacity masks and raster page comparison verified; closed SPLINE flags round-trip and circular paths export as native CIRCLE/ARC, #1299), EMF/WMF, TIFF/BMP/Targa/PSD/GIF/PNG-8 export, Print and print presets, slices, Save for Web, TIFF in Export for Screens and Asset Export, clipboard flavours, File Info; AF.1–AF.4 add Affinity import (native layers, artboards, vectors, text and images from Affinity 1–3 files; the embedded preview only as a warned fallback; AF.4 expands current `.af` fixtures and every-board round-trip validation); EPS Save and Save As keep an opened EPS as EPS with its page frame and complete editable VectorCraft document (2026-10-26; G9 import fidelity unchanged). Left: DWG (use DXF), PSD placement as layers, overprint read back from PDF, Affinity export, polish; SVG CSS classes survive export and repeated import in all four styling modes (#2480); current-main integration retains event attributes and scripts; SVG CSS classes survive export and repeated import in all four styling modes (#2480); current-main integration retains event attributes and scripts; PDF import: glyphs inside a marked-content span with an empty `ActualText` come in as outlines in their fill and stroke, adding no text (#6971; scores and estimates unchanged); | 3–6 (existing scope; Affinity export unestimated) | @@ -235,6 +235,7 @@ not take the artwork yet. Overflow-menu drag remains separate. Scores and hours | Date | Change | Summary | |---|---|---| +| 2026-11-20 | minor | Information readouts: click-to-copy for Document Info values and names, Info readouts and shared Links metadata, with short confirmation (#8432, remaining feature request). Existing selected-label keyboard Copy/Cut routing from #8512 is retained; scores and estimates unchanged. | | 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 | 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. | diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index b1d981428a..4d497d3bc4 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -1,6 +1,6 @@ # Parity with Adobe Illustrator -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-20 · **Change:** minor (Layers: a targeted item with an appearance of its own keeps its inner ring visible around a smaller appearance dot, so the target circle's four looks differ, #8711; scores and estimates unchanged; previously: 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, #8363; scores and estimates unchanged; previously: Scissors shows the actual proposed cut point while hovering, using its existing snapping and cut target (#8655); scores and estimates unchanged; previously: G12: Brushes panel: item right-click context menu (Brush Options, Duplicate Brush, Delete Brush) with selection handling; scores and estimates unchanged; previously: Graphic Styles panel: right-click item context menu for tiles and rows with Options, Duplicate, Delete, Redefine, Break Link; scores and estimates unchanged; previously: 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); scores and estimates unchanged; previously: G12: Links panel row context menu (Relink…, Go To Link, Update Link, Edit Original, Show in Folder, Embed Image / Unembed…) with selection handling; scores and estimates unchanged; previously: Artboard tool: Shift held once a move or Alt-copy drag is under way keeps it to the level, upright or 45° line, #8580; scores and estimates unchanged; previously: Image Trace Ignore Color keeps the canvas View and stays armed on a missed pixel (#8068); a tool drag held near an edge of the canvas scrolls the view, #8551; scores and estimates unchanged; previously: G12: Place: show progress window with Cancel for slow placed files exceeding 0.4 s, part of #5930; scores and estimates unchanged; previously: All Tools drawer: a tool the toolbar holds is dimmed in the readable dim text colour, not the disabled colour that was unreadable against the panel, and a hovered dimmed row takes the panel's darker fill so it stays readable, #8294; scores and estimates unchanged; previously: Layers: selected guide rows stay highlighted after the pointer leaves (#7344); scores and estimates unchanged; previously: PDF import: type filled and stroked after a page of type filled only comes in filled and stroked, #8549 follow-up; scores and estimates unchanged; previously: selected Dimension extension-line color and weight in Properties (#7078; four focused UI regressions passed); scores and estimates unchanged; previously: Brush Options Key Color: restore canvas input for the existing one-shot pick, then resume the retained draft and previous tool (#8284; six full-app input regressions passed); scores and estimates unchanged; previously: #8200: `.ai` and EPS import: an Art brush in Tints of a swatch-linked stroke color comes in brushed, its tints linked to the swatch; scores and estimates unchanged; previously: Ellipse: Up/Down changes Anchors while drawing (#7840); scores and estimates unchanged; previously: Windows/Linux menu access keys and localized cues (#6596); previously: Backquote/~ arrow pattern nudges (#7717); scores and estimates unchanged; previously: Window > Toolbars > Compact Tools offers optional denser main Tools spacing (#7234); default layout, scores and estimates unchanged; previously: Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: SVG export preserves document units on root width/height for physical units, #864; G11 estimate 8–15 → 6–13 h; previously: Floating panels keep their window level while focus moves between the app's windows, so a press on one panel's bar no longer hands the keyboard to another, #6986; scores and estimates unchanged; previously minor: #8128: `.ai` and EPS import: clipping paths grouped in a compound path are its subpaths, so the compound clipping path clips its clipping group; scores and estimates unchanged; previously: import: type filled and stroked by a `TJ` whose kerning starts a new line comes in filled and stroked, #8543; PDF Retype phase 1 (#4934): Type › Retype (`type.retype`) turns outlined text that exactly matches an available font back into point text; scores and estimates unchanged; previously: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: PDF export writes the document language as the catalog's `/Lang`, #3644; Layers panel: an Alt-drag copies a row above or below itself, so the top layer dragged up, the bottom layer dragged down and a lone layer are copied, #8237; scores and estimates unchanged; previously: Twist: a strongly twisted path joins its pieces without kinks, #7069; scores and estimates unchanged; previously: PDF import: a glyph filled only after a glyph filled and stroked comes in filled only, not stroked, #8300; PDF import: translucent type filled and stroked comes in as a filled type object and a stroked one, as the file composites them, and an upright glyph is never kept as the outline of its glyph alone, #8015; PDF import: type filled and stroked by one text-showing operator comes in as one type object, filled and stroked, not a stroked copy over a filled one, #8015; Layers panel: Alt over the list shows the copy cursor while rows or the selection square are dragged, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip under the ramp shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Properties panel: the Character section shows the font of the Type tool's selection, not the first run's (#8189); scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; scores and estimates unchanged; previously: Paragraph composers (#4935): the Paragraph panel menu and paragraph styles offer four composers, the Middle Eastern & South Asian Single-line and Every-line (how all type is set, and the default) and a Standard Single-line and Every-line that set Indic, Arabic and Hebrew type glyph by glyph as the font maps it, for legacy fonts that keep a script on Latin character codes; PDF import: stroked type keeps the line cap, line join and miter limit the file strokes it with, a glyph stroked otherwise than the run it joins coming in as a run of its own, #7741; G5: Neon & Glow joins built-in graphic style libraries (Cyan Neon, Magenta Laser, Amber Tube, Electric Lime, Pulse Violet, Cobalt Phosphor); scores and estimates unchanged; previously: Pencil ignores Smart Guides and Snap to Point and shows no Smart Guides, #7252; previously: Pencil continuation, straight-line and closing cursors; scores and estimates unchanged; previously: G5: Weather Icons joins built-in symbol libraries (Sun, Moon, Cloud, Rain, Thunder, Snow); scores and estimates unchanged; previously: a closed Pencil stroke closes with a straight segment; previously: Snap to Point with Smart Guides off draws no Smart Guides labels or lines, #7250; previously: 3D: the seams of Extrude & Bevel, Inflate and Rotate under a white light, and of the faces of Extrude & Bevel (Classic), Revolve (Classic) and Rotate (Classic), went from miter to round joins, so white-light 3D output is expected to differ from the 2026-10-17 comparison at facet corners (not measured: the scenes were not exported again); previously: `.ai` and EPS import: in layers that don't draw as the page, art that differs away from an envelope of type no longer costs it its editable type; it keeps its drawn art where, in the pixels it and its drawn art ink, the layers with it differ from the page more than its own check allows, or past the envelopes' share of the page check, #7141; Character panel: the Set Font Height Reference dropdown shows an icon before each reference, #6304; scores and estimates unchanged; previously: Envelopes: a top object's side whose pieces are all one curve split at anchors follows that curve's parameter, so a top object saved with its sides' curves in pieces draws as its `.ai` drawn art, #7097; scores and estimates unchanged; previously: Graphic Styles list fills a taller panel, #2992; scores and estimates unchanged; previously: PDF import: glyphs in a span with an empty ActualText come in as outlines, #6971; scores and estimates unchanged; previously: library panels' lists fill a taller panel, #2992; scores and estimates unchanged; previously: Swatches list fills a taller panel, #1638; scores and estimates unchanged; previously minor: Object › Rasterize with the Grayscale or Bitmap colour model makes a grayscale image, #6969; scores and estimates unchanged; previously minor: `.ai` and EPS import: type in an envelope with Distort Appearance is also tried mapped from the box of what it paints, miter tips and moved strokes included, after its glyphs grown by half its strokes' weight (#6824; #6617: Swatches panel menu: Show Recent Colors; scores unchanged; previously minor: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: #6865: explicitly requested oversized editing artboard; macOS: the canvas cursor stays after the pointer moves, #6362; scores and estimates unchanged; previously minor: Type tool: kerning at a caret at the start of a line moves the character after it, #5111; scores and estimates unchanged; previously minor: Rulers: the zero point dragged out of the rulers' corner snaps as a drawn point does; previously minor: Live Paint Bucket fills faces crossed in one drag (#6373); previously: #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: Envelopes: with Distort Appearance, type's strokes paint along the bent glyph outlines at their own weight, as users' `.ai` files draw them, which changes how VectorCraft's own envelopes of stroked type draw (#6644; scores and estimates unchanged); previously minor: G5: Energy Beams brush library; bundled content ~44% → ~46%; previously minor: G5: Skill Icons symbol library; bundled content ~42% → ~44%; previously minor: `.ai` and EPS import: an envelope saved in Edit Contents whose mesh lies away from its drawn art by a move opens live on that art (#6570; scores and estimates unchanged); previously minor: ruler double-click adds a guide at the pointer, #5239; G5: Status Effects graphic style library; bundled content ~40% → ~42%; MCP symbol libraries list UI Frames and Map Markers; previously minor: G5: Inventory Icons built-in symbol library; bundled content ~38% → ~40%; previously minor: `.ai` and EPS import: stroked type in an envelope maps from its glyphs grown by half its stroke (#3179; scores and estimates unchanged); previously minor: `.ai` and EPS import: warps of type open as mesh envelopes on their saved grid where VectorCraft's warp doesn't draw as their drawn art (#3179; scores and estimates unchanged); G5: Game Trails brush library; bundled content ~36% → ~38%; previously minor: Edit › Edit Custom Dictionary…: its dialog adds, deletes and changes the custom dictionary's words, #4936; previously minor: `.ai` and EPS import: envelopes of type open live where they draw as their drawn art and the layers with them draw as the page (#3179; scores and estimates unchanged); G5: Game HUD graphic style library; bundled content ~34% → ~36%; previously minor: Line Arrow arrowhead (#5421; scores and estimates unchanged); G5: Map Markers built-in symbol library; bundled content ~32% → ~34%; previously minor: right-click on type: Spelling › Auto Spell Check, with its check mark, #4936; previously minor: right-click on a word Auto Spell Check underlined: its suggestions, Ignore All and Add to Dictionary, #4936; previously minor: Canvas: a 3D effect changed on type or a group redraws where its solid was; Fit to Artwork Bounds and per-artboard SVG export build each solid once for all artboards; previously minor: Effect Gallery: a thumbnail for each filter and a preview area inside the dialog, on an original drawing; Raster effects 52% → 55%, hours 1–2 → none; headline numbers unchanged; Auto Spell Check: `edit.autoSpellCheck` underlines the unknown words, #4936; previously minor: PDF editable import preserves authored ActualText once, including empty/nested spans and authored ordering (#6165); cross-line/style layout remains approximate; scores and estimates unchanged; PDF marked-text export (#6309): compatible glyphs stay on one layout line with per-glyph offsets; scores and estimates unchanged; G5: UI Frames built-in symbol library with default 9-slice; bundled content ~32%; previously minor: G5: dynamic symbol part on-canvas opacity/blend/gradient/pattern; strokes remaining no longer lists Overlap/auto corners; symbols ~88%; previously minor: interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; previously minor: harakat paint fallback clarified; previously minor: current Guides feature-area rows consolidated using existing ruler evidence; scores and estimates unchanged; previously minor: Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; previously minor: G5 docs: Art brush Overlap and Pattern brush auto corners removed from strokes remaining; symbols remaining lists dynamic on-canvas beyond solid and guides outside the art; previously minor: custom dictionary and Ignore All: `text.spelling.addWord`, `removeWord`, `changeWord`, `dictionary` and `ignoreAll`, #4936; previously minor: EPS import: embedded fonts (composite, Type 42, CID-keyed, Type 1, CFF FontSet) draw their glyphs; spell check engine: `text.spelling.check` and `text.spelling.suggest` on craft-proof, #4936; previously minor: floating tab groups collapse into the side icon rail and opened rail panels fold back into it, #5925 in part; `.ai`/EPS type keeps its tab stops, and right-aligned lines with tabs lay out as the file's page, #6147; `.ai`/EPS type from the text document lays its lines out closer to the file's page, within limits, #6137; `.ai` and EPS import: older Art brush objects read; numeric fields step on wheel hover without taking keyboard focus, and a panel wheel turn cannot seed a canvas zoom glide, #5949; Character Styles panel: a double-click on a style's row opens its Character Style Options; the dialog keeps a fixed width and scrolls its sections, so its buttons stay on screen; Tools stays beside the canvas with left-side panels; new gradients follow document color mode; Selection QoL: marquee modes and visible feedback, #5313; SVG CSS classes survive export and repeated import in all four styling modes (#2480); current-main integration retains event attributes and scripts; #3380 deletion-only review follow-up: independent survivors keep gradient placement, owned subpaths avoid discarded copies, and contracts/status/evidence are clarified; endpoint highlighting remains open; scores and estimates unchanged; the canvas keeps selection outlines and anchors between frames; Indian-language hyphenation review and license allowlist, #4947; Stroke gradients: an arrowhead aligned to the tip is painted to the corners of its base, #5964; Drop Shadow and glow dialogs: spinner arrows, #5367, #5368; Stroke Weight Up and Down shortcuts, #5797; Hindi catalog and contributor loanword preferences; full wording review in progress; Properties in Edit Artboards: a Transform section with the reference point above the Artboards section, #5219; the Control bar's Stroke: and Opacity: links scrub their fields, #4088; an image zoomed in on is separated, colorized or proofed only where it shows (#4155); a document's first frame renders on the render worker, so opening a heavy file no longer freezes the window, #4155; Control bar Paragraph section with type selected, #5372; translating unchanged type reuses its glyph and character-stroke outlines; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x; public release notes through 30.7, August 2026; Units › East Asian Type acts, with Q and Ha units; scores unchanged) +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-20 · **Change:** minor (Information readouts copy their complete values on click with confirmation (#8432); scores and estimates unchanged; previously: Layers: a targeted item with an appearance of its own keeps its inner ring visible around a smaller appearance dot, so the target circle's four looks differ, #8711; scores and estimates unchanged; previously: 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, #8363; scores and estimates unchanged; previously: Scissors shows the actual proposed cut point while hovering, using its existing snapping and cut target (#8655); scores and estimates unchanged; previously: G12: Brushes panel: item right-click context menu (Brush Options, Duplicate Brush, Delete Brush) with selection handling; scores and estimates unchanged; previously: Graphic Styles panel: right-click item context menu for tiles and rows with Options, Duplicate, Delete, Redefine, Break Link; scores and estimates unchanged; previously: 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); scores and estimates unchanged; previously: G12: Links panel row context menu (Relink…, Go To Link, Update Link, Edit Original, Show in Folder, Embed Image / Unembed…) with selection handling; scores and estimates unchanged; previously: Artboard tool: Shift held once a move or Alt-copy drag is under way keeps it to the level, upright or 45° line, #8580; scores and estimates unchanged; previously: Image Trace Ignore Color keeps the canvas View and stays armed on a missed pixel (#8068); a tool drag held near an edge of the canvas scrolls the view, #8551; scores and estimates unchanged; previously: G12: Place: show progress window with Cancel for slow placed files exceeding 0.4 s, part of #5930; scores and estimates unchanged; previously: All Tools drawer: a tool the toolbar holds is dimmed in the readable dim text colour, not the disabled colour that was unreadable against the panel, and a hovered dimmed row takes the panel's darker fill so it stays readable, #8294; scores and estimates unchanged; previously: Layers: selected guide rows stay highlighted after the pointer leaves (#7344); scores and estimates unchanged; previously: PDF import: type filled and stroked after a page of type filled only comes in filled and stroked, #8549 follow-up; scores and estimates unchanged; previously: selected Dimension extension-line color and weight in Properties (#7078; four focused UI regressions passed); scores and estimates unchanged; previously: Brush Options Key Color: restore canvas input for the existing one-shot pick, then resume the retained draft and previous tool (#8284; six full-app input regressions passed); scores and estimates unchanged; previously: #8200: `.ai` and EPS import: an Art brush in Tints of a swatch-linked stroke color comes in brushed, its tints linked to the swatch; scores and estimates unchanged; previously: Ellipse: Up/Down changes Anchors while drawing (#7840); scores and estimates unchanged; previously: Windows/Linux menu access keys and localized cues (#6596); previously: Backquote/~ arrow pattern nudges (#7717); scores and estimates unchanged; previously: Window > Toolbars > Compact Tools offers optional denser main Tools spacing (#7234); default layout, scores and estimates unchanged; previously: Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: SVG export preserves document units on root width/height for physical units, #864; G11 estimate 8–15 → 6–13 h; previously: Floating panels keep their window level while focus moves between the app's windows, so a press on one panel's bar no longer hands the keyboard to another, #6986; scores and estimates unchanged; previously minor: #8128: `.ai` and EPS import: clipping paths grouped in a compound path are its subpaths, so the compound clipping path clips its clipping group; scores and estimates unchanged; previously: import: type filled and stroked by a `TJ` whose kerning starts a new line comes in filled and stroked, #8543; PDF Retype phase 1 (#4934): Type › Retype (`type.retype`) turns outlined text that exactly matches an available font back into point text; scores and estimates unchanged; previously: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: PDF export writes the document language as the catalog's `/Lang`, #3644; Layers panel: an Alt-drag copies a row above or below itself, so the top layer dragged up, the bottom layer dragged down and a lone layer are copied, #8237; scores and estimates unchanged; previously: Twist: a strongly twisted path joins its pieces without kinks, #7069; scores and estimates unchanged; previously: PDF import: a glyph filled only after a glyph filled and stroked comes in filled only, not stroked, #8300; PDF import: translucent type filled and stroked comes in as a filled type object and a stroked one, as the file composites them, and an upright glyph is never kept as the outline of its glyph alone, #8015; PDF import: type filled and stroked by one text-showing operator comes in as one type object, filled and stroked, not a stroked copy over a filled one, #8015; Layers panel: Alt over the list shows the copy cursor while rows or the selection square are dragged, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip under the ramp shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Properties panel: the Character section shows the font of the Type tool's selection, not the first run's (#8189); scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; scores and estimates unchanged; previously: Paragraph composers (#4935): the Paragraph panel menu and paragraph styles offer four composers, the Middle Eastern & South Asian Single-line and Every-line (how all type is set, and the default) and a Standard Single-line and Every-line that set Indic, Arabic and Hebrew type glyph by glyph as the font maps it, for legacy fonts that keep a script on Latin character codes; PDF import: stroked type keeps the line cap, line join and miter limit the file strokes it with, a glyph stroked otherwise than the run it joins coming in as a run of its own, #7741; G5: Neon & Glow joins built-in graphic style libraries (Cyan Neon, Magenta Laser, Amber Tube, Electric Lime, Pulse Violet, Cobalt Phosphor); scores and estimates unchanged; previously: Pencil ignores Smart Guides and Snap to Point and shows no Smart Guides, #7252; previously: Pencil continuation, straight-line and closing cursors; scores and estimates unchanged; previously: G5: Weather Icons joins built-in symbol libraries (Sun, Moon, Cloud, Rain, Thunder, Snow); scores and estimates unchanged; previously: a closed Pencil stroke closes with a straight segment; previously: Snap to Point with Smart Guides off draws no Smart Guides labels or lines, #7250; previously: 3D: the seams of Extrude & Bevel, Inflate and Rotate under a white light, and of the faces of Extrude & Bevel (Classic), Revolve (Classic) and Rotate (Classic), went from miter to round joins, so white-light 3D output is expected to differ from the 2026-10-17 comparison at facet corners (not measured: the scenes were not exported again); previously: `.ai` and EPS import: in layers that don't draw as the page, art that differs away from an envelope of type no longer costs it its editable type; it keeps its drawn art where, in the pixels it and its drawn art ink, the layers with it differ from the page more than its own check allows, or past the envelopes' share of the page check, #7141; Character panel: the Set Font Height Reference dropdown shows an icon before each reference, #6304; scores and estimates unchanged; previously: Envelopes: a top object's side whose pieces are all one curve split at anchors follows that curve's parameter, so a top object saved with its sides' curves in pieces draws as its `.ai` drawn art, #7097; scores and estimates unchanged; previously: Graphic Styles list fills a taller panel, #2992; scores and estimates unchanged; previously: PDF import: glyphs in a span with an empty ActualText come in as outlines, #6971; scores and estimates unchanged; previously: library panels' lists fill a taller panel, #2992; scores and estimates unchanged; previously: Swatches list fills a taller panel, #1638; scores and estimates unchanged; previously minor: Object › Rasterize with the Grayscale or Bitmap colour model makes a grayscale image, #6969; scores and estimates unchanged; previously minor: `.ai` and EPS import: type in an envelope with Distort Appearance is also tried mapped from the box of what it paints, miter tips and moved strokes included, after its glyphs grown by half its strokes' weight (#6824; #6617: Swatches panel menu: Show Recent Colors; scores unchanged; previously minor: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: #6865: explicitly requested oversized editing artboard; macOS: the canvas cursor stays after the pointer moves, #6362; scores and estimates unchanged; previously minor: Type tool: kerning at a caret at the start of a line moves the character after it, #5111; scores and estimates unchanged; previously minor: Rulers: the zero point dragged out of the rulers' corner snaps as a drawn point does; previously minor: Live Paint Bucket fills faces crossed in one drag (#6373); previously: #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: Envelopes: with Distort Appearance, type's strokes paint along the bent glyph outlines at their own weight, as users' `.ai` files draw them, which changes how VectorCraft's own envelopes of stroked type draw (#6644; scores and estimates unchanged); previously minor: G5: Energy Beams brush library; bundled content ~44% → ~46%; previously minor: G5: Skill Icons symbol library; bundled content ~42% → ~44%; previously minor: `.ai` and EPS import: an envelope saved in Edit Contents whose mesh lies away from its drawn art by a move opens live on that art (#6570; scores and estimates unchanged); previously minor: ruler double-click adds a guide at the pointer, #5239; G5: Status Effects graphic style library; bundled content ~40% → ~42%; MCP symbol libraries list UI Frames and Map Markers; previously minor: G5: Inventory Icons built-in symbol library; bundled content ~38% → ~40%; previously minor: `.ai` and EPS import: stroked type in an envelope maps from its glyphs grown by half its stroke (#3179; scores and estimates unchanged); previously minor: `.ai` and EPS import: warps of type open as mesh envelopes on their saved grid where VectorCraft's warp doesn't draw as their drawn art (#3179; scores and estimates unchanged); G5: Game Trails brush library; bundled content ~36% → ~38%; previously minor: Edit › Edit Custom Dictionary…: its dialog adds, deletes and changes the custom dictionary's words, #4936; previously minor: `.ai` and EPS import: envelopes of type open live where they draw as their drawn art and the layers with them draw as the page (#3179; scores and estimates unchanged); G5: Game HUD graphic style library; bundled content ~34% → ~36%; previously minor: Line Arrow arrowhead (#5421; scores and estimates unchanged); G5: Map Markers built-in symbol library; bundled content ~32% → ~34%; previously minor: right-click on type: Spelling › Auto Spell Check, with its check mark, #4936; previously minor: right-click on a word Auto Spell Check underlined: its suggestions, Ignore All and Add to Dictionary, #4936; previously minor: Canvas: a 3D effect changed on type or a group redraws where its solid was; Fit to Artwork Bounds and per-artboard SVG export build each solid once for all artboards; previously minor: Effect Gallery: a thumbnail for each filter and a preview area inside the dialog, on an original drawing; Raster effects 52% → 55%, hours 1–2 → none; headline numbers unchanged; Auto Spell Check: `edit.autoSpellCheck` underlines the unknown words, #4936; previously minor: PDF editable import preserves authored ActualText once, including empty/nested spans and authored ordering (#6165); cross-line/style layout remains approximate; scores and estimates unchanged; PDF marked-text export (#6309): compatible glyphs stay on one layout line with per-glyph offsets; scores and estimates unchanged; G5: UI Frames built-in symbol library with default 9-slice; bundled content ~32%; previously minor: G5: dynamic symbol part on-canvas opacity/blend/gradient/pattern; strokes remaining no longer lists Overlap/auto corners; symbols ~88%; previously minor: interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; previously minor: harakat paint fallback clarified; previously minor: current Guides feature-area rows consolidated using existing ruler evidence; scores and estimates unchanged; previously minor: Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; previously minor: G5 docs: Art brush Overlap and Pattern brush auto corners removed from strokes remaining; symbols remaining lists dynamic on-canvas beyond solid and guides outside the art; previously minor: custom dictionary and Ignore All: `text.spelling.addWord`, `removeWord`, `changeWord`, `dictionary` and `ignoreAll`, #4936; previously minor: EPS import: embedded fonts (composite, Type 42, CID-keyed, Type 1, CFF FontSet) draw their glyphs; spell check engine: `text.spelling.check` and `text.spelling.suggest` on craft-proof, #4936; previously minor: floating tab groups collapse into the side icon rail and opened rail panels fold back into it, #5925 in part; `.ai`/EPS type keeps its tab stops, and right-aligned lines with tabs lay out as the file's page, #6147; `.ai`/EPS type from the text document lays its lines out closer to the file's page, within limits, #6137; `.ai` and EPS import: older Art brush objects read; numeric fields step on wheel hover without taking keyboard focus, and a panel wheel turn cannot seed a canvas zoom glide, #5949; Character Styles panel: a double-click on a style's row opens its Character Style Options; the dialog keeps a fixed width and scrolls its sections, so its buttons stay on screen; Tools stays beside the canvas with left-side panels; new gradients follow document color mode; Selection QoL: marquee modes and visible feedback, #5313; SVG CSS classes survive export and repeated import in all four styling modes (#2480); current-main integration retains event attributes and scripts; #3380 deletion-only review follow-up: independent survivors keep gradient placement, owned subpaths avoid discarded copies, and contracts/status/evidence are clarified; endpoint highlighting remains open; scores and estimates unchanged; the canvas keeps selection outlines and anchors between frames; Indian-language hyphenation review and license allowlist, #4947; Stroke gradients: an arrowhead aligned to the tip is painted to the corners of its base, #5964; Drop Shadow and glow dialogs: spinner arrows, #5367, #5368; Stroke Weight Up and Down shortcuts, #5797; Hindi catalog and contributor loanword preferences; full wording review in progress; Properties in Edit Artboards: a Transform section with the reference point above the Artboards section, #5219; the Control bar's Stroke: and Opacity: links scrub their fields, #4088; an image zoomed in on is separated, colorized or proofed only where it shows (#4155); a document's first frame renders on the render worker, so opening a heavy file no longer freezes the window, #4155; Control bar Paragraph section with type selected, #5372; translating unchanged type reuses its glyph and character-stroke outlines; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x; public release notes through 30.7, August 2026; Units › East Asian Type acts, with Q and Ha units; scores unchanged) > > Tech Circuit update (2026-11-14): three original procedural brushes; ten built-in brush libraries (G5). > @@ -313,7 +313,7 @@ dominate; 3D, graphs and automation are specialist). They sum to 105. Feature de | Export for Screens, Asset Export, slices, Save for Web | 3 | 85% | anti-aliasing ghost borders (#983); TIFF choices and settings are implemented | 2–4 | estimated | | Print, colour management, separations, flattener | 3 | 80% | Production Preflight available; print preview fidelity remains | 2–4 | estimated | | Automation (Actions, Variables, scripting, batch) | 3 | 60% | a scripting surface (Illustrator: JavaScript/ExtendScript), Batch, image and graph variables, dataset import/export | 8–14 | estimated; MCP `add_text` exposes existing vertical type; score and hours unchanged | -| UI chrome (panels, Properties, workspaces, preferences) | 6 | 80% | Properties per context, 2 Preferences options stored but unused (#394, audited 2026-10-30: Scratch Disks, legacy vector clipboard), context menus in the panels that have none, 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; scores and estimates unchanged | +| UI chrome (panels, Properties, workspaces, preferences) | 6 | 80% | Properties per context, 2 Preferences options stored but unused (#394, audited 2026-10-30: Scratch Disks, legacy vector clipboard), context menus in the panels that have none, 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; scores and estimates unchanged Click-to-copy for information readouts, with confirmation (#8432; no rescore). | | 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** | **~75%** | | **~250–420** | | @@ -573,8 +573,8 @@ about 1–1.5 agent-hours each, so the other rows (estimated on the older scale) | Export for Screens, Asset Export, slices, Save for Web | 3 | 85% | polish only (all four are done) | 2–4 | | Print, colour management, separations, flattener | 3 | 80% | Production Preflight available; print preview fidelity remains (flattener presets in PDF and print, overprint in PDF and composite print, Print dialog, presets, PostScript, marks, separations, Print Tiling, print overprint/flattener/bitmap options and printer profile are done, as are the Japanese papers in its Media list: JIS B4/B5/B6, はがき, 往復はがき, 封筒 長形3号/長形4号/角形2号/角形3号 and 四六判, beside the ISO B4/B5 that settings saved before them keep) | 1–2 | | Automation | 3 | 65% | scripting surface, batch (MCP drops malformed app replies without replay; Variables: text/visibility variables bound to objects, an object may carry several, dataset rows applied in one undo step, panel and Window › Variables with dialogs; image/graph kinds and dataset import/export open) | 6–10 | -| UI chrome (panels, contextual Properties, workspaces, prefs) | 6 | 80% | macOS native menu dismissal fixed (M14.8); Variables, Links, Asset Export, CSS Properties, Attributes, the canvas context menu and docking panels into any dock group by dragging (as tabs, a top/bottom split or icons) are done; remaining: Properties per context, Consolidate All Windows, floating panels outside the app window, context menus in the panels that have none, about 13 Preferences options stored but not yet acted on (#394: Open Documents As Tabs, Real-time Drawing, hyphenation language, devices…) | 13–20 | -| UI chrome (panels, contextual Properties, workspaces, prefs) | 6 | 80% | macOS native menu dismissal fixed (M14.8); Variables, Links, Asset Export, CSS Properties, Attributes, the canvas context menu and docking panels into any dock group by dragging (as tabs, a top/bottom split or icons) are done; remaining: Properties per context, Consolidate All Windows, floating panels outside the app window, context menus in the panels that have none, about 14 Preferences options stored but not yet acted on (#394: Highlight Alternate Glyphs, Open Documents As Tabs, Real-time Drawing, hyphenation language, devices…) | 13–20 | +| UI chrome (panels, contextual Properties, workspaces, prefs) | 6 | 80% | macOS native menu dismissal fixed (M14.8); Variables, Links, Asset Export, CSS Properties, Attributes, the canvas context menu and docking panels into any dock group by dragging (as tabs, a top/bottom split or icons) are done; remaining: Properties per context, Consolidate All Windows, floating panels outside the app window, context menus in the panels that have none, about 13 Preferences options stored but not yet acted on (#394: Open Documents As Tabs, Real-time Drawing, hyphenation language, devices…) | 13–20 Click-to-copy for information readouts, with confirmation (#8432; no rescore). | +| UI chrome (panels, contextual Properties, workspaces, prefs) | 6 | 80% | macOS native menu dismissal fixed (M14.8); Variables, Links, Asset Export, CSS Properties, Attributes, the canvas context menu and docking panels into any dock group by dragging (as tabs, a top/bottom split or icons) are done; remaining: Properties per context, Consolidate All Windows, floating panels outside the app window, context menus in the panels that have none, about 14 Preferences options stored but not yet acted on (#394: Highlight Alternate Glyphs, Open Documents As Tabs, Real-time Drawing, hyphenation language, devices…) | 13–20 Click-to-copy for information readouts, with confirmation (#8432; no rescore). | | Libraries, Links, Package | 2 | 82% | the Libraries panel is local only (no cloud by design: libraries are files on this machine) and has no shared libraries, linked graphics or gradients and patterns as items yet; its graphics, colours and text styles (#745), its search, groups and library export/import as `.vclibrary` files (#926), a list that scrolls, with items and groups reordered by dragging and items dragged into and out of groups, art and swatches dragged in added where they are dropped, and items shown as icons or in a list with their names, are done; Links and Package are done; placed VectorCraft documents are done (linked by default, vectors in every output, previews, Break Link, Expand, Edit Original, refresh on save) | 2–3 | | **Feature parity** | **103** | **~75%** | | **~210–330** | | Interaction-fidelity pass (side by side with Illustrator: every tool modifier, cursor, dialog, Properties context) | | | | 60–90 | @@ -1321,6 +1321,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur - Cmd/Ctrl+A follows the keyboard: in a panel, dialog or search field it selects the field's text, while the Type tool edits it selects all of that text (also `select.all` over MCP), and only otherwise every object. On macOS the menu bar's Select All, Cut, Copy and Paste (keys or clicks) act on a focused field too, and elsewhere the in-window menus' do: the field that had the keyboard when the menu opened gets them, with its selection, and the keyboard back (#516). Not yet: Select All across threaded frames (one frame's text is selected). - Cmd/Ctrl+A follows the keyboard: in a panel, dialog or search field it selects the field's text, while the Type tool edits it selects all of that text (also `select.all` over MCP), and only otherwise every object. On macOS the menu bar's Select All, Cut, Copy and Paste (keys or clicks) act on a focused field too, and elsewhere the in-window menus' do: the field that had the keyboard when the menu opened gets them, with its selection, and the keyboard back (#516). In a frame of threaded text, Select All selects the whole story, highlighted in every frame: Copy and Cut take all of it, typing or Delete replaces it as one undo step, and a fill, a size step or a Character or Paragraph panel change applies to every frame's text (VectorCraft's own behavior; `textedit::select_all_in_a_threaded_frame_selects_the_whole_story`, `textedit::typing_over_the_whole_story_replaces_every_frames_text_in_one_step`). - With text selected in a panel's label, such as a Document Info value, Cmd/Ctrl+C and Cmd/Ctrl+X copy that text and do not copy or cut the art, and so do F3 and F2 where they are Copy and Cut, any other keys assigned to Copy or Cut, and the menu bar's Copy and Cut on macOS. When the selected label is not drawn (the panels are hidden), Copy and Cut act on the art instead (#8432; VectorCraft's own behavior; `selectall::copy_and_cut_copy_the_text_selected_in_a_panel_label`, `selectall::copy_sent_on_from_another_window_copies_the_text_only_when_it_is_this_windows`, `selectall::panel_text_copied_before_the_art_formats_are_written_stays_on_the_clipboard`, `shortcuts::tests::a_window_notes_only_its_labels_copies_until_the_next_main_window_pass`, `shortcuts::tests::a_window_notes_a_copy_of_text_dragged_across_its_label`). Not yet: the in-window Edit menu's Copy and Cut (the click on the menu clears the label's selection first), and, while the selected text is in a floating panel's own window, the menu bar's Copy and Cut, and F3 and F2 (they do not copy the text). + - **Information readout click-to-copy (#8432):** Document Info values and names, Info readouts and Links metadata copy their complete displayed text on a simple click, including the full value when a path is truncated, and show a short confirmation (#8432). Info includes the readout label and units. Dragging or double-clicking still selects text; the existing selected-label keyboard Copy/Cut routing from #8512 remains in place. This is an additional convenience, not a change to the existing menu-copy limitations. Scores and estimates unchanged. - With the whole story of threaded text selected by Select All, Remove Line Breaks, Remove Paragraph Breaks and Type › Bullets and Numbering › Convert to Text act on the text of every frame as one undo step, locked and hidden frames included, and the story stays selected after Convert to Text; a selection inside one frame changes only that frame (VectorCraft's own behavior; `textedit::remove_breaks_takes_the_whole_story_that_select_all_selected`, `textedit::convert_to_text_takes_the_whole_story_that_select_all_selected`, `textedit::convert_to_text_of_the_whole_story_converts_locked_and_hidden_frames`, `textedit::remove_breaks_of_the_whole_story_takes_locked_and_hidden_frames`). - When only some frames of a threaded story are selected, Remove Line Breaks and Remove Paragraph Breaks go through that story's frames once for all of them, not once per selected frame; each selected frame still loses its own breaks, in the order selected, as one undo step (`addons::cleanup::text::tests::remove_breaks_goes_through_a_partly_named_story_once`). - With the whole story of threaded text selected by Select All, the Character, Paragraph, OpenType, Tabs and Text Styles panels, the Justification dialog and the font menu change the frames that are in the edited frame's thread at the time of the change, locked and hidden frames included. A frame that has left the thread is not changed, and a frame added to the thread is (VectorCraft's own behavior; `panels::character::tests::story_changes_follow_the_edited_frames_thread_after_the_first_saved_frame_leaves`, `story_changes_leave_out_a_frame_that_left_and_take_in_a_frame_that_joined`, `story_changes_stay_in_the_edited_frame_once_its_thread_is_removed`, `story_changes_take_in_locked_and_hidden_frames`, `panels::tabs::tests::indent_markers_after_select_all_keep_each_story_paragraphs_indents`, `dialogs::justification::tests::justification_dialog_follows_the_story_thread_at_ok`). @@ -3144,6 +3145,7 @@ Edit › Copy and Cut put the selected ruler guides on the clipboard, with the s | Date | Change | Summary | |---|---|---| +| 2026-11-20 | minor | Information readouts: click-to-copy for Document Info values and names, Info readouts and shared Links metadata, with short confirmation (#8432, remaining feature request). Existing selected-label keyboard Copy/Cut routing from #8512 is retained; 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 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 | 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. | diff --git a/docs/ui-parity.md b/docs/ui-parity.md index 911f08d192..affa3d904c 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -1,6 +1,6 @@ # UI and interaction parity -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-20 · **Change:** minor (Layers: a targeted item with an appearance of its own keeps its inner ring visible around a smaller appearance dot, so the target circle's four looks differ, #8711; scores and estimates unchanged; previously: 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, #8363; scores and estimates unchanged; previously: Scissors shows the actual proposed cut point while hovering, using its existing snapping and cut target (#8655); scores and estimates unchanged; previously: Graphic Styles panel: right-click item context menu for tiles and rows with Options, Duplicate, Delete, Redefine, Break Link; scores and estimates unchanged; previously: Artboard tool: Shift held once a move or Alt-copy drag is under way keeps it to the level, upright or 45° line, #8580; scores and estimates unchanged; previously: Image Trace Ignore Color keeps the canvas View and stays armed on a missed pixel (#8068); Canvas context menu: a right-click on a path offers Simplify… next to Smooth…, opening the Simplify slider, or the Simplify dialog kept for next time, as Object › Path › Simplify… does, #8344; scores and estimates unchanged; previously: a tool drag held near an edge of the canvas scrolls the view, #8551; scores and estimates unchanged; previously: G12: Place: show progress window with Cancel for slow placed files exceeding 0.4 s, part of #5930; scores and estimates unchanged; previously: All Tools drawer: a tool the toolbar holds is dimmed in the readable dim text colour, not the disabled colour that was unreadable against the panel, and a hovered dimmed row takes the panel's darker fill so it stays readable, #8294; scores and estimates unchanged; previously: : selected guide rows stay highlighted after the pointer leaves (#7344); scores and estimates unchanged; previously: Layersselected Dimension extension-line color and weight in Properties (#7078; four focused UI regressions passed); scores and estimates unchanged; previously: Brush Options Key Color: restore canvas input for the existing one-shot pick, then resume the retained draft and previous tool (#8284; six full-app input regressions passed); scores and estimates unchanged; previously: Ellipse: Up/Down changes Anchors while drawing (#7840); scores and estimates unchanged; previously: Windows/Linux menu access keys and localized cues (#6596); previously: Backquote/~ arrow pattern nudges (#7717); scores and estimates unchanged; previously: Window > Toolbars > Compact Tools offers optional denser main Tools spacing (#7234); default layout, scores and estimates unchanged; previously: Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: Floating panels keep their window level while focus moves between the app's windows, so a press on one panel's bar no longer hands the keyboard to another, #6986; scores and estimates unchanged; previously minor: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); scores and estimates unchanged; previously: Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: Layers panel: an Alt-drag copies a row above or below itself, so the top layer dragged up, the bottom layer dragged down and a lone layer are copied, #8237; scores and estimates unchanged; previously: Layers panel: Alt over the list shows the copy cursor while rows or the selected-art square are dragged, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip under the ramp shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; scores and estimates unchanged; previously: Pencil continuation, straight-line and closing cursors; scores and estimates unchanged; previously: Graphic Styles list fills a taller panel, #2992; scores and estimates unchanged; previously: library panels' lists fill a taller panel, #2992; scores and estimates unchanged; previously: Swatches list fills a taller panel, #1638; scores and estimates unchanged; previously: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: macOS: the canvas cursor stays after the pointer moves, #6362; scores and estimates unchanged; previously minor: Remove Background in the Contextual Task Bar, Properties › Quick Actions and the Control bar; previously minor: Ruler origin: the corner drag snaps as a drawn point does; previously minor: Live Paint Bucket fills faces crossed in one drag (#6373); previously: #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: Outline view: images and gradient meshes are picked on what Outline draws, so a click inside them reaches the path behind, #6437; previously minor: a middle-click on a document tab closes it, #6506; previously minor: Blob Brush: a round tip's preview is the outline of the area it adds, round at both ends, as the stroke it commits (#4343); scores and estimates unchanged; previously:; ruler double-click adds a guide at the pointer, #5239; G5: Inventory Icons built-in symbol library (four built-ins); previously minor: files that record no units open in Preferences › Units › General, #5820; previously minor: interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; floating tab groups collapse into the side icon rail and opened rail panels fold back into it, #5925 in part; numeric fields step on wheel hover without taking keyboard focus, #5949; Character Styles panel: a double-click on a style's row opens its Character Style Options; the dialog keeps a fixed width and scrolls its sections, so its buttons stay on screen; Selection QoL: marquee modes and visible feedback, #5313; #3380 deletion-only review follow-up: independent survivors keep gradient placement, owned subpaths avoid discarded copies, and contracts/status/evidence are clarified; endpoint highlighting remains open; scores and estimates unchanged; Drop Shadow and glow dialogs: spinner arrows, #5367, #5368; Stroke Weight Up and Down shortcuts, #5797; Layers: Rename (`ui.rename`) opens the name field of the selected layer, group or object, #5324; Properties in Edit Artboards: Transform section above the Artboards section, #5219; scrubby labels: the Control bar's Stroke: and Opacity: links and the Properties panel's Stroke link scrub their fields, #4088; Properties: Quick Actions has Repeat Options for one selected repeat, #5181; Direct Selection: Shift-click picks several blend spine points, which drag together, #5285; Direct Selection: Cmd/Ctrl held lends the Selection tool and shows its bounding box, #3901; Join tool trims two crossing open paths and joins them at the crossing, #5844; Control bar: Paragraph: link and Align left/center/right while type is selected, #5372; shape tools: a press on the selection's centre point moves it and one in the rotate zone outside a box corner turns it, #5477; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x; Units › East Asian Type acts, with Q and Ha units; scores unchanged) +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-20 · **Change:** minor (Information readouts copy their complete values on click with confirmation (#8432); scores and estimates unchanged; previously: Layers: a targeted item with an appearance of its own keeps its inner ring visible around a smaller appearance dot, so the target circle's four looks differ, #8711; scores and estimates unchanged; previously: 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, #8363; scores and estimates unchanged; previously: Scissors shows the actual proposed cut point while hovering, using its existing snapping and cut target (#8655); scores and estimates unchanged; previously: Graphic Styles panel: right-click item context menu for tiles and rows with Options, Duplicate, Delete, Redefine, Break Link; scores and estimates unchanged; previously: Artboard tool: Shift held once a move or Alt-copy drag is under way keeps it to the level, upright or 45° line, #8580; scores and estimates unchanged; previously: Image Trace Ignore Color keeps the canvas View and stays armed on a missed pixel (#8068); Canvas context menu: a right-click on a path offers Simplify… next to Smooth…, opening the Simplify slider, or the Simplify dialog kept for next time, as Object › Path › Simplify… does, #8344; scores and estimates unchanged; previously: a tool drag held near an edge of the canvas scrolls the view, #8551; scores and estimates unchanged; previously: G12: Place: show progress window with Cancel for slow placed files exceeding 0.4 s, part of #5930; scores and estimates unchanged; previously: All Tools drawer: a tool the toolbar holds is dimmed in the readable dim text colour, not the disabled colour that was unreadable against the panel, and a hovered dimmed row takes the panel's darker fill so it stays readable, #8294; scores and estimates unchanged; previously: : selected guide rows stay highlighted after the pointer leaves (#7344); scores and estimates unchanged; previously: Layersselected Dimension extension-line color and weight in Properties (#7078; four focused UI regressions passed); scores and estimates unchanged; previously: Brush Options Key Color: restore canvas input for the existing one-shot pick, then resume the retained draft and previous tool (#8284; six full-app input regressions passed); scores and estimates unchanged; previously: Ellipse: Up/Down changes Anchors while drawing (#7840); scores and estimates unchanged; previously: Windows/Linux menu access keys and localized cues (#6596); previously: Backquote/~ arrow pattern nudges (#7717); scores and estimates unchanged; previously: Window > Toolbars > Compact Tools offers optional denser main Tools spacing (#7234); default layout, scores and estimates unchanged; previously: Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: Floating panels keep their window level while focus moves between the app's windows, so a press on one panel's bar no longer hands the keyboard to another, #6986; scores and estimates unchanged; previously minor: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); scores and estimates unchanged; previously: Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: Layers panel: an Alt-drag copies a row above or below itself, so the top layer dragged up, the bottom layer dragged down and a lone layer are copied, #8237; scores and estimates unchanged; previously: Layers panel: Alt over the list shows the copy cursor while rows or the selected-art square are dragged, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip under the ramp shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; scores and estimates unchanged; previously: Pencil continuation, straight-line and closing cursors; scores and estimates unchanged; previously: Graphic Styles list fills a taller panel, #2992; scores and estimates unchanged; previously: library panels' lists fill a taller panel, #2992; scores and estimates unchanged; previously: Swatches list fills a taller panel, #1638; scores and estimates unchanged; previously: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: macOS: the canvas cursor stays after the pointer moves, #6362; scores and estimates unchanged; previously minor: Remove Background in the Contextual Task Bar, Properties › Quick Actions and the Control bar; previously minor: Ruler origin: the corner drag snaps as a drawn point does; previously minor: Live Paint Bucket fills faces crossed in one drag (#6373); previously: #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: Outline view: images and gradient meshes are picked on what Outline draws, so a click inside them reaches the path behind, #6437; previously minor: a middle-click on a document tab closes it, #6506; previously minor: Blob Brush: a round tip's preview is the outline of the area it adds, round at both ends, as the stroke it commits (#4343); scores and estimates unchanged; previously:; ruler double-click adds a guide at the pointer, #5239; G5: Inventory Icons built-in symbol library (four built-ins); previously minor: files that record no units open in Preferences › Units › General, #5820; previously minor: interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; floating tab groups collapse into the side icon rail and opened rail panels fold back into it, #5925 in part; numeric fields step on wheel hover without taking keyboard focus, #5949; Character Styles panel: a double-click on a style's row opens its Character Style Options; the dialog keeps a fixed width and scrolls its sections, so its buttons stay on screen; Selection QoL: marquee modes and visible feedback, #5313; #3380 deletion-only review follow-up: independent survivors keep gradient placement, owned subpaths avoid discarded copies, and contracts/status/evidence are clarified; endpoint highlighting remains open; scores and estimates unchanged; Drop Shadow and glow dialogs: spinner arrows, #5367, #5368; Stroke Weight Up and Down shortcuts, #5797; Layers: Rename (`ui.rename`) opens the name field of the selected layer, group or object, #5324; Properties in Edit Artboards: Transform section above the Artboards section, #5219; scrubby labels: the Control bar's Stroke: and Opacity: links and the Properties panel's Stroke link scrub their fields, #4088; Properties: Quick Actions has Repeat Options for one selected repeat, #5181; Direct Selection: Shift-click picks several blend spine points, which drag together, #5285; Direct Selection: Cmd/Ctrl held lends the Selection tool and shows its bounding box, #3901; Join tool trims two crossing open paths and joins them at the crossing, #5844; Control bar: Paragraph: link and Align left/center/right while type is selected, #5372; shape tools: a press on the selection's centre point moves it and one in the rotate zone outside a box corner turns it, #5477; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x; Units › East Asian Type acts, with Q and Ha units; scores unchanged) > > Tech Circuit update (2026-11-14): three original procedural brushes; ten built-in brush libraries (G5). > @@ -622,10 +622,17 @@ Dragging from a face fills the visible faces crossed in that Live Paint group, e narrow face lies between pointer events. Undo restores the whole drag, and Escape cancels it before release (#6373). [Paint faces and edges](https://helpx.adobe.com/illustrator/desktop/paint-and-fill/learn-painting-basics/paint-with-the-live-paint-bucket-tool.html). +## Information readout click-to-copy + +Document Info values and names, Info readouts and Links metadata copy their complete displayed text on a simple click, including the full value when a path is truncated, and show a short confirmation (#8432). Info includes the readout label and units. Dragging or double-clicking still selects text; the existing selected-label keyboard Copy/Cut routing from #8512 remains in place. + +This covers these information readouts; editable fields, arbitrary panel labels and the existing menu-specific Copy/Cut limitations keep their current behavior. Scores and estimates unchanged. + ## Revision history | Date | Change | Summary | |---|---|---| +| 2026-11-20 | minor | Information readouts: click-to-copy for Document Info values and names, Info readouts and shared Links metadata, with short confirmation (#8432, remaining feature request). Existing selected-label keyboard Copy/Cut routing from #8512 is retained; 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 | 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. | From b41e9aad5890b3a001c566ab44533d16c175ac59 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 19 Nov 2026 23:45:14 -0800 Subject: [PATCH 02/26] M3: Wait for information panel menu sizing in click-copy tests --- crates/ui-egui/tests/panel_readout_copy.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs index 78fcecc1fd..fb9fe7e0bc 100644 --- a/crates/ui-egui/tests/panel_readout_copy.rs +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -129,7 +129,10 @@ impl App { .min_by(|a, b| a.center().distance(title.center()).total_cmp(&b.center().distance(title.center()))) .expect("the Document Info title's own Panel menu") .center(); - let menu = self.tap(at); + self.tap(at); + // A newly opened egui popup first measures an invisible sizing pass. Read its painted + // category only after normal subsequent layout frames, as the user sees it. + let menu = self.settle(); let item = painted(&menu, category).0.center(); self.tap(item); self.settle() From 705bb1d643686b2d2e3d0fe4dd948e70b69dd527 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Fri, 20 Nov 2026 00:01:11 -0800 Subject: [PATCH 03/26] M3: Locate the actual decorated category menu items in readout tests --- crates/ui-egui/tests/panel_readout_copy.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs index fb9fe7e0bc..aaf4e5e100 100644 --- a/crates/ui-egui/tests/panel_readout_copy.rs +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -133,7 +133,14 @@ impl App { // A newly opened egui popup first measures an invisible sizing pass. Read its painted // category only after normal subsequent layout frames, as the user sees it. let menu = self.settle(); - let item = painted(&menu, category).0.center(); + // menu_item_name paints the check column in the same galley as the label. + // Match that real menu text without trimming any copied readout or user data. + let item = [" ", "✓ "] + .into_iter() + .map(|prefix| format!("{prefix}{category}")) + .find(|text| visible_text_count(&menu, text) > 0) + .map(|text| painted(&menu, &text).0.center()) + .unwrap_or_else(|| panic!("fixture: no painted category menu item {category:?}")); self.tap(item); self.settle() } From 28fa8cf7f49e1f67b9d3b91e0bb2fc4e0ee25edb Mon Sep 17 00:00:00 2001 From: yoriswind Date: Fri, 20 Nov 2026 00:21:28 -0800 Subject: [PATCH 04/26] M3: Model pointer movement in readout cancellation checks --- crates/ui-egui/tests/panel_readout_copy.rs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs index aaf4e5e100..72389a5172 100644 --- a/crates/ui-egui/tests/panel_readout_copy.rs +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -325,9 +325,10 @@ fn panel_readout_info_names_and_truncated_link_metadata_copy_full_displayed_text copy_long_link_value(&mut a); } -fn assert_no_delayed_copy(a: &mut App) { - assert!(copies(&a.deadline()).is_empty()); - assert!(copies(&a.frame(vec![])).is_empty()); +fn assert_no_delayed_copy(a: &mut App, kind: &str) { + let copied = copies(&a.deadline()); + assert!(copied.is_empty(), "{kind}: unexpected delayed copy {copied:?}"); + assert!(copies(&a.frame(vec![])).is_empty(), "{kind}: no later duplicate copy"); } fn cancelled_gesture(kind: &str) { @@ -338,7 +339,10 @@ fn cancelled_gesture(kind: &str) { match kind { "outside" => { a.frame(vec![Event::PointerMoved(at), button(at, true)]); - let up = a.frame(vec![button(at + vec2(-80.0, 0.0), false)]); + let outside = at + vec2(-80.0, 0.0); + // A real release outside includes the pointer motion that egui uses to distinguish + // dragging from a click; a button's release position alone does not record movement. + let up = a.frame(vec![Event::PointerMoved(outside), button(outside, false)]); assert!(copies(&up).is_empty(), "release outside does not accept the value"); } "double" => { @@ -350,7 +354,7 @@ fn cancelled_gesture(kind: &str) { "hidden" => { assert!(copies(&a.tap(at)).is_empty()); a.close_panel("docInfo"); - assert_no_delayed_copy(&mut a); + assert_no_delayed_copy(&mut a, kind); a.panel("docInfo"); } "changed" => { @@ -361,7 +365,7 @@ fn cancelled_gesture(kind: &str) { } _ => panic!("unknown fixture"), } - assert_no_delayed_copy(&mut a); + assert_no_delayed_copy(&mut a, kind); if kind != "changed" { assert_eq!(a.snapshot(), before, "cancelled gestures do not edit the document or selection"); } From 0e203bd8191a05d6b25613b6216bdf44a00ae354 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Fri, 20 Nov 2026 02:14:29 -0800 Subject: [PATCH 05/26] M3: Cancel delayed readout copies when other input takes over --- crates/ui-egui/src/widgets/labels.rs | 15 ++-- crates/ui-egui/tests/panel_readout_copy.rs | 90 ++++++++++++++++++++++ 2 files changed, 100 insertions(+), 5 deletions(-) diff --git a/crates/ui-egui/src/widgets/labels.rs b/crates/ui-egui/src/widgets/labels.rs index 865bbdc6ed..f8300792ca 100644 --- a/crates/ui-egui/src/widgets/labels.rs +++ b/crates/ui-egui/src/widgets/labels.rs @@ -187,13 +187,18 @@ pub(crate) fn copyable_readout( let id = response.id.with(("pending-readout-copy", ctx.viewport_id())); let pass = ctx.cumulative_pass_nr(); let mut pending = ctx.data_mut(|d| d.remove_temp::(id)); - let pressed = ctx.input(|i| i.pointer.button_pressed(egui::PointerButton::Primary)); + // A new pointer or assistive action must not be overwritten by an older delayed copy. + // This label's own accessible Click is still handled immediately below. + let pressed = ctx.input(|i| i.pointer.any_pressed()); let interrupted = ctx.input(|i| { i.events.iter().any(|event| match event { - egui::Event::Key { .. } | egui::Event::Text(_) | egui::Event::Copy | egui::Event::Cut | egui::Event::Paste(_) | egui::Event::Ime(_) => { - true - } - egui::Event::AccessKitActionRequest(request) => request.action == egui::accesskit::Action::SetTextSelection, + egui::Event::Key { .. } + | egui::Event::Text(_) + | egui::Event::Copy + | egui::Event::Cut + | egui::Event::Paste(_) + | egui::Event::Ime(_) + | egui::Event::AccessKitActionRequest(_) => true, _ => false, }) }); diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs index 72389a5172..fc29529f93 100644 --- a/crates/ui-egui/tests/panel_readout_copy.rs +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -376,4 +376,94 @@ fn panel_readout_double_click_release_outside_and_stale_values_do_not_auto_copy( for kind in ["outside", "double", "hidden", "changed"] { cancelled_gesture(kind); } + review_8826_motion_keeps_pending_copy(); + for button in [PointerButton::Secondary, PointerButton::Middle] { + review_8826_pointer_takeover(button); + } + review_8826_accesskit_takeover(true); + review_8826_accesskit_takeover(false); +} + +fn review_8826_motion_keeps_pending_copy() { + let mut a = App::new(); + let out = a.panel("info"); + let rect = painted(&out, "W: 37 pt").0; + let before = a.snapshot(); + assert!(copies(&a.tap(rect.center())).is_empty()); + let at = rect.center() + vec2(1.0, 0.0); + assert!(rect.contains(at), "ordinary motion stays over the same real readout"); + let moved = a.frame(vec![Event::PointerMoved(at)]); + painted(&moved, "W: 37 pt"); + assert!(copies(&moved).is_empty()); + assert_eq!(copies(&a.deadline()), ["W: 37 pt"], "motion alone does not cancel an ordinary primary copy"); + let next = a.frame(vec![]); + assert!(copies(&next).is_empty()); + assert_eq!(visible_text_count(&next, COPIED), 1); + assert_eq!(a.snapshot(), before); +} + +fn review_8826_pointer_takeover(button: PointerButton) { + let mut a = App::new(); + let out = a.panel("info"); + let at = painted(&out, "W: 37 pt").0.center(); + let before = a.snapshot(); + let release = a.tap(at); + assert!(copies(&release).is_empty()); + painted(&release, "W: 37 pt"); + let press = a.frame_after(a.delay() * 0.25, vec![Event::PointerButton { pos: at, button, pressed: true, modifiers: Modifiers::NONE }]); + assert!(copies(&press).is_empty(), "{button:?} press must not copy"); + painted(&press, "W: 37 pt"); + let release = a.frame(vec![Event::PointerButton { pos: at, button, pressed: false, modifiers: Modifiers::NONE }]); + assert!(copies(&release).is_empty(), "{button:?} release must not schedule a copy"); + painted(&release, "W: 37 pt"); + assert_no_delayed_copy(&mut a, &format!("{button:?} takeover")); + let still_shown = a.frame(vec![]); + painted(&still_shown, "W: 37 pt"); + assert_eq!(visible_text_count(&still_shown, COPIED), 0, "cancelled pending copy has no confirmation"); + assert_eq!(a.snapshot(), before, "{button:?} takeover leaves document, selection and history intact"); +} + +fn review_8826_readout_node(out: &egui::FullOutput, value: &str) -> egui::accesskit::NodeId { + let rect = painted(out, value).0; + let nodes = &out.platform_output.accesskit_update.as_ref().expect("actual readout accessibility tree").nodes; + let matches: Vec<_> = nodes + .iter() + .filter(|(_, n)| n.label() == Some(value) || n.value() == Some(value)) + .filter(|(_, n)| n.supports_action(egui::accesskit::Action::Click)) + .filter(|(_, n)| { + n.bounds() + .is_some_and(|b| Rect::from_min_max(egui::pos2(b.x0 as f32, b.y0 as f32), egui::pos2(b.x1 as f32, b.y1 as f32)).intersects(rect)) + }) + .collect(); + assert_eq!(matches.len(), 1, "one live clickable node for the painted {value:?}"); + let (id, node) = matches[0]; + assert_eq!(node.description(), Some("Copy"), "the actual readout advertises its copy action"); + *id +} + +fn review_8826_accesskit_takeover(same_target: bool) { + use egui::accesskit::{Action, ActionRequest, TreeId}; + let mut a = App::new(); + let out = a.panel("info"); + let width = review_8826_readout_node(&out, "W: 37 pt"); + let height = review_8826_readout_node(&out, "H: 40 pt"); + assert_ne!(width, height, "the live W and H rows have distinct semantic targets"); + let before = a.snapshot(); + let release = a.tap(painted(&out, "W: 37 pt").0.center()); + assert!(copies(&release).is_empty()); + painted(&release, "W: 37 pt"); + painted(&release, "H: 40 pt"); + let (target_node, expected) = if same_target { (width, "W: 37 pt") } else { (height, "H: 40 pt") }; + let activated = a.frame_after( + a.delay() * 0.25, + vec![Event::AccessKitActionRequest(ActionRequest { action: Action::Click, target_node, target_tree: TreeId::ROOT, data: None })], + ); + assert_eq!(copies(&activated), [expected], "the actual AccessKit target copies once immediately"); + painted(&activated, "W: 37 pt"); + painted(&activated, "H: 40 pt"); + assert_no_delayed_copy(&mut a, if same_target { "same-target accessible click" } else { "different-readout accessible click" }); + let still_shown = a.frame(vec![]); + painted(&still_shown, "W: 37 pt"); + painted(&still_shown, "H: 40 pt"); + assert_eq!(a.snapshot(), before, "accessible copy leaves document, selection and history intact"); } From 84627feff167a6dae4b33af35316b66adec7ace0 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Fri, 20 Nov 2026 02:33:58 -0800 Subject: [PATCH 06/26] M3: Use matches for readout input interruption checks --- crates/ui-egui/src/widgets/labels.rs | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/crates/ui-egui/src/widgets/labels.rs b/crates/ui-egui/src/widgets/labels.rs index f8300792ca..bb09646009 100644 --- a/crates/ui-egui/src/widgets/labels.rs +++ b/crates/ui-egui/src/widgets/labels.rs @@ -191,15 +191,17 @@ pub(crate) fn copyable_readout( // This label's own accessible Click is still handled immediately below. let pressed = ctx.input(|i| i.pointer.any_pressed()); let interrupted = ctx.input(|i| { - i.events.iter().any(|event| match event { - egui::Event::Key { .. } - | egui::Event::Text(_) - | egui::Event::Copy - | egui::Event::Cut - | egui::Event::Paste(_) - | egui::Event::Ime(_) - | egui::Event::AccessKitActionRequest(_) => true, - _ => false, + i.events.iter().any(|event| { + matches!( + event, + egui::Event::Key { .. } + | egui::Event::Text(_) + | egui::Event::Copy + | egui::Event::Cut + | egui::Event::Paste(_) + | egui::Event::Ime(_) + | egui::Event::AccessKitActionRequest(_) + ) }) }); let cancelled = pressed || response.dragged() || response.double_clicked() || response.triple_clicked() || interrupted; From f01937aa4f05efc818550e2da9b5cbf630d87c2e Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 15:02:33 -0800 Subject: [PATCH 07/26] Use the current stroke paint API in Properties --- crates/ui-egui/src/panels/properties/appearance_section.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/panels/properties/appearance_section.rs b/crates/ui-egui/src/panels/properties/appearance_section.rs index cd71a0f035..e2ae112143 100644 --- a/crates/ui-egui/src/panels/properties/appearance_section.rs +++ b/crates/ui-egui/src/panels/properties/appearance_section.rs @@ -102,7 +102,7 @@ fn effect_delete(app: &mut VectorcraftApp, ui: &mut Ui, id: NodeId, effects: &[( /// active Appearance row in `PropertiesUi::edited_profiled`. False while the Type tool edits text or /// the Live Paint Bucket is active, when the list edits the stroke the panel shows. fn edited_strokes_profiled(app: &mut VectorcraftApp) -> bool { - if panels::character::text_editing(app).is_some() || app.session.bucket_paints() { + if panels::character::text_editing(app).is_some() || app.session.tool_paints(true) { return false; } let Some(st) = app.session.active() else { return false }; From 4b39f72f510d273ae516a69c951e65513d3ce3ff Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 15:13:07 -0800 Subject: [PATCH 08/26] Format the native readout click predicate --- crates/ui-egui/src/panels/doc_info.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/ui-egui/src/panels/doc_info.rs b/crates/ui-egui/src/panels/doc_info.rs index d61f99a4d7..0c9b1ef077 100644 --- a/crates/ui-egui/src/panels/doc_info.rs +++ b/crates/ui-egui/src/panels/doc_info.rs @@ -70,10 +70,7 @@ pub(crate) fn copy_value(ui: &mut Ui, label: &str, value: &str, mono: bool) -> b }); let activated = ui.input(|i| i.num_accesskit_action_requests(shown.id, egui::accesskit::Action::Click) > 0); eligible - && (activated - || release.is_some_and(|(pos, keys)| { - keys.is_none() && area.contains(pos) && ui.ctx().layer_id_at(pos) == Some(ui.layer_id()) - })) + && (activated || release.is_some_and(|(pos, keys)| keys.is_none() && area.contains(pos) && ui.ctx().layer_id_at(pos) == Some(ui.layer_id()))) } /// Whether no artwork is selected. Artboards the Artboard tool has selected are not artwork: From 40bb9da51bcb3d6c4f4ba3b0e91d0e65a37ceb3c Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 15:16:23 -0800 Subject: [PATCH 09/26] Keep the readout note copy guard concise --- crates/ui-egui/src/panels/info.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ui-egui/src/panels/info.rs b/crates/ui-egui/src/panels/info.rs index b86e502167..c12aa50db8 100644 --- a/crates/ui-egui/src/panels/info.rs +++ b/crates/ui-egui/src/panels/info.rs @@ -104,10 +104,10 @@ fn paint_block(ui: &mut Ui, p: &PaintLines) -> Option { copy = Some(v.clone()); } } - if let Some(note) = &p.note { - if super::doc_info::copy_value(ui, note, note, false) { - copy = Some(note.clone()); - } + if let Some(note) = &p.note + && super::doc_info::copy_value(ui, note, note, false) + { + copy = Some(note.clone()); } }); copy From 2ad736746a0b622347f206e20e05b3a749e29b7c Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 15:29:27 -0800 Subject: [PATCH 10/26] Observe native clipboard offers in the readout regression --- crates/ui-egui/tests/panel_readout_copy.rs | 66 ++++++++++++++-------- 1 file changed, 43 insertions(+), 23 deletions(-) diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs index aa2bf6bf39..45ba1344fe 100644 --- a/crates/ui-egui/tests/panel_readout_copy.rs +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -2,41 +2,52 @@ //! These frames prove host clipboard intent; they do not access the OS clipboard. #![allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)] -use std::cell::Cell; use std::io::Cursor; -use std::rc::Rc; -use std::sync::{Arc, mpsc}; +use std::path::PathBuf; +use std::sync::{Arc, Mutex, mpsc}; use std::time::Duration; +use craft::platform::clipboard::{Clipboard, ClipboardBackend, ClipboardError, ClipboardImage, Flavor}; use craft::ui::runtime::frame::take_output; use craft::ui::shell::embed; use egui::{Event, Modifiers, PointerButton, Pos2, Rect, Shape, vec2}; use serde_json::{Value, json}; use vectorcraft_engine::Session; -use vectorcraft_engine::cmd::clipboard::Flavour; -use vectorcraft_ui_egui::{Services, SystemClipboard, VectorcraftApp, background}; +use vectorcraft_ui_egui::{Services, VectorcraftApp, background}; const COPIED: &str = "Copied the value"; const LENGTH: &str = "234 pt"; -struct Board(Rc>); +struct Board(Arc>>>); -impl SystemClipboard for Board { - fn write(&mut self, _: &[Flavour]) -> Result<(), String> { - self.0.set(self.0.get() + 1); - Ok(()) +impl ClipboardBackend for Board { + fn write(&mut self, flavors: &[Flavor]) -> Result { + self.0.lock().unwrap().push(flavors.to_vec()); + Ok(0) } - fn holds_ours(&mut self) -> bool { + fn read(&mut self, _: &[&str], _: u64) -> Result, ClipboardError> { + Ok(None) + } + + fn read_image(&mut self, _: u64) -> Result, ClipboardError> { + Ok(None) + } + + fn read_files(&mut self, _: usize) -> Result>, ClipboardError> { + Ok(None) + } + + fn has(&mut self, _: &[&str]) -> bool { false } - fn read(&mut self, _: &[&'static str]) -> Option { - None + fn owns(&mut self) -> Option { + Some(false) } - fn has(&mut self, _: &[&'static str]) -> bool { - false + fn readable_any_time(&self) -> bool { + true } } @@ -220,9 +231,9 @@ fn panel_readout_existing_label_keyboard_and_art_copy_remain_independent() { assert_eq!(a.snapshot(), before); } -fn hold_art_formats(a: &mut App) -> (Rc>, mpsc::Sender<()>) { - let writes = Rc::new(Cell::new(0)); - a.app.services.system_clipboard = Some(Box::new(Board(writes.clone()))); +fn hold_art_formats(a: &mut App) -> (Arc>>>, mpsc::Sender<()>) { + let offers = Arc::new(Mutex::new(Vec::new())); + a.app.clipboard = Clipboard::new(Board(offers.clone())); a.app.services.write_shared = Some(Arc::new(|_: &str, _: &[u8]| Err("no fixture file writes".into()))); let (hold, held) = mpsc::channel(); background::run( @@ -239,20 +250,29 @@ fn hold_art_formats(a: &mut App) -> (Rc>, mpsc::Sender<()>) { .unwrap(); a.app.run("edit.copy", json!({})).unwrap(); assert!(!a.app.session.clipboard.is_empty(), "ordinary art Copy really queued its formats"); - assert_eq!(writes.get(), 0, "the existing worker holds those formats"); - (writes, hold) + assert!(offers.lock().unwrap().is_empty(), "the existing worker holds those formats"); + (offers, hold) } #[test] fn panel_readout_document_value_copies_once_with_feedback_and_cancels_pending_art() { let mut a = App::new(); let out = a.document_category("Objects"); - let (writes, hold) = hold_art_formats(&mut a); + let (offers, hold) = hold_art_formats(&mut a); let before = a.snapshot(); - copy_at(&mut a, painted(&out, LENGTH).0.center(), LENGTH); + let release = a.tap(painted(&out, LENGTH).0.center()); + let commit = a.deadline(); + let copied = a.frame(vec![]); + let expected = vec![vec![Flavor::text(LENGTH)]]; + assert_eq!(*offers.lock().unwrap(), expected, "one actual host offer contains the complete readout text"); + assert!(copies(&release).is_empty() && copies(&commit).is_empty() && copies(&copied).is_empty(), "the injected host handles this copy without duplicate fallback output"); + assert_eq!(visible_text_count(&copied, COPIED), 1, "one actual nonmodal confirmation is painted"); + assert_eq!(a.snapshot(), before, "readout copy leaves document, selection and history intact"); + assert!(copies(&a.frame(vec![])).is_empty(), "no fallback copy on the next frame"); + assert_eq!(*offers.lock().unwrap(), expected, "an idle frame adds no host offer"); drop(hold); background::wait_all(&mut a.app); - assert_eq!(writes.get(), 0, "unwritten art formats cannot replace the new readout text"); + assert_eq!(*offers.lock().unwrap(), expected, "unwritten art formats cannot append an SVG, PDF, image or text offer over the readout"); assert_eq!(a.snapshot(), before); let next = a.frame(vec![]); assert_eq!(visible_text_count(&next, COPIED), 1, "no duplicate confirmation was queued"); From 2b632e36379f4b94198caf7780db0292303f7677 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 15:35:22 -0800 Subject: [PATCH 11/26] Format the native clipboard offer assertion --- crates/ui-egui/tests/panel_readout_copy.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs index 45ba1344fe..62b505c5d1 100644 --- a/crates/ui-egui/tests/panel_readout_copy.rs +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -265,7 +265,10 @@ fn panel_readout_document_value_copies_once_with_feedback_and_cancels_pending_ar let copied = a.frame(vec![]); let expected = vec![vec![Flavor::text(LENGTH)]]; assert_eq!(*offers.lock().unwrap(), expected, "one actual host offer contains the complete readout text"); - assert!(copies(&release).is_empty() && copies(&commit).is_empty() && copies(&copied).is_empty(), "the injected host handles this copy without duplicate fallback output"); + assert!( + copies(&release).is_empty() && copies(&commit).is_empty() && copies(&copied).is_empty(), + "the injected host handles this copy without duplicate fallback output" + ); assert_eq!(visible_text_count(&copied, COPIED), 1, "one actual nonmodal confirmation is painted"); assert_eq!(a.snapshot(), before, "readout copy leaves document, selection and history intact"); assert!(copies(&a.frame(vec![])).is_empty(), "no fallback copy on the next frame"); From 1ae771a3c5bbe548cf6f117196d51832c6b4bc35 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 15:50:14 -0800 Subject: [PATCH 12/26] Name the clipboard offer log used by the regression --- crates/ui-egui/tests/panel_readout_copy.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs index 62b505c5d1..028a59640f 100644 --- a/crates/ui-egui/tests/panel_readout_copy.rs +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -18,7 +18,9 @@ use vectorcraft_ui_egui::{Services, VectorcraftApp, background}; const COPIED: &str = "Copied the value"; const LENGTH: &str = "234 pt"; -struct Board(Arc>>>); +type ClipboardOffers = Arc>>>; + +struct Board(ClipboardOffers); impl ClipboardBackend for Board { fn write(&mut self, flavors: &[Flavor]) -> Result { @@ -231,7 +233,7 @@ fn panel_readout_existing_label_keyboard_and_art_copy_remain_independent() { assert_eq!(a.snapshot(), before); } -fn hold_art_formats(a: &mut App) -> (Arc>>>, mpsc::Sender<()>) { +fn hold_art_formats(a: &mut App) -> (ClipboardOffers, mpsc::Sender<()>) { let offers = Arc::new(Mutex::new(Vec::new())); a.app.clipboard = Clipboard::new(Board(offers.clone())); a.app.services.write_shared = Some(Arc::new(|_: &str, _: &[u8]| Err("no fixture file writes".into()))); From aaa1ffd20217637259fc1e8f34a0ba9c3543ce01 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 17:11:06 -0800 Subject: [PATCH 13/26] Format the native Location copy regression --- crates/ui-egui/tests/panel_readout_copy.rs | 31 +++++++++++++--------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs index e37df34348..d877c7bb61 100644 --- a/crates/ui-egui/tests/panel_readout_copy.rs +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -533,24 +533,23 @@ fn panel_readout_long_location_fits_and_copies_by_pointer_accessibility_and_keyb .find(|r| (r.left() - 520.0).abs() < 1.0) .expect("the actual minimum-width Links float"); assert!(body.width() <= 221.0, "{locale}: the new copy action must not widen the float: {body:?}"); - let locations: Vec<_> = nodes - .iter() - .filter(|(_, n)| n.label() == Some(location) && n.supports_action(Action::Click)) - .collect(); + let locations: Vec<_> = nodes.iter().filter(|(_, n)| n.label() == Some(location) && n.supports_action(Action::Click)).collect(); assert_eq!(locations.len(), 1, "{locale}: one live full-path accessible copy target"); let (location_id, node) = locations[0]; let location_rect = location_node_rect(node); assert!(body.contains_rect(location_rect), "{locale}: the fitted Location remains inside the panel"); - assert!(out.shapes.iter().any(|s| shortened_location(&s.shape, location_rect, location)), "{locale}: the long path must actually be shortened on screen"); - let buttons: Vec<_> = nodes - .iter() - .filter(|(_, n)| n.role() == Role::Button && n.label() == Some(vectorcraft_ui_egui::i18n::t("Copy Location"))) - .collect(); + assert!( + out.shapes.iter().any(|s| shortened_location(&s.shape, location_rect, location)), + "{locale}: the long path must actually be shortened on screen" + ); + let buttons: Vec<_> = + nodes.iter().filter(|(_, n)| n.role() == Role::Button && n.label() == Some(vectorcraft_ui_egui::i18n::t("Copy Location"))).collect(); assert_eq!(buttons.len(), 1, "{locale}: one named native Copy Location button"); let (copy_id, copy_node) = buttons[0]; assert!(copy_node.supports_action(Action::Focus), "the copy button takes real keyboard focus"); assert!(body.contains_rect(location_node_rect(copy_node)), "{locale}: Copy Location fits beside the path"); - let reveal = nodes.iter().find(|(_, n)| n.role() == Role::Button && n.label() == Some(vectorcraft_ui_egui::i18n::t("Show in Folder"))).unwrap(); + let reveal = + nodes.iter().find(|(_, n)| n.role() == Role::Button && n.label() == Some(vectorcraft_ui_egui::i18n::t("Show in Folder"))).unwrap(); assert!(body.contains_rect(location_node_rect(&reveal.1)), "{locale}: the incoming reveal action still fits"); let (location_id, copy_id) = (*location_id, *copy_id); let before = a.snapshot(); @@ -558,14 +557,20 @@ fn panel_readout_long_location_fits_and_copies_by_pointer_accessibility_and_keyb assert_eq!(copies(&a.tap(location_rect.center())), [location], "{locale}: a plain click copies the complete path, never its shortened paint"); assert_no_delayed_copy(&mut a, "Location primary copy"); - let request = |action, target_node| Event::AccessKitActionRequest(ActionRequest { action, target_node, target_tree: TreeId::ROOT, data: None }); + let request = + |action, target_node| Event::AccessKitActionRequest(ActionRequest { action, target_node, target_tree: TreeId::ROOT, data: None }); let activated = a.frame(vec![request(Action::Click, location_id)]); assert_eq!(copies(&activated), [location], "{locale}: the full-path accessibility action copies once"); assert_no_delayed_copy(&mut a, "Location accessible copy"); let focused = a.frame(vec![request(Action::Focus, copy_id)]); assert!(copies(&focused).is_empty(), "focusing the button does not copy"); - assert_eq!(focused.platform_output.accesskit_update.as_ref().unwrap().focus, copy_id, "{locale}: focus reaches the actual native copy button"); - let key = |pressed| Event::Key { key: egui::Key::Enter, physical_key: Some(egui::Key::Enter), pressed, repeat: false, modifiers: Modifiers::NONE }; + assert_eq!( + focused.platform_output.accesskit_update.as_ref().unwrap().focus, + copy_id, + "{locale}: focus reaches the actual native copy button" + ); + let key = + |pressed| Event::Key { key: egui::Key::Enter, physical_key: Some(egui::Key::Enter), pressed, repeat: false, modifiers: Modifiers::NONE }; let mut copied = copies(&a.frame(vec![key(true)])); copied.extend(copies(&a.frame(vec![key(false)]))); assert_eq!(copied, [location], "{locale}: native keyboard activation copies the complete path once"); From 5a834f70fd57edd33bc574b3a8b3686bff0149a6 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 17:39:35 -0800 Subject: [PATCH 14/26] Require a readout-owned primary press before copying --- crates/ui-egui/src/panels/doc_info.rs | 39 +++++++++++++++++----- crates/ui-egui/tests/panel_readout_copy.rs | 38 +++++++++++++++++++++ 2 files changed, 69 insertions(+), 8 deletions(-) diff --git a/crates/ui-egui/src/panels/doc_info.rs b/crates/ui-egui/src/panels/doc_info.rs index 0a1c06370f..078fe033e1 100644 --- a/crates/ui-egui/src/panels/doc_info.rs +++ b/crates/ui-egui/src/panels/doc_info.rs @@ -60,15 +60,35 @@ pub(crate) fn copy_shown(ui: &mut Ui, shown: &egui::Response, value: &str) -> bo // copies nothing, since the click flags below do not say which release they describe. let area = shown.interact_rect.intersect(ui.clip_rect()); let primary = egui::PointerButton::Primary; - let release = ui.input(|i| { - let mut releases = i.events.iter().filter_map(|e| match e { - egui::Event::PointerButton { pos, button, pressed: false, modifiers } if *button == primary => Some((*pos, *modifiers)), - _ => None, - }); - let release = releases.next().filter(|_| releases.next().is_none()); + let press_id = shown.id.with("readout_copy_press"); + let saved_origin = ui.ctx().data(|d| d.get_temp::(press_id)); + let (origin, release) = ui.input(|i| { + let mut origin = saved_origin; + let mut release = None; + let mut release_count = 0_usize; + // egui clears pointer.press_origin on release. Remember only a press that starts in + // this clipped readout, and consume events in order even for a same-frame click. + for event in &i.events { + if let egui::Event::PointerButton { pos, button, pressed, modifiers } = event + && *button == primary + { + if *pressed { + origin = area.contains(*pos).then_some(*pos); + } else { + release_count += 1; + release = Some((origin.take(), *pos, *modifiers)); + } + } + } let single = i.pointer.button_clicked(primary) && !i.pointer.button_double_clicked(primary) && !i.pointer.button_triple_clicked(primary); - release.filter(|_| single) + (origin, release.filter(|_| release_count == 1 && single)) }); + if origin != saved_origin { + ui.ctx().data_mut(|d| match origin { + Some(pos) => d.insert_temp(press_id, pos), + None => d.remove::(press_id), + }); + } let eligible = ui.is_enabled() && !value.is_empty() && area.is_positive(); ui.ctx().accesskit_node_builder(shown.id, |node| { node.set_description(tl!("Copy")); @@ -76,7 +96,10 @@ pub(crate) fn copy_shown(ui: &mut Ui, shown: &egui::Response, value: &str) -> bo }); let activated = ui.input(|i| i.num_accesskit_action_requests(shown.id, egui::accesskit::Action::Click) > 0); eligible - && (activated || release.is_some_and(|(pos, keys)| keys.is_none() && area.contains(pos) && ui.ctx().layer_id_at(pos) == Some(ui.layer_id()))) + && (activated + || release.is_some_and(|(origin, pos, keys)| { + origin.is_some() && keys.is_none() && area.contains(pos) && ui.ctx().layer_id_at(pos) == Some(ui.layer_id()) + })) } /// Whether no artwork is selected. Artboards the Artboard tool has selected are not artwork: diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs index d877c7bb61..cabb97694a 100644 --- a/crates/ui-egui/tests/panel_readout_copy.rs +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -580,3 +580,41 @@ fn panel_readout_long_location_fits_and_copies_by_pointer_accessibility_and_keyb } vectorcraft_ui_egui::i18n::set_current(vectorcraft_ui_egui::i18n::Lang::EN); } + +#[test] +fn review_4714788866_readout_copy_requires_an_inside_primary_press() { + let mut a = App::new(); + let out = a.document_category("Objects"); + let id = review_8826_readout_node(&out, LENGTH); + let nodes = &out.platform_output.accesskit_update.as_ref().unwrap().nodes; + let node = &nodes.iter().find(|(node, _)| *node == id).unwrap().1; + let b = node.bounds().expect("the actual selectable value's native bounds"); + let area = Rect::from_min_max(egui::pos2(b.x0 as f32, b.y0 as f32), egui::pos2(b.x1 as f32, b.y1 as f32)); + let outside = egui::pos2(area.left() - 1.0, area.center().y); + let inside = egui::pos2(area.left() + 1.0, area.center().y); + assert!(!area.contains(outside) && area.contains(inside)); + let layer = a.ctx.layer_id_at(inside).expect("the readout's actual layer"); + assert_eq!(a.ctx.layer_id_at(outside), Some(layer), "the boundary crossing stays on the same layer"); + assert!(outside.distance(inside) < a.ctx.options(|o| o.input_options.max_click_dist), "CONTROL: this two-point motion is an ordinary click, not a drag"); + let before = a.snapshot(); + let sets = a.app.ui.status_sets; + assert_eq!(visible_text_count(&out, COPIED), 0); + let pressed = a.frame(vec![Event::PointerMoved(outside), button(outside, true)]); + assert!(copies(&pressed).is_empty()); + let released = a.frame(vec![Event::PointerMoved(inside), button(inside, false)]); + assert!(a.ctx.input(|i| i.pointer.button_clicked(PointerButton::Primary)), "CONTROL: egui's pointer-wide click flag accepts this gesture"); + assert!(copies(&released).is_empty(), "starting outside must not copy a value on an inside release"); + assert_no_delayed_copy(&mut a, "outside-to-inside readout release"); + assert_eq!(a.app.ui.status_sets, sets, "a rejected copy has no confirmation"); + assert_eq!(visible_text_count(&a.frame(vec![]), COPIED), 0); + assert_eq!(a.snapshot(), before, "the rejected gesture preserves document, selection and history"); + + // The same inside position still copies on its first click, including a press/release in + // one raw frame. The deadline above lets the rejected pointer-wide click expire first. + let accepted = a.frame(vec![Event::PointerMoved(inside), button(inside, true), button(inside, false)]); + assert_eq!(copies(&accepted), [LENGTH]); + assert_eq!(a.app.ui.status_sets, sets + 1); + assert_eq!(visible_text_count(&accepted, COPIED), 1); + assert_no_delayed_copy(&mut a, "accepted inside readout press"); + assert_eq!(a.snapshot(), before); +} From 2d48c47daf5dcece9b49913685350659b297e426 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 17:41:50 -0800 Subject: [PATCH 15/26] Require an eligible readout layer at primary press --- crates/ui-egui/src/panels/doc_info.rs | 41 ++++++++++++++------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/crates/ui-egui/src/panels/doc_info.rs b/crates/ui-egui/src/panels/doc_info.rs index 078fe033e1..3f472b09d9 100644 --- a/crates/ui-egui/src/panels/doc_info.rs +++ b/crates/ui-egui/src/panels/doc_info.rs @@ -62,34 +62,35 @@ pub(crate) fn copy_shown(ui: &mut Ui, shown: &egui::Response, value: &str) -> bo let primary = egui::PointerButton::Primary; let press_id = shown.id.with("readout_copy_press"); let saved_origin = ui.ctx().data(|d| d.get_temp::(press_id)); - let (origin, release) = ui.input(|i| { - let mut origin = saved_origin; - let mut release = None; - let mut release_count = 0_usize; - // egui clears pointer.press_origin on release. Remember only a press that starts in - // this clipped readout, and consume events in order even for a same-frame click. - for event in &i.events { - if let egui::Event::PointerButton { pos, button, pressed, modifiers } = event - && *button == primary - { - if *pressed { - origin = area.contains(*pos).then_some(*pos); - } else { - release_count += 1; - release = Some((origin.take(), *pos, *modifiers)); - } - } - } + let eligible = ui.is_enabled() && !value.is_empty() && area.is_positive(); + let (events, single) = ui.input(|i| { + let events: Vec<_> = i.events.iter().filter_map(|event| match event { + egui::Event::PointerButton { pos, button, pressed, modifiers } if *button == primary => Some((*pos, *pressed, *modifiers)), + _ => None, + }).collect(); let single = i.pointer.button_clicked(primary) && !i.pointer.button_double_clicked(primary) && !i.pointer.button_triple_clicked(primary); - (origin, release.filter(|_| release_count == 1 && single)) + (events, single) }); + let mut origin = saved_origin; + let mut release = None; + let mut release_count = 0_usize; + // egui clears pointer.press_origin on release. Remember only an eligible press in + // this clipped readout's own layer, including a press/release in the same frame. + for (pos, pressed, modifiers) in events { + if pressed { + origin = (eligible && area.contains(pos) && ui.ctx().layer_id_at(pos) == Some(ui.layer_id())).then_some(pos); + } else { + release_count += 1; + release = Some((origin.take(), pos, modifiers)); + } + } + let release = release.filter(|_| release_count == 1 && single); if origin != saved_origin { ui.ctx().data_mut(|d| match origin { Some(pos) => d.insert_temp(press_id, pos), None => d.remove::(press_id), }); } - let eligible = ui.is_enabled() && !value.is_empty() && area.is_positive(); ui.ctx().accesskit_node_builder(shown.id, |node| { node.set_description(tl!("Copy")); node.add_action(egui::accesskit::Action::Click); From 4ae3911d6a81a47c063c049cfcc4d6aec9d3a4d5 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 17:54:13 -0800 Subject: [PATCH 16/26] Format the readout press-origin guard and boundary regression --- crates/ui-egui/src/panels/doc_info.rs | 12 ++++++++---- crates/ui-egui/tests/panel_readout_copy.rs | 5 ++++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/crates/ui-egui/src/panels/doc_info.rs b/crates/ui-egui/src/panels/doc_info.rs index 3f472b09d9..e119fb9cf8 100644 --- a/crates/ui-egui/src/panels/doc_info.rs +++ b/crates/ui-egui/src/panels/doc_info.rs @@ -64,10 +64,14 @@ pub(crate) fn copy_shown(ui: &mut Ui, shown: &egui::Response, value: &str) -> bo let saved_origin = ui.ctx().data(|d| d.get_temp::(press_id)); let eligible = ui.is_enabled() && !value.is_empty() && area.is_positive(); let (events, single) = ui.input(|i| { - let events: Vec<_> = i.events.iter().filter_map(|event| match event { - egui::Event::PointerButton { pos, button, pressed, modifiers } if *button == primary => Some((*pos, *pressed, *modifiers)), - _ => None, - }).collect(); + let events: Vec<_> = i + .events + .iter() + .filter_map(|event| match event { + egui::Event::PointerButton { pos, button, pressed, modifiers } if *button == primary => Some((*pos, *pressed, *modifiers)), + _ => None, + }) + .collect(); let single = i.pointer.button_clicked(primary) && !i.pointer.button_double_clicked(primary) && !i.pointer.button_triple_clicked(primary); (events, single) }); diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs index cabb97694a..8ad4babf44 100644 --- a/crates/ui-egui/tests/panel_readout_copy.rs +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -595,7 +595,10 @@ fn review_4714788866_readout_copy_requires_an_inside_primary_press() { assert!(!area.contains(outside) && area.contains(inside)); let layer = a.ctx.layer_id_at(inside).expect("the readout's actual layer"); assert_eq!(a.ctx.layer_id_at(outside), Some(layer), "the boundary crossing stays on the same layer"); - assert!(outside.distance(inside) < a.ctx.options(|o| o.input_options.max_click_dist), "CONTROL: this two-point motion is an ordinary click, not a drag"); + assert!( + outside.distance(inside) < a.ctx.options(|o| o.input_options.max_click_dist), + "CONTROL: this two-point motion is an ordinary click, not a drag" + ); let before = a.snapshot(); let sets = a.app.ui.status_sets; assert_eq!(visible_text_count(&out, COPIED), 0); From 376a6c473f1724c3449b468678cf2dd2d0562189 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 17:59:10 -0800 Subject: [PATCH 17/26] Preserve Info definitions and consume the press-state insertion result --- crates/ui-egui/src/panels/doc_info.rs | 4 ++- crates/ui-egui/src/panels/info.rs | 41 +++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/panels/doc_info.rs b/crates/ui-egui/src/panels/doc_info.rs index e119fb9cf8..d45fa1fde8 100644 --- a/crates/ui-egui/src/panels/doc_info.rs +++ b/crates/ui-egui/src/panels/doc_info.rs @@ -91,7 +91,9 @@ pub(crate) fn copy_shown(ui: &mut Ui, shown: &egui::Response, value: &str) -> bo let release = release.filter(|_| release_count == 1 && single); if origin != saved_origin { ui.ctx().data_mut(|d| match origin { - Some(pos) => d.insert_temp(press_id, pos), + Some(pos) => { + d.insert_temp(press_id, pos); + } None => d.remove::(press_id), }); } diff --git a/crates/ui-egui/src/panels/info.rs b/crates/ui-egui/src/panels/info.rs index 1532e139fc..3c2df76111 100644 --- a/crates/ui-egui/src/panels/info.rs +++ b/crates/ui-egui/src/panels/info.rs @@ -48,6 +48,47 @@ fn paint_name(p: &Paint) -> Option { } } +/// One paint's block: its tile, its values, and its name (a swatch's with Show Options, else a +/// non-solid paint's kind). A paint the selected objects do not share (`mixed`) leaves it empty. +struct PaintLines { + paint: Paint, + mixed: bool, + /// The monospaced `R: 230` values of a solid color. + values: Vec, + note: Option, +} + +impl PaintLines { + fn of(paint: Paint, mixed: bool, options: bool) -> Self { + if mixed { + return PaintLines { paint, mixed, values: Vec::new(), note: None }; + } + let (values, note) = match &paint { + Paint::Solid { color, .. } => { + (color_values(color).into_iter().map(|(k, v)| format!("{k}: {v}")).collect(), paint_name(&paint).filter(|_| options)) + } + other => (Vec::new(), Some(paint_name(other).filter(|_| options).unwrap_or_else(|| other.label()))), + }; + PaintLines { paint, mixed, values, note } + } +} + +/// What the panel shows, ready to lay out. +pub(crate) struct InfoLines { + left: Vec, + right: Vec, + zoom: Option, + brush: Option, + fill: PaintLines, + stroke: PaintLines, + /// The font, and the size and tracking, the selected type shares. + type_block: Option<(String, String)>, +} + +fn mono(ui: &mut Ui, s: &str) -> bool { + super::doc_info::copy_value(ui, s, s, true) +} + /// One paint's tile and readout. A solid tint's name sits below its channel values. /// A mixed paint keeps the tile's room empty. fn paint_block(ui: &mut Ui, p: &PaintLines) -> Option { From d352b3a5bd0a78028e4560ba6dcc416018c5fdf1 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 18:07:37 -0800 Subject: [PATCH 18/26] Trace Link Info readout accessibility during layout --- crates/ui-egui/src/panels/doc_info.rs | 13 ++++++++++++ crates/ui-egui/src/panels/tests_links.rs | 10 ++++----- crates/ui-egui/src/tests/panel_harness.rs | 26 +++++++++++++++++++++++ 3 files changed, 44 insertions(+), 5 deletions(-) diff --git a/crates/ui-egui/src/panels/doc_info.rs b/crates/ui-egui/src/panels/doc_info.rs index d45fa1fde8..2962dfc4a8 100644 --- a/crates/ui-egui/src/panels/doc_info.rs +++ b/crates/ui-egui/src/panels/doc_info.rs @@ -98,8 +98,21 @@ pub(crate) fn copy_shown(ui: &mut Ui, shown: &egui::Response, value: &str) -> bo }); } ui.ctx().accesskit_node_builder(shown.id, |node| { + // TEMPORARY diagnostic: MUST REMOVE before publication. + if value.contains("Überlagerung") { + eprintln!( + "LINK_LOCATION_COPY_BEFORE id={:?} role={:?} label={:?} value={:?} description={:?} bounds={:?} children={:?}", + shown.id, node.role(), node.label(), node.value(), node.description(), node.bounds(), node.children() + ); + } node.set_description(tl!("Copy")); node.add_action(egui::accesskit::Action::Click); + if value.contains("Überlagerung") { + eprintln!( + "LINK_LOCATION_COPY_AFTER id={:?} role={:?} label={:?} value={:?} description={:?} bounds={:?} children={:?}", + shown.id, node.role(), node.label(), node.value(), node.description(), node.bounds(), node.children() + ); + } }); let activated = ui.input(|i| i.num_accesskit_action_requests(shown.id, egui::accesskit::Action::Click) > 0); eligible diff --git a/crates/ui-egui/src/panels/tests_links.rs b/crates/ui-egui/src/panels/tests_links.rs index 5c54fe7ef2..15cc220638 100644 --- a/crates/ui-egui/src/panels/tests_links.rs +++ b/crates/ui-egui/src/panels/tests_links.rs @@ -287,10 +287,10 @@ fn a_link_inside_a_symbol_is_listed_and_picked_in_the_panel() { let row = list["links"].as_array().unwrap().iter().find(|r| r["name"] == "inside.png").unwrap_or_else(|| panic!("{list}")).clone(); assert_eq!(row["owner"]["kind"], "symbol", "{list}"); let mut h = Panel::new(app, super::links::show); - assert!(h.shows("20 × 20 px"), "Link Info of the selected image in the layers"); + assert!(h.label_has_value("Dimensions", "20 × 20 px"), "Link Info of the selected image in the layers"); h.click_with("inside.png", egui::Modifiers::NONE); assert!(selected(&h.app()).is_empty(), "the canvas can't select it"); - assert!(h.shows("30 × 20 px"), "Link Info of the symbol's image"); + assert!(h.label_has_value("Dimensions", "30 × 20 px"), "Link Info of the symbol's image"); // Copy Info without ids copies the row picked in the panel. assert!(crate::menus::enabled(&h.app(), "links.copyInfo")); assert_eq!(h.app().run("links.copyInfo", json!({})).unwrap()["text"], "inside.png"); @@ -302,13 +302,13 @@ fn a_link_inside_a_symbol_is_listed_and_picked_in_the_panel() { h.advance(1.0); h.click_with("layer.png", egui::Modifiers::COMMAND); assert!(selected(&h.app()).is_empty()); - assert!(h.shows("30 × 20 px"), "the symbol's image is still picked"); + assert!(h.label_has_value("Dimensions", "30 × 20 px"), "the symbol's image is still picked"); h.app().run("select.set", json!({"ids": [layer]})).unwrap(); h.frame(); - assert!(h.shows("20 × 20 px")); + assert!(h.label_has_value("Dimensions", "20 × 20 px")); h.app().run("select.set", json!({"ids": []})).unwrap(); h.frame(); - assert!(!h.shows("30 × 20 px") && !h.shows("20 × 20 px"), "nothing is picked"); + assert!(!h.label_has_value("Dimensions", "30 × 20 px") && !h.label_has_value("Dimensions", "20 × 20 px"), "nothing is picked"); // Go To clears the selection and says the link has no place on the canvas. h.app().run("select.set", json!({"ids": [layer]})).unwrap(); super::links::go_to(&mut h.app(), row["id"].as_u64().unwrap()); diff --git a/crates/ui-egui/src/tests/panel_harness.rs b/crates/ui-egui/src/tests/panel_harness.rs index 12bb325ca8..4027d511fe 100644 --- a/crates/ui-egui/src/tests/panel_harness.rs +++ b/crates/ui-egui/src/tests/panel_harness.rs @@ -364,6 +364,14 @@ impl Panel { self.fixture.tree().value_of(self.look_role(name, role).node).map(str::to_owned) } + /// Whether a label named `name` has exactly `value`, where a field's static label may share its name and role. + pub(crate) fn label_has_value(&self, name: &str, value: &str) -> bool { + let tree = self.fixture.tree(); + tree.keys().into_iter().any(|key| { + tree.role_of(key) == Some(craft::ui::contract::Role::LABEL) && tree.name_of(key) == Some(name) && tree.value_of(key) == Some(value) + }) + } + /// The description of the control named `name` (a list row's trailing texts). pub(crate) fn description(&self, name: &str) -> Option { self.fixture.tree().description_of(self.look(name).node).map(str::to_owned) @@ -476,6 +484,24 @@ pub(crate) fn floated(mut app: VectorcraftApp, panel: &str, lang: &str, place: P crate::i18n::set_current(crate::i18n::Lang::EN); let rect = |node: &Node| node.bounds().map(|b| Rect::from_min_max(pos2(b.x0 as f32, b.y0 as f32), pos2(b.x1 as f32, b.y1 as f32))); let by_id: HashMap = nodes.iter().map(|(id, n)| (*id, n)).collect(); + // TEMPORARY diagnostic: MUST REMOVE before publication. + if panel == "links" && names.iter().any(|(asked, _)| asked.contains("Überlagerung") || asked.contains("location-width")) { + for (root, _) in nodes.iter().filter(|(_, node)| node.role() == Role::TabPanel) { + let mut todo = vec![(*root, vec![*root])]; + while let Some((id, ancestry)) = todo.pop() { + let Some(node) = by_id.get(&id) else { continue }; + eprintln!( + "LINK_LOCATION_FINAL lang={lang} id={id:?} role={:?} label={:?} value={:?} description={:?} bounds={:?} children={:?} tab_panel_ancestry={ancestry:?}", + node.role(), node.label(), node.value(), node.description(), node.bounds(), node.children() + ); + for child in node.children() { + let mut child_ancestry = ancestry.clone(); + child_ancestry.push(*child); + todo.push((*child, child_ancestry)); + } + } + } + } let under = |root: NodeId| { let mut found = Vec::new(); let mut todo = vec![root]; From 6a78234af76ea1316e43c04afeb164d97750f800 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 18:11:21 -0800 Subject: [PATCH 19/26] Format the Link Info accessibility diagnostics --- crates/ui-egui/src/panels/doc_info.rs | 16 ++++++++++++++-- crates/ui-egui/src/tests/panel_harness.rs | 7 ++++++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/crates/ui-egui/src/panels/doc_info.rs b/crates/ui-egui/src/panels/doc_info.rs index 2962dfc4a8..3ab307571b 100644 --- a/crates/ui-egui/src/panels/doc_info.rs +++ b/crates/ui-egui/src/panels/doc_info.rs @@ -102,7 +102,13 @@ pub(crate) fn copy_shown(ui: &mut Ui, shown: &egui::Response, value: &str) -> bo if value.contains("Überlagerung") { eprintln!( "LINK_LOCATION_COPY_BEFORE id={:?} role={:?} label={:?} value={:?} description={:?} bounds={:?} children={:?}", - shown.id, node.role(), node.label(), node.value(), node.description(), node.bounds(), node.children() + shown.id, + node.role(), + node.label(), + node.value(), + node.description(), + node.bounds(), + node.children() ); } node.set_description(tl!("Copy")); @@ -110,7 +116,13 @@ pub(crate) fn copy_shown(ui: &mut Ui, shown: &egui::Response, value: &str) -> bo if value.contains("Überlagerung") { eprintln!( "LINK_LOCATION_COPY_AFTER id={:?} role={:?} label={:?} value={:?} description={:?} bounds={:?} children={:?}", - shown.id, node.role(), node.label(), node.value(), node.description(), node.bounds(), node.children() + shown.id, + node.role(), + node.label(), + node.value(), + node.description(), + node.bounds(), + node.children() ); } }); diff --git a/crates/ui-egui/src/tests/panel_harness.rs b/crates/ui-egui/src/tests/panel_harness.rs index 4027d511fe..ccada048bc 100644 --- a/crates/ui-egui/src/tests/panel_harness.rs +++ b/crates/ui-egui/src/tests/panel_harness.rs @@ -492,7 +492,12 @@ pub(crate) fn floated(mut app: VectorcraftApp, panel: &str, lang: &str, place: P let Some(node) = by_id.get(&id) else { continue }; eprintln!( "LINK_LOCATION_FINAL lang={lang} id={id:?} role={:?} label={:?} value={:?} description={:?} bounds={:?} children={:?} tab_panel_ancestry={ancestry:?}", - node.role(), node.label(), node.value(), node.description(), node.bounds(), node.children() + node.role(), + node.label(), + node.value(), + node.description(), + node.bounds(), + node.children() ); for child in node.children() { let mut child_ancestry = ancestry.clone(); From 52ae1e82ab8c50c40cf055f707ccf682b43da81c Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 19:08:35 -0800 Subject: [PATCH 20/26] Trace the minimum-width Location integration fixture --- crates/ui-egui/src/panels/doc_info.rs | 4 ++-- crates/ui-egui/tests/panel_readout_copy.rs | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/panels/doc_info.rs b/crates/ui-egui/src/panels/doc_info.rs index 3ab307571b..2d4895d1cb 100644 --- a/crates/ui-egui/src/panels/doc_info.rs +++ b/crates/ui-egui/src/panels/doc_info.rs @@ -99,7 +99,7 @@ pub(crate) fn copy_shown(ui: &mut Ui, shown: &egui::Response, value: &str) -> bo } ui.ctx().accesskit_node_builder(shown.id, |node| { // TEMPORARY diagnostic: MUST REMOVE before publication. - if value.contains("Überlagerung") { + if value.contains("Überlagerung") || value.contains("Éléments-originaux") { eprintln!( "LINK_LOCATION_COPY_BEFORE id={:?} role={:?} label={:?} value={:?} description={:?} bounds={:?} children={:?}", shown.id, @@ -113,7 +113,7 @@ pub(crate) fn copy_shown(ui: &mut Ui, shown: &egui::Response, value: &str) -> bo } node.set_description(tl!("Copy")); node.add_action(egui::accesskit::Action::Click); - if value.contains("Überlagerung") { + if value.contains("Überlagerung") || value.contains("Éléments-originaux") { eprintln!( "LINK_LOCATION_COPY_AFTER id={:?} role={:?} label={:?} value={:?} description={:?} bounds={:?} children={:?}", shown.id, diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs index 8ad4babf44..c0d088399f 100644 --- a/crates/ui-egui/tests/panel_readout_copy.rs +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -526,6 +526,19 @@ fn panel_readout_long_location_fits_and_copies_by_pointer_accessibility_and_keyb out = a.frame(vec![]); } let nodes = &out.platform_output.accesskit_update.as_ref().expect("the floated Links tree").nodes; + // TEMPORARY diagnostic: MUST REMOVE before publication. One final snapshot per locale, before the unchanged assertions. + eprintln!("LINK_LOCATION_INTEGRATION_FINAL locale={locale} node_count={}", nodes.len()); + for (id, node) in nodes { + eprintln!( + "LINK_LOCATION_INTEGRATION_FINAL locale={locale} id={id:?} role={:?} label={:?} value={:?} description={:?} bounds={:?} children={:?}", + node.role(), + node.label(), + node.value(), + node.description(), + node.bounds(), + node.children() + ); + } let body = nodes .iter() .filter(|(_, n)| n.role() == Role::TabPanel) From 7c130058af76b73e4265633711290109f8ba4be8 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 19:39:44 -0800 Subject: [PATCH 21/26] Trace Links list allocation around the real info toggle --- crates/ui-egui/tests/panel_readout_copy.rs | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs index c0d088399f..2317f4c23a 100644 --- a/crates/ui-egui/tests/panel_readout_copy.rs +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -525,6 +525,35 @@ fn panel_readout_long_location_fits_and_copies_by_pointer_accessibility_and_keyb for _ in 0..4 { out = a.frame(vec![]); } + // TEMPORARY allocation control: MUST REMOVE traces before publication. Activate the real footer button, + // not private state: Links applies FooterBar's first pick by toggling its existing info option. + let layout = |out: &egui::FullOutput| { + let nodes = &out.platform_output.accesskit_update.as_ref().expect("the actual floated Links tree").nodes; + let lists: Vec<_> = nodes.iter().filter(|(_, n)| n.role() == Role::List && n.label() == Some(vectorcraft_ui_egui::i18n::t("Links"))).collect(); + assert_eq!(lists.len(), 1, "{locale}: the actual Links list has one allocation"); + let infos: Vec<_> = nodes.iter().filter(|(_, n)| n.role() == Role::Group && n.label() == Some(vectorcraft_ui_egui::i18n::t("Link Info"))).collect(); + assert!(infos.len() <= 1, "{locale}: the live Link Info section is unambiguous"); + let toggles: Vec<_> = nodes.iter().filter(|(_, n)| n.role() == Role::Button && n.label() == Some(vectorcraft_ui_egui::i18n::t("Show Link Info"))).collect(); + assert_eq!(toggles.len(), 1, "{locale}: the native Show Link Info footer action is unique"); + assert!(toggles[0].1.supports_action(Action::Click), "the actual footer button exposes activation"); + (location_node_rect(&lists[0].1), infos.first().map(|(_, n)| location_node_rect(n)), toggles[0].0) + }; + let before_toggle = a.snapshot(); + let (list_before, info_before, hide_info) = layout(&out); + assert!(info_before.is_some(), "{locale}: Link Info starts shown"); + a.frame(vec![Event::AccessKitActionRequest(ActionRequest { action: Action::Click, target_node: hide_info, target_tree: TreeId::ROOT, data: None })]); + out = a.settle(); + let (list_off, info_off, show_info) = layout(&out); + assert!(info_off.is_none(), "{locale}: the real footer action hides Link Info"); + a.frame(vec![Event::AccessKitActionRequest(ActionRequest { action: Action::Click, target_node: show_info, target_tree: TreeId::ROOT, data: None })]); + out = a.settle(); + let (list_on, info_on, _) = layout(&out); + assert!(info_on.is_some(), "{locale}: the real footer action restores Link Info before the original oracles"); + eprintln!( + "LINK_LOCATION_ALLOCATION locale={locale} list_before={list_before:?} info_before={info_before:?} list_off={list_off:?} info_off={info_off:?} list_on={list_on:?} info_on={info_on:?} off_minus_on_height={}", + list_off.height() - list_on.height() + ); + assert_eq!(a.snapshot(), before_toggle, "showing and hiding link details leaves document, selection and history intact"); let nodes = &out.platform_output.accesskit_update.as_ref().expect("the floated Links tree").nodes; // TEMPORARY diagnostic: MUST REMOVE before publication. One final snapshot per locale, before the unchanged assertions. eprintln!("LINK_LOCATION_INTEGRATION_FINAL locale={locale} node_count={}", nodes.len()); From ebca1b91d298d02221a341da5e41b27df1917ebd Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 19:46:27 -0800 Subject: [PATCH 22/26] Format the Links allocation control --- crates/ui-egui/tests/panel_readout_copy.rs | 23 +++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs index 2317f4c23a..0000d56f28 100644 --- a/crates/ui-egui/tests/panel_readout_copy.rs +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -529,11 +529,14 @@ fn panel_readout_long_location_fits_and_copies_by_pointer_accessibility_and_keyb // not private state: Links applies FooterBar's first pick by toggling its existing info option. let layout = |out: &egui::FullOutput| { let nodes = &out.platform_output.accesskit_update.as_ref().expect("the actual floated Links tree").nodes; - let lists: Vec<_> = nodes.iter().filter(|(_, n)| n.role() == Role::List && n.label() == Some(vectorcraft_ui_egui::i18n::t("Links"))).collect(); + let lists: Vec<_> = + nodes.iter().filter(|(_, n)| n.role() == Role::List && n.label() == Some(vectorcraft_ui_egui::i18n::t("Links"))).collect(); assert_eq!(lists.len(), 1, "{locale}: the actual Links list has one allocation"); - let infos: Vec<_> = nodes.iter().filter(|(_, n)| n.role() == Role::Group && n.label() == Some(vectorcraft_ui_egui::i18n::t("Link Info"))).collect(); + let infos: Vec<_> = + nodes.iter().filter(|(_, n)| n.role() == Role::Group && n.label() == Some(vectorcraft_ui_egui::i18n::t("Link Info"))).collect(); assert!(infos.len() <= 1, "{locale}: the live Link Info section is unambiguous"); - let toggles: Vec<_> = nodes.iter().filter(|(_, n)| n.role() == Role::Button && n.label() == Some(vectorcraft_ui_egui::i18n::t("Show Link Info"))).collect(); + let toggles: Vec<_> = + nodes.iter().filter(|(_, n)| n.role() == Role::Button && n.label() == Some(vectorcraft_ui_egui::i18n::t("Show Link Info"))).collect(); assert_eq!(toggles.len(), 1, "{locale}: the native Show Link Info footer action is unique"); assert!(toggles[0].1.supports_action(Action::Click), "the actual footer button exposes activation"); (location_node_rect(&lists[0].1), infos.first().map(|(_, n)| location_node_rect(n)), toggles[0].0) @@ -541,11 +544,21 @@ fn panel_readout_long_location_fits_and_copies_by_pointer_accessibility_and_keyb let before_toggle = a.snapshot(); let (list_before, info_before, hide_info) = layout(&out); assert!(info_before.is_some(), "{locale}: Link Info starts shown"); - a.frame(vec![Event::AccessKitActionRequest(ActionRequest { action: Action::Click, target_node: hide_info, target_tree: TreeId::ROOT, data: None })]); + a.frame(vec![Event::AccessKitActionRequest(ActionRequest { + action: Action::Click, + target_node: hide_info, + target_tree: TreeId::ROOT, + data: None, + })]); out = a.settle(); let (list_off, info_off, show_info) = layout(&out); assert!(info_off.is_none(), "{locale}: the real footer action hides Link Info"); - a.frame(vec![Event::AccessKitActionRequest(ActionRequest { action: Action::Click, target_node: show_info, target_tree: TreeId::ROOT, data: None })]); + a.frame(vec![Event::AccessKitActionRequest(ActionRequest { + action: Action::Click, + target_node: show_info, + target_tree: TreeId::ROOT, + data: None, + })]); out = a.settle(); let (list_on, info_on, _) = layout(&out); assert!(info_on.is_some(), "{locale}: the real footer action restores Link Info before the original oracles"); From f8520c1c19dc5d059fea6085f7f4afb5ac2a4b5e Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 22:31:29 -0800 Subject: [PATCH 23/26] Reserve native Link Info space in the panel footer --- crates/ui-egui/src/panels/doc_info.rs | 25 ---------------------- crates/ui-egui/src/panels/links.rs | 18 +++++++++------- crates/ui-egui/src/tests/panel_harness.rs | 23 -------------------- crates/ui-egui/tests/panel_readout_copy.rs | 23 +++++--------------- 4 files changed, 15 insertions(+), 74 deletions(-) diff --git a/crates/ui-egui/src/panels/doc_info.rs b/crates/ui-egui/src/panels/doc_info.rs index 2d4895d1cb..d45fa1fde8 100644 --- a/crates/ui-egui/src/panels/doc_info.rs +++ b/crates/ui-egui/src/panels/doc_info.rs @@ -98,33 +98,8 @@ pub(crate) fn copy_shown(ui: &mut Ui, shown: &egui::Response, value: &str) -> bo }); } ui.ctx().accesskit_node_builder(shown.id, |node| { - // TEMPORARY diagnostic: MUST REMOVE before publication. - if value.contains("Überlagerung") || value.contains("Éléments-originaux") { - eprintln!( - "LINK_LOCATION_COPY_BEFORE id={:?} role={:?} label={:?} value={:?} description={:?} bounds={:?} children={:?}", - shown.id, - node.role(), - node.label(), - node.value(), - node.description(), - node.bounds(), - node.children() - ); - } node.set_description(tl!("Copy")); node.add_action(egui::accesskit::Action::Click); - if value.contains("Überlagerung") || value.contains("Éléments-originaux") { - eprintln!( - "LINK_LOCATION_COPY_AFTER id={:?} role={:?} label={:?} value={:?} description={:?} bounds={:?} children={:?}", - shown.id, - node.role(), - node.label(), - node.value(), - node.description(), - node.bounds(), - node.children() - ); - } }); let activated = ui.input(|i| i.num_accesskit_action_requests(shown.id, egui::accesskit::Action::Click) > 0); eligible diff --git a/crates/ui-egui/src/panels/links.rs b/crates/ui-egui/src/panels/links.rs index 7f71873b41..309146618c 100644 --- a/crates/ui-egui/src/panels/links.rs +++ b/crates/ui-egui/src/panels/links.rs @@ -29,7 +29,7 @@ use craft::ui::buttons::IconButton; use craft::ui::contract::{Bind, CollectionEvent, Props as _, Show as _, ShowCollection as _, ShowContainer as _}; use craft::ui::display::{Elide, Shade, Text}; use craft::ui::form::Field; -use craft::ui::layout_components::Row; +use craft::ui::layout_components::{Row, Stack}; use craft::ui::list::{List, ListRow, ThumbSize}; use craft::ui::menu::{Menu, MenuItem, PanelRow}; use craft::ui::runtime::commands::{CommandState, CommandStates}; @@ -768,10 +768,15 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) { Panel::new(tl!("Links")) .collection_body() .footer(|ui, _| { - let info = FooterAction::new(IconId::new(if o.info { "chevron-down" } else { "chevron-right" }), tl!("Show Link Info")); - let actions = std::iter::once(info) - .chain(FOOTER.iter().map(|(a, icon, label)| FooterAction::new(IconId::new(icon), tl!(label)).enabled(can(view, *a, &facts, None)))); - footer_pick = FooterBar::actions(actions).at_start(1).show_footer(ui).picked; + Stack::new().fill_width().show(ui, |ui, _| { + if o.info { + info_reveal = link_info(ui, view, cache.info.as_ref().map(|(id, i)| (*id, i)), units, &mut info_copy); + } + let info = FooterAction::new(IconId::new(if o.info { "chevron-down" } else { "chevron-right" }), tl!("Show Link Info")); + let actions = std::iter::once(info) + .chain(FOOTER.iter().map(|(a, icon, label)| FooterAction::new(IconId::new(icon), tl!(label)).enabled(can(view, *a, &facts, None)))); + footer_pick = FooterBar::actions(actions).at_start(1).show_footer(ui).picked; + }); }) .show(ui, |ui, _| { let empty = if o.show == "all" { tl!("No images") } else { tl!("Nothing matches the Show filter.") }; @@ -817,9 +822,6 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) { if let Some(r) = menu_for.or(open_menu).and_then(|id| by_id.get(&id).copied()) { row_act = show_row_menu(ui, &out.response, view, &facts, r); } - if o.info { - info_reveal = link_info(ui, view, cache.info.as_ref().map(|(id, i)| (*id, i)), units, &mut info_copy); - } }); app.ui.links.selection = selection; diff --git a/crates/ui-egui/src/tests/panel_harness.rs b/crates/ui-egui/src/tests/panel_harness.rs index ccada048bc..2d360d03fe 100644 --- a/crates/ui-egui/src/tests/panel_harness.rs +++ b/crates/ui-egui/src/tests/panel_harness.rs @@ -484,29 +484,6 @@ pub(crate) fn floated(mut app: VectorcraftApp, panel: &str, lang: &str, place: P crate::i18n::set_current(crate::i18n::Lang::EN); let rect = |node: &Node| node.bounds().map(|b| Rect::from_min_max(pos2(b.x0 as f32, b.y0 as f32), pos2(b.x1 as f32, b.y1 as f32))); let by_id: HashMap = nodes.iter().map(|(id, n)| (*id, n)).collect(); - // TEMPORARY diagnostic: MUST REMOVE before publication. - if panel == "links" && names.iter().any(|(asked, _)| asked.contains("Überlagerung") || asked.contains("location-width")) { - for (root, _) in nodes.iter().filter(|(_, node)| node.role() == Role::TabPanel) { - let mut todo = vec![(*root, vec![*root])]; - while let Some((id, ancestry)) = todo.pop() { - let Some(node) = by_id.get(&id) else { continue }; - eprintln!( - "LINK_LOCATION_FINAL lang={lang} id={id:?} role={:?} label={:?} value={:?} description={:?} bounds={:?} children={:?} tab_panel_ancestry={ancestry:?}", - node.role(), - node.label(), - node.value(), - node.description(), - node.bounds(), - node.children() - ); - for child in node.children() { - let mut child_ancestry = ancestry.clone(); - child_ancestry.push(*child); - todo.push((*child, child_ancestry)); - } - } - } - } let under = |root: NodeId| { let mut found = Vec::new(); let mut todo = vec![root]; diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs index 0000d56f28..9677876e4e 100644 --- a/crates/ui-egui/tests/panel_readout_copy.rs +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -525,7 +525,7 @@ fn panel_readout_long_location_fits_and_copies_by_pointer_accessibility_and_keyb for _ in 0..4 { out = a.frame(vec![]); } - // TEMPORARY allocation control: MUST REMOVE traces before publication. Activate the real footer button, + // Hiding Link Info returns its space to the list. Activate the real footer button, // not private state: Links applies FooterBar's first pick by toggling its existing info option. let layout = |out: &egui::FullOutput| { let nodes = &out.platform_output.accesskit_update.as_ref().expect("the actual floated Links tree").nodes; @@ -562,25 +562,12 @@ fn panel_readout_long_location_fits_and_copies_by_pointer_accessibility_and_keyb out = a.settle(); let (list_on, info_on, _) = layout(&out); assert!(info_on.is_some(), "{locale}: the real footer action restores Link Info before the original oracles"); - eprintln!( - "LINK_LOCATION_ALLOCATION locale={locale} list_before={list_before:?} info_before={info_before:?} list_off={list_off:?} info_off={info_off:?} list_on={list_on:?} info_on={info_on:?} off_minus_on_height={}", - list_off.height() - list_on.height() - ); + assert!(info_before.is_some(), "{locale}: Link Info starts visible before the real toggle control"); + assert!(list_before.height() < list_off.height(), "{locale}: initially visible Link Info reserves list space"); + assert!(list_on.height() < list_off.height(), "{locale}: showing Link Info reserves list space again"); + assert!(list_on.height() > 0.0, "{locale}: the visible details leave room for the image list"); assert_eq!(a.snapshot(), before_toggle, "showing and hiding link details leaves document, selection and history intact"); let nodes = &out.platform_output.accesskit_update.as_ref().expect("the floated Links tree").nodes; - // TEMPORARY diagnostic: MUST REMOVE before publication. One final snapshot per locale, before the unchanged assertions. - eprintln!("LINK_LOCATION_INTEGRATION_FINAL locale={locale} node_count={}", nodes.len()); - for (id, node) in nodes { - eprintln!( - "LINK_LOCATION_INTEGRATION_FINAL locale={locale} id={id:?} role={:?} label={:?} value={:?} description={:?} bounds={:?} children={:?}", - node.role(), - node.label(), - node.value(), - node.description(), - node.bounds(), - node.children() - ); - } let body = nodes .iter() .filter(|(_, n)| n.role() == Role::TabPanel) From 730dd3566abcf35c10363a044267fcdaab124641 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 22:34:04 -0800 Subject: [PATCH 24/26] Format native Link Info footer actions --- crates/ui-egui/src/panels/links.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/panels/links.rs b/crates/ui-egui/src/panels/links.rs index 309146618c..70bf02dfbc 100644 --- a/crates/ui-egui/src/panels/links.rs +++ b/crates/ui-egui/src/panels/links.rs @@ -773,8 +773,9 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) { info_reveal = link_info(ui, view, cache.info.as_ref().map(|(id, i)| (*id, i)), units, &mut info_copy); } let info = FooterAction::new(IconId::new(if o.info { "chevron-down" } else { "chevron-right" }), tl!("Show Link Info")); - let actions = std::iter::once(info) - .chain(FOOTER.iter().map(|(a, icon, label)| FooterAction::new(IconId::new(icon), tl!(label)).enabled(can(view, *a, &facts, None)))); + let actions = std::iter::once(info).chain( + FOOTER.iter().map(|(a, icon, label)| FooterAction::new(IconId::new(icon), tl!(label)).enabled(can(view, *a, &facts, None))), + ); footer_pick = FooterBar::actions(actions).at_start(1).show_footer(ui).picked; }); }) From 5e7eb14cc02b6420b21abe88171881bc17858db7 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Fri, 27 Nov 2026 00:18:02 -0800 Subject: [PATCH 25/26] Keep localized link locations usable in narrow panels --- crates/ui-egui/src/panels/links.rs | 7 +++--- crates/ui-egui/tests/panel_readout_copy.rs | 26 +++++++++++++++++----- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/crates/ui-egui/src/panels/links.rs b/crates/ui-egui/src/panels/links.rs index 70bf02dfbc..3f5900d5bb 100644 --- a/crates/ui-egui/src/panels/links.rs +++ b/crates/ui-egui/src/panels/links.rs @@ -26,7 +26,7 @@ use craft::behavior::{IconId, Selection, keyed}; use craft::host::{PickKind, PickRequest, Picked}; use craft::keymap::CommandRef; use craft::ui::buttons::IconButton; -use craft::ui::contract::{Bind, CollectionEvent, Props as _, Show as _, ShowCollection as _, ShowContainer as _}; +use craft::ui::contract::{Bind, CollectionEvent, FieldLayout, Props as _, Show as _, ShowCollection as _, ShowContainer as _}; use craft::ui::display::{Elide, Shade, Text}; use craft::ui::form::Field; use craft::ui::layout_components::{Row, Stack}; @@ -977,8 +977,9 @@ fn link_info(ui: &mut Ui, app: &VectorcraftApp, info: Option<(u64, &Value)>, uni // Show in Folder for the image shown here: off while its file is missing and without a // file manager (the web). let can_reveal = i["path"].is_string() && i["status"] != "missing" && app.services.reveal.is_some(); - Field::new(tl!("Location")).value(l.to_string()).show(ui, |ui, _| { - Row::new().show(ui, |ui, _| { + // Keep the translated caption from taking the compound row's path width. + Field::new(tl!("Location")).layout(FieldLayout::Above).value(l.to_string()).show(ui, |ui, _| { + Row::new().fill_width().show(ui, |ui, _| { if IconButton::new(IconId::new("folder-open")).label(tl!("Show in Folder")).enabled(can_reveal).show(ui).clicked() { reveal = Some(id); } diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs index 9677876e4e..0d4f6857e9 100644 --- a/crates/ui-egui/tests/panel_readout_copy.rs +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -310,14 +310,23 @@ fn copy_long_link_value(a: &mut App) { let name = format!("{}.png", "Original linked-information fixture ".repeat(6)); place_original_png(a, &name); let out = a.panel("links"); - let label = painted(&out, "Name").0; + // Native Field may put its value below the caption. Anchor it to the real copy node. + let nodes = &out.platform_output.accesskit_update.as_ref().expect("actual Name accessibility tree").nodes; + let names: Vec<_> = nodes + .iter() + .filter(|(_, node)| node.label() == Some("Name") && node.value() == Some(name.as_str())) + .filter(|(_, node)| node.supports_action(egui::accesskit::Action::Click)) + .collect(); + assert_eq!(names.len(), 1, "one actual full-name copy readout"); + assert_eq!(names[0].1.description(), Some("Copy")); + let area = location_node_rect(&names[0].1); let (value, clipped) = out .shapes .iter() .find_map(|s| { let t = text_shape(&s.shape, &name)?; - let r = t.galley.rect.translate(t.pos.to_vec2()).intersect(s.clip_rect); - (r.is_positive() && (r.center().y - label.center().y).abs() < 8.0).then_some((r, t.galley.elided || r.width() < t.galley.rect.width())) + let r = t.galley.rect.translate(t.pos.to_vec2()).intersect(s.clip_rect).intersect(area); + r.is_positive().then_some((r, t.galley.elided || r.width() < t.galley.rect.width())) }) .expect("the actual selected image's Link Info Name value"); assert!(clipped, "the framework really clips this long painted readout"); @@ -654,9 +663,14 @@ fn review_4714788866_readout_copy_requires_an_inside_primary_press() { assert_eq!(visible_text_count(&a.frame(vec![]), COPIED), 0); assert_eq!(a.snapshot(), before, "the rejected gesture preserves document, selection and history"); - // The same inside position still copies on its first click, including a press/release in - // one raw frame. The deadline above lets the rejected pointer-wide click expire first. - let accepted = a.frame(vec![Event::PointerMoved(inside), button(inside, true), button(inside, false)]); + // The same inside position copies on its first click when both edges arrive together. + // Framework H0 holds the raw release until the next frame; preserve that actual input path. + let queued = a.frame(vec![Event::PointerMoved(inside), button(inside, true), button(inside, false)]); + assert!(copies(&queued).is_empty(), "a queued release has not copied yet"); + assert!(!a.ctx.input(|i| i.pointer.button_clicked(PointerButton::Primary))); + assert_eq!(a.app.ui.status_sets, sets); + let accepted = a.frame(vec![]); + assert!(a.ctx.input(|i| i.pointer.button_clicked(PointerButton::Primary)), "the held release is now delivered"); assert_eq!(copies(&accepted), [LENGTH]); assert_eq!(a.app.ui.status_sets, sets + 1); assert_eq!(visible_text_count(&accepted, COPIED), 1); From 61a8ddc7a95af3adb5bc8b05c3439e2cde1f6b28 Mon Sep 17 00:00:00 2001 From: yoriswind Date: Fri, 27 Nov 2026 02:40:57 -0800 Subject: [PATCH 26/26] Check readout confirmation after the status bar paints --- crates/ui-egui/tests/panel_readout_copy.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs index 0d4f6857e9..f86e93f895 100644 --- a/crates/ui-egui/tests/panel_readout_copy.rs +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -673,7 +673,11 @@ fn review_4714788866_readout_copy_requires_an_inside_primary_press() { assert!(a.ctx.input(|i| i.pointer.button_clicked(PointerButton::Primary)), "the held release is now delivered"); assert_eq!(copies(&accepted), [LENGTH]); assert_eq!(a.app.ui.status_sets, sets + 1); - assert_eq!(visible_text_count(&accepted, COPIED), 1); + // The shell paints its status slot before the panel sets this confirmation. + let feedback = a.frame(vec![]); + assert!(copies(&feedback).is_empty(), "painting confirmation does not copy again"); + assert_eq!(a.app.ui.status_sets, sets + 1, "painting confirmation does not report again"); + assert_eq!(visible_text_count(&feedback, COPIED), 1); assert_no_delayed_copy(&mut a, "accepted inside readout press"); assert_eq!(a.snapshot(), before); }