From 7f209e28479a5fdd417989d49a7df234111f8c7d Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 15 Oct 2026 20:37:04 +0000 Subject: [PATCH 01/77] =?UTF-8?q?Preferences=20=E2=80=BA=20File=20Handling?= =?UTF-8?q?=20=E2=80=BA=20Save=20documents=20as:=20DesignCraft=20or=20IDML?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A personal-build setting for working in IDML only. With InDesign Markup chosen, Save suggests `Title.idml` for a new document (a name typed without an extension gets `.idml`), and an opened `.idml` file is the document's file, so ⌘S writes IDML back to it instead of asking where to save. With DesignCraft's format chosen (the default), everything is as upstream: an opened `.idml` starts unsaved and is never overwritten. - Save, Save As and Save a Copy write the format the file's name says: a `.idml` name is an IDML package (images embedded, so it stands alone), any other name DesignCraft's own format. An old `.designcraft` file still saves as itself. - The choice is an engine preference (`prefs.set {saveFormat: designcraft|idml}`), kept in prefs.json with the others; preferences saved before it existed load with the default. Tests: engine save_format_tests (a .idml name writes IDML and reopens with its text; Save a Copy; with IDML chosen an opened .idml saves back to itself, without it Save still asks for a name; bad values refused) and ui-egui save_format_tests (the Preferences dialog sets it; the save dialog suggests and completes .idml, and .designcraft again after switching back). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CgGsJkVe5GYG9qK6VFdECa --- crates/engine/src/cmd/file.rs | 130 ++++++++++++++++++++++++++- crates/engine/src/cmd/interchange.rs | 9 +- crates/engine/src/cmd/prefs.rs | 2 +- crates/engine/src/lib.rs | 31 +++++++ crates/ui-egui/src/dialogs.rs | 30 +++++++ crates/ui-egui/src/menus.rs | 75 +++++++++++++++- 6 files changed, 266 insertions(+), 11 deletions(-) diff --git a/crates/engine/src/cmd/file.rs b/crates/engine/src/cmd/file.rs index f63f0d6e9..ebd08d0f1 100644 --- a/crates/engine/src/cmd/file.rs +++ b/crates/engine/src/cmd/file.rs @@ -21,13 +21,13 @@ pub fn specs() -> Vec { "{path} — .designcraft or .idml; the fonts in a `Document Fonts` folder beside it load first → {index, documentFonts: faces loaded, warnings: font files skipped (and, for .idml, package parts missing)}", always, file_open), cmd!(noundo "file.openBytes", "Open Bytes", [], None, "{name, base64} — DesignCraft JSON or an IDML package", always, file_open_bytes), - cmd!(noundo "file.save", "Save", ["File"], Some("Cmd+S"), "{path?}", has_doc, file_save), - cmd!(noundo "file.saveAs", "Save As…", ["File"], Some("Cmd+Shift+S"), "{path}", has_doc, file_save), + cmd!(noundo "file.save", "Save", ["File"], Some("Cmd+S"), "{path?} — a `.idml` path is written as IDML (images embedded), any other as DesignCraft's own format", has_doc, file_save), + cmd!(noundo "file.saveAs", "Save As…", ["File"], Some("Cmd+Shift+S"), "{path} — a `.idml` path is written as IDML (images embedded), any other as DesignCraft's own format", has_doc, file_save), cmd!(noundo "file.saveACopy", "Save a Copy…", ["File"], None, "{path} — writes the document without changing which file it is or its unsaved state", has_doc, |s, p| { let path = str_param(p, "path").ok_or_else(|| bad("file.saveACopy", "missing `path`"))?.to_string(); let mut copy = (*s.doc()?.doc).clone(); super::datamerge::refresh_relative_paths(&mut copy, std::path::Path::new(&path)); - let bytes = to_bytes(©); + let bytes = bytes_for_path(©, &path); #[cfg(not(target_arch = "wasm32"))] crate::io::write_file(&path, &bytes).map_err(EngineError::Other)?; Ok(json!({"path": path, "bytes": bytes.len()})) @@ -114,6 +114,15 @@ pub fn to_bytes(d: &Document) -> Vec { designcraft_format::save(d).unwrap_or_default() } +/// The bytes a save to `path` writes: an IDML package (images embedded) for a `.idml` name, else +/// DesignCraft's own format. +pub fn bytes_for_path(d: &Document, path: &str) -> Vec { + match crate::SaveFormat::of_path(path) { + crate::SaveFormat::Idml => designcraft_idml::export_idml(d), + crate::SaveFormat::Designcraft => to_bytes(d), + } +} + pub fn from_bytes(b: &[u8]) -> Result { designcraft_format::load(b).map_err(|e| EngineError::Other(e.to_string())) } @@ -271,7 +280,7 @@ fn file_save(s: &mut Session, p: &Value) -> Result { super::datamerge::refresh_relative_paths(&mut saved, std::path::Path::new(&path)); let paths_changed = saved.data_merge != st.doc.data_merge; let saved = if paths_changed { Arc::new(saved) } else { st.doc.clone() }; - let bytes = to_bytes(&saved); + let bytes = bytes_for_path(&saved, &path); #[cfg(not(target_arch = "wasm32"))] crate::io::write_file(&path, &bytes).map_err(EngineError::Other)?; if paths_changed { @@ -1095,3 +1104,116 @@ mod document_fonts_tests { let _ = std::fs::remove_dir_all(&dir); } } + +/// Preferences › File Handling › Save documents as (`saveFormat`): a `.idml` name is saved as +/// IDML, and with IDML chosen an opened `.idml` file is saved back to itself. +#[cfg(test)] +mod save_format_tests { + use std::path::PathBuf; + + use serde_json::json; + + use crate::Session; + + fn temp_dir(name: &str) -> PathBuf { + let dir = std::env::temp_dir().join(format!("dc-save-format-{name}-{}", std::process::id())); + let _ = std::fs::remove_dir_all(&dir); + std::fs::create_dir_all(&dir).unwrap(); + dir + } + + /// A new document holding a text frame with `text`. + fn document_with(s: &mut Session, text: &str) { + s.execute("file.new", &json!({})).unwrap(); + s.execute("frame.create", &json!({"rect": [72, 72, 400, 200], "content": "text", "text": text})).unwrap(); + } + + /// The text of the active document's stories, joined. + fn texts(s: &Session) -> String { + let d = &s.doc().unwrap().doc; + d.stories.values().map(|st| st.text.as_str()).collect::>().join("|") + } + + #[test] + fn a_save_to_an_idml_name_writes_idml() { + let dir = temp_dir("saveas"); + let mut s = Session::new(); + document_with(&mut s, "Hello IDML"); + let path = dir.join("Brochure.idml"); + s.execute("file.saveAs", &json!({"path": path.to_str().unwrap()})).unwrap(); + let bytes = std::fs::read(&path).unwrap(); + assert!(designcraft_idml::is_idml(&bytes), "an IDML package, not DesignCraft's format"); + assert!(!s.doc().unwrap().is_dirty(), "the document is saved"); + // Save again: the same file, as IDML. + s.execute("file.save", &json!({})).unwrap(); + assert!(designcraft_idml::is_idml(&std::fs::read(&path).unwrap())); + // It opens again with its text. + let mut t = Session::new(); + t.execute("file.open", &json!({"path": path.to_str().unwrap()})).unwrap(); + assert!(texts(&t).contains("Hello IDML"), "{}", texts(&t)); + // Any other name is DesignCraft's own format, as before. + let native = dir.join("Brochure.designcraft"); + s.execute("file.saveAs", &json!({"path": native.to_str().unwrap()})).unwrap(); + assert!(!designcraft_idml::is_idml(&std::fs::read(&native).unwrap())); + let _ = std::fs::remove_dir_all(dir); + } + + #[test] + fn save_a_copy_to_an_idml_name_writes_idml() { + let dir = temp_dir("copy"); + let mut s = Session::new(); + document_with(&mut s, "Copied"); + let path = dir.join("Copy.idml"); + s.execute("file.saveACopy", &json!({"path": path.to_str().unwrap()})).unwrap(); + assert!(designcraft_idml::is_idml(&std::fs::read(&path).unwrap())); + assert!(s.doc().unwrap().path.is_none(), "a copy doesn't change which file the document is"); + let _ = std::fs::remove_dir_all(dir); + } + + #[test] + fn with_idml_chosen_an_opened_idml_file_saves_back_to_itself() { + let dir = temp_dir("roundtrip"); + let path = dir.join("Magazine.idml"); + let p = path.to_str().unwrap(); + let mut s = Session::new(); + document_with(&mut s, "First draft"); + s.execute("file.saveAs", &json!({"path": p})).unwrap(); + + // DesignCraft's own format chosen (the default): the opened .idml starts unsaved, so Save + // never overwrites it unasked. + let mut a = Session::new(); + a.execute("file.open", &json!({"path": p})).unwrap(); + assert!(a.doc().unwrap().path.is_none()); + assert!(a.execute("file.save", &json!({})).is_err(), "Save asks for a name"); + + // IDML chosen: the document is that file, unchanged until edited, and Save writes IDML to it. + let mut b = Session::new(); + let r = b.execute("prefs.set", &json!({"saveFormat": "idml"})).unwrap(); + assert_eq!(r["saveFormat"], "idml"); + b.execute("file.open", &json!({"path": p})).unwrap(); + assert_eq!(b.doc().unwrap().path.as_deref(), Some(p)); + assert!(!b.doc().unwrap().is_dirty()); + b.execute("frame.create", &json!({"rect": [72, 300, 400, 400], "content": "text", "text": "Second draft"})).unwrap(); + b.execute("file.save", &json!({})).unwrap(); + assert!(designcraft_idml::is_idml(&std::fs::read(&path).unwrap())); + let mut c = Session::new(); + c.execute("file.open", &json!({"path": p})).unwrap(); + let t = texts(&c); + assert!(t.contains("First draft") && t.contains("Second draft"), "{t}"); + let _ = std::fs::remove_dir_all(dir); + } + + #[test] + fn the_save_format_preference_takes_only_known_formats() { + let mut s = Session::new(); + assert_eq!(s.prefs.save_format, crate::SaveFormat::Designcraft, "DesignCraft's own format by default"); + assert!(s.execute("prefs.set", &json!({"saveFormat": "pdf"})).is_err()); + assert_eq!(s.prefs.save_format, crate::SaveFormat::Designcraft, "a refused value changes nothing"); + // Preferences saved before the setting existed load with the default. + let old: crate::Prefs = serde_json::from_str(r#"{"linkTextFiles": true}"#).unwrap(); + assert_eq!(old.save_format, crate::SaveFormat::Designcraft); + assert_eq!(crate::SaveFormat::of_path("/a/B.IDML"), crate::SaveFormat::Idml); + assert_eq!(crate::SaveFormat::of_path("/a/B.designcraft"), crate::SaveFormat::Designcraft); + assert_eq!(crate::SaveFormat::of_path("/a/idml"), crate::SaveFormat::Designcraft, "a name, not an extension"); + } +} diff --git a/crates/engine/src/cmd/interchange.rs b/crates/engine/src/cmd/interchange.rs index 9b9520662..cd168f922 100644 --- a/crates/engine/src/cmd/interchange.rs +++ b/crates/engine/src/cmd/interchange.rs @@ -163,8 +163,13 @@ pub(crate) fn open_idml(s: &mut Session, p: &Value) -> Result { None => (None, 0, Vec::new()), }; warnings.extend(font_warnings); - // Never save over the .idml with the native format: the document starts unsaved. - let mut st = DocState::new(d, None); + // Saving IDML (Preferences › File Handling): the document is that .idml file, and Save writes + // IDML back to it. Otherwise it starts unsaved, so the .idml is never overwritten. + let path = match s.prefs.save_format { + crate::SaveFormat::Idml => str_param(p, "path").filter(|_| str_param(p, "base64").is_none()).map(str::to_string), + crate::SaveFormat::Designcraft => None, + }; + let mut st = DocState::new(d, path); st.fonts = fonts; let i = s.add_document(st); Ok(json!({"index": i, "documentFonts": faces, "warnings": warnings})) diff --git a/crates/engine/src/cmd/prefs.rs b/crates/engine/src/cmd/prefs.rs index 6c4908ffd..6b0d9b845 100644 --- a/crates/engine/src/cmd/prefs.rs +++ b/crates/engine/src/cmd/prefs.rs @@ -48,7 +48,7 @@ pub fn specs() -> Vec { "Preferences", [], None, - "{showHiddenCharacters?, typographersQuotes?, polygonSides?, starInset?, scaleStrokes?, dimensionsIncludeStroke?, transformationsAreTotals?, absolutePageNumbers?, highlightHj?, highlightKeeps?, highlightCustomTracking?, highlightSubstitutedFonts?, richBlackOutput?, favoriteFonts?: [family], showFontNamesInEnglish?, linkTextFiles? (Create Links When Placing Text Files)} → all application preferences", + "{showHiddenCharacters?, typographersQuotes?, polygonSides?, starInset?, scaleStrokes?, dimensionsIncludeStroke?, transformationsAreTotals?, absolutePageNumbers?, highlightHj?, highlightKeeps?, highlightCustomTracking?, highlightSubstitutedFonts?, richBlackOutput?, favoriteFonts?: [family], showFontNamesInEnglish?, linkTextFiles? (Create Links When Placing Text Files), saveFormat?: designcraft|idml (Save documents as)} → all application preferences", super::always, |s, p| { let cur = serde_json::to_value(&s.prefs).map_err(|e| bad("prefs.set", e.to_string()))?; diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs index 745e45647..5790d6365 100644 --- a/crates/engine/src/lib.rs +++ b/crates/engine/src/lib.rs @@ -216,6 +216,36 @@ pub struct Prefs { /// Preferences › File Handling › Create Links When Placing Text Files: placed text files are /// linked (Links panel) unless `file.place` says otherwise. pub link_text_files: bool, + /// Preferences › File Handling › Save documents as: the format Save suggests for a new + /// document, and, as IDML, an opened `.idml` file is saved back to itself. + pub save_format: SaveFormat, +} + +/// The format a document is saved in (Preferences › File Handling). +#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +#[serde(rename_all = "lowercase")] +pub enum SaveFormat { + /// DesignCraft's own `.designcraft` package. + #[default] + Designcraft, + /// InDesign Markup (`.idml`), with the images embedded. + Idml, +} + +impl SaveFormat { + /// The file extension, without its dot. + pub fn extension(self) -> &'static str { + match self { + SaveFormat::Designcraft => "designcraft", + SaveFormat::Idml => "idml", + } + } + + /// The format a file at `path` is written in: IDML for a `.idml` name, else DesignCraft's own. + pub fn of_path(path: &str) -> SaveFormat { + let idml = std::path::Path::new(path).extension().is_some_and(|e| e.eq_ignore_ascii_case("idml")); + if idml { SaveFormat::Idml } else { SaveFormat::Designcraft } + } } /// A starter autocorrect list (common English typing slips). @@ -265,6 +295,7 @@ impl Default for Prefs { show_note_anchors: true, recovery_minutes: 0.5, link_text_files: false, + save_format: SaveFormat::Designcraft, } } } diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs index 7d02776a2..92641cd68 100644 --- a/crates/ui-egui/src/dialogs.rs +++ b/crates/ui-egui/src/dialogs.rs @@ -1198,6 +1198,32 @@ fn preferences(app: &crate::DesignApp, ui: &mut egui::Ui, d: &mut Dialog, max_he ui.add_space(6.0); ui.label(crate::rtl::widget(ui, egui::RichText::new(crate::i18n::tr(&app.ui.language, "Links")).font(semibold(12.0)))); check(ui, d, "linkTextFiles", crate::i18n::tr(&app.ui.language, "Create Links When Placing Text Files")); + ui.add_space(6.0); + ui.label(crate::rtl::widget(ui, egui::RichText::new(crate::i18n::tr(&app.ui.language, "Saving")).font(semibold(12.0)))); + ui.horizontal(|ui| { + crate::rtl::label(ui, crate::i18n::tr(&app.ui.language, "Save documents as:")); + let cur = d.s("saveFormat"); + let formats = [("designcraft", "DesignCraft (.designcraft)"), ("idml", "InDesign Markup (.idml)")]; + let shown = formats.iter().find(|(v, _)| *v == cur).map_or(formats[0].1, |(_, l)| l); + egui::ComboBox::from_id_salt("pref_save_format") + .selected_text(crate::rtl::widget(ui, crate::i18n::tr(&app.ui.language, shown))) + .width(220.0) + .show_ui(ui, |ui| { + for (v, l) in formats { + if ui.selectable_label(v == cur, crate::rtl::widget(ui, crate::i18n::tr(&app.ui.language, l))).clicked() { + d.fields.insert("saveFormat".into(), json!(v)); + } + } + }); + }); + crate::rtl::label( + ui, + egui::RichText::new(crate::i18n::tr( + &app.ui.language, + "InDesign Markup: new documents are saved as .idml, and an opened .idml file is saved back to itself.", + )) + .small(), + ); } "type" => { crate::rtl::label(ui, egui::RichText::new(crate::i18n::tr(&app.ui.language, "Type Options")).font(semibold(12.0))); @@ -2544,6 +2570,10 @@ pub fn confirm(app: &mut DesignApp) -> Result { } } "preferences" => { + // Save documents as (File Handling): only a format the dialog shows. + if let Some(format) = Some(d.s("saveFormat")).filter(|f| f == "designcraft" || f == "idml") { + app.run("prefs.set", json!({ "saveFormat": format }))?; + } app.run( "prefs.set", json!({"scaleStrokes": d.b("scaleStrokes"), "dimensionsIncludeStroke": d.b("dimensionsIncludeStroke"), "transformationsAreTotals": d.b("transformationsAreTotals"), "absolutePageNumbers": d.b("absolutePageNumbers"), "highlightHj": d.b("highlightHj"), "highlightKeeps": d.b("highlightKeeps"), "highlightCustomTracking": d.b("highlightCustomTracking"), "highlightSubstitutedFonts": d.b("highlightSubstitutedFonts"), "richBlackOutput": d.b("richBlackOutput"), "typographersQuotes": d.b("typographersQuotes"), "showFontNamesInEnglish": d.b("showFontNamesInEnglish"), "smartTextReflow": d.b("smartTextReflow"), diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rs index a35261d59..4cb61039f 100644 --- a/crates/ui-egui/src/menus.rs +++ b/crates/ui-egui/src/menus.rs @@ -899,9 +899,10 @@ fn run_ui_inner(app: &mut DesignApp, id: &str, p: &Value) -> Option { - let name = app.session.active().map(|d| format!("{}.designcraft", d.doc.title)).unwrap_or_default(); + let ext = app.session.prefs.save_format.extension(); + let name = app.session.active().map(|d| format!("{}.{ext}", d.doc.title)).unwrap_or_default(); if let Some(path) = app.services.pick_save.as_mut().and_then(|f| f(&name)) { - return Some(app.run("file.saveAs", json!({"path": path}))); + return Some(app.run("file.saveAs", json!({"path": with_save_extension(&path, ext)}))); } Ok(Value::Null) } @@ -910,9 +911,10 @@ fn run_ui_inner(app: &mut DesignApp, id: &str, p: &Value) -> Option { - let name = app.session.active().map(|d| format!("{} copy.designcraft", d.doc.title)).unwrap_or_default(); + let ext = app.session.prefs.save_format.extension(); + let name = app.session.active().map(|d| format!("{} copy.{ext}", d.doc.title)).unwrap_or_default(); if let Some(path) = app.services.pick_save.as_mut().and_then(|f| f(&name)) { - return Some(app.run("file.saveACopy", json!({"path": path}))); + return Some(app.run("file.saveACopy", json!({"path": with_save_extension(&path, ext)}))); } Ok(Value::Null) } @@ -2187,6 +2189,13 @@ fn clipped_submenu<'a, R>( (response, inner) } +/// A path the save dialog returned, with `ext` (the Save documents as format) added when the name +/// has no extension of its own: "Brochure" saves as "Brochure.idml". A name with one is kept as +/// typed; its extension decides the format (see `file.save`). +fn with_save_extension(path: &str, ext: &str) -> String { + if std::path::Path::new(path).extension().is_some() { path.to_string() } else { format!("{path}.{ext}") } +} + /// A native menu bar item was chosen (macOS): like [`activate`], except that the menu bar takes /// ⌘A, ⌘C, ⌘X, ⌘V, ⌘Z and ⇧⌘Z before the window sees them, so while a text field has keyboard /// focus, Select All, Copy, Cut, Paste, Undo and Redo act on that field, as in any Mac app. @@ -4229,3 +4238,61 @@ mod tests { assert!(!open, "an open submenu closes when its row becomes fully clipped"); } } + +/// Preferences › File Handling › Save documents as. +#[cfg(test)] +mod save_format_tests { + use std::sync::{Arc, Mutex}; + + use serde_json::json; + + use crate::DesignApp; + + #[test] + fn choosing_idml_makes_save_suggest_and_write_idml() { + let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default()); + app.run("file.new", json!({"title": "Brochure"})).unwrap(); + app.run("frame.create", json!({"rect": [72, 72, 400, 200], "content": "text", "text": "Hello"})).unwrap(); + // Preferences › File Handling: InDesign Markup. + app.run("app.preferences", json!({})).unwrap(); + let d = app.ui.dialog.as_mut().unwrap(); + assert_eq!(d.fields["saveFormat"], "designcraft", "DesignCraft's own format by default"); + d.fields.insert("saveFormat".into(), json!("idml")); + crate::dialogs::confirm(&mut app).unwrap(); + assert_eq!(app.session.prefs.save_format, designcraft_engine::SaveFormat::Idml); + // Save: the dialog suggests a .idml name; a name typed without an extension gets .idml. + let dir = tempfile::tempdir().unwrap(); + let typed = dir.path().join("Brochure").to_string_lossy().to_string(); + let suggested = Arc::new(Mutex::new(String::new())); + let seen = suggested.clone(); + app.services.pick_save = Some(Box::new(move |name: &str| { + *seen.lock().unwrap() = name.to_string(); + Some(typed.clone()) + })); + app.run("app.save", json!({})).unwrap(); + assert_eq!(*suggested.lock().unwrap(), "Brochure.idml"); + let path = dir.path().join("Brochure.idml"); + assert!(designcraft_idml::is_idml(&std::fs::read(&path).unwrap())); + assert_eq!(app.session.active().unwrap().path.as_deref(), Some(path.to_str().unwrap())); + // Back to DesignCraft's format: Save As suggests .designcraft again. + app.run("app.preferences", json!({})).unwrap(); + let d = app.ui.dialog.as_mut().unwrap(); + assert_eq!(d.fields["saveFormat"], "idml", "the dialog shows the current choice"); + d.fields.insert("saveFormat".into(), json!("designcraft")); + crate::dialogs::confirm(&mut app).unwrap(); + let seen = suggested.clone(); + app.services.pick_save = Some(Box::new(move |name: &str| { + *seen.lock().unwrap() = name.to_string(); + None + })); + app.run("app.saveDialog", json!({})).unwrap(); + assert_eq!(*suggested.lock().unwrap(), "Brochure.designcraft"); + } + + #[test] + fn a_typed_extension_is_kept() { + assert_eq!(super::with_save_extension("/a/Brochure", "idml"), "/a/Brochure.idml"); + assert_eq!(super::with_save_extension("/a/Brochure.idml", "designcraft"), "/a/Brochure.idml"); + assert_eq!(super::with_save_extension("/a/Brochure.designcraft", "idml"), "/a/Brochure.designcraft"); + } +} From 2477a82c3cc7b7979fd23c55dae4747e893e06c5 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 16 Oct 2026 01:02:50 +0000 Subject: [PATCH 02/77] Web: Save downloads in the chosen format; preferences kept in local storage Save documents as now reaches the web build too: - Save there is a download: it is named Title.idml and holds an IDML package (images embedded) when InDesign Markup is chosen, else Title.designcraft as before. (A browser can't write back to the file it opened, so each Save is a new download.) - The web app remembered no preferences at all: every visit started from the defaults. It now reads them from the browser's local storage at startup and writes them back when they change (checked at most once a second), as the desktop app keeps prefs.json. Unreadable or missing storage (some private modes) leaves the defaults; fields an older copy lacks take theirs. The decoding and change detection are in prefs_store.rs, compiled for the browser and for native tests; web.rs only calls the browser's storage. The web build itself could not be compiled here (no wasm32 toolchain); the storage calls were type-checked against web-sys 0.3.106 natively. Tests: ui-egui a_download_save_follows_the_save_format; designcraft-web prefs_store tests (stored preferences come back, bad ones leave the defaults; written only when changed; checked at most once a second). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CgGsJkVe5GYG9qK6VFdECa --- apps/designcraft-web/Cargo.toml | 2 +- apps/designcraft-web/src/main.rs | 8 ++- apps/designcraft-web/src/prefs_store.rs | 94 +++++++++++++++++++++++++ apps/designcraft-web/src/web.rs | 24 ++++++- crates/ui-egui/src/menus.rs | 33 ++++++++- 5 files changed, 156 insertions(+), 5 deletions(-) create mode 100644 apps/designcraft-web/src/prefs_store.rs diff --git a/apps/designcraft-web/Cargo.toml b/apps/designcraft-web/Cargo.toml index 1667e69e3..4aa8f8fd1 100644 --- a/apps/designcraft-web/Cargo.toml +++ b/apps/designcraft-web/Cargo.toml @@ -30,4 +30,4 @@ rfd = { workspace = true } wasm-bindgen = "0.2" wasm-bindgen-futures = "0.4" js-sys = "0.3" -web-sys = { version = "0.3", features = ["Event", "EventTarget", "Window", "Document", "Element", "HtmlElement", "HtmlCanvasElement", "HtmlAnchorElement", "Blob", "BlobPropertyBag", "Url", "Location", "CssStyleDeclaration"] } +web-sys = { version = "0.3", features = ["Event", "EventTarget", "Window", "Document", "Element", "HtmlElement", "HtmlCanvasElement", "HtmlAnchorElement", "Blob", "BlobPropertyBag", "Url", "Location", "CssStyleDeclaration", "Storage"] } diff --git a/apps/designcraft-web/src/main.rs b/apps/designcraft-web/src/main.rs index 1b28064a9..d913e81ea 100644 --- a/apps/designcraft-web/src/main.rs +++ b/apps/designcraft-web/src/main.rs @@ -8,7 +8,10 @@ //! - no TCP control channel (browsers can't listen on sockets); //! - File → Open / Place use the browser file picker; bytes arrive asynchronously through //! `Services::inbox` (`.designcraft` → `file.openBytes`, images → `file.place`); -//! - Save and Export trigger a browser download; +//! - Save and Export trigger a browser download (Save in the format Preferences › File Handling +//! chooses); +//! - the Preferences dialog's settings live in the browser's local storage (`prefs_store`), as +//! the desktop app keeps them in `prefs.json`; //! - dropped files are read asynchronously by `web::WebShell` and delivered through the inbox. //! //! URL query flags: `?webgl` forces the WebGL2 backend instead of WebGPU; `?sample` opens the @@ -25,6 +28,9 @@ mod web; #[cfg(any(target_arch = "wasm32", test))] mod graphics; +#[cfg(any(target_arch = "wasm32", test))] +mod prefs_store; + #[cfg(target_arch = "wasm32")] fn main() { web::start(); diff --git a/apps/designcraft-web/src/prefs_store.rs b/apps/designcraft-web/src/prefs_store.rs new file mode 100644 index 000000000..bffd64ced --- /dev/null +++ b/apps/designcraft-web/src/prefs_store.rs @@ -0,0 +1,94 @@ +//! Preferences kept in the browser's local storage, as the desktop app keeps `prefs.json`: the +//! Preferences dialog's settings (Save documents as among them) survive a reload. + +use designcraft_engine::Prefs; + +/// The local storage key. +pub(crate) const KEY: &str = "designcraft.prefs"; + +/// Seconds between checks for changed preferences. +const CHECK_EVERY: f64 = 1.0; + +/// The preferences stored under [`KEY`]; `None` when there are none or they can't be read, and +/// the defaults apply. Fields a stored copy lacks (from an older version) take their defaults. +pub(crate) fn decode(stored: Option<&str>) -> Option { + serde_json::from_str(stored?).ok() +} + +/// Decides when to write the preferences back: when they differ from what was last stored, at +/// most once per [`CHECK_EVERY`] seconds of app time. +pub(crate) struct PrefsSync { + /// The JSON last read from or written to storage. + last: Option, + /// App time of the next check. + next_check: f64, +} + +impl PrefsSync { + /// Starts from what storage held at startup, so unchanged preferences aren't written back. + pub(crate) fn new(stored: Option) -> Self { + PrefsSync { last: stored, next_check: 0.0 } + } + + /// Whether to check now (app time `now`, in seconds); the next check is a second later. + pub(crate) fn due(&mut self, now: f64) -> bool { + if !now.is_finite() || now < self.next_check { + return false; + } + self.next_check = now + CHECK_EVERY; + true + } + + /// The JSON to store when `prefs` differ from what was last stored; `None` otherwise. The + /// value counts as stored once returned (a failed write is not retried until they change). + pub(crate) fn changed(&mut self, prefs: &Prefs) -> Option { + let json = serde_json::to_string(prefs).ok()?; + if self.last.as_deref() == Some(json.as_str()) { + return None; + } + self.last = Some(json.clone()); + Some(json) + } +} + +#[cfg(test)] +mod tests { + use super::{KEY, PrefsSync, decode}; + use designcraft_engine::{Prefs, SaveFormat}; + + #[test] + fn stored_preferences_come_back_and_bad_ones_leave_the_defaults() { + assert!(!KEY.is_empty()); + assert!(decode(None).is_none(), "nothing stored: defaults"); + assert!(decode(Some("not json")).is_none(), "unreadable: defaults"); + let old = decode(Some(r#"{"linkTextFiles": true}"#)).unwrap(); + assert!(old.link_text_files); + assert_eq!(old.save_format, SaveFormat::Designcraft, "a field an older copy lacks takes its default"); + let prefs = Prefs { save_format: SaveFormat::Idml, ..Prefs::default() }; + let json = serde_json::to_string(&prefs).unwrap(); + assert_eq!(decode(Some(&json)).unwrap().save_format, SaveFormat::Idml); + } + + #[test] + fn preferences_are_written_only_when_they_change() { + let prefs = Prefs::default(); + let stored = serde_json::to_string(&prefs).unwrap(); + let mut sync = PrefsSync::new(Some(stored)); + assert_eq!(sync.changed(&prefs), None, "unchanged since startup: nothing to write"); + let idml = Prefs { save_format: SaveFormat::Idml, ..Prefs::default() }; + let json = sync.changed(&idml).unwrap(); + assert!(json.contains(r#""saveFormat":"idml""#), "{json}"); + assert_eq!(sync.changed(&idml), None, "written once"); + // Nothing stored yet: the first check writes. + assert!(PrefsSync::new(None).changed(&prefs).is_some()); + } + + #[test] + fn checks_come_at_most_once_a_second() { + let mut sync = PrefsSync::new(None); + assert!(sync.due(0.0)); + assert!(!sync.due(0.5)); + assert!(sync.due(1.0)); + assert!(!sync.due(f64::NAN), "a time that isn't a number is never due"); + } +} diff --git a/apps/designcraft-web/src/web.rs b/apps/designcraft-web/src/web.rs index c532b5dca..04323ed73 100644 --- a/apps/designcraft-web/src/web.rs +++ b/apps/designcraft-web/src/web.rs @@ -1,6 +1,7 @@ //! The browser shell: web `Services`, drag-and-drop, and the eframe web runner. use super::browser_policy::{has_query_flag, mime_for}; +use super::prefs_store::{self, PrefsSync}; use crate::graphics::{GraphicsState, RecoveryDocument, recovery_documents}; use designcraft_engine::Session; use designcraft_ui_egui::{DesignApp, ImportRequest, ImportedFile, Inbox, Services}; @@ -73,10 +74,16 @@ pub fn start() { } let inbox: Inbox = Inbox::default(); let mut app = DesignApp::new(Session::new(), services(inbox.clone(), cc.egui_ctx.clone())); + // The preferences saved by an earlier visit (as the desktop app reads prefs.json). + let stored = local_storage().and_then(|s| s.get_item(prefs_store::KEY).ok().flatten()); + if let Some(prefs) = prefs_store::decode(stored.as_deref()) { + app.session.prefs = prefs; + } + let prefs_sync = PrefsSync::new(stored); if has_query_flag(&query(), "sample") { let _ = app.run("file.newSample", serde_json::json!({})); } - Ok(Box::new(WebShell { app, inbox, graphics: creator_graphics })) + Ok(Box::new(WebShell { app, inbox, graphics: creator_graphics, prefs_sync })) }), ) .await; @@ -335,6 +342,11 @@ fn add_document_recovery_controls(snapshots: Vec) -> Result Option { + web_sys::window()?.local_storage().ok().flatten() +} + fn query() -> String { web_sys::window().and_then(|w| w.location().search().ok()).unwrap_or_default() } @@ -345,6 +357,8 @@ struct WebShell { app: DesignApp, inbox: Inbox, graphics: GraphicsState, + /// Writes the preferences to local storage when they change. + prefs_sync: PrefsSync, } impl eframe::App for WebShell { @@ -369,6 +383,14 @@ impl eframe::App for WebShell { } self.app.logic(ctx); }); + // Changed preferences go to local storage, so they survive a reload. + if self.prefs_sync.due(ctx.input(|i| i.time)) + && let Some(json) = self.prefs_sync.changed(&self.app.session.prefs) + && let Some(storage) = local_storage() + && let Err(e) = storage.set_item(prefs_store::KEY, &json) + { + log::warn!("couldn't keep the preferences in local storage: {e:?}"); + } } fn raw_input_hook(&mut self, ctx: &egui::Context, raw: &mut egui::RawInput) { diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rs index 4cb61039f..d509ed075 100644 --- a/crates/ui-egui/src/menus.rs +++ b/crates/ui-egui/src/menus.rs @@ -1663,8 +1663,14 @@ fn run_ui_inner(app: &mut DesignApp, id: &str, p: &Value) -> Option Result { - let name = app.session.active().map(|d| format!("{}.designcraft", d.doc.title)).ok_or("no document")?; - let ser = app.run("file.serialize", json!({}))?; + // Preferences › File Handling › Save documents as: an IDML package (images embedded), or + // DesignCraft's own format. + let format = app.session.prefs.save_format; + let name = app.session.active().map(|d| format!("{}.{}", d.doc.title, format.extension())).ok_or("no document")?; + let ser = match format { + designcraft_engine::SaveFormat::Idml => app.run("file.exportIdml", json!({}))?, + designcraft_engine::SaveFormat::Designcraft => app.run("file.serialize", json!({}))?, + }; let bytes = designcraft_engine::cmd::base64_decode(ser["base64"].as_str().unwrap_or_default()); if let Some(download) = app.services.download.as_mut() { download(&name, &bytes); @@ -4295,4 +4301,27 @@ mod save_format_tests { assert_eq!(super::with_save_extension("/a/Brochure.idml", "designcraft"), "/a/Brochure.idml"); assert_eq!(super::with_save_extension("/a/Brochure.designcraft", "idml"), "/a/Brochure.designcraft"); } + /// The web build saves by download: the download is named and written in the chosen format. + #[test] + fn a_download_save_follows_the_save_format() { + for (format, ext) in [("idml", "idml"), ("designcraft", "designcraft")] { + let dir = tempfile::tempdir().unwrap(); + // The title is a path in the temporary folder: on the desktop, marking the download + // saved writes there too. + let title = dir.path().join("Brochure").to_string_lossy().to_string(); + let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default()); + let got: Arc)>>> = Arc::default(); + let sink = got.clone(); + app.services.download = Some(Box::new(move |name: &str, bytes: &[u8]| sink.lock().unwrap().push((name.to_string(), bytes.to_vec())))); + app.run("prefs.set", json!({"saveFormat": format})).unwrap(); + app.run("file.new", json!({"title": title})).unwrap(); + app.run("frame.create", json!({"rect": [72, 72, 400, 200], "content": "text", "text": "Hello"})).unwrap(); + app.run("app.save", json!({})).unwrap(); + let got = got.lock().unwrap(); + let [(name, bytes)] = got.as_slice() else { panic!("one download: {:?}", got.len()) }; + assert!(name.ends_with(&format!("Brochure.{ext}")), "{name}"); + assert_eq!(designcraft_idml::is_idml(bytes), format == "idml", "{format}"); + assert!(!app.session.active().unwrap().is_dirty(), "the document counts as saved"); + } + } } From dc8199999a9e77b08096951a0cf9c86ec8d1273b Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 18 Oct 2026 00:23:30 +0000 Subject: [PATCH 03/77] Web: relink graphics from files handed over MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the browser, linked graphics can't be read from their paths, and Relink… and Relink to Folder… asked a file dialog for a path that the web build doesn't have, so both did nothing: an IDML opened without its Links folder had no way to get its pictures. - links.relinkFiles relinks from files given by name and bytes: one graphic from a chosen file, or every missing graphic from the file of its name (any case), in one undo step. It shares the path relink's code (PDF page and crop, pixel size); a file named like the link keeps the link's path. - Web: Relink… opens the file picker for the selected graphic; Relink to Folder… picks several files at once. Dropped images named like a missing graphic relink it; others are placed as before. Dropped files are delivered together so they relink in one step. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CgGsJkVe5GYG9qK6VFdECa --- ROADMAP.md | 1 + apps/designcraft-web/src/main.rs | 5 +- apps/designcraft-web/src/web.rs | 34 ++++-- crates/engine/src/cmd/links.rs | 145 +++++++++++++++++++++++- crates/ui-egui/src/lib.rs | 127 +++++++++++++++++++++ crates/ui-egui/src/panels/properties.rs | 34 ++++-- 6 files changed, 321 insertions(+), 25 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index 9bd0274ef..1190de362 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -348,6 +348,7 @@ list) · [roadmap.md](docs/roadmap.md) (milestones, plan) · [parity-checklist.m Newest first. +- **2026-10-18** · Web build: linked graphics relink from files handed over — Links › Relink… and Relink to Folder… open the browser's file picker (several files at once), and dropped images named like a missing graphic relink it; one undo step per batch. New `links.relinkFiles`. Before, both buttons did nothing in the browser, so an IDML opened without its Links folder had no way to get its pictures. No readiness percentage change. - **2026-10-16** · Threading: the loaded text cursor threads into a text frame inside a group (it hit the group and showed it could not thread); a plain click still selects the group (#1075). Gap 27 closed. No readiness percentage change. - **2026-10-16** · Greek text hyphenates. The patterns were never compiled in, so Greek set unhyphenated however narrow the column; `"Greek"`, `"Greek: Greece"`, `el` and `el-GR` all resolve now and ανθρωπος breaks αν-θρω-πος. They are the monotonic patterns (hyph-el-monoton, Dimitrios Filippou, under MIT), which is what polytonic text hyphenates by too. Five of InDesign's ~40 hyphenation languages. No readiness percentage change. - **2026-10-16** · A swatch applied to a placed greyscale or bitmap image colours it, as in InDesign: IDML's `` is read and written, greyscale pixels become a tint of the swatch on opaque white and a bitmap's white lets the frame show through, on screen and in PDF (spot swatches print on their plate). Colour images keep their colours. Applying the swatch from the Swatches panel comes next. No readiness percentage change. diff --git a/apps/designcraft-web/src/main.rs b/apps/designcraft-web/src/main.rs index 1b28064a9..5b44d5e77 100644 --- a/apps/designcraft-web/src/main.rs +++ b/apps/designcraft-web/src/main.rs @@ -9,7 +9,10 @@ //! - File → Open / Place use the browser file picker; bytes arrive asynchronously through //! `Services::inbox` (`.designcraft` → `file.openBytes`, images → `file.place`); //! - Save and Export trigger a browser download; -//! - dropped files are read asynchronously by `web::WebShell` and delivered through the inbox. +//! - dropped files are read asynchronously by `web::WebShell` and delivered through the inbox; +//! - linked graphics can't be read from their paths (an IDML's Links folder): they show as +//! missing, and relink from files handed over instead (Links › Relink… and Relink to Folder… +//! pick the files; dropped images named like a missing graphic relink it, `links.relinkFiles`). //! //! URL query flags: `?webgl` forces the WebGL2 backend instead of WebGPU; `?sample` opens the //! sample magazine on start. Flags match case-sensitive, percent-decoded query keys; values diff --git a/apps/designcraft-web/src/web.rs b/apps/designcraft-web/src/web.rs index fe0f4a7fa..438c8a99d 100644 --- a/apps/designcraft-web/src/web.rs +++ b/apps/designcraft-web/src/web.rs @@ -352,19 +352,23 @@ impl eframe::App for WebShell { let graphics = self.graphics.clone(); let _ = graphics.run_if_healthy(|| { let dropped = ctx.input_mut(|i| std::mem::take(&mut i.raw.dropped_files)); - for f in dropped { + if !dropped.is_empty() { let request = self.app.import_request("drop"); let inbox = self.inbox.clone(); let ctx = ctx.clone(); + // Read every dropped file before delivering any: dropped graphics that relink + // missing links relink together, in one undo step. wasm_bindgen_futures::spawn_local(async move { - let name = f.path().file_name().map(|n| n.to_string_lossy().to_string()).unwrap_or_else(|| "dropped".into()); - match f.bytes_async().await { - Ok(bytes) => { - inbox.lock().unwrap_or_else(|e| e.into_inner()).push(ImportedFile { request, name, bytes }); - ctx.request_repaint(); + let mut files = Vec::with_capacity(dropped.len()); + for f in dropped { + let name = f.path().file_name().map(|n| n.to_string_lossy().to_string()).unwrap_or_else(|| "dropped".into()); + match f.bytes_async().await { + Ok(bytes) => files.push(ImportedFile { request: request.clone(), name, bytes }), + Err(e) => log::error!("couldn't read dropped file {name}: {e}"), } - Err(e) => log::error!("couldn't read dropped file {name}: {e}"), } + inbox.lock().unwrap_or_else(|e| e.into_inner()).extend(files); + ctx.request_repaint(); }); } self.app.logic(ctx); @@ -395,17 +399,25 @@ fn services(inbox: Inbox, ctx: egui::Context) -> Services { let ctx = ctx.clone(); let dialog = if request.purpose == "swatches" { rfd::AsyncFileDialog::new().add_filter("Swatch Exchange (ASE)", &["ase"]) - } else if request.purpose == "place" { + } else if request.purpose == "place" || request.purpose.starts_with("relink") { rfd::AsyncFileDialog::new().add_filter("Graphics", IMAGE_EXTS) } else { rfd::AsyncFileDialog::new().add_filter("DesignCraft, IDML or InDesign", DOC_EXTS) }; + // Relink to Folder: the browser gives no folders, so the moved files themselves, as many + // as are chosen; they arrive together, to relink in one step. + let several = request.purpose == "relinkFiles"; wasm_bindgen_futures::spawn_local(async move { - let Some(file) = dialog.pick_file().await else { + let picked = if several { dialog.pick_files().await } else { dialog.pick_file().await.map(|f| vec![f]) }; + let Some(picked) = picked else { return; }; - let bytes = file.read().await; - inbox.lock().unwrap_or_else(|e| e.into_inner()).push(ImportedFile { request, name: file.file_name(), bytes }); + let mut files = Vec::with_capacity(picked.len()); + for file in picked { + let bytes = file.read().await; + files.push(ImportedFile { request: request.clone(), name: file.file_name(), bytes }); + } + inbox.lock().unwrap_or_else(|e| e.into_inner()).extend(files); ctx.request_repaint(); }); })), diff --git a/crates/engine/src/cmd/links.rs b/crates/engine/src/cmd/links.rs index d77db3ea8..e38e0fcc2 100644 --- a/crates/engine/src/cmd/links.rs +++ b/crates/engine/src/cmd/links.rs @@ -47,6 +47,15 @@ pub fn specs() -> Vec { has_doc, relink_folder ), + cmd!( + "links.relinkFiles", + "Relink to Files", + [], + None, + "{files: [{name, base64}], asset?: id} — relink from files handed over by name (the web build's file picker and drops, which give no path): with `asset`, that graphic from the first file; otherwise every missing graphic from the file of the same name (any case), all in one undo step. A file named like the link keeps the link's path → {relinked, notFound: [missing graphics no file matched], unused: [files that matched nothing]}", + has_doc, + relink_files + ), cmd!( "links.update", "Update Link", @@ -358,11 +367,34 @@ fn reload(path: impl AsRef) -> Result<(Vec, (u32, u32))> { /// to and the stored link itself, so refreshing a link never rewrites what the document holds. fn relinked_asset(a: &designcraft_doc::Asset, read: &Path, link: &str) -> Result> { let (bytes, px) = reload(read)?; + relinked_from(a, bytes, px, &read.display().to_string(), link) +} + +/// [`relinked_asset`] from a file handed over as bytes with its name (the browser's file picker +/// and drops give no path). A file of the same name as the link keeps the link's path, so the +/// document still finds the file on the computer the link came from; another name becomes the +/// link. +fn relinked_bytes(a: &designcraft_doc::Asset, name: &str, bytes: Vec) -> Result> { + let px = designcraft_render::image_size(&bytes).ok_or_else(|| bad("links", format!("{name}: unsupported or corrupt image")))?; + let link = match &a.link { + Some(old) if link_file_name(old).eq_ignore_ascii_case(name) => old.clone(), + _ => name.to_string(), + }; + relinked_from(a, bytes, px, name, &link) +} + +/// The file name at the end of a link (either kind of separator). +fn link_file_name(link: &str) -> &str { + link.rsplit(['/', '\\']).next().unwrap_or(link) +} + +/// The asset with a new file's bytes (`px` its pixel size, `label` naming it in errors). +fn relinked_from(a: &designcraft_doc::Asset, bytes: Vec, px: (u32, u32), label: &str, link: &str) -> Result> { let page = if designcraft_render::is_pdf(&bytes) { a.page } else { 0 }; let px = if page > 0 { designcraft_render::pdf_page_size(&bytes, page as usize) .map(|(w, h)| (w.round().max(1.0) as u32, h.round().max(1.0) as u32)) - .ok_or_else(|| bad("links", format!("{}: can't read PDF page {}", read.display(), u64::from(page) + 1)))? + .ok_or_else(|| bad("links", format!("{label}: can't read PDF page {}", u64::from(page) + 1)))? } else { px }; @@ -371,7 +403,7 @@ fn relinked_asset(a: &designcraft_doc::Asset, read: &Path, link: &str) -> Result a.data = Arc::new(bytes); a.pixels = Some(px); a.page = page; - a.name = Path::new(link).file_name().map(|n| n.to_string_lossy().to_string()).unwrap_or_else(|| link.to_string()); + a.name = link_file_name(link).to_string(); a.link = Some(link.to_string()); // A placed PDF keeps its crop choice; its box is found on the new file. super::file::crop_pdf(&mut a); @@ -460,6 +492,60 @@ fn relink_folder(s: &mut Session, p: &Value) -> Result { Ok(json!({"relinked": n, "notFound": not_found})) } +/// The most files one `links.relinkFiles` takes (a Links folder is rarely more than a few hundred). +const MAX_RELINK_FILES: usize = 2000; + +fn relink_files(s: &mut Session, p: &Value) -> Result { + const ID: &str = "links.relinkFiles"; + let list = p.get("files").and_then(Value::as_array).ok_or_else(|| bad(ID, "missing files"))?; + if list.len() > MAX_RELINK_FILES { + return Err(bad(ID, format!("at most {MAX_RELINK_FILES} files"))); + } + let mut files: Vec<(String, &str)> = Vec::new(); + for f in list { + let name = f.get("name").and_then(Value::as_str).ok_or_else(|| bad(ID, "each file needs a name"))?; + let b64 = f.get("base64").and_then(Value::as_str).ok_or_else(|| bad(ID, "each file needs base64"))?; + files.push((link_file_name(name).to_string(), b64)); + } + let st = s.doc()?; + let (d, document) = (&st.doc, st.path.as_deref().map(Path::new)); + // Every replacement is built before the edit: a bad file leaves the document as it was. + let mut fresh = Vec::new(); + let mut used = vec![false; files.len()]; + let mut not_found = Vec::new(); + if let Some(aid) = p.get("asset").and_then(Value::as_u64).map(AssetId) { + let a = d.assets.get(&aid).ok_or_else(|| bad(ID, "no such graphic"))?; + let (name, b64) = files.first().ok_or_else(|| bad(ID, "no file"))?; + fresh.push((aid, relinked_bytes(a, name, super::base64_decode(b64))?)); + if let Some(u) = used.first_mut() { + *u = true; + } + } else { + for a in d.assets.values().filter(|a| status(a, document) == "missing") { + let want = a.link.as_deref().map_or(a.name.as_str(), link_file_name); + match files.iter().position(|(n, _)| n.eq_ignore_ascii_case(want) || n.eq_ignore_ascii_case(&a.name)) { + Some(k) => { + let (name, b64) = &files[k]; + fresh.push((a.id, relinked_bytes(a, name, super::base64_decode(b64))?)); + used[k] = true; + } + None => not_found.push(a.name.clone()), + } + } + } + let unused: Vec = files.iter().zip(&used).filter(|(_, u)| !**u).map(|((n, _), _)| n.clone()).collect(); + let n = fresh.len(); + if n > 0 { + s.edit(|d, _| { + for (aid, a) in fresh { + d.assets.insert(aid, a); + } + Ok(()) + })?; + } + Ok(json!({"relinked": n, "notFound": not_found, "unused": unused})) +} + fn update(s: &mut Session, p: &Value) -> Result { let (d, document) = { let st = s.doc()?; @@ -946,6 +1032,61 @@ mod shared_asset_tests { designcraft_render::Rendered { width: w, height: h, pixels: vec![200u8; (w * h * 4) as usize] }.to_png() } + /// Two placed graphics whose linked files were never read (an IDML opened in the browser + /// without its Links folder): missing, with no picture. + fn two_missing() -> (Session, AssetId, AssetId) { + let mut s = Session::new(); + s.execute("file.new", &json!({})).unwrap(); + for (name, x) in [("a.png", 72), ("b.png", 200)] { + let b = super::super::file::base64_encode(&png(4, 4 + x as u32 / 100)); + s.execute("file.place", &json!({"base64": b, "name": name, "x": x, "y": 72})).unwrap(); + s.execute("edit.deselectAll", &json!({})).unwrap(); + } + let ids: Vec = s.doc().unwrap().doc.assets.keys().copied().collect(); + s.edit(|d, _| { + for (k, id) in ids.iter().enumerate() { + let a = Arc::make_mut(d.assets.get_mut(id).unwrap()); + a.link = Some(format!("/Users/someone/Links/Pic{k}.PNG")); + a.name = format!("Pic{k}.PNG"); + a.data = Arc::new(Vec::new()); + } + Ok(()) + }) + .unwrap(); + (s, ids[0], ids[1]) + } + + /// Relinking from files handed over by name (the web build): each missing graphic takes the + /// file of its name in any case, keeping its link's path, in one undo step; a file that + /// matches nothing and a graphic no file matched are reported. + #[test] + fn relinks_missing_graphics_from_files_by_name() { + let (mut s, a, b) = two_missing(); + let st = s.doc().unwrap(); + assert!(st.doc.assets.values().all(|x| status(x, None) == "missing")); + let file = |name: &str, w: u32| json!({"name": name, "base64": super::super::file::base64_encode(&png(w, w))}); + let r = s.execute("links.relinkFiles", &json!({"files": [file("pic0.png", 6), file("other.png", 3)]})).unwrap(); + assert_eq!(r["relinked"], 1); + assert_eq!(r["notFound"], json!(["Pic1.PNG"])); + assert_eq!(r["unused"], json!(["other.png"])); + let d = &s.doc().unwrap().doc; + assert_eq!(d.assets[&a].pixels, Some((6, 6))); + assert_eq!(d.assets[&a].link.as_deref(), Some("/Users/someone/Links/Pic0.PNG"), "the same file keeps its path"); + assert!(d.assets[&b].data.is_empty()); + s.execute("edit.undo", &json!({})).unwrap(); + assert!(s.doc().unwrap().doc.assets[&a].data.is_empty(), "one undo step"); + // One graphic from a chosen file of another name: that name becomes the link. + s.execute("links.relinkFiles", &json!({"asset": b.0, "files": [file("new.png", 5)]})).unwrap(); + let d = &s.doc().unwrap().doc; + assert_eq!((d.assets[&b].pixels, d.assets[&b].link.as_deref(), d.assets[&b].name.as_str()), (Some((5, 5)), Some("new.png"), "new.png")); + // A file that isn't an image changes nothing. + let before = s.doc().unwrap().doc.assets.clone(); + let bad = json!({"name": "pic0.png", "base64": super::super::file::base64_encode(b"not an image")}); + assert!(s.execute("links.relinkFiles", &json!({"files": [bad]})).is_err()); + assert_eq!(s.doc().unwrap().doc.assets, before); + assert!(s.execute("links.relinkFiles", &json!({"files": "x"})).is_err()); + } + #[test] fn placements_of_one_file_share_an_asset_and_saves_drop_replaced_ones() { let mut s = Session::new(); diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index fcb764c5a..78500d1df 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -1013,6 +1013,16 @@ impl DesignApp { Ok(Value::Null) } + /// Ask an asynchronous host (web) for files for `purpose`; they arrive through the inbox. + /// `relink:{asset}` relinks that graphic from the chosen file; `relinkFiles` relinks every + /// missing graphic from the chosen files of the same names. + pub fn request_files(&mut self, purpose: &str) { + let request = self.import_request(purpose); + if let Some(open) = self.services.open_async.as_mut() { + open(request); + } + } + pub fn import_request(&self, purpose: &str) -> ImportRequest { ImportRequest { purpose: purpose.into(), target: self.session.active().map(|d| d.uid) } } @@ -1057,6 +1067,7 @@ impl DesignApp { } let Some(inbox) = self.services.inbox.clone() else { return }; let files = std::mem::take(&mut *inbox.lock().unwrap_or_else(|e| e.into_inner())); + let files = self.relink_from_inbox(files); for file in files { if self.ui.dialog.is_some() { self.status( @@ -1072,6 +1083,66 @@ impl DesignApp { } } + /// Relink graphics from delivered files, returning the files left to import. Files chosen + /// to relink (`relink:{asset}`, `relinkFiles`) and dropped images named like a missing + /// graphic of the document they were dropped on relink, each request's files in one undo + /// step; other dropped files are placed or opened as before. + fn relink_from_inbox(&mut self, files: Vec) -> Vec { + let mut rest = Vec::new(); + // (request, files) in arrival order; a request's files arrive together. + let mut batches: Vec<(ImportRequest, Vec)> = Vec::new(); + for file in files { + let relink = file.request.purpose.starts_with("relink") + || (file.request.purpose == "drop" + && file.request.target.is_some() + && !opens_as_document(&file.name) + && designcraft_render::image_size(&file.bytes).is_some()); + if !relink { + rest.push(file); + continue; + } + match batches.iter_mut().find(|(r, _)| r.purpose == file.request.purpose && r.target == file.request.target) { + Some((_, b)) => b.push(file), + None => batches.push((file.request.clone(), vec![file])), + } + } + for (request, batch) in batches { + let drop = request.purpose == "drop"; + if self.activate_import_target(&request).is_err() { + if drop { + rest.extend(batch); + } + continue; + } + let list: Vec = + batch.iter().map(|f| json!({"name": f.name, "base64": designcraft_engine::cmd::base64_encode(&f.bytes)})).collect(); + let mut params = json!({"files": list}); + if let Some(aid) = request.purpose.strip_prefix("relink:").and_then(|a| a.parse::().ok()) { + params["asset"] = json!(aid); + } + match self.run("links.relinkFiles", params) { + Ok(v) => { + let n = v["relinked"].as_u64().unwrap_or(0); + if n > 0 || !drop { + self.status(crate::i18n::tr(&self.ui.language, "Relinked {count}").replace("{count}", &n.to_string())); + } + // Dropped images that named no missing graphic are placed as before. + if drop { + let unused: Vec<&str> = v["unused"].as_array().map(|a| a.iter().filter_map(Value::as_str).collect()).unwrap_or_default(); + rest.extend(batch.into_iter().filter(|f| unused.iter().any(|u| file_name_of(&f.name) == *u))); + } + } + Err(e) => { + self.status(e); + if drop { + rest.extend(batch); + } + } + } + } + rest + } + fn import_file(&mut self, file: ImportedFile) -> Result { let lower = file.name.to_ascii_lowercase(); if let Some(kind) = file.request.purpose.strip_prefix("styles") { @@ -1717,6 +1788,11 @@ pub fn cjk_features(app: &DesignApp) -> bool { /// Files that open as documents (when dropped or picked) rather than being placed: DesignCraft, /// IDML, and InDesign documents and templates (converted to IDML on open). +/// The last component of a delivered file's name (either kind of separator). +fn file_name_of(name: &str) -> &str { + name.rsplit(['/', '\\']).next().unwrap_or(name) +} + pub fn opens_as_document(name: &str) -> bool { let n = name.to_ascii_lowercase(); [".designcraft", ".idml", ".indd", ".indt"].iter().any(|ext| n.ends_with(ext)) @@ -2800,6 +2876,57 @@ mod browser_import_tests { app.run("file.new", json!({"title": "A"})).unwrap(); app } + /// The placed graphic's link made missing, as an IDML opened in the browser without its + /// Links folder leaves it. + fn make_missing(app: &mut DesignApp) -> designcraft_doc::AssetId { + let aid = *app.session.doc().unwrap().doc.assets.keys().next().unwrap(); + app.session + .edit(|d, _| { + let a = std::sync::Arc::make_mut(d.assets.get_mut(&aid).unwrap()); + a.link = Some("/Users/someone/Links/a.svg".into()); + a.name = "a.svg".into(); + a.data = std::sync::Arc::new(Vec::new()); + Ok(()) + }) + .unwrap(); + aid + } + fn items(app: &DesignApp) -> usize { + app.session.doc().unwrap().doc.spreads.iter().map(|s| s.items.len()).sum() + } + + /// The web build relinks from files it is handed: chosen with Relink to Folder… (several at + /// once) or dropped. A dropped image named like a missing graphic relinks it instead of + /// being placed; one named like nothing is placed as before. + #[test] + fn delivered_files_relink_missing_graphics() { + let mut app = app(); + let b64 = designcraft_engine::cmd::base64_encode(&image()); + app.run("file.place", json!({"name": "a.svg", "base64": b64, "x": 50, "y": 50})).unwrap(); + let aid = make_missing(&mut app); + let n = items(&app); + let has_data = |app: &DesignApp| !app.session.doc().unwrap().doc.assets[&aid].data.is_empty(); + let request = app.import_request("relinkFiles"); + deliver(&mut app, request, "a.svg", image()); + assert!(has_data(&app), "{}", app.ui.status); + assert_eq!(app.session.doc().unwrap().doc.assets[&aid].link.as_deref(), Some("/Users/someone/Links/a.svg")); + make_missing(&mut app); + let request = app.import_request("drop"); + deliver(&mut app, request, "A.SVG", image()); + assert!(has_data(&app), "a dropped file named like the missing graphic relinks it"); + assert_eq!(items(&app), n, "nothing new is placed"); + // Nothing selected, so a placed image gets a frame of its own. + app.run("edit.deselectAll", json!({})).unwrap(); + let request = app.import_request("drop"); + deliver(&mut app, request, "other.svg", image()); + assert_eq!(items(&app), n + 1, "a dropped image that names no missing graphic is placed"); + // Relink… for one graphic: the chosen file, whatever its name. + make_missing(&mut app); + let request = app.import_request(&format!("relink:{}", aid.0)); + deliver(&mut app, request, "renamed.svg", image()); + assert_eq!(app.session.doc().unwrap().doc.assets[&aid].link.as_deref(), Some("renamed.svg")); + } + fn deliver(app: &mut DesignApp, request: ImportRequest, name: &str, bytes: Vec) { app.services.inbox.as_ref().unwrap().lock().unwrap().push(ImportedFile { request, name: name.into(), bytes }); app.drain_inbox(); diff --git a/crates/ui-egui/src/panels/properties.rs b/crates/ui-egui/src/panels/properties.rs index fded030b9..dbe59ce07 100644 --- a/crates/ui-egui/src/panels/properties.rs +++ b/crates/ui-egui/src/panels/properties.rs @@ -2411,10 +2411,15 @@ pub fn links_panel(app: &mut DesignApp, ui: &mut egui::Ui) { p[k] = v; p }; - if ui.button(crate::rtl::widget(ui, crate::i18n::tr(&app.ui.language, "Relink…"))).clicked() - && let Some(path) = app.services.pick_open.as_mut().and_then(|pick| pick("relink")) - { - let _ = app.run("links.relink", with("path", json!(path))); + if ui.button(crate::rtl::widget(ui, crate::i18n::tr(&app.ui.language, "Relink…"))).clicked() { + if app.services.pick_open.is_some() { + if let Some(path) = app.services.pick_open.as_mut().and_then(|pick| pick("relink")) { + let _ = app.run("links.relink", with("path", json!(path))); + } + } else if !is_text { + // The browser hands over the chosen file's bytes, not a path. + app.request_files(&format!("relink:{aid}")); + } } if ui.button(crate::rtl::widget(ui, crate::i18n::tr(&app.ui.language, "Go To"))).clicked() { let _ = app.run("links.goTo", target.clone()); @@ -2439,19 +2444,26 @@ pub fn links_panel(app: &mut DesignApp, ui: &mut egui::Ui) { } }); ui.horizontal(|ui| { - // Choose any file in the folder: missing links are looked up there by name. + // Choose any file in the folder: missing links are looked up there by name. In the + // browser, which gives no folders, choose the files themselves. + let paths = app.services.pick_open.is_some(); + let hint = if paths { "Pick a file in the folder holding the moved graphics" } else { "Choose the moved graphics (several at once)" }; if ui .button(crate::i18n::tr(&app.ui.language, "Relink to Folder…")) .on_hover_ui(|ui| { - crate::rtl::label(ui, crate::i18n::tr(&app.ui.language, "Pick a file in the folder holding the moved graphics")); + crate::rtl::label(ui, crate::i18n::tr(&app.ui.language, hint)); }) .clicked() - && let Some(path) = app.services.pick_open.as_mut().and_then(|pick| pick("relink")) - && let Some(dir) = std::path::Path::new(&path).parent() { - let r = app.run("links.relinkFolder", json!({"dir": dir.to_string_lossy()})); - if let Ok(v) = r { - app.status(crate::i18n::tr(&app.ui.language, "Relinked {count}").replace("{count}", &v["relinked"].to_string())); + if !paths { + app.request_files("relinkFiles"); + } else if let Some(path) = app.services.pick_open.as_mut().and_then(|pick| pick("relink")) + && let Some(dir) = std::path::Path::new(&path).parent() + { + let r = app.run("links.relinkFolder", json!({"dir": dir.to_string_lossy()})); + if let Ok(v) = r { + app.status(crate::i18n::tr(&app.ui.language, "Relinked {count}").replace("{count}", &v["relinked"].to_string())); + } } } }); From f82a4be357d0679019cb995301066db4129da33e Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 18 Oct 2026 01:38:23 +0000 Subject: [PATCH 04/77] Web: Relink to Folder picks a folder The browser's file picker for Relink to Folder took single images. It now opens the browser's folder picker (input webkitdirectory) and hands over every graphic in the chosen folder, which relink by name in one step. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CgGsJkVe5GYG9qK6VFdECa --- apps/designcraft-web/Cargo.toml | 2 +- apps/designcraft-web/src/web.rs | 70 +++++++++++++++++++++---- crates/ui-egui/src/panels/properties.rs | 4 +- 3 files changed, 62 insertions(+), 14 deletions(-) diff --git a/apps/designcraft-web/Cargo.toml b/apps/designcraft-web/Cargo.toml index 1667e69e3..e6430f325 100644 --- a/apps/designcraft-web/Cargo.toml +++ b/apps/designcraft-web/Cargo.toml @@ -30,4 +30,4 @@ rfd = { workspace = true } wasm-bindgen = "0.2" wasm-bindgen-futures = "0.4" js-sys = "0.3" -web-sys = { version = "0.3", features = ["Event", "EventTarget", "Window", "Document", "Element", "HtmlElement", "HtmlCanvasElement", "HtmlAnchorElement", "Blob", "BlobPropertyBag", "Url", "Location", "CssStyleDeclaration"] } +web-sys = { version = "0.3", features = ["Event", "EventTarget", "Window", "Document", "Element", "HtmlElement", "HtmlCanvasElement", "HtmlAnchorElement", "Blob", "BlobPropertyBag", "Url", "Location", "CssStyleDeclaration", "HtmlInputElement", "FileList", "File"] } diff --git a/apps/designcraft-web/src/web.rs b/apps/designcraft-web/src/web.rs index 438c8a99d..34e680b38 100644 --- a/apps/designcraft-web/src/web.rs +++ b/apps/designcraft-web/src/web.rs @@ -404,20 +404,25 @@ fn services(inbox: Inbox, ctx: egui::Context) -> Services { } else { rfd::AsyncFileDialog::new().add_filter("DesignCraft, IDML or InDesign", DOC_EXTS) }; - // Relink to Folder: the browser gives no folders, so the moved files themselves, as many - // as are chosen; they arrive together, to relink in one step. - let several = request.purpose == "relinkFiles"; + // Relink to Folder: the browser's folder picker hands over every graphic in the + // chosen folder; they arrive together, to relink in one step. + if request.purpose == "relinkFiles" { + wasm_bindgen_futures::spawn_local(async move { + let files: Vec = + pick_folder_files().await.into_iter().map(|(name, bytes)| ImportedFile { request: request.clone(), name, bytes }).collect(); + if !files.is_empty() { + inbox.lock().unwrap_or_else(|e| e.into_inner()).extend(files); + ctx.request_repaint(); + } + }); + return; + } wasm_bindgen_futures::spawn_local(async move { - let picked = if several { dialog.pick_files().await } else { dialog.pick_file().await.map(|f| vec![f]) }; - let Some(picked) = picked else { + let Some(file) = dialog.pick_file().await else { return; }; - let mut files = Vec::with_capacity(picked.len()); - for file in picked { - let bytes = file.read().await; - files.push(ImportedFile { request: request.clone(), name: file.file_name(), bytes }); - } - inbox.lock().unwrap_or_else(|e| e.into_inner()).extend(files); + let bytes = file.read().await; + inbox.lock().unwrap_or_else(|e| e.into_inner()).push(ImportedFile { request, name: file.file_name(), bytes }); ctx.request_repaint(); }); })), @@ -430,6 +435,49 @@ fn services(inbox: Inbox, ctx: egui::Context) -> Services { } } +/// The most files a chosen folder hands over for relinking. +const MAX_FOLDER_FILES: u32 = 2000; + +/// The graphics in a folder the user chooses with the browser's folder picker (an ``, which every current browser supports), with their names. Empty +/// when the picker is cancelled or can't be shown; files that aren't graphics are skipped. +async fn pick_folder_files() -> Vec<(String, Vec)> { + let Some(document) = web_sys::window().and_then(|w| w.document()) else { return Vec::new() }; + let Some(input) = document.create_element("input").ok().and_then(|e| e.dyn_into::().ok()) else { + return Vec::new(); + }; + input.set_type("file"); + input.set_multiple(true); + if input.set_attribute("webkitdirectory", "").is_err() { + return Vec::new(); + } + // Settles when files are chosen or the picker is cancelled. + let chosen = js_sys::Promise::new(&mut |resolve, _reject| { + let done = wasm_bindgen::closure::Closure::::new(move || { + let _ = resolve.call0(&wasm_bindgen::JsValue::UNDEFINED); + }); + let _ = input.add_event_listener_with_callback("change", done.as_ref().unchecked_ref()); + let _ = input.add_event_listener_with_callback("cancel", done.as_ref().unchecked_ref()); + done.forget(); + }); + input.click(); + let _ = wasm_bindgen_futures::JsFuture::from(chosen).await; + let Some(list) = input.files() else { return Vec::new() }; + let mut out = Vec::new(); + for i in 0..list.length().min(MAX_FOLDER_FILES) { + let Some(file) = list.get(i) else { continue }; + let name = file.name(); + let graphic = name.rsplit_once('.').is_some_and(|(_, ext)| IMAGE_EXTS.iter().any(|e| e.eq_ignore_ascii_case(ext))); + if !graphic { + continue; + } + if let Ok(buf) = wasm_bindgen_futures::JsFuture::from(file.array_buffer()).await { + out.push((name, js_sys::Uint8Array::new(&buf).to_vec())); + } + } + out +} + /// Trigger a browser download of `bytes` named after the last component of `path`. fn download(path: &str, bytes: &[u8]) -> Result<(), String> { let js = |e: wasm_bindgen::JsValue| format!("{e:?}"); diff --git a/crates/ui-egui/src/panels/properties.rs b/crates/ui-egui/src/panels/properties.rs index dbe59ce07..bf109527d 100644 --- a/crates/ui-egui/src/panels/properties.rs +++ b/crates/ui-egui/src/panels/properties.rs @@ -2445,9 +2445,9 @@ pub fn links_panel(app: &mut DesignApp, ui: &mut egui::Ui) { }); ui.horizontal(|ui| { // Choose any file in the folder: missing links are looked up there by name. In the - // browser, which gives no folders, choose the files themselves. + // browser, which hands over files rather than paths, choose the folder itself. let paths = app.services.pick_open.is_some(); - let hint = if paths { "Pick a file in the folder holding the moved graphics" } else { "Choose the moved graphics (several at once)" }; + let hint = if paths { "Pick a file in the folder holding the moved graphics" } else { "Choose the folder holding the moved graphics" }; if ui .button(crate::i18n::tr(&app.ui.language, "Relink to Folder…")) .on_hover_ui(|ui| { From e349e21ff6ca59b6dfd08eadff50d65e8c8fce21 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 19 Oct 2026 17:41:37 +0000 Subject: [PATCH 05/77] Web relink: tell same-named files apart; read only the missing graphics MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Review fixes for links.relinkFiles and the web folder picker: - Files of the same name in different folders of a chosen folder no longer relink to whichever came first. Each file carries its path in the folder (webkitRelativePath), and each missing graphic takes the file whose path ends most like its link. Where nothing tells them apart (two equally likely files, or one file named only like graphics linking to different files) the graphic stays missing and is reported under `ambiguous`. Graphics linking to the same file still share it. - The folder picker reads only graphics named like a missing link (the request carries their names), with a graphics-only extension list, counting only accepted files toward the file limit, and within a total byte budget. - ROADMAP: Relink… opens a single-file picker, Relink to Folder… a folder picker. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CgGsJkVe5GYG9qK6VFdECa --- ROADMAP.md | 2 +- apps/designcraft-web/src/web.rs | 48 ++++++++--- crates/engine/src/cmd/links.rs | 144 ++++++++++++++++++++++++++++---- crates/ui-egui/src/dialogs.rs | 2 +- crates/ui-egui/src/lib.rs | 49 ++++++++++- 5 files changed, 211 insertions(+), 34 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index 1190de362..f8b3fd050 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -348,7 +348,7 @@ list) · [roadmap.md](docs/roadmap.md) (milestones, plan) · [parity-checklist.m Newest first. -- **2026-10-18** · Web build: linked graphics relink from files handed over — Links › Relink… and Relink to Folder… open the browser's file picker (several files at once), and dropped images named like a missing graphic relink it; one undo step per batch. New `links.relinkFiles`. Before, both buttons did nothing in the browser, so an IDML opened without its Links folder had no way to get its pictures. No readiness percentage change. +- **2026-10-18** · Web build: linked graphics relink from files handed over — Links › Relink… opens the browser's file picker for one graphic, Relink to Folder… its folder picker (each missing graphic takes the file whose path in the folder ends like its link; same-named files nothing tells apart are left missing and reported), and dropped images named like a missing graphic relink it; one undo step per batch. New `links.relinkFiles`. Before, both buttons did nothing in the browser, so an IDML opened without its Links folder had no way to get its pictures. No readiness percentage change. - **2026-10-16** · Threading: the loaded text cursor threads into a text frame inside a group (it hit the group and showed it could not thread); a plain click still selects the group (#1075). Gap 27 closed. No readiness percentage change. - **2026-10-16** · Greek text hyphenates. The patterns were never compiled in, so Greek set unhyphenated however narrow the column; `"Greek"`, `"Greek: Greece"`, `el` and `el-GR` all resolve now and ανθρωπος breaks αν-θρω-πος. They are the monotonic patterns (hyph-el-monoton, Dimitrios Filippou, under MIT), which is what polytonic text hyphenates by too. Five of InDesign's ~40 hyphenation languages. No readiness percentage change. - **2026-10-16** · A swatch applied to a placed greyscale or bitmap image colours it, as in InDesign: IDML's `` is read and written, greyscale pixels become a tint of the swatch on opaque white and a bitmap's white lets the frame show through, on screen and in PDF (spot swatches print on their plate). Colour images keep their colours. Applying the swatch from the Swatches panel comes next. No readiness percentage change. diff --git a/apps/designcraft-web/src/web.rs b/apps/designcraft-web/src/web.rs index 34e680b38..0376d4c44 100644 --- a/apps/designcraft-web/src/web.rs +++ b/apps/designcraft-web/src/web.rs @@ -28,6 +28,8 @@ const IMAGE_EXTS: &[&str] = &[ "idml", "designcraft", ]; +/// Graphics a relink reads (the image and vector formats placing accepts). +const GRAPHIC_EXTS: &[&str] = &["png", "jpg", "jpeg", "gif", "webp", "tif", "tiff", "bmp", "psd", "svg", "pdf", "ai"]; const CANVAS_ID: &str = "designcraft_canvas"; const LOADING_ID: &str = "designcraft_loading"; @@ -399,7 +401,9 @@ fn services(inbox: Inbox, ctx: egui::Context) -> Services { let ctx = ctx.clone(); let dialog = if request.purpose == "swatches" { rfd::AsyncFileDialog::new().add_filter("Swatch Exchange (ASE)", &["ase"]) - } else if request.purpose == "place" || request.purpose.starts_with("relink") { + } else if request.purpose.starts_with("relink") { + rfd::AsyncFileDialog::new().add_filter("Graphics", GRAPHIC_EXTS) + } else if request.purpose == "place" { rfd::AsyncFileDialog::new().add_filter("Graphics", IMAGE_EXTS) } else { rfd::AsyncFileDialog::new().add_filter("DesignCraft, IDML or InDesign", DOC_EXTS) @@ -408,8 +412,11 @@ fn services(inbox: Inbox, ctx: egui::Context) -> Services { // chosen folder; they arrive together, to relink in one step. if request.purpose == "relinkFiles" { wasm_bindgen_futures::spawn_local(async move { - let files: Vec = - pick_folder_files().await.into_iter().map(|(name, bytes)| ImportedFile { request: request.clone(), name, bytes }).collect(); + let files: Vec = pick_folder_files(&request.wanted) + .await + .into_iter() + .map(|(name, bytes)| ImportedFile { request: request.clone(), name, bytes }) + .collect(); if !files.is_empty() { inbox.lock().unwrap_or_else(|e| e.into_inner()).extend(files); ctx.request_repaint(); @@ -435,13 +442,16 @@ fn services(inbox: Inbox, ctx: egui::Context) -> Services { } } -/// The most files a chosen folder hands over for relinking. -const MAX_FOLDER_FILES: u32 = 2000; +/// The most files a chosen folder hands over for relinking, and the most bytes in all. +const MAX_FOLDER_FILES: usize = 2000; +const MAX_FOLDER_BYTES: f64 = 1024.0 * 1024.0 * 1024.0; -/// The graphics in a folder the user chooses with the browser's folder picker (an ``, which every current browser supports), with their names. Empty -/// when the picker is cancelled or can't be shown; files that aren't graphics are skipped. -async fn pick_folder_files() -> Vec<(String, Vec)> { +/// The graphics named in `wanted` (lower-case file names; empty: every graphic) in a folder the +/// user chooses with the browser's folder picker (an ``, which +/// every current browser supports), each named by its path in the folder. Only those files are +/// read, up to [`MAX_FOLDER_FILES`] and [`MAX_FOLDER_BYTES`]; empty when the picker is cancelled +/// or can't be shown. +async fn pick_folder_files(wanted: &[String]) -> Vec<(String, Vec)> { let Some(document) = web_sys::window().and_then(|w| w.document()) else { return Vec::new() }; let Some(input) = document.create_element("input").ok().and_then(|e| e.dyn_into::().ok()) else { return Vec::new(); @@ -464,15 +474,27 @@ async fn pick_folder_files() -> Vec<(String, Vec)> { let _ = wasm_bindgen_futures::JsFuture::from(chosen).await; let Some(list) = input.files() else { return Vec::new() }; let mut out = Vec::new(); - for i in 0..list.length().min(MAX_FOLDER_FILES) { + let mut bytes = 0.0; + for i in 0..list.length() { let Some(file) = list.get(i) else { continue }; let name = file.name(); - let graphic = name.rsplit_once('.').is_some_and(|(_, ext)| IMAGE_EXTS.iter().any(|e| e.eq_ignore_ascii_case(ext))); - if !graphic { + let graphic = name.rsplit_once('.').is_some_and(|(_, ext)| GRAPHIC_EXTS.iter().any(|e| e.eq_ignore_ascii_case(ext))); + if !graphic || !(wanted.is_empty() || wanted.contains(&name.to_lowercase())) { continue; } + if out.len() >= MAX_FOLDER_FILES || bytes + file.size() > MAX_FOLDER_BYTES { + log::warn!("Relink to Folder: more graphics than can be read at once; the rest are left"); + break; + } + bytes += file.size(); + // Its path within the chosen folder tells same-named files in different folders apart. + let path = js_sys::Reflect::get(&file, &wasm_bindgen::JsValue::from_str("webkitRelativePath")) + .ok() + .and_then(|v| v.as_string()) + .filter(|p| !p.is_empty()) + .unwrap_or(name); if let Ok(buf) = wasm_bindgen_futures::JsFuture::from(file.array_buffer()).await { - out.push((name, js_sys::Uint8Array::new(&buf).to_vec())); + out.push((path, js_sys::Uint8Array::new(&buf).to_vec())); } } out diff --git a/crates/engine/src/cmd/links.rs b/crates/engine/src/cmd/links.rs index e38e0fcc2..34fc7330c 100644 --- a/crates/engine/src/cmd/links.rs +++ b/crates/engine/src/cmd/links.rs @@ -52,7 +52,7 @@ pub fn specs() -> Vec { "Relink to Files", [], None, - "{files: [{name, base64}], asset?: id} — relink from files handed over by name (the web build's file picker and drops, which give no path): with `asset`, that graphic from the first file; otherwise every missing graphic from the file of the same name (any case), all in one undo step. A file named like the link keeps the link's path → {relinked, notFound: [missing graphics no file matched], unused: [files that matched nothing]}", + "{files: [{name, base64, path?: the file's path within a chosen folder}], asset?: id} — relink from files handed over by name (the web build's file picker and drops, which give no path on disk): with `asset`, that graphic from the first file; otherwise each missing graphic from the file whose path ends most like its link (the same name at least, any case), all in one undo step — a graphic those can't tell apart (two equally likely files, or one file named only like graphics linking to different files) stays missing. A file named like the link keeps the link's path → {relinked, notFound: [names no file matched], ambiguous: [names left missing], unused: [files that matched nothing]}", has_doc, relink_files ), @@ -495,41 +495,99 @@ fn relink_folder(s: &mut Session, p: &Value) -> Result { /// The most files one `links.relinkFiles` takes (a Links folder is rarely more than a few hundred). const MAX_RELINK_FILES: usize = 2000; +/// The path components of a link or a file's path in a chosen folder, either separator. +fn path_parts(path: &str) -> Vec<&str> { + path.split(['/', '\\']).filter(|c| !c.is_empty()).collect() +} + +/// How many trailing path components `file` shares with `link` (any case): 1 for the file name +/// alone, more when its folders match the link's too. +fn shared_tail(file: &str, link: &str) -> usize { + path_parts(file).iter().rev().zip(path_parts(link).iter().rev()).take_while(|(a, b)| a.eq_ignore_ascii_case(b)).count() +} + +/// Which handed-over file each missing graphic takes (`links.relinkFiles` without `asset`). +/// A graphic takes the file whose path ends most like its link: the same name at least. Where +/// that can't tell files apart — two files of the graphic's name equally like its link, or one +/// file named only like two graphics whose links name different files — the graphic is left +/// missing and reported, rather than given another file's picture. Graphics linking to the same +/// file share it. +fn match_files(missing: &[(AssetId, String)], files: &[(String, String)]) -> (Vec<(AssetId, usize)>, Vec, Vec) { + let mut chosen = Vec::new(); + let mut not_found = Vec::new(); + let mut ambiguous = Vec::new(); + let mut picks: Vec<(AssetId, usize, usize, &str)> = Vec::new(); + for (aid, link) in missing { + let scores: Vec<(usize, usize)> = + files.iter().enumerate().map(|(k, (_, path))| (k, shared_tail(path, link))).filter(|(_, n)| *n > 0).collect(); + let best = scores.iter().map(|(_, n)| *n).max().unwrap_or(0); + let top: Vec = scores.iter().filter(|(_, n)| *n == best).map(|(k, _)| *k).collect(); + match top.as_slice() { + [] => not_found.push(link_file_name(link).to_string()), + [k] => picks.push((*aid, *k, best, link.as_str())), + _ => ambiguous.push(link_file_name(link).to_string()), + } + } + let same = |x: &str, y: &str| path_parts(x).iter().map(|c| c.to_ascii_lowercase()).eq(path_parts(y).iter().map(|c| c.to_ascii_lowercase())); + for (aid, k, score, link) in &picks { + let rivals = picks.iter().filter(|(other, k2, _, _)| other != aid && k2 == k); + let top = rivals.clone().map(|(_, _, n, _)| *n).max().unwrap_or(0); + if top > *score { + // The file ends more like another graphic's link: it is that graphic's. + not_found.push(link_file_name(link).to_string()); + } else if rivals.filter(|(_, _, n, _)| *n == *score).any(|(_, _, _, link2)| !same(link2, link)) { + // Equally like graphics linking to different files: which it is can't be told. + ambiguous.push(link_file_name(link).to_string()); + } else { + chosen.push((*aid, *k)); + } + } + (chosen, not_found, ambiguous) +} + fn relink_files(s: &mut Session, p: &Value) -> Result { const ID: &str = "links.relinkFiles"; let list = p.get("files").and_then(Value::as_array).ok_or_else(|| bad(ID, "missing files"))?; if list.len() > MAX_RELINK_FILES { return Err(bad(ID, format!("at most {MAX_RELINK_FILES} files"))); } - let mut files: Vec<(String, &str)> = Vec::new(); + // (file name, path within the chosen folder: the name when there is none, base64) + let mut files: Vec<(String, String)> = Vec::new(); + let mut data: Vec<&str> = Vec::new(); for f in list { let name = f.get("name").and_then(Value::as_str).ok_or_else(|| bad(ID, "each file needs a name"))?; let b64 = f.get("base64").and_then(Value::as_str).ok_or_else(|| bad(ID, "each file needs base64"))?; - files.push((link_file_name(name).to_string(), b64)); + let path = f.get("path").and_then(Value::as_str).filter(|p| !p.is_empty()).unwrap_or(name); + files.push((link_file_name(name).to_string(), path.to_string())); + data.push(b64); } let st = s.doc()?; let (d, document) = (&st.doc, st.path.as_deref().map(Path::new)); // Every replacement is built before the edit: a bad file leaves the document as it was. let mut fresh = Vec::new(); let mut used = vec![false; files.len()]; - let mut not_found = Vec::new(); + let (mut not_found, mut ambiguous) = (Vec::new(), Vec::new()); if let Some(aid) = p.get("asset").and_then(Value::as_u64).map(AssetId) { let a = d.assets.get(&aid).ok_or_else(|| bad(ID, "no such graphic"))?; - let (name, b64) = files.first().ok_or_else(|| bad(ID, "no file"))?; + let ((name, _), b64) = files.first().zip(data.first()).ok_or_else(|| bad(ID, "no file"))?; fresh.push((aid, relinked_bytes(a, name, super::base64_decode(b64))?)); if let Some(u) = used.first_mut() { *u = true; } } else { - for a in d.assets.values().filter(|a| status(a, document) == "missing") { - let want = a.link.as_deref().map_or(a.name.as_str(), link_file_name); - match files.iter().position(|(n, _)| n.eq_ignore_ascii_case(want) || n.eq_ignore_ascii_case(&a.name)) { - Some(k) => { - let (name, b64) = &files[k]; - fresh.push((a.id, relinked_bytes(a, name, super::base64_decode(b64))?)); - used[k] = true; - } - None => not_found.push(a.name.clone()), + let missing: Vec<(AssetId, String)> = d + .assets + .values() + .filter(|a| status(a, document) == "missing") + .map(|a| (a.id, a.link.clone().unwrap_or_else(|| a.name.clone()))) + .collect(); + let chosen; + (chosen, not_found, ambiguous) = match_files(&missing, &files); + for (aid, k) in chosen { + let (Some(a), Some((name, _)), Some(b64)) = (d.assets.get(&aid), files.get(k), data.get(k)) else { continue }; + fresh.push((aid, relinked_bytes(a, name, super::base64_decode(b64))?)); + if let Some(u) = used.get_mut(k) { + *u = true; } } } @@ -543,7 +601,7 @@ fn relink_files(s: &mut Session, p: &Value) -> Result { Ok(()) })?; } - Ok(json!({"relinked": n, "notFound": not_found, "unused": unused})) + Ok(json!({"relinked": n, "notFound": not_found, "ambiguous": ambiguous, "unused": unused})) } fn update(s: &mut Session, p: &Value) -> Result { @@ -1056,6 +1114,62 @@ mod shared_asset_tests { (s, ids[0], ids[1]) } + /// Two missing graphics linked to `links`, as [`two_missing`] but with the given links. + fn missing_with(links: [&str; 2]) -> (Session, AssetId, AssetId) { + let (mut s, a, b) = two_missing(); + s.edit(|d, _| { + for (id, link) in [(a, links[0]), (b, links[1])] { + let x = Arc::make_mut(d.assets.get_mut(&id).unwrap()); + x.link = Some(link.into()); + x.name = link_file_name(link).into(); + } + Ok(()) + }) + .unwrap(); + (s, a, b) + } + + /// Files of the same name in different folders of a chosen folder: each missing graphic takes + /// the one whose path ends like its link; where nothing tells them apart, the graphics stay + /// missing and are reported rather than given another graphic's picture. Graphics linking to + /// the same file share it. + #[test] + fn same_named_files_relink_by_folder_or_not_at_all() { + let file = |name: &str, path: &str, w: u32| json!({"name": name, "path": path, "base64": super::super::file::base64_encode(&png(w, w))}); + let px = |s: &Session, id: AssetId| s.doc().unwrap().doc.assets[&id].pixels; + let links = ["/Users/x/Vol38/Links/brand-a/logo.png", "/Users/x/Vol38/Links/brand-b/logo.png"]; + // Their folders tell them apart. + let (mut s, a, b) = missing_with(links); + let r = s + .execute( + "links.relinkFiles", + &json!({"files": [file("logo.png", "Links/brand-b/logo.png", 5), file("logo.png", "Links/brand-a/logo.png", 6)]}), + ) + .unwrap(); + assert_eq!(r["relinked"], 2); + assert_eq!((px(&s, a), px(&s, b)), (Some((6, 6)), Some((5, 5)))); + // Two files named alike with no folders: neither graphic can tell which is its own. + let (mut s, a, b) = missing_with(links); + let r = s.execute("links.relinkFiles", &json!({"files": [file("logo.png", "logo.png", 5), file("logo.png", "logo.png", 6)]})).unwrap(); + assert_eq!(r["relinked"], 0); + assert_eq!(r["ambiguous"], json!(["logo.png", "logo.png"])); + assert!(s.doc().unwrap().doc.assets[&a].data.is_empty() && s.doc().unwrap().doc.assets[&b].data.is_empty()); + // One file named like both, which link to different files: it can't be both. + let (mut s, a, _) = missing_with(links); + let r = s.execute("links.relinkFiles", &json!({"files": [file("logo.png", "logo.png", 5)]})).unwrap(); + assert_eq!((r["relinked"].as_u64(), r["ambiguous"].as_array().map(Vec::len)), (Some(0), Some(2))); + assert!(s.doc().unwrap().doc.assets[&a].data.is_empty()); + // ...but with its folder it is brand-b's, and brand-a's stays missing. + let r = s.execute("links.relinkFiles", &json!({"files": [file("logo.png", "brand-b/logo.png", 5)]})).unwrap(); + assert_eq!(r["relinked"], 1); + assert_eq!((r["notFound"].clone(), r["ambiguous"].clone()), (json!(["logo.png"]), json!([])), "brand-b's file isn't brand-a's"); + // Two graphics linking to the same file (another page of it, say) share it. + let (mut s, a, b) = missing_with(["/Users/x/Links/logo.png", "/Users/x/Links/logo.png"]); + let r = s.execute("links.relinkFiles", &json!({"files": [file("logo.png", "logo.png", 5)]})).unwrap(); + assert_eq!(r["relinked"], 2); + assert_eq!((px(&s, a), px(&s, b)), (Some((5, 5)), Some((5, 5)))); + } + /// Relinking from files handed over by name (the web build): each missing graphic takes the /// file of its name in any case, keeping its link's path, in one undo step; a file that /// matches nothing and a graphic no file matched are reported. diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs index 358416a4b..9330c632f 100644 --- a/crates/ui-egui/src/dialogs.rs +++ b/crates/ui-egui/src/dialogs.rs @@ -3270,7 +3270,7 @@ pub fn confirm(app: &mut DesignApp) -> Result { return app.confirm_pdf_import(d.n("page").unwrap_or(1.0).max(1.0) as u64, if crop.is_empty() { "crop".into() } else { crop }); } if let Some(target) = d.fields.get("target").and_then(Value::as_u64) { - app.activate_import_target(&crate::ImportRequest { purpose: "place".into(), target: Some(target) })?; + app.activate_import_target(&crate::ImportRequest { purpose: "place".into(), target: Some(target), wanted: Vec::new() })?; } app.place_file(json!({"path": d.s("path"), "pdfPage": d.n("page").unwrap_or(1.0).max(1.0) as u64, "pdfCrop": if crop.is_empty() { "crop".to_string() } else { crop }})) } diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index 78500d1df..20d972f32 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -52,6 +52,9 @@ pub type PickFn = Box Option>; pub struct ImportRequest { pub purpose: String, pub target: Option, + /// File names wanted, lower case (Relink to Folder: the missing graphics' names), so the host + /// reads only those from a chosen folder. Empty: any. + pub wanted: Vec, } pub struct ImportedFile { pub request: ImportRequest, @@ -1017,14 +1020,24 @@ impl DesignApp { /// `relink:{asset}` relinks that graphic from the chosen file; `relinkFiles` relinks every /// missing graphic from the chosen files of the same names. pub fn request_files(&mut self, purpose: &str) { - let request = self.import_request(purpose); + let mut request = self.import_request(purpose); + if purpose == "relinkFiles" { + // Only the missing graphics' files are read from the chosen folder. + let rows = self.session.execute("links.list", &json!({})).ok().and_then(|v| v.as_array().cloned()).unwrap_or_default(); + request.wanted = rows + .iter() + .filter(|r| r["asset"].is_u64() && r["status"] == "missing") + .filter_map(|r| r["path"].as_str().or(r["name"].as_str())) + .map(|p| file_name_of(p).to_lowercase()) + .collect(); + } if let Some(open) = self.services.open_async.as_mut() { open(request); } } pub fn import_request(&self, purpose: &str) -> ImportRequest { - ImportRequest { purpose: purpose.into(), target: self.session.active().map(|d| d.uid) } + ImportRequest { purpose: purpose.into(), target: self.session.active().map(|d| d.uid), wanted: Vec::new() } } pub(crate) fn activate_import_target(&mut self, request: &ImportRequest) -> Result<(), String> { @@ -1114,8 +1127,12 @@ impl DesignApp { } continue; } - let list: Vec = - batch.iter().map(|f| json!({"name": f.name, "base64": designcraft_engine::cmd::base64_encode(&f.bytes)})).collect(); + // A file from a chosen folder is named by its path in it (which tells same-named + // files apart). + let list: Vec = batch + .iter() + .map(|f| json!({"name": file_name_of(&f.name), "path": f.name, "base64": designcraft_engine::cmd::base64_encode(&f.bytes)})) + .collect(); let mut params = json!({"files": list}); if let Some(aid) = request.purpose.strip_prefix("relink:").and_then(|a| a.parse::().ok()) { params["asset"] = json!(aid); @@ -2895,6 +2912,30 @@ mod browser_import_tests { app.session.doc().unwrap().doc.spreads.iter().map(|s| s.items.len()).sum() } + /// Relink to Folder asks the host only for the missing graphics' files, and a chosen folder's + /// files arrive named by their paths in it, which tell same-named files apart. + #[test] + fn relink_to_folder_asks_for_the_missing_names_and_matches_by_path() { + let asked = std::rc::Rc::new(std::cell::RefCell::new(Vec::new())); + let mut app = app(); + let seen = asked.clone(); + app.services.open_async = Some(Box::new(move |r: ImportRequest| seen.borrow_mut().push(r))); + let b64 = designcraft_engine::cmd::base64_encode(&image()); + app.run("file.place", json!({"name": "a.svg", "base64": b64, "x": 50, "y": 50})).unwrap(); + let aid = make_missing(&mut app); + app.request_files("relinkFiles"); + let request = asked.borrow_mut().pop().unwrap(); + assert_eq!(request.wanted, ["a.svg"]); + // The link is /Users/someone/Links/a.svg: the file in a folder named Links is the one. + let wrong = br##""##.to_vec(); + for (name, bytes) in [("Volume/Old/a.svg", wrong), ("Volume/Links/a.svg", image())] { + app.services.inbox.as_ref().unwrap().lock().unwrap().push(ImportedFile { request: request.clone(), name: name.into(), bytes }); + } + app.drain_inbox(); + let a = &app.session.doc().unwrap().doc.assets[&aid]; + assert_eq!(*a.data, image(), "the Links folder's file: {}", app.ui.status); + } + /// The web build relinks from files it is handed: chosen with Relink to Folder… (several at /// once) or dropped. A dropped image named like a missing graphic relinks it instead of /// being placed; one named like nothing is placed as before. From a9a7fc960fd75a4addff57fd541c82c7271f28fd Mon Sep 17 00:00:00 2001 From: moppeeer Date: Wed, 21 Oct 2026 01:16:04 +0200 Subject: [PATCH 06/77] View: link badge on pictures placed from a file Every frame showing a linked file carries a chain on its top edge in its layer colour, as InDesign's link badge; a modified file shows a warning and a missing one a stop, from the Links panel's status. View > Extras > Show/Hide Link Badge (view.linkBadge, ui.set linkBadge) turns them off and Preview hides them. Co-Authored-By: Claude Opus 5.5 --- ROADMAP.md | 1 + crates/ui-egui/src/canvas.rs | 159 +++++++++++++++++++++++++++++++ crates/ui-egui/src/control.rs | 2 + crates/ui-egui/src/i18n.rs | 10 ++ crates/ui-egui/src/i18n/ar.rs | 1 + crates/ui-egui/src/i18n/cs.rs | 1 + crates/ui-egui/src/i18n/de.rs | 1 + crates/ui-egui/src/i18n/it.rs | 1 + crates/ui-egui/src/i18n/ja.rs | 1 + crates/ui-egui/src/i18n/ka.rs | 1 + crates/ui-egui/src/i18n/pl.rs | 1 + crates/ui-egui/src/i18n/pt_br.rs | 1 + crates/ui-egui/src/i18n/ru.rs | 1 + crates/ui-egui/src/i18n/uk.rs | 1 + crates/ui-egui/src/lib.rs | 3 + crates/ui-egui/src/menus.rs | 4 + docs/control-protocol.md | 2 +- docs/parity-checklist.md | 2 +- docs/target-app-parity.md | 2 +- docs/ui-parity.md | 3 +- 20 files changed, 194 insertions(+), 4 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index 0128924c0..26fb33bf5 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -348,6 +348,7 @@ list) · [roadmap.md](docs/roadmap.md) (milestones, plan) · [parity-checklist.m Newest first. +- **2026-10-21** · Link badge: every frame showing a picture placed from a file carries a chain on its top edge, in its layer colour, as in InDesign. A modified file shows a yellow warning and a missing one a red stop, from the Links panel's status. View › Extras › Show/Hide Link Badge (`view.linkBadge`, `ui.set {linkBadge}`) turns them off; Preview hides them. Found in the Learn Skills Daily course, chapter 10. No readiness percentage change. - **2026-10-16** · Type › Reload Fonts (`font.reload`): fonts installed, edited or removed while DesignCraft runs are read again without a restart, and the open documents recompose with them (#328, #547). An edited font file is noticed by its length and modification time; bundled, added and document fonts stay as they are. InDesign does this by itself, so noticing changes automatically is still open (gap 6). No readiness percentage change. - **2026-10-16** · Parents can be deleted from their Pages-panel context menu or `layout.parents.delete {id}`. Applied-page and based-on references are cleared, local override copies survive, and Undo restores the parent. Addresses the deletion portion of #956; no readiness percentage change. - **2026-10-17** · File › Package writes the document's and the IDML's links relative to the package (`Links/logo.png`, `file:Links/logo.png`), so a package holds no path from the machine that made it; opening a document resolves them to the files beside it. Links › Copy Link(s) To still links by full path. (#340). No readiness percentage change. diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs index 8d94f099f..55759ac71 100644 --- a/crates/ui-egui/src/canvas.rs +++ b/crates/ui-egui/src/canvas.rs @@ -571,6 +571,12 @@ pub fn show(app: &mut DesignApp, ui: &mut egui::Ui) { painter.circle_stroke(c, 8.0, Stroke::new(1.5, Color32::from_white_alpha(170))); painter.circle_stroke(c, 4.0, Stroke::new(1.5, Color32::from_white_alpha(170))); } + if app.ui.link_badge { + let status = link_statuses(app, ui.ctx(), &doc); + for (c, badge, col) in link_badges(&doc, &layout, &xf, &status) { + draw_link_badge(&painter, c, badge, col); + } + } } draw_tool_overlays(app, &painter, &xf); ime_output(app, ui.ctx(), &xf); @@ -1164,6 +1170,116 @@ fn selection_color(app: &DesignApp) -> Color32 { st.selection.items.first().and_then(|id| st.doc.item(*id)).map_or(fallback, |it| layer_color(&st.doc, it)) } +/// What a link badge shows: the chain of a linked file, or the trouble the Links panel reports. +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +enum LinkBadge { + Linked, + Modified, + Missing, +} + +/// The Links panel's status of each linked asset ("ok", "modified", "missing"), for the link +/// badges. Checking reads the linked files, so it runs again when the document changes and at +/// most once a second otherwise. +fn link_statuses(app: &mut DesignApp, ctx: &egui::Context, doc: &Document) -> std::sync::Arc> { + type Cached = (u64, u64, f64, std::sync::Arc>); + if !doc.assets.values().any(|a| a.link.is_some()) { + return Default::default(); + } + let Some(st) = app.session.active() else { return Default::default() }; + let (uid, revision) = (st.uid, st.revision); + let now = ctx.input(|i| i.time); + let id = egui::Id::new(("link_badge_status", app.pane)); + if let Some((u, r, at, map)) = ctx.data(|d| d.get_temp::(id)) + && (u, r) == (uid, revision) + && now - at < 1.0 + { + return map; + } + let rows = app.session.execute("links.list", &json!({})).ok().and_then(|v| v.as_array().cloned()).unwrap_or_default(); + let map: std::collections::HashMap = + rows.iter().filter_map(|r| Some((r.get("asset")?.as_u64()?, r.get("status")?.as_str()?.to_string()))).collect(); + let map = std::sync::Arc::new(map); + ctx.data_mut(|d| d.insert_temp(id, (uid, revision, now, map.clone()))); + map +} + +/// View › Extras › Show Link Badge: every frame showing a linked file carries a badge on its top +/// edge, near the left corner, in its layer's colour, as InDesign marks placed files. A modified +/// link shows a warning and a missing one a stop instead, as in the Links panel. Returns each +/// badge's screen centre, kind and colour. +fn link_badges(doc: &Document, layout: &CanvasLayout, xf: &Xf, status: &std::collections::HashMap) -> Vec<(Pos2, LinkBadge, Color32)> { + fn walk( + doc: &Document, + xf: &Xf, + it: &Item, + a: Affine, + status: &std::collections::HashMap, + out: &mut Vec<(Pos2, LinkBadge, Color32)>, + ) { + if it.hidden || doc.layer(it.layer).is_some_and(|l| !l.visible) { + return; + } + match &it.content { + Content::Group { items } => { + for c in items { + walk(doc, xf, c, a * it.xf, status, out); + } + } + Content::Graphic(g) => { + if doc.assets.get(&g.asset).is_none_or(|asset| asset.link.is_none()) { + return; + } + let pts: Vec = path_screen(it, xf, a).into_iter().flatten().collect(); + let Some(first) = pts.first() else { return }; + let r = pts.iter().fold(Rect::from_min_max(*first, *first), |r, p| r.union(Rect::from_min_max(*p, *p))); + let badge = match status.get(&g.asset.0).map(String::as_str) { + Some("missing") => LinkBadge::Missing, + Some("modified") => LinkBadge::Modified, + _ => LinkBadge::Linked, + }; + out.push((pos2((r.left() + 16.0).min(r.center().x), r.top()), badge, layer_color(doc, it))); + } + _ => {} + } + } + let mut out = Vec::new(); + for slot in &layout.slots { + let Some(sp) = doc.spread(slot.spread) else { continue }; + for it in &sp.items { + walk(doc, xf, it, slot.xf, status, &mut out); + } + } + out +} + +/// A link badge centred on `c`: two interlocked links on a light halo, so it reads over any +/// picture; a red stop with a question mark for a missing file, a yellow warning for a modified +/// one. Drawn in code. +fn draw_link_badge(painter: &egui::Painter, c: Pos2, badge: LinkBadge, col: Color32) { + match badge { + LinkBadge::Linked => { + painter.rect_filled(Rect::from_center_size(c, vec2(24.0, 13.0)), 6.5, Color32::from_white_alpha(235)); + let dark = |v: u8| (f32::from(v) * 0.55) as u8; + let ink = Color32::from_rgb(dark(col.r()), dark(col.g()), dark(col.b())); + for dx in [-4.0, 4.0] { + painter.rect_stroke(Rect::from_center_size(c + vec2(dx, 0.0), vec2(12.0, 7.0)), 3.5, Stroke::new(1.8, ink), StrokeKind::Middle); + } + } + LinkBadge::Missing => { + painter.circle_filled(c, 7.0, Color32::WHITE); + painter.circle_filled(c, 6.0, Color32::from_rgb(214, 38, 38)); + painter.text(c, egui::Align2::CENTER_CENTER, "?", egui::FontId::proportional(10.0), Color32::WHITE); + } + LinkBadge::Modified => { + let tri = |h: f32| vec![c + vec2(0.0, -h), c + vec2(h * 1.1, h * 0.8), c + vec2(-h * 1.1, h * 0.8)]; + painter.add(egui::Shape::convex_polygon(tri(7.5), Color32::WHITE, Stroke::NONE)); + painter.add(egui::Shape::convex_polygon(tri(6.0), Color32::from_rgb(250, 200, 30), Stroke::NONE)); + painter.text(c + vec2(0.0, 1.0), egui::Align2::CENTER_CENTER, "!", egui::FontId::proportional(9.0), Color32::BLACK); + } + } +} + fn layer_color(doc: &Document, it: &Item) -> Color32 { doc.layer(it.layer).map(|l| c32(l.color)).unwrap_or(Color32::from_rgb(79, 153, 255)) } @@ -3081,6 +3197,49 @@ mod tests { } } + /// A picture placed from a file carries the link badge on its frame's top edge, near the left + /// corner, as in the tutorial's chapter 10; an embedded picture has none, a missing file shows + /// the stop instead, and View › Extras hides the badges. + #[test] + fn linked_pictures_carry_the_link_badge() { + let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default()); + app.run("file.new", json!({})).unwrap(); + let png = designcraft_render::Rendered { width: 40, height: 20, pixels: vec![200; 40 * 20 * 4] }.to_png(); + let dir = tempfile::tempdir().unwrap(); + let path = dir.path().join("snowflake.png"); + std::fs::write(&path, &png).unwrap(); + let linked = app.run("frame.create", json!({"rect": [72, 72, 272, 172]})).unwrap()["id"].as_u64().unwrap(); + app.run("file.place", json!({"path": path.to_string_lossy(), "frame": linked})).unwrap(); + let embedded = app.run("frame.create", json!({"rect": [72, 300, 272, 400]})).unwrap()["id"].as_u64().unwrap(); + app.run("file.place", json!({"base64": designcraft_engine::cmd::base64_encode(&png), "name": "e.png", "frame": embedded})).unwrap(); + let ctx = egui::Context::default(); + let xf = Xf::new(Rect::from_min_size(Pos2::ZERO, vec2(1440.0, 900.0)), &View::default()); + let badges = |app: &mut DesignApp| { + let doc = app.session.active().unwrap().doc.clone(); + let status = link_statuses(app, &ctx, &doc); + link_badges(&doc, &CanvasLayout::new(&doc, false), &xf, &status) + }; + let b = badges(&mut app); + assert_eq!(b.len(), 1, "only the linked picture: {b:?}"); + assert_eq!(b[0].1, LinkBadge::Linked); + let doc = app.session.active().unwrap().doc.clone(); + let layout = CanvasLayout::new(&doc, false); + let (a, _) = item_canvas_xf(&doc, &layout, designcraft_doc::ItemId(linked)).unwrap(); + let r = doc.item(designcraft_doc::ItemId(linked)).unwrap().bounds(); + let corner = xf.to_screen(a * Point::new(r.x0, r.y0)); + let d = b[0].0 - corner; + assert!(d.y.abs() < 0.5 && d.x > 0.0 && d.x <= 16.5, "on the top edge near the left corner: {d:?}"); + // The file gone: the badge says so (the check runs again once the document changes). + std::fs::remove_file(&path).unwrap(); + app.run("frame.create", json!({"rect": [400, 400, 420, 420]})).unwrap(); + assert_eq!(badges(&mut app)[0].1, LinkBadge::Missing); + // View › Extras › Hide Link Badge. + assert_eq!(crate::menus::checked(&app, "view.linkBadge", &json!({})), Some(true)); + app.run("view.linkBadge", json!({})).unwrap(); + assert!(!app.ui.link_badge); + assert_eq!(crate::menus::checked(&app, "view.linkBadge", &json!({})), Some(false)); + } + /// Each preview mode's shown area: Preview stops at the trim, Bleed reaches the bleed box and /// Slug the slug box. A slug narrower than the bleed never pulls the edge back in. #[test] diff --git a/crates/ui-egui/src/control.rs b/crates/ui-egui/src/control.rs index 1cb7395c0..d1ce870ec 100644 --- a/crates/ui-egui/src/control.rs +++ b/crates/ui-egui/src/control.rs @@ -327,6 +327,7 @@ fn handle_request(app: &mut DesignApp, ctx: &egui::Context, req: &ControlRequest ("baselineGrid", "view.baselineGrid"), ("documentGrid", "view.documentGrid"), ("textThreads", "view.textThreads"), + ("linkBadge", "view.linkBadge"), ] { if let Some(want) = p.get(k).and_then(Value::as_bool) { let cur = match k { @@ -335,6 +336,7 @@ fn handle_request(app: &mut DesignApp, ctx: &egui::Context, req: &ControlRequest "guides" => app.ui.guides, "baselineGrid" => app.ui.baseline_grid, "documentGrid" => app.ui.document_grid, + "linkBadge" => app.ui.link_badge, _ => app.ui.text_threads, }; if cur != want { diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rs index efe089ef9..39f48938d 100644 --- a/crates/ui-egui/src/i18n.rs +++ b/crates/ui-egui/src/i18n.rs @@ -2099,6 +2099,16 @@ const TABLE: &[(&str, [&str; 5])] = &[ "Show/Hide Text Threads", ["Show/Hide Text Threads", "Afficher/Masquer le chaînage du texte", "Show/Hide Text Threads", "Show/Hide Text Threads", "显示/隐藏文本串接"], ), + ( + "Show/Hide Link Badge", + [ + "Show/Hide Link Badge", + "Afficher/Masquer le badge de lien", + "Mostrar/ocultar distintivo de vínculo", + "Show/Hide Link Badge", + "显示/隐藏链接标记", + ], + ), ("Smooth", ["Smooth", "Lisse", "Smooth", "Smooth", "平滑"]), ("Sort", ["Sort", "Trier", "Sort", "Sort", "排序"]), ( diff --git a/crates/ui-egui/src/i18n/ar.rs b/crates/ui-egui/src/i18n/ar.rs index b050de38b..a6294c723 100644 --- a/crates/ui-egui/src/i18n/ar.rs +++ b/crates/ui-egui/src/i18n/ar.rs @@ -1516,6 +1516,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Rulers", "إظهار/إخفاء المساطر"), ("Show/Hide Tagged Frames", "إظهار/إخفاء الإطارات الموسومة"), ("Show/Hide Text Threads", "إظهار/إخفاء روابط الإطارات النصية"), + ("Show/Hide Link Badge", "إظهار/إخفاء شارة الارتباط"), ("Smooth", "تنعيم"), ("Sort", "فرز"), ("Split Path", "تقسيم المسار"), diff --git a/crates/ui-egui/src/i18n/cs.rs b/crates/ui-egui/src/i18n/cs.rs index e77e72a1c..1414c8c6e 100644 --- a/crates/ui-egui/src/i18n/cs.rs +++ b/crates/ui-egui/src/i18n/cs.rs @@ -674,6 +674,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Rulers", "Zobrazit/skrýt pravítka"), ("Show/Hide Tagged Frames", "Zobrazit/skrýt otagované rámečky"), ("Show/Hide Text Threads", "Zobrazit/skrýt zřetězení textu"), + ("Show/Hide Link Badge", "Zobrazit/skrýt odznak propojení"), ("Smooth", "Vyhladit"), ("Sort", "Seřadit"), ("Split Cell Horizontally", "Rozdělit buňku vodorovně"), diff --git a/crates/ui-egui/src/i18n/de.rs b/crates/ui-egui/src/i18n/de.rs index efc128858..268952a63 100644 --- a/crates/ui-egui/src/i18n/de.rs +++ b/crates/ui-egui/src/i18n/de.rs @@ -725,6 +725,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Rulers", "Lineale ein-/ausblenden"), ("Show/Hide Tagged Frames", "Getaggte Rahmen ein-/ausblenden"), ("Show/Hide Text Threads", "Textverkettungen ein-/ausblenden"), + ("Show/Hide Link Badge", "Verknüpfungssymbol ein-/ausblenden"), ("Smooth", "Glätten"), ("Sort", "Sortieren"), ("Split Cell Horizontally", "Zelle horizontal teilen"), diff --git a/crates/ui-egui/src/i18n/it.rs b/crates/ui-egui/src/i18n/it.rs index a918a9829..135a84977 100644 --- a/crates/ui-egui/src/i18n/it.rs +++ b/crates/ui-egui/src/i18n/it.rs @@ -803,6 +803,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Rulers", "Mostra/nascondi righelli"), ("Show/Hide Tagged Frames", "Mostra/nascondi cornici con tag"), ("Show/Hide Text Threads", "Mostra/nascondi concatenamenti testo"), + ("Show/Hide Link Badge", "Mostra/nascondi badge collegamento"), ("Smooth", "Arrotonda"), ("Sort", "Ordina"), ("Split Cell Horizontally", "Dividi cella orizzontalmente"), diff --git a/crates/ui-egui/src/i18n/ja.rs b/crates/ui-egui/src/i18n/ja.rs index 5647ca940..377251b9d 100644 --- a/crates/ui-egui/src/i18n/ja.rs +++ b/crates/ui-egui/src/i18n/ja.rs @@ -918,6 +918,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Rulers", "定規を表示・非表示"), ("Show/Hide Tagged Frames", "タグ付きフレームを表示・非表示"), ("Show/Hide Text Threads", "テキストフレームの連結を表示・非表示"), + ("Show/Hide Link Badge", "リンクバッジを表示・非表示"), ("Smooth", "平滑化"), ("Sort", "並べ替え"), ("Split Cell Horizontally", "セルを横方向に分割"), diff --git a/crates/ui-egui/src/i18n/ka.rs b/crates/ui-egui/src/i18n/ka.rs index d938c2dc7..1fdf3c937 100644 --- a/crates/ui-egui/src/i18n/ka.rs +++ b/crates/ui-egui/src/i18n/ka.rs @@ -730,6 +730,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Rulers", "სახაზავების ჩვენება/დამალვა"), ("Show/Hide Tagged Frames", "ტეგირებული ჩარჩოების ჩვენება/დამალვა"), ("Show/Hide Text Threads", "ტექსტის კავშირების ჩვენება/დამალვა"), + ("Show/Hide Link Badge", "ბმულის ნიშნის ჩვენება/დამალვა"), ("Smooth", "გლუვი"), ("Sort", "სორტირება"), ("Split Cell Horizontally", "უჯრის ჰორიზონტალურად გაყოფა"), diff --git a/crates/ui-egui/src/i18n/pl.rs b/crates/ui-egui/src/i18n/pl.rs index 68d685d99..54d3eed65 100644 --- a/crates/ui-egui/src/i18n/pl.rs +++ b/crates/ui-egui/src/i18n/pl.rs @@ -681,6 +681,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Rulers", "Pokaż/ukryj linijki"), ("Show/Hide Tagged Frames", "Pokaż/ukryj ramki z tagami"), ("Show/Hide Text Threads", "Pokaż/ukryj powiązania tekstu"), + ("Show/Hide Link Badge", "Pokaż/ukryj znacznik łącza"), ("Smooth", "Wygładź"), ("Sort", "Sortuj"), ("Split Cell Horizontally", "Podziel komórkę w poziomie"), diff --git a/crates/ui-egui/src/i18n/pt_br.rs b/crates/ui-egui/src/i18n/pt_br.rs index 8521de594..6049a8966 100644 --- a/crates/ui-egui/src/i18n/pt_br.rs +++ b/crates/ui-egui/src/i18n/pt_br.rs @@ -1646,6 +1646,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Rulers", "Mostrar/ocultar réguas"), ("Show/Hide Tagged Frames", "Mostrar/ocultar quadros marcados"), ("Show/Hide Text Threads", "Mostrar/ocultar encadeamentos de texto"), + ("Show/Hide Link Badge", "Mostrar/ocultar selo de vínculo"), ("Sort", "Ordenar"), ("Split Path", "Dividir traçado"), ("Step and Repeat…", "Passo e repetição…"), diff --git a/crates/ui-egui/src/i18n/ru.rs b/crates/ui-egui/src/i18n/ru.rs index 251555ca5..c9b77af94 100644 --- a/crates/ui-egui/src/i18n/ru.rs +++ b/crates/ui-egui/src/i18n/ru.rs @@ -661,6 +661,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Rulers", "Показать/скрыть линейки"), ("Show/Hide Tagged Frames", "Показать/скрыть рамки с тегами"), ("Show/Hide Text Threads", "Показать/скрыть связи текстовых рамок"), + ("Show/Hide Link Badge", "Показать/скрыть значок связи"), ("Smooth", "Сгладить"), ("Sort", "Сортировать"), ("Split Cell Horizontally", "Разделить ячейку по горизонтали"), diff --git a/crates/ui-egui/src/i18n/uk.rs b/crates/ui-egui/src/i18n/uk.rs index dd4a1434d..c093c85fb 100644 --- a/crates/ui-egui/src/i18n/uk.rs +++ b/crates/ui-egui/src/i18n/uk.rs @@ -806,6 +806,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Rulers", "Показати/приховати лінійки"), ("Show/Hide Tagged Frames", "Показати/приховати фрейми з тегами"), ("Show/Hide Text Threads", "Показати/приховати зв’язки текстових фреймів"), + ("Show/Hide Link Badge", "Показати/приховати значок зв’язку"), ("Smooth", "Згладити"), ("Sort", "Сортувати"), ("Split Cell Horizontally", "Розділити клітинку горизонтально"), diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index cb98cac7f..2896dfb48 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -198,6 +198,8 @@ pub struct UiState { pub baseline_grid: bool, pub document_grid: bool, pub text_threads: bool, + /// View › Extras › Show Link Badge: the chain on frames showing a linked file. + pub link_badge: bool, pub hidden_characters: bool, /// View › Structure › Show Tagged Frames. pub tagged_frames: bool, @@ -365,6 +367,7 @@ impl Default for UiState { baseline_grid: false, document_grid: false, text_threads: false, + link_badge: true, hidden_characters: false, tagged_frames: false, hidden_menu_items: Vec::new(), diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rs index 79b8b2c4e..9bc6e3ab9 100644 --- a/crates/ui-egui/src/menus.rs +++ b/crates/ui-egui/src/menus.rs @@ -192,6 +192,7 @@ pub const UI_COMMANDS: &[(&str, &str, Option<&str>, &str)] = &[ ("view.baselineGrid", "Show/Hide Baseline Grid", Some("Cmd+Alt+'"), "{}"), ("view.documentGrid", "Show/Hide Document Grid", Some("Cmd+'"), "{}"), ("view.textThreads", "Show/Hide Text Threads", Some("Cmd+Alt+Y"), "{}"), + ("view.linkBadge", "Show/Hide Link Badge", None, "{}"), ("view.hiddenCharacters", "Show Hidden Characters", Some("Cmd+Alt+I"), "{}"), ("view.taggedFrames", "Show/Hide Tagged Frames", None, "{} — XML-tagged frames outlined in their tag colour"), ("window.hidePanels", "Show/Hide Panels", Some("Tab"), "{} — every panel, the Tools panel included"), @@ -808,6 +809,7 @@ pub const MENUS: &[(&str, &[&str])] = &[ ">Extras", "ui:view.frameEdges", "ui:view.textThreads", + "ui:view.linkBadge", "<", ">Grids & Guides", "ui:view.guides", @@ -1523,6 +1525,7 @@ fn run_ui_inner(app: &mut DesignApp, id: &str, p: &Value) -> Option flag(&mut app.ui.text_threads), + "view.linkBadge" => flag(&mut app.ui.link_badge), "view.hiddenCharacters" => flag(&mut app.ui.hidden_characters), "view.taggedFrames" => flag(&mut app.ui.tagged_frames), "window.hidePanels" | "window.hidePanelsExceptTools" => { @@ -2374,6 +2377,7 @@ pub fn checked(app: &DesignApp, id: &str, params: &Value) -> Option { "view.baselineGrid" => app.ui.baseline_grid, "view.documentGrid" => app.ui.document_grid, "view.textThreads" => app.ui.text_threads, + "view.linkBadge" => app.ui.link_badge, "view.hiddenCharacters" => app.ui.hidden_characters, "view.taggedFrames" => app.ui.tagged_frames, "changes.track" => app.session.active().is_some_and(|d| d.doc.settings.track_changes), diff --git a/docs/control-protocol.md b/docs/control-protocol.md index 1dc0eed49..6d2fe79c3 100644 --- a/docs/control-protocol.md +++ b/docs/control-protocol.md @@ -43,7 +43,7 @@ so only enable it while you use it. Transport: `apps/designcraft/src/control_ser | `ui.ime` | `{preedit?, active?: [start, end], commit?}` | Input method events as the system IME sends them: marked text (shown in place, `active` is the clause being converted, in characters) and the committed text (typed as one `text.insert`) | | `ui.paste` | `{text}` | What Ctrl/Cmd+V delivers from the system clipboard: text into the text being edited, or SVG markup (vector art copied in Illustrator, VectorCraft or Figma) as editable paths in the middle of the view | | `ui.move` / `ui.click` / `ui.drag` | screen points, `button?: left\|right\|middle`, `count?: 1–255` (click/drag, default 1), `steps?: positive integer` (drag, default 8) | Real egui pointer input — reaches every widget, menu and panel | -| `ui.set` | `{brightness?, panel?, rulers?, guides?, frameEdges?, baselineGrid?, documentGrid?, textThreads?, screenMode?, zoom?, page?, fit?}` | UI state | +| `ui.set` | `{brightness?, panel?, rulers?, guides?, frameEdges?, baselineGrid?, documentGrid?, textThreads?, linkBadge?, screenMode?, zoom?, page?, fit?}` | UI state | | `ui.dialog.open` | `{id, fields?}` | Open a dialog by id (e.g. `paragraphStyleOptions` or `characterStyleOptions` with `{name, section}`, or `{new: true}` for a new style) | | `ui.dialog.set` / `ui.dialog.confirm` / `ui.dialog.cancel` | `{field, value}` | Fill and confirm the open dialog | | `ui.resize`, `ui.focus` | | Window control | diff --git a/docs/parity-checklist.md b/docs/parity-checklist.md index 2716c6e1d..0fdda0d72 100644 --- a/docs/parity-checklist.md +++ b/docs/parity-checklist.md @@ -315,7 +315,7 @@ Open P0 items: Vector/page formats (PDF/AI/SVG/EPS place), Export to PDF (print) | View & navigation | Screen modes | P0 | D | | View & navigation | Overprint preview | P1 | D | | View & navigation | Rulers, guides, grids toggles | P0 | D | -| View & navigation | Show/hide frame edges, threads, hidden chars | P0 | D | +| View & navigation | Show/hide frame edges, threads, link badge, hidden chars | P0 | D | | View & navigation | Structure / tag markers | P2 | D | | View & navigation | Display performance | P0 | D | | View & navigation | Navigate pages | P0 | D | diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index cdd6da689..30b8b18c1 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -219,7 +219,7 @@ table is the one summed. | Interactivity & digital | 100% | 40% | 30–50 | HTML export basic (#314); fixed-layout EPUB is page images; no animation, timing, media playback | | Output & production | 92% | 55% | 40–70 | PDF/X-4 only (no X-1a/X-3), no PDF/print presets or `.joboptions`, print via craft-print (CUPS/Windows), no trapping; Output Preview panel | | XML & automation | 100% | 35% | (ecosystem dimension) | no ExtendScript/UXP; XML structure depth | -| View & navigation | 100% | 65% | 10–20 | Navigator, display badges, Show/Hide extras (content grabber, live corners) | +| View & navigation | 100% | 65% | 10–20 | Navigator, display badges other than the link badge, Show/Hide extras (content grabber, live corners) | | Undo, history, saving | 100% | 70% | 5–10 | Undo/Redo name the action | | Accessibility | 100% | 50% | 15–25 | tagged PDF exists; PDF/UA validation, reading order depth, screen-reader support in the UI | diff --git a/docs/ui-parity.md b/docs/ui-parity.md index 2dcf4687a..2d11d33ef 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-10-15 · **Change:** minor (live corners work; document views row: scrollbars, Alt pans while editing text; Tabs panel listed as present (#343); spring-loaded Zoom navigation; paragraph style override feedback and clearing) · **Target:** Adobe InDesign 2026 (21.6, Medium Dark, macOS) +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-21 · **Change:** minor (link badge on placed files; live corners work; document views row: scrollbars, Alt pans while editing text; Tabs panel listed as present (#343); spring-loaded Zoom navigation; paragraph style override feedback and clearing) · **Target:** Adobe InDesign 2026 (21.6, Medium Dark, macOS) Tools, handles, snapping, nudging, modifiers, shortcuts, panels, menus, context menus and feel, against InDesign 2026. The look was measured from the running app @@ -32,6 +32,7 @@ basics of editing fail for too many users on Windows and Linux. | Direct Selection, Pen family, Pencil, Scissors | ✓ | ✓ | ~ | moving reference point "0" fails (#337) | | Live corners (yellow handle) | ✓ | ✓ widget on a selected rectangle frame; diamonds drag the corner size (Shift: one corner), Alt-click steps the shape (Shift+Alt: all) | ✓ | #186 | | Content grabber, frame fitting by double-click | ✓ | ✓ | ✓ | | +| Link badge (View › Extras): a chain on each picture placed from a file; modified and missing links marked | ✓ | ✓ chain on the frame's top edge in its layer colour, a yellow warning when the file changed, a red stop when it is missing; hidden in Preview | ✓ | Learn Skills Daily course, chapter 10 | | Overset mark (red + at the out port) | selected frame only | every overset frame, groups included, while frame edges show | ✓ | a deliberate step past InDesign: grouped labels that overflow were invisible until Preflight | | Smart guides, snapping to guides/grid/baseline | ✓ | ✓ (2,049-line `snap.rs`) | ~ | vertical smart spacing between two rectangles (#188) | | Nudging with arrows, Shift ×10 | ✓ | ✓ | ✓ | | From 0cc9e51cee67b58f16e053f93803cd7bf0c9a84f Mon Sep 17 00:00:00 2001 From: paaspaas00 <151774837+paaspaas00@users.noreply.github.com> Date: Wed, 21 Oct 2026 12:18:12 +0200 Subject: [PATCH 07/77] Link badge: on a rotated frame's top edge, on parent-page pictures, and repainted when the status is due Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/canvas.rs | 51 +++++++++++++++++++++++++++++++++--- 1 file changed, 47 insertions(+), 4 deletions(-) diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs index 55759ac71..06485964b 100644 --- a/crates/ui-egui/src/canvas.rs +++ b/crates/ui-egui/src/canvas.rs @@ -1189,6 +1189,8 @@ fn link_statuses(app: &mut DesignApp, ctx: &egui::Context, doc: &Document) -> st let Some(st) = app.session.active() else { return Default::default() }; let (uid, revision) = (st.uid, st.revision); let now = ctx.input(|i| i.time); + // An idle canvas still draws again when the check is due, so a file changed on disk shows. + ctx.request_repaint_after(std::time::Duration::from_secs(1)); let id = egui::Id::new(("link_badge_status", app.pane)); if let Some((u, r, at, map)) = ctx.data(|d| d.get_temp::(id)) && (u, r) == (uid, revision) @@ -1230,15 +1232,21 @@ fn link_badges(doc: &Document, layout: &CanvasLayout, xf: &Xf, status: &std::col if doc.assets.get(&g.asset).is_none_or(|asset| asset.link.is_none()) { return; } - let pts: Vec = path_screen(it, xf, a).into_iter().flatten().collect(); - let Some(first) = pts.first() else { return }; - let r = pts.iter().fold(Rect::from_min_max(*first, *first), |r, p| r.union(Rect::from_min_max(*p, *p))); + // On the frame's own top edge (rotated with it), 16 px in from its left corner. + let b = it.inner_bounds(); + let m = a * it.xf; + let (tl, tr) = (xf.to_screen(m * Point::new(b.x0, b.y0)), xf.to_screen(m * Point::new(b.x1, b.y0))); + let len = (tr - tl).length(); + if !len.is_finite() { + return; + } + let at = if len > 0.0 { tl + (tr - tl) / len * 16.0f32.min(len / 2.0) } else { tl }; let badge = match status.get(&g.asset.0).map(String::as_str) { Some("missing") => LinkBadge::Missing, Some("modified") => LinkBadge::Modified, _ => LinkBadge::Linked, }; - out.push((pos2((r.left() + 16.0).min(r.center().x), r.top()), badge, layer_color(doc, it))); + out.push((at, badge, layer_color(doc, it))); } _ => {} } @@ -1246,6 +1254,20 @@ fn link_badges(doc: &Document, layout: &CanvasLayout, xf: &Xf, status: &std::col let mut out = Vec::new(); for slot in &layout.slots { let Some(sp) = doc.spread(slot.spread) else { continue }; + // Parent items shown on the pages (not those a page overrides), as draw_frames finds them. + for (pi, page) in sp.pages.iter().enumerate() { + for (ppi, ppg) in doc.shown_parent_pages(slot.spread, pi) { + let Some(parent) = doc.parents.get(ppi) else { continue }; + let Some(ppage) = parent.pages.get(ppg) else { continue }; + let dx = page.x - ppage.x; + for it in &parent.items { + if (parent.pages.len() > 1 && parent.page_at_x(it.bounds().center().x) != Some(ppg)) || page.overridden.contains(&it.id) { + continue; + } + walk(doc, xf, it, slot.xf * Affine::translate((dx, 0.0)), status, &mut out); + } + } + } for it in &sp.items { walk(doc, xf, it, slot.xf, status, &mut out); } @@ -3229,6 +3251,27 @@ mod tests { let corner = xf.to_screen(a * Point::new(r.x0, r.y0)); let d = b[0].0 - corner; assert!(d.y.abs() < 0.5 && d.x > 0.0 && d.x <= 16.5, "on the top edge near the left corner: {d:?}"); + // Rotated, the badge stays on the frame's own top edge, 16 px from its corner along it. + app.run("transform.set", json!({"ids": [linked], "rotation": 30})).unwrap(); + let doc = app.session.active().unwrap().doc.clone(); + let it = doc.item(designcraft_doc::ItemId(linked)).unwrap().clone(); + let (a, _) = item_canvas_xf(&doc, &CanvasLayout::new(&doc, false), designcraft_doc::ItemId(linked)).unwrap(); + let ib = it.inner_bounds(); + let (tl, tr) = (xf.to_screen(a * it.xf * Point::new(ib.x0, ib.y0)), xf.to_screen(a * it.xf * Point::new(ib.x1, ib.y0))); + let c = badges(&mut app)[0].0; + let along = (tr - tl).normalized(); + let off = c - tl; + assert!((off.dot(along) - 16.0).abs() < 0.5 && (off.x * along.y - off.y * along.x).abs() < 0.5, "on the rotated top edge: {off:?}"); + app.run("edit.undo", json!({})).unwrap(); + // A linked picture on the parent page shows its badge on the document page that shows it + // (the first page is a right-hand one: the parent's right page). + let px = app.session.active().unwrap().doc.parents[0].pages[1].x; + let pf = + app.run("frame.create", json!({"rect": [px + 300.0, 500, px + 400.0, 600], "spread": {"kind": "parent", "index": 0}})).unwrap()["id"] + .as_u64() + .unwrap(); + app.run("file.place", json!({"path": path.to_string_lossy(), "frame": pf})).unwrap(); + assert_eq!(badges(&mut app).len(), 2, "the parent page's picture too"); // The file gone: the badge says so (the check runs again once the document changes). std::fs::remove_file(&path).unwrap(); app.run("frame.create", json!({"rect": [400, 400, 420, 420]})).unwrap(); From e69a8fb95bcf5aa6d7a51f32fd3a4b6420a9c718 Mon Sep 17 00:00:00 2001 From: paaspaas00 <151774837+paaspaas00@users.noreply.github.com> Date: Wed, 21 Oct 2026 13:49:38 +0200 Subject: [PATCH 08/77] MCP ui_set: the linkBadge key Co-Authored-By: Claude Opus 5.5 --- crates/mcp/src/tools.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/mcp/src/tools.rs b/crates/mcp/src/tools.rs index 0d943b780..7f43c088f 100644 --- a/crates/mcp/src/tools.rs +++ b/crates/mcp/src/tools.rs @@ -388,7 +388,7 @@ pub fn tool_definitions() -> Vec { "ui_set", "Set UI state", &app_only( - "Change UI state: panel to open or close, brightness, status text, rulers/guides/frameEdges/baselineGrid/documentGrid/textThreads, \ + "Change UI state: panel to open or close, brightness, status text, rulers/guides/frameEdges/baselineGrid/documentGrid/textThreads/linkBadge, \ Control bar, dock expanded, screenMode, zoom, page (1-based), fit (page|spread).", ), obj( @@ -397,6 +397,7 @@ pub fn tool_definitions() -> Vec { "brightness": {"type": "string", "enum": ["dark", "mediumDark", "mediumLight", "light"]}, "rulers": {"type": "boolean"}, "guides": {"type": "boolean"}, "frameEdges": {"type": "boolean"}, "baselineGrid": {"type": "boolean"}, "documentGrid": {"type": "boolean"}, "textThreads": {"type": "boolean"}, + "linkBadge": boolean("Show the badge on linked graphics' frames (View › Extras › Show/Hide Link Badge)"), "status": string("Status bar text"), "controlBar": boolean("Show the Control bar"), "closePanel": boolean("Close the panel that is showing"), From db9ede61d27b537def7532bf503b6bd62cac04e8 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 21 Oct 2026 22:17:01 +0000 Subject: [PATCH 09/77] Web relink: review fixes (memory, journal, placed graphics, ambiguous files) CodeRabbit and FredApps review on #1244: - The folder read is capped at 256 MiB (was 1 GiB): the bytes are copied a few times on the way to the command, so 1 GiB could exhaust a tab's memory. A folder over the cap relinks what fits; running Relink to Folder again reads the rest, since relinked graphics are no longer wanted. - The command journal keeps links.relinkFiles' file names and paths, not their contents. - Relink to Folder with no missing graphic says so instead of reading a folder for nothing. - Only placed graphics relink: a replaced graphic kept for undo is missing too, and relinking it changed nothing on the page while reporting a relink. - A file named like missing graphics it can't be told apart for isn't reported as unused (so a dropped one isn't placed as a new picture); the status says how many were left missing. - file_name_of moved above opens_as_document's doc comment. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CgGsJkVe5GYG9qK6VFdECa --- apps/designcraft-web/src/web.rs | 4 ++- crates/engine/src/cmd/links.rs | 50 +++++++++++++++++++++++++++++---- crates/engine/src/lib.rs | 18 +++++++++++- crates/ui-egui/src/lib.rs | 34 ++++++++++++++++++++-- 4 files changed, 96 insertions(+), 10 deletions(-) diff --git a/apps/designcraft-web/src/web.rs b/apps/designcraft-web/src/web.rs index 0376d4c44..33372f12e 100644 --- a/apps/designcraft-web/src/web.rs +++ b/apps/designcraft-web/src/web.rs @@ -444,7 +444,9 @@ fn services(inbox: Inbox, ctx: egui::Context) -> Services { /// The most files a chosen folder hands over for relinking, and the most bytes in all. const MAX_FOLDER_FILES: usize = 2000; -const MAX_FOLDER_BYTES: f64 = 1024.0 * 1024.0 * 1024.0; +// The bytes are copied a few times on the way (base64 for the command, then decoded), so the +// cap keeps the peak well inside the browser's memory for a tab. +const MAX_FOLDER_BYTES: f64 = 256.0 * 1024.0 * 1024.0; /// The graphics named in `wanted` (lower-case file names; empty: every graphic) in a folder the /// user chooses with the browser's folder picker (an ``, which diff --git a/crates/engine/src/cmd/links.rs b/crates/engine/src/cmd/links.rs index 9a647ba46..a5f0d18c9 100644 --- a/crates/engine/src/cmd/links.rs +++ b/crates/engine/src/cmd/links.rs @@ -569,7 +569,10 @@ fn shared_tail(file: &str, link: &str) -> usize { /// file named only like two graphics whose links name different files — the graphic is left /// missing and reported, rather than given another file's picture. Graphics linking to the same /// file share it. -fn match_files(missing: &[(AssetId, String)], files: &[(String, String)]) -> (Vec<(AssetId, usize)>, Vec, Vec) { +/// Also returns which files are named like some missing graphic (matched or not), so a file left +/// ambiguous isn't reported as matching nothing. +fn match_files(missing: &[(AssetId, String)], files: &[(String, String)]) -> (Vec<(AssetId, usize)>, Vec, Vec, Vec) { + let mut named = vec![false; files.len()]; let mut chosen = Vec::new(); let mut not_found = Vec::new(); let mut ambiguous = Vec::new(); @@ -577,6 +580,11 @@ fn match_files(missing: &[(AssetId, String)], files: &[(String, String)]) -> (Ve for (aid, link) in missing { let scores: Vec<(usize, usize)> = files.iter().enumerate().map(|(k, (_, path))| (k, shared_tail(path, link))).filter(|(_, n)| *n > 0).collect(); + for (k, _) in &scores { + if let Some(n) = named.get_mut(*k) { + *n = true; + } + } let best = scores.iter().map(|(_, n)| *n).max().unwrap_or(0); let top: Vec = scores.iter().filter(|(_, n)| *n == best).map(|(k, _)| *k).collect(); match top.as_slice() { @@ -599,7 +607,7 @@ fn match_files(missing: &[(AssetId, String)], files: &[(String, String)]) -> (Ve chosen.push((*aid, *k)); } } - (chosen, not_found, ambiguous) + (chosen, not_found, ambiguous, named) } fn relink_files(s: &mut Session, p: &Value) -> Result { @@ -632,14 +640,20 @@ fn relink_files(s: &mut Session, p: &Value) -> Result { *u = true; } } else { + let placed = d.used_assets(); + // Graphics still placed: a replaced graphic kept for undo isn't relinked behind the page. let missing: Vec<(AssetId, String)> = d .assets .values() - .filter(|a| status(a, document) == "missing") + .filter(|a| placed.contains(&a.id) && status(a, document) == "missing") .map(|a| (a.id, a.link.clone().unwrap_or_else(|| a.name.clone()))) .collect(); - let chosen; - (chosen, not_found, ambiguous) = match_files(&missing, &files); + let (chosen, named); + (chosen, not_found, ambiguous, named) = match_files(&missing, &files); + // A file named like a missing graphic was meant for it, even when left ambiguous. + for (u, n) in used.iter_mut().zip(&named) { + *u |= *n; + } for (aid, k) in chosen { let (Some(a), Some((name, _)), Some(b64)) = (d.assets.get(&aid), files.get(k), data.get(k)) else { continue }; fresh.push((aid, relinked_bytes(a, name, super::base64_decode(b64))?)); @@ -1211,6 +1225,31 @@ mod shared_asset_tests { (s, a, b) } + /// Only graphics still placed are relinked: a replaced graphic kept for undo is missing too, + /// but relinking it would change nothing on the page. The journal keeps the files' names, + /// not their contents. + #[test] + fn relinks_only_placed_graphics_and_journals_no_file_contents() { + let (mut s, a, b) = two_missing(); + // b's frame is deleted: its asset stays (for undo) but nothing shows it. + s.edit(|d, _| { + for sp in &mut d.spreads { + std::sync::Arc::make_mut(sp).items.retain(|it| !matches!(&it.content, Content::Graphic(g) if g.asset == b)); + } + Ok(()) + }) + .unwrap(); + let file = |name: &str| json!({"name": name, "base64": super::super::file::base64_encode(&png(6, 6))}); + let r = s.execute("links.relinkFiles", &json!({"files": [file("pic0.png"), file("pic1.png")]})).unwrap(); + assert_eq!(r["relinked"], 1); + assert_eq!(r["unused"], json!(["pic1.png"]), "nothing placed is named pic1"); + let d = &s.doc().unwrap().doc; + assert!(!d.assets[&a].data.is_empty() && d.assets[&b].data.is_empty()); + let (id, params) = s.journal.last().unwrap(); + assert_eq!(id, "links.relinkFiles"); + assert!(params["files"].as_array().unwrap().iter().all(|f| f.get("base64").is_none() && f["name"].is_string()), "{params}"); + } + /// Files of the same name in different folders of a chosen folder: each missing graphic takes /// the one whose path ends like its link; where nothing tells them apart, the graphics stay /// missing and are reported rather than given another graphic's picture. Graphics linking to @@ -1235,6 +1274,7 @@ mod shared_asset_tests { let r = s.execute("links.relinkFiles", &json!({"files": [file("logo.png", "logo.png", 5), file("logo.png", "logo.png", 6)]})).unwrap(); assert_eq!(r["relinked"], 0); assert_eq!(r["ambiguous"], json!(["logo.png", "logo.png"])); + assert_eq!(r["unused"], json!([]), "files named like the graphics were meant for them"); assert!(s.doc().unwrap().doc.assets[&a].data.is_empty() && s.doc().unwrap().doc.assets[&b].data.is_empty()); // One file named like both, which link to different files: it can't be both. let (mut s, a, _) = missing_with(links); diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs index 183b81c5c..283fecbe8 100644 --- a/crates/engine/src/lib.rs +++ b/crates/engine/src/lib.rs @@ -615,7 +615,7 @@ impl Session { } self.record_undo_step(spec, before, nested); if spec.journal { - self.journal.push((id.to_string(), params.clone())); + self.journal.push((id.to_string(), journal_params(id, params))); } self.discard_stale_find_scope(); Ok(r) @@ -751,3 +751,19 @@ mod tests_params; mod tests_roots; #[cfg(test)] mod tests_table; + +/// A command's parameters as the journal keeps them: `links.relinkFiles` keeps its files' names +/// and paths but not their contents (whole image files, which would stay in memory for the +/// session). +fn journal_params(id: &str, params: &Value) -> Value { + if id != "links.relinkFiles" { + return params.clone(); + } + let mut p = params.clone(); + if let Some(files) = p.get_mut("files").and_then(Value::as_array_mut) { + for f in files.iter_mut().filter_map(Value::as_object_mut) { + f.remove("base64"); + } + } + p +} diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index cbe20e27b..bc952fc0a 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -1032,6 +1032,11 @@ impl DesignApp { .filter_map(|r| r["path"].as_str().or(r["name"].as_str())) .map(|p| file_name_of(p).to_lowercase()) .collect(); + // Nothing to relink: don't have the host read a whole folder for nothing. + if request.wanted.is_empty() { + self.status(crate::i18n::tr(&self.ui.language, "No missing graphics to relink")); + return; + } } if let Some(open) = self.services.open_async.as_mut() { open(request); @@ -1142,7 +1147,16 @@ impl DesignApp { match self.run("links.relinkFiles", params) { Ok(v) => { let n = v["relinked"].as_u64().unwrap_or(0); - if n > 0 || !drop { + let unsure = v["ambiguous"].as_array().map_or(0, Vec::len); + if unsure > 0 { + // Files named like graphics they couldn't be told apart for: neither + // relinked nor placed. + self.status( + crate::i18n::tr(&self.ui.language, "Relinked {count}; {unsure} left missing: same-named files couldn't be told apart") + .replace("{count}", &n.to_string()) + .replace("{unsure}", &unsure.to_string()), + ); + } else if n > 0 || !drop { self.status(crate::i18n::tr(&self.ui.language, "Relinked {count}").replace("{count}", &n.to_string())); } // Dropped images that named no missing graphic are placed as before. @@ -1805,13 +1819,13 @@ pub fn cjk_features(app: &DesignApp) -> bool { app.session.prefs.cjk_features.unwrap_or_else(|| i18n::is_cjk(&app.ui.language)) } -/// Files that open as documents (when dropped or picked) rather than being placed: DesignCraft, -/// IDML, and InDesign documents and templates (converted to IDML on open). /// The last component of a delivered file's name (either kind of separator). fn file_name_of(name: &str) -> &str { name.rsplit(['/', '\\']).next().unwrap_or(name) } +/// Files that open as documents (when dropped or picked) rather than being placed: DesignCraft, +/// IDML, and InDesign documents and templates (converted to IDML on open). pub fn opens_as_document(name: &str) -> bool { let n = name.to_ascii_lowercase(); [".designcraft", ".idml", ".indd", ".indt"].iter().any(|ext| n.ends_with(ext)) @@ -2925,6 +2939,20 @@ mod browser_import_tests { app.session.doc().unwrap().doc.spreads.iter().map(|s| s.items.len()).sum() } + /// With no missing graphic, Relink to Folder doesn't ask the host for a folder at all. + #[test] + fn relink_to_folder_needs_a_missing_graphic() { + let asked = std::rc::Rc::new(std::cell::RefCell::new(Vec::new())); + let mut app = app(); + let seen = asked.clone(); + app.services.open_async = Some(Box::new(move |r: ImportRequest| seen.borrow_mut().push(r))); + let b64 = designcraft_engine::cmd::base64_encode(&image()); + app.run("file.place", json!({"name": "a.svg", "base64": b64, "x": 50, "y": 50})).unwrap(); + app.request_files("relinkFiles"); + assert!(asked.borrow().is_empty()); + assert_eq!(app.ui.status, "No missing graphics to relink"); + } + /// Relink to Folder asks the host only for the missing graphics' files, and a chosen folder's /// files arrive named by their paths in it, which tell same-named files apart. #[test] From 2823465e109980765aff50b3e43f5ab6d81b6627 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 21 Oct 2026 23:40:51 +0000 Subject: [PATCH 10/77] Save format: review fixes (prefs retry, IDML during preview, dotted names, docs) CodeRabbit review on #1105: - Web preferences count as stored only once local storage accepted them, so a failed write (or storage that wasn't available) is tried again at the next check instead of being lost on reload. - Export IDML during a data-merge preview writes the unfilled template, as Save and file.serialize do; the web build's Save with IDML chosen used it and downloaded the filled record. - The save dialog's name gets the chosen format's extension unless it already ends in .idml or .designcraft: "Issue 3.1" saves as "Issue 3.1.idml", not as a DesignCraft file named "Issue 3.1.designcraft". - file.saveACopy's description says a .idml path is written as IDML. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CgGsJkVe5GYG9qK6VFdECa --- apps/designcraft-web/src/prefs_store.rs | 21 +++++++++++++-------- apps/designcraft-web/src/web.rs | 7 +++++-- crates/engine/src/cmd/file.rs | 2 +- crates/engine/src/cmd/interchange.rs | 23 ++++++++++++++++++++++- crates/ui-egui/src/menus.rs | 18 ++++++++++++++---- 5 files changed, 55 insertions(+), 16 deletions(-) diff --git a/apps/designcraft-web/src/prefs_store.rs b/apps/designcraft-web/src/prefs_store.rs index bffd64ced..bb4a665ee 100644 --- a/apps/designcraft-web/src/prefs_store.rs +++ b/apps/designcraft-web/src/prefs_store.rs @@ -39,15 +39,17 @@ impl PrefsSync { true } - /// The JSON to store when `prefs` differ from what was last stored; `None` otherwise. The - /// value counts as stored once returned (a failed write is not retried until they change). - pub(crate) fn changed(&mut self, prefs: &Prefs) -> Option { + /// The JSON to store when `prefs` differ from what was last stored; `None` otherwise. Nothing + /// counts as stored until [`PrefsSync::stored`] says the write succeeded, so a write that + /// fails (or storage that isn't available) is tried again at the next check. + pub(crate) fn changed(&self, prefs: &Prefs) -> Option { let json = serde_json::to_string(prefs).ok()?; - if self.last.as_deref() == Some(json.as_str()) { - return None; - } - self.last = Some(json.clone()); - Some(json) + (self.last.as_deref() != Some(json.as_str())).then_some(json) + } + + /// `json` (from [`PrefsSync::changed`]) was written to storage. + pub(crate) fn stored(&mut self, json: String) { + self.last = Some(json); } } @@ -78,6 +80,9 @@ mod tests { let idml = Prefs { save_format: SaveFormat::Idml, ..Prefs::default() }; let json = sync.changed(&idml).unwrap(); assert!(json.contains(r#""saveFormat":"idml""#), "{json}"); + // The write failed (or storage was unavailable): still pending at the next check. + assert_eq!(sync.changed(&idml).as_deref(), Some(json.as_str()), "retried until stored"); + sync.stored(json); assert_eq!(sync.changed(&idml), None, "written once"); // Nothing stored yet: the first check writes. assert!(PrefsSync::new(None).changed(&prefs).is_some()); diff --git a/apps/designcraft-web/src/web.rs b/apps/designcraft-web/src/web.rs index a45539b4e..a3f112b6e 100644 --- a/apps/designcraft-web/src/web.rs +++ b/apps/designcraft-web/src/web.rs @@ -387,9 +387,12 @@ impl eframe::App for WebShell { if self.prefs_sync.due(ctx.input(|i| i.time)) && let Some(json) = self.prefs_sync.changed(&self.app.session.prefs) && let Some(storage) = local_storage() - && let Err(e) = storage.set_item(prefs_store::KEY, &json) { - log::warn!("couldn't keep the preferences in local storage: {e:?}"); + // Counted as stored only once written; otherwise it's tried again at the next check. + match storage.set_item(prefs_store::KEY, &json) { + Ok(()) => self.prefs_sync.stored(json), + Err(e) => log::warn!("couldn't keep the preferences in local storage: {e:?}"), + } } } diff --git a/crates/engine/src/cmd/file.rs b/crates/engine/src/cmd/file.rs index efdb72a9a..d0533ce60 100644 --- a/crates/engine/src/cmd/file.rs +++ b/crates/engine/src/cmd/file.rs @@ -54,7 +54,7 @@ pub fn specs() -> Vec { }), cmd!(noundo "file.save", "Save", ["File"], Some("Cmd+S"), "{path?} — a `.idml` path is written as IDML (images embedded); any other `path` without the .designcraft extension gets it → {path: the file written, bytes}", has_doc, file_save), cmd!(noundo "file.saveAs", "Save As…", ["File"], Some("Cmd+Shift+S"), "{path} — a `.idml` path is written as IDML (images embedded); any other path without the .designcraft extension gets it → {path: the file written, bytes}", has_doc, file_save), - cmd!(noundo "file.saveACopy", "Save a Copy…", ["File"], None, "{path} — writes the document without changing which file it is or its unsaved state; a path without the .designcraft extension gets it → {path: the file written, bytes}", has_doc, |s, p| { + cmd!(noundo "file.saveACopy", "Save a Copy…", ["File"], None, "{path} — writes the document without changing which file it is or its unsaved state; a `.idml` path is written as IDML, any other without the .designcraft extension gets it → {path: the file written, bytes}", has_doc, |s, p| { let path = str_param(p, "path").ok_or_else(|| bad("file.saveACopy", "missing `path`"))?; let path = with_save_extension(path); let mut copy = (*s.doc()?.doc).clone(); diff --git a/crates/engine/src/cmd/interchange.rs b/crates/engine/src/cmd/interchange.rs index 77c8fcad7..c595fa300 100644 --- a/crates/engine/src/cmd/interchange.rs +++ b/crates/engine/src/cmd/interchange.rs @@ -28,7 +28,10 @@ pub fn specs() -> Vec { fn export_idml(s: &mut Session, p: &Value) -> Result { let st = s.doc()?; let opts = designcraft_idml::ExportOptions { embed_images: p.get("embedImages").and_then(Value::as_bool).unwrap_or(true) }; - let bytes = designcraft_idml::export_idml_with(&st.doc, &opts); + // A data-merge preview's fill is session state: the unfilled template is exported (as + // `file.serialize` and the saves write it). + let doc = st.preview_stash.as_deref().unwrap_or(st.doc.as_ref()); + let bytes = designcraft_idml::export_idml_with(doc, &opts); match str_param(p, "path") { Some(path) => { #[cfg(not(target_arch = "wasm32"))] @@ -378,6 +381,24 @@ fn without_document_extension(name: &str) -> &str { mod tests { use std::sync::Arc; + /// During a data-merge preview, Export IDML (which the web build's Save uses with IDML chosen) + /// writes the unfilled template, as Save does: the preview's fill is session state. + #[test] + fn idml_export_during_a_data_merge_preview_writes_the_template() { + let mut s = Session::new(); + s.execute("file.new", &json!({})).unwrap(); + let r = s.execute("frame.create", &json!({"rect": [72, 72, 400, 200], "content": "text", "text": ""})).unwrap(); + let sid = s.doc().unwrap().doc.item(designcraft_doc::ItemId(r["id"].as_u64().unwrap())).unwrap().text_frame().unwrap().story; + s.execute("data.source.select", &json!({"bytes": crate::cmd::base64_encode(b"x\nfilled-record\n"), "name": "d.csv"})).unwrap(); + s.execute("data.placeholder.add", &json!({"field": "x", "story": sid.0, "at": 0})).unwrap(); + s.execute("data.preview", &json!({"record": 1})).unwrap(); + assert_eq!(s.doc().unwrap().doc.story(sid).unwrap().text, "filled-record"); + let b64 = s.execute("file.exportIdml", &json!({})).unwrap()["base64"].as_str().unwrap().to_string(); + let back = designcraft_idml::import_idml(&crate::cmd::base64_decode(&b64)).unwrap(); + assert!(back.stories.values().all(|st| !st.text.contains("filled-record")), "the preview's fill isn't exported"); + assert_eq!(s.doc().unwrap().doc.story(sid).unwrap().text, "filled-record", "the preview stays on screen"); + } + use super::*; fn linked_idml(link: &str, embed_images: bool) -> Result<(Vec, Vec)> { diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rs index a2d1d3cdf..9d54460e8 100644 --- a/crates/ui-egui/src/menus.rs +++ b/crates/ui-egui/src/menus.rs @@ -2637,11 +2637,17 @@ fn clipped_submenu<'a, R>( (response, inner) } -/// A path the save dialog returned, with `ext` (the Save documents as format) added when the name -/// has no extension of its own: "Brochure" saves as "Brochure.idml". A name with one is kept as -/// typed; its extension decides the format (see `file.save`). +/// A path the save dialog returned, with `ext` (the Save documents as format) added unless the name +/// already ends in `.idml` or `.designcraft`: "Brochure" and "Issue 3.1" save as "Brochure.idml" +/// and "Issue 3.1.idml". A name with one of those is kept as typed; its extension decides the +/// format (see `file.save`). fn with_save_extension(path: &str, ext: &str) -> String { - if std::path::Path::new(path).extension().is_some() { path.to_string() } else { format!("{path}.{ext}") } + // Only the two save extensions count as typed: "Issue 3.1" is a name with a dot in it. + let typed = std::path::Path::new(path) + .extension() + .and_then(|e| e.to_str()) + .is_some_and(|e| e.eq_ignore_ascii_case("idml") || e.eq_ignore_ascii_case(designcraft_engine::SaveFormat::Designcraft.extension())); + if typed { path.to_string() } else { format!("{path}.{ext}") } } /// A native menu bar item was chosen (macOS): like [`activate`], except that the menu bar takes @@ -5749,6 +5755,10 @@ mod save_format_tests { assert_eq!(super::with_save_extension("/a/Brochure", "idml"), "/a/Brochure.idml"); assert_eq!(super::with_save_extension("/a/Brochure.idml", "designcraft"), "/a/Brochure.idml"); assert_eq!(super::with_save_extension("/a/Brochure.designcraft", "idml"), "/a/Brochure.designcraft"); + assert_eq!(super::with_save_extension("/a/Brochure.IDML", "designcraft"), "/a/Brochure.IDML"); + // A dot in the name isn't an extension: the chosen format is added. + assert_eq!(super::with_save_extension("/a/Issue 3.1", "idml"), "/a/Issue 3.1.idml"); + assert_eq!(super::with_save_extension("/a/v1.2 Brochure", "designcraft"), "/a/v1.2 Brochure.designcraft"); } /// The web build saves by download: the download is named and written in the chosen format. #[test] From 6c8b5fed803f6b2ee9a1f6e8c542e296f0617e99 Mon Sep 17 00:00:00 2001 From: moppeeer Date: Thu, 22 Oct 2026 10:00:33 +0200 Subject: [PATCH 11/77] ROADMAP: link status badges where linked files can be checked The web build cannot read linked files, so it shows no modified or missing badges; the changelog entry says so. Co-Authored-By: Claude Opus 5.5 --- ROADMAP.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index a4b3a61f9..ab40677cb 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -359,7 +359,7 @@ Newest first. - **2026-10-16** · Lock Guides and Lock Column Guides are commands in View ▸ Grids & Guides (`view.lockGuides`, ⌥⌘;, and `view.lockColumnGuides`), so the control channel and MCP reach them. Lock Column Guides is an undo step, is saved with the document, on in new ones, and read from and written to IDML's `ColumnGuideLocked`, which export always wrote as locked (#1096). No readiness percentage change. - **2026-10-16** · IDML: a page keeps column guides that were dragged off centre (InDesign's Custom columns). They were divided evenly on import, so the gutter sprang back to the middle; the imported positions now place the columns, with the canvas guides, snapping and text placement following them, and they are written back on export. Layout › Margins and Columns re-divides them evenly when the count or gutter changes, as InDesign's does. No readiness percentage change. - **2026-10-16** · IDML: custom column positions are checked before they are used (#1096). A set must give two edges per column, ascending from the left margin to the right one; any other (a wrong count, unsorted or non-numeric values, a list longer than 216 columns allow, or positions left behind by a margin or page-size change) is the even split, in the canvas, on import and on export, instead of columns drawn outside the margins. No readiness percentage change. -- **2026-10-21** · Link badge: every frame showing a picture placed from a file carries a chain on its top edge, in its layer colour, as in InDesign. A modified file shows a yellow warning and a missing one a red stop, from the Links panel's status. View › Extras › Show/Hide Link Badge (`view.linkBadge`, `ui.set {linkBadge}`) turns them off; Preview hides them. Found in the Learn Skills Daily course, chapter 10. No readiness percentage change. +- **2026-10-21** · Link badge: every frame showing a picture placed from a file carries a chain on its top edge, in its layer colour, as in InDesign. Where the app can check linked files (not the web build), a modified file shows a yellow warning and a missing one a red stop, from the Links panel's status. View › Extras › Show/Hide Link Badge (`view.linkBadge`, `ui.set {linkBadge}`) turns them off; Preview hides them. Found in the Learn Skills Daily course, chapter 10. No readiness percentage change. - **2026-10-16** · Type › Reload Fonts (`font.reload`): fonts installed, edited or removed while DesignCraft runs are read again without a restart, and the open documents recompose with them (#328, #547). An edited font file is noticed by its length and modification time; bundled, added and document fonts stay as they are. InDesign does this by itself, so noticing changes automatically is still open (gap 6). No readiness percentage change. - **2026-10-16** · Parents can be deleted from their Pages-panel context menu or `layout.parents.delete {id}`. Applied-page and based-on references are cleared, local override copies survive, and Undo restores the parent. Addresses the deletion portion of #956; no readiness percentage change. - **2026-10-17** · File › Package writes the document's and the IDML's links relative to the package (`Links/logo.png`, `file:Links/logo.png`), so a package holds no path from the machine that made it; opening a document resolves them to the files beside it. Links › Copy Link(s) To still links by full path. (#340). No readiness percentage change. From c35790389a0f0f35386a2620387ce166c8d7d171 Mon Sep 17 00:00:00 2001 From: Hamza Date: Thu, 22 Oct 2026 15:08:41 +0500 Subject: [PATCH 12/77] A hyperlink can point at a text anchor (#1446) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A frame or a text range could link to a URL, an email address or a page number. A page number is the wrong thing to store for "this thumbnail links to that photo": the photo moves and the link does not. InDesign stores the destination, and IDML files do too — a `HyperlinkPageItemSource` pointing at a `HyperlinkTextDestination` is how a report links its thumbnails to the full-size pictures (#1446). `HyperlinkDest::Anchor(id)` is a text anchor, the same destination a cross-reference targets, and the PDF export resolves it the same way: through the cross-reference index, to whichever page the anchor's text has landed on. A link to an anchor that no longer exists is left out of the file rather than pointing somewhere wrong. `hyperlink.create` and `hyperlink.edit` take `anchor` — an anchor's id or its name — and a link that is given no name of its own takes the anchor's. Measured: a thumbnail on page 1 linked to an anchor in text on page 3 exports `/Dest [ 0 R /XYZ 0 300 0]`; insert a page in front and the same link exports page 4, with no edit to the link. This is the groundwork for the IDML half of #1446 (import and export of page-item and text hyperlinks), which is the next change and needs a destination to put them in. --- crates/doc/src/lib.rs | 15 ++++ crates/engine/src/cmd/datamerge/fill.rs | 5 +- crates/engine/src/cmd/datamerge/tests.rs | 1 + crates/engine/src/cmd/interactive.rs | 106 ++++++++++++++++++++--- crates/pdf/src/links.rs | 5 ++ 5 files changed, 118 insertions(+), 14 deletions(-) diff --git a/crates/doc/src/lib.rs b/crates/doc/src/lib.rs index 1bf834ae0..232e00ec4 100644 --- a/crates/doc/src/lib.rs +++ b/crates/doc/src/lib.rs @@ -714,6 +714,21 @@ pub enum HyperlinkDest { Email(String), /// Absolute page index. Page(usize), + /// A text anchor ([`TextAnchor::id`]), as a cross-reference targets one. The page is + /// whichever page the anchor's text has landed on when the document is exported, so the link + /// follows its destination as the text reflows (#1446). + Anchor(u64), +} + +impl HyperlinkDest { + /// The name a hyperlink is given when none is supplied. + pub fn label(&self) -> String { + match self { + HyperlinkDest::Url(u) | HyperlinkDest::Email(u) => u.clone(), + HyperlinkDest::Page(p) => format!("Page {}", p + 1), + HyperlinkDest::Anchor(a) => format!("Anchor {a}"), + } + } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] diff --git a/crates/engine/src/cmd/datamerge/fill.rs b/crates/engine/src/cmd/datamerge/fill.rs index b0165d9d3..cd670ae7c 100644 --- a/crates/engine/src/cmd/datamerge/fill.rs +++ b/crates/engine/src/cmd/datamerge/fill.rs @@ -318,10 +318,7 @@ fn create_link(doc: &mut designcraft_doc::Document, anchor: PlaceholderAnchor, d } }; let id = doc.alloc(); - let name = match &dest { - HyperlinkDest::Url(u) | HyperlinkDest::Email(u) => u.clone(), - HyperlinkDest::Page(p) => format!("Page {}", p + 1), - }; + let name = dest.label(); doc.hyperlinks.push(Hyperlink { id, name, source, dest }); true } diff --git a/crates/engine/src/cmd/datamerge/tests.rs b/crates/engine/src/cmd/datamerge/tests.rs index 98849eae1..06d0090bb 100644 --- a/crates/engine/src/cmd/datamerge/tests.rs +++ b/crates/engine/src/cmd/datamerge/tests.rs @@ -679,6 +679,7 @@ fn role_overrides_column_kind_qr_and_hyperlink() { HyperlinkDest::Email(v) => format!("email:{v}"), HyperlinkDest::Url(v) => format!("url:{v}"), HyperlinkDest::Page(n) => format!("page:{n}"), + HyperlinkDest::Anchor(a) => format!("anchor:{a}"), }); } kinds.sort(); diff --git a/crates/engine/src/cmd/interactive.rs b/crates/engine/src/cmd/interactive.rs index 32562737c..463253d40 100644 --- a/crates/engine/src/cmd/interactive.rs +++ b/crates/engine/src/cmd/interactive.rs @@ -13,7 +13,7 @@ pub fn specs() -> Vec { "New Hyperlink…", ["Type", "Hyperlinks & Cross-References"], None, - "{url? | email? | page? (1-based), name?, ids?} — from the selected text, or the selected frames", + "{url? | email? | page? (1-based) | anchor? (a text anchor's id or name; the link follows it as the text reflows), name?, ids?} — from the selected text, or the selected frames", has_doc, create ), @@ -25,9 +25,9 @@ pub fn specs() -> Vec { }) }), cmd!(query "hyperlink.list", "Hyperlinks", [], None, "{}", has_doc, |s, _| Ok(serde_json::to_value(&s.doc()?.doc.hyperlinks).unwrap_or_default())), - cmd!("hyperlink.edit", "Hyperlink Options…", [], None, "{id, name?, url? | email? | page? (1-based)}", has_doc, |s, p| { + cmd!("hyperlink.edit", "Hyperlink Options…", [], None, "{id, name?, url? | email? | page? (1-based) | anchor?}", has_doc, |s, p| { let id = p.get("id").and_then(Value::as_u64).ok_or_else(|| bad("hyperlink.edit", "missing id"))?; - let dest = dest_param(p); + let dest = dest_param(&s.doc()?.doc, p); let name = str_param(p, "name").map(str::to_string); s.edit(|d, _| { let h = d.hyperlinks.iter_mut().find(|h| h.id == id).ok_or_else(|| bad("hyperlink.edit", format!("no hyperlink {id}")))?; @@ -90,19 +90,33 @@ pub fn specs() -> Vec { ] } -fn dest_param(p: &Value) -> Option { +/// `url`, `email`, `page` (1-based) or `anchor` (a text anchor's id, or its name). +fn dest_param(d: &designcraft_doc::Document, p: &Value) -> Option { if let Some(u) = str_param(p, "url") { Some(HyperlinkDest::Url(u.to_string())) } else if let Some(e) = str_param(p, "email") { Some(HyperlinkDest::Email(e.to_string())) + } else if let Some(a) = p.get("anchor").filter(|a| !a.is_null()) { + let by_name = |name: &str| d.stories.values().flat_map(|st| st.anchors.iter()).find(|x| x.name == name).map(|x| x.id); + a.as_u64().or_else(|| a.as_str().and_then(by_name)).map(HyperlinkDest::Anchor) } else { p.get("page").and_then(Value::as_u64).map(|pg| HyperlinkDest::Page((pg as usize).saturating_sub(1))) } } +/// The anchor's own name, for a link to one that was not given a name. +fn dest_label(d: &designcraft_doc::Document, dest: &HyperlinkDest) -> String { + if let HyperlinkDest::Anchor(a) = dest + && let Some(x) = d.stories.values().flat_map(|st| st.anchors.iter()).find(|x| x.id == *a) + { + return x.name.clone(); + } + dest.label() +} + fn create(s: &mut Session, p: &Value) -> Result { - let dest = dest_param(p).ok_or_else(|| bad("hyperlink.create", "give `url`, `email` or `page`"))?; let st = s.doc()?; + let dest = dest_param(&st.doc, p).ok_or_else(|| bad("hyperlink.create", "give `url`, `email`, `page` or `anchor`"))?; let sources: Vec = if let Some(ids) = super::ids_param(p, "ids") { ids.into_iter().map(|id| HyperlinkSource::Item { id }).collect() } else if let Some(t) = st.selection.text.filter(|t| !t.is_caret()) { @@ -118,11 +132,7 @@ fn create(s: &mut Session, p: &Value) -> Result { let mut ids = vec![]; for src in sources { let id = d.alloc(); - let name = name.clone().unwrap_or_else(|| match &dest { - HyperlinkDest::Url(u) => u.clone(), - HyperlinkDest::Email(e) => e.clone(), - HyperlinkDest::Page(p) => format!("Page {}", p + 1), - }); + let name = name.clone().unwrap_or_else(|| dest_label(d, &dest)); d.hyperlinks.push(Hyperlink { id, name, source: src, dest: dest.clone() }); ids.push(id); } @@ -156,3 +166,79 @@ mod panel_tests { assert_eq!(s.execute("bookmark.list", &json!({})).unwrap()[0]["name"], "Back"); } } + +#[cfg(test)] +mod anchor_dest_tests { + use serde_json::json; + + use crate::Session; + + /// The page object numbers of a PDF, in order, and the page each link annotation points at + /// (as an index into that list). + fn link_pages(s: &mut Session) -> Vec { + let r = s.execute("file.exportPdf", &json!({})).unwrap(); + let bytes = super::super::file::base64_decode(r["base64"].as_str().unwrap()); + let pdf = String::from_utf8_lossy(&bytes).into_owned(); + let kids: Vec<&str> = pdf + .split("/Kids[") + .nth(1) + .and_then(|k| k.split(']').next()) + .map(|k| k.split(" 0 R").map(str::trim).filter(|s| !s.is_empty()).collect()) + .unwrap_or_default(); + let object = + |n: &str| -> String { pdf.split(&format!("\n{n} 0 obj\n")).nth(1).and_then(|o| o.split("\nendobj").next()).unwrap_or("").to_string() }; + let mut out = Vec::new(); + for part in pdf.split("/Subtype/Link").skip(1) { + let Some(dest) = part.split("/Dest ").nth(1).and_then(|d| d.split(" 0 R").next()) else { continue }; + // `[ 0 R/XYZ …]` + let page = object(dest.trim()); + let Some(page) = page.trim_start_matches('[').split(" 0 R").next() else { continue }; + if let Some(i) = kids.iter().position(|k| *k == page.trim()) { + out.push(i); + } + } + out + } + + /// A frame can link to a text anchor, as a cross-reference refers to one, and the link lands + /// on whichever page the anchor's text is on when the PDF is written — IDML files link photo + /// thumbnails to their full-size pictures that way (#1446). + #[test] + fn a_frame_can_link_to_a_text_anchor_and_follows_it() { + let mut s = Session::new(); + s.execute("file.new", &json!({"width": 300, "height": 300, "pages": 3, "facingPages": false, "margins": 0})).unwrap(); + // The destination: an anchor in text on page 3. + let sp = s.doc().unwrap().doc.page_loc(2).unwrap().0; + let dest = + s.execute("frame.create", &json!({"spread": sp, "rect": [20, 20, 280, 100], "content": "text", "text": "Photo 1 full size"})).unwrap(); + s.execute("text.select", &json!({"story": dest["story"].clone(), "anchor": 0, "focus": 7})).unwrap(); + let anchor = s.execute("anchor.create", &json!({"name": "Photo 1"})).unwrap(); + // The source: a thumbnail frame on page 1, linked by the anchor's name. + let thumb = s.execute("frame.create", &json!({"rect": [20, 20, 120, 80], "content": "unassigned"})).unwrap(); + s.execute("hyperlink.create", &json!({"anchor": "Photo 1", "ids": [thumb["id"].clone()]})).unwrap(); + let links = s.execute("hyperlink.list", &json!({})).unwrap(); + assert_eq!(links[0]["dest"], json!({"kind": "anchor", "value": anchor["id"].clone()}), "{links}"); + // Named after the anchor, since no name was given. + assert_eq!(links[0]["name"], "Photo 1"); + assert_eq!(link_pages(&mut s), vec![2], "the link lands on the anchor's page (the third)"); + + // A page inserted in front moves the anchor's text to page 4, and the link follows it + // without being edited. + s.execute("layout.pages.insert", &json!({"count": 1, "after": 0})).unwrap(); + assert_eq!(s.execute("anchor.list", &json!({})).unwrap()[0]["page"], "4"); + assert_eq!(link_pages(&mut s), vec![3], "the link follows the text"); + + // An anchor's id works as well as its name, and an unknown name is refused. + s.execute("hyperlink.delete", &json!({"id": links[0]["id"].clone()})).unwrap(); + s.execute("hyperlink.create", &json!({"anchor": anchor["id"].clone(), "ids": [thumb["id"].clone()], "name": "Thumbnail"})).unwrap(); + assert_eq!(s.execute("hyperlink.list", &json!({})).unwrap()[0]["name"], "Thumbnail"); + assert_eq!(link_pages(&mut s), vec![3]); + assert!(s.execute("hyperlink.create", &json!({"anchor": "No Such Anchor", "ids": [thumb["id"].clone()]})).is_err()); + + // A link to a deleted anchor is not exported, rather than pointing at the wrong page. + s.execute("text.select", &json!({"story": dest["story"].clone(), "anchor": 0, "focus": 8})).unwrap(); + s.execute("text.delete", &json!({})).unwrap(); + assert!(s.execute("anchor.list", &json!({})).unwrap().as_array().unwrap().is_empty()); + assert_eq!(link_pages(&mut s), Vec::::new(), "no link rather than a wrong one"); + } +} diff --git a/crates/pdf/src/links.rs b/crates/pdf/src/links.rs index 6929d4cf3..22fcdd979 100644 --- a/crates/pdf/src/links.rs +++ b/crates/pdf/src/links.rs @@ -73,6 +73,11 @@ pub(crate) fn annotations(doc: &Document, cache: &designcraft_compose::Cache, sh Some(i) => Target::Destination(XyzDestination::new(i, krilla::geom::Point::from_xy(0.0, 0.0)).into()), None => continue, }, + // The page the anchor's text has landed on, as a cross-reference resolves it. + HyperlinkDest::Anchor(a) => match cache.xref_index(doc).page_index(*a).and_then(|p| sheet_of_page(doc, sheets, p)) { + Some(i) => Target::Destination(XyzDestination::new(i, krilla::geom::Point::from_xy(0.0, 0.0)).into()), + None => continue, + }, }; out.push(Annotation::new_link(LinkAnnotation::new(rect, target), Some(h.name.clone()))); } From 5ea1df4002054df0930709b30f043f33d26d0323 Mon Sep 17 00:00:00 2001 From: moppeeer Date: Thu, 22 Oct 2026 12:29:43 +0200 Subject: [PATCH 13/77] Link badges: the link check runs off the canvas frame Checking a link reads the linked file, so the badges' check now runs on a background thread (when the document changes, and at most once a second otherwise) and its result is taken up on a later frame; the badges show the last result meanwhile, and none for another document. The engine exports `cmd::link_status`, the status `links.list` reports. Co-Authored-By: Claude Opus 5.5 --- crates/engine/src/cmd/mod.rs | 3 ++ crates/ui-egui/src/canvas.rs | 73 ++++++++++++++++++++++++++++-------- 2 files changed, 60 insertions(+), 16 deletions(-) diff --git a/crates/engine/src/cmd/mod.rs b/crates/engine/src/cmd/mod.rs index a4d5413bb..166c42d08 100644 --- a/crates/engine/src/cmd/mod.rs +++ b/crates/engine/src/cmd/mod.rs @@ -18,6 +18,9 @@ mod export; mod file; pub(crate) mod find; pub use find::same_find_domain; +/// A linked asset's Links panel status ("ok", "modified", "missing", "embedded"), as `links.list` +/// reports it; it reads the linked file, so callers may run it off the UI thread. +pub use links::status as link_status; pub(crate) mod flex; mod fonts; pub(crate) mod guides; diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs index b449e38d9..c34d9c0f2 100644 --- a/crates/ui-egui/src/canvas.rs +++ b/crates/ui-egui/src/canvas.rs @@ -1232,31 +1232,63 @@ enum LinkBadge { Missing, } +type LinkStatuses = std::sync::Arc>; + +/// The link badges' check: the last result, the document state it was made for, and a check +/// running off the UI thread. +#[derive(Clone, Default)] +struct LinkCheck { + /// Document uid and revision of `map`, and when it was made. + key: (u64, u64), + at: f64, + map: LinkStatuses, + /// A check running, for that document state: it fills the slot when done. + pending: Option<((u64, u64), std::sync::Arc>>>)>, +} + /// The Links panel's status of each linked asset ("ok", "modified", "missing"), for the link -/// badges. Checking reads the linked files, so it runs again when the document changes and at -/// most once a second otherwise. -fn link_statuses(app: &mut DesignApp, ctx: &egui::Context, doc: &Document) -> std::sync::Arc> { - type Cached = (u64, u64, f64, std::sync::Arc>); +/// badges. Checking reads the linked files, so it runs on a background thread when the document +/// changes and at most once a second otherwise; the badges show the last result meanwhile (none +/// for another document). +fn link_statuses(app: &mut DesignApp, ctx: &egui::Context, doc: &Document) -> LinkStatuses { if !doc.assets.values().any(|a| a.link.is_some()) { return Default::default(); } let Some(st) = app.session.active() else { return Default::default() }; - let (uid, revision) = (st.uid, st.revision); + let key = (st.uid, st.revision); let now = ctx.input(|i| i.time); // An idle canvas still draws again when the check is due, so a file changed on disk shows. ctx.request_repaint_after(std::time::Duration::from_secs(1)); let id = egui::Id::new(("link_badge_status", app.pane)); - if let Some((u, r, at, map)) = ctx.data(|d| d.get_temp::(id)) - && (u, r) == (uid, revision) - && now - at < 1.0 + let mut check = ctx.data(|d| d.get_temp::(id)).unwrap_or_default(); + if let Some((for_key, slot)) = check.pending.clone() + && let Some(map) = slot.lock().unwrap_or_else(|e| e.into_inner()).take() { - return map; + (check.key, check.at, check.map, check.pending) = (for_key, now, std::sync::Arc::new(map), None); } - let rows = app.session.execute("links.list", &json!({})).ok().and_then(|v| v.as_array().cloned()).unwrap_or_default(); - let map: std::collections::HashMap = - rows.iter().filter_map(|r| Some((r.get("asset")?.as_u64()?, r.get("status")?.as_str()?.to_string()))).collect(); - let map = std::sync::Arc::new(map); - ctx.data_mut(|d| d.insert_temp(id, (uid, revision, now, map.clone()))); + let due = check.key != key || now - check.at >= 1.0; + if due && check.pending.is_none() { + let assets: Vec<(u64, std::sync::Arc)> = + doc.assets.iter().filter(|(_, a)| a.link.is_some()).map(|(id, a)| (id.0, a.clone())).collect(); + let document = st.path.clone(); + let slot = std::sync::Arc::new(std::sync::Mutex::new(None)); + let run = { + let (slot, ctx) = (slot.clone(), ctx.clone()); + move || { + let path = document.as_deref().map(std::path::Path::new); + let map = assets.iter().map(|(id, a)| (*id, designcraft_engine::cmd::link_status(a, path).to_string())).collect(); + *slot.lock().unwrap_or_else(|e| e.into_inner()) = Some(map); + ctx.request_repaint(); + } + }; + #[cfg(not(target_arch = "wasm32"))] + std::thread::spawn(run); + #[cfg(target_arch = "wasm32")] + run(); + check.pending = Some((key, slot)); + } + let map = if check.key.0 == key.0 { check.map.clone() } else { Default::default() }; + ctx.data_mut(|d| d.insert_temp(id, check)); map } @@ -3778,10 +3810,19 @@ mod tests { app.run("file.place", json!({"base64": designcraft_engine::cmd::base64_encode(&png), "name": "e.png", "frame": embedded})).unwrap(); let ctx = egui::Context::default(); let xf = Xf::new(Rect::from_min_size(Pos2::ZERO, vec2(1440.0, 900.0)), &View::default()); + // The check runs off the UI thread: ask until the result for this document state is in. let badges = |app: &mut DesignApp| { let doc = app.session.active().unwrap().doc.clone(); - let status = link_statuses(app, &ctx, &doc); - link_badges(&doc, &CanvasLayout::new(&doc, false), &xf, &status) + let key = (app.session.active().unwrap().uid, app.session.active().unwrap().revision); + for _ in 0..1000 { + let status = link_statuses(app, &ctx, &doc); + let check = ctx.data(|d| d.get_temp::(egui::Id::new(("link_badge_status", app.pane)))).unwrap(); + if check.key == key && check.pending.is_none() { + return link_badges(&doc, &CanvasLayout::new(&doc, false), &xf, &status); + } + std::thread::sleep(std::time::Duration::from_millis(2)); + } + panic!("the link check didn't finish"); }; let b = badges(&mut app); assert_eq!(b.len(), 1, "only the linked picture: {b:?}"); From 2bf6a492bf9bc37d4239fa6fa5a8c945d7583e69 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sat, 24 Oct 2026 16:23:52 -0700 Subject: [PATCH 14/77] =?UTF-8?q?Story=20Editor:=20View=20=E2=80=BA=20Stor?= =?UTF-8?q?y=20Editor=20=E2=80=BA=20Show/Hide=20Style=20Name=20Column,=20a?= =?UTF-8?q?nd=20a=20draggable=20column=20width,=20as=20in=20InDesign?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit View › Story Editor › Show/Hide Style Name Column (view.storyEditorStyleColumn) shows or hides the Story Editor's column of paragraph style names. Dragging the bar between the column and the text makes the column wider or narrower, from 40 to 400 points; it starts at the old fixed width of 130. The drag runs the same command with `width`, and `on` sets whether the column shows; without either, the command toggles it. The column is shown by default, and both settings are saved with the preferences, so the editor opens with the same column the next time. The editor's text field has a fixed id, so showing or hiding the style name column or the depth ruler keeps the text's focus and caret. --- ROADMAP.md | 1 + crates/ui-egui/src/i18n.rs | 10 ++ crates/ui-egui/src/i18n/ar.rs | 1 + crates/ui-egui/src/i18n/cs.rs | 1 + crates/ui-egui/src/i18n/de.rs | 1 + crates/ui-egui/src/i18n/it.rs | 1 + crates/ui-egui/src/i18n/ja.rs | 1 + crates/ui-egui/src/i18n/ka.rs | 1 + crates/ui-egui/src/i18n/pl.rs | 1 + crates/ui-egui/src/i18n/pt_br.rs | 1 + crates/ui-egui/src/i18n/ru.rs | 1 + crates/ui-egui/src/i18n/uk.rs | 1 + crates/ui-egui/src/lib.rs | 7 ++ crates/ui-egui/src/menus.rs | 26 +++++ crates/ui-egui/src/story_editor.rs | 169 +++++++++++++++++++++++++++-- docs/gaps.md | 2 +- docs/ui-parity.md | 2 +- 17 files changed, 214 insertions(+), 13 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index 3ae68ebca..f7e4ca462 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -365,6 +365,7 @@ Newest first. - **2026-10-23** · `designcraft-cli mcp` takes `--automation-read-root` and `--automation-write-root` more than once, as the suite's other apps do (#1552): a path inside any root of its kind passes, and the roots' common parent, `..` or a link out of them and the other kind's roots stay refused. No readiness percentage change. - **2026-10-23** · Layout › Go Back and Go Forward (Cmd+Page Up / Cmd+Page Down, Ctrl on Windows and Linux) retrace the jumps between pages (Go to Page, the page and spread commands, the Pages panel) as InDesign's do, returning to where the view was on each page at the current zoom; a new jump after going back drops the pages ahead, scrolling adds no entry, and pages deleted since are skipped. No readiness percentage change. - **2026-10-24** · The Story Editor has InDesign's vertical depth ruler between the style column and the text, and View › Story Editor › Show/Hide Depth Ruler (`view.storyEditorDepthRuler`) shows or hides it in the Story Editor, remembered with the preferences. The ruler is marked in the document's vertical ruler units with how deep the story's text fills its frames, counted through its columns and threaded frames (lines set side by side, in the sub-columns of a split paragraph or on both sides of a wrap object, count once), and is shaded down to the overset point, where a red line now crosses the editor. No readiness percentage change. +- **2026-10-24** · View › Story Editor › Show/Hide Style Name Column (`view.storyEditorStyleColumn`) shows or hides the Story Editor's column of paragraph style names, as in InDesign, and dragging the bar between the column and the text makes the column wider or narrower (40 to 400 points; the command's `width` sets it too). Both settings are remembered with the preferences, so the editor opens with the same column the next time. No readiness percentage change. - **2026-10-24** · Type › Notes › Previous Note and Next Note (`note.previous`, `note.next`): as in InDesign, they move the insertion point from note to note in the story, putting the caret after the note's anchor. Each item is unavailable when no note lies in its direction in the story, or when the insertion point is in a table cell or a footnote. No readiness percentage change. - **2026-10-24** · Type › Notes › Convert to Note (`note.convertFromText {author?}`): as in InDesign, the selected text leaves the story and becomes the text of a new note, whose anchor takes its place; Convert Note to Text puts it back. DesignCraft refuses a selection in a table cell, or one that holds a note, footnote, endnote, anchored object, index marker, text anchor, cross-reference or table. No readiness percentage change. - **2026-10-23** · Effects dialog: with Use Global Light on, the Angle field (and the Bevel and Emboss one) stays editable and shows the document's global light angle; a change there sets the global light for every effect that uses it, applied with the effects in one undo step (`object.effects` takes `globalLight`). Before, the field was greyed out and the angle couldn't be changed in the dialog. No readiness percentage change. diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rs index e2a2cbe9c..e8f2058f2 100644 --- a/crates/ui-egui/src/i18n.rs +++ b/crates/ui-egui/src/i18n.rs @@ -2288,6 +2288,16 @@ const TABLE: &[(&str, [&str; 5])] = &[ ], ), ("Show/Hide Rulers", ["Show/Hide Rulers", "Afficher/Masquer les règles", "Show/Hide Rulers", "Show/Hide Rulers", "显示/隐藏标尺"]), + ( + "Show/Hide Style Name Column", + [ + "Show/Hide Style Name Column", + "Afficher/Masquer la colonne des noms de style", + "Show/Hide Style Name Column", + "Show/Hide Style Name Column", + "显示/隐藏样式名称栏", + ], + ), ( "Show/Hide Tagged Frames", [ diff --git a/crates/ui-egui/src/i18n/ar.rs b/crates/ui-egui/src/i18n/ar.rs index fa21aea34..cc859683a 100644 --- a/crates/ui-egui/src/i18n/ar.rs +++ b/crates/ui-egui/src/i18n/ar.rs @@ -1561,6 +1561,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Panels", "إظهار/إخفاء اللوحات"), ("Show/Hide Panels Except Tools", "إظهار/إخفاء اللوحات باستثناء الأدوات"), ("Show/Hide Rulers", "إظهار/إخفاء المساطر"), + ("Show/Hide Style Name Column", "إظهار/إخفاء عمود أسماء الأنماط"), ("Show/Hide Tagged Frames", "إظهار/إخفاء الإطارات الموسومة"), ("Show/Hide Text Threads", "إظهار/إخفاء روابط الإطارات النصية"), ("Smooth", "تنعيم"), diff --git a/crates/ui-egui/src/i18n/cs.rs b/crates/ui-egui/src/i18n/cs.rs index 4e0a9bb9a..ebaf96754 100644 --- a/crates/ui-egui/src/i18n/cs.rs +++ b/crates/ui-egui/src/i18n/cs.rs @@ -716,6 +716,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Panels", "Zobrazit/skrýt panely"), ("Show/Hide Panels Except Tools", "Zobrazit/skrýt panely kromě nástrojů"), ("Show/Hide Rulers", "Zobrazit/skrýt pravítka"), + ("Show/Hide Style Name Column", "Zobrazit/skrýt sloupec názvů stylů"), ("Show/Hide Tagged Frames", "Zobrazit/skrýt otagované rámečky"), ("Show/Hide Text Threads", "Zobrazit/skrýt zřetězení textu"), ("Smooth", "Vyhladit"), diff --git a/crates/ui-egui/src/i18n/de.rs b/crates/ui-egui/src/i18n/de.rs index 611e5129d..988fffe45 100644 --- a/crates/ui-egui/src/i18n/de.rs +++ b/crates/ui-egui/src/i18n/de.rs @@ -753,6 +753,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Panels", "Bedienfelder ein-/ausblenden"), ("Show/Hide Panels Except Tools", "Bedienfelder außer Werkzeugen ein-/ausblenden"), ("Show/Hide Rulers", "Lineale ein-/ausblenden"), + ("Show/Hide Style Name Column", "Spalte mit Formatnamen ein-/ausblenden"), ("Show/Hide Tagged Frames", "Getaggte Rahmen ein-/ausblenden"), ("Show/Hide Text Threads", "Textverkettungen ein-/ausblenden"), ("Smooth", "Glätten"), diff --git a/crates/ui-egui/src/i18n/it.rs b/crates/ui-egui/src/i18n/it.rs index f62611d25..7c3e6a1fa 100644 --- a/crates/ui-egui/src/i18n/it.rs +++ b/crates/ui-egui/src/i18n/it.rs @@ -845,6 +845,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Panels", "Mostra/nascondi pannelli"), ("Show/Hide Panels Except Tools", "Mostra/nascondi pannelli tranne Strumenti"), ("Show/Hide Rulers", "Mostra/nascondi righelli"), + ("Show/Hide Style Name Column", "Mostra/nascondi colonna nomi stili"), ("Show/Hide Tagged Frames", "Mostra/nascondi cornici con tag"), ("Show/Hide Text Threads", "Mostra/nascondi concatenamenti testo"), ("Smooth", "Arrotonda"), diff --git a/crates/ui-egui/src/i18n/ja.rs b/crates/ui-egui/src/i18n/ja.rs index d56f77a3c..11d500fff 100644 --- a/crates/ui-egui/src/i18n/ja.rs +++ b/crates/ui-egui/src/i18n/ja.rs @@ -946,6 +946,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Panels", "パネルを表示・非表示"), ("Show/Hide Panels Except Tools", "ツール以外のパネルを表示・非表示"), ("Show/Hide Rulers", "定規を表示・非表示"), + ("Show/Hide Style Name Column", "スタイル名の列を表示・非表示"), ("Show/Hide Tagged Frames", "タグ付きフレームを表示・非表示"), ("Show/Hide Text Threads", "テキストフレームの連結を表示・非表示"), ("Smooth", "平滑化"), diff --git a/crates/ui-egui/src/i18n/ka.rs b/crates/ui-egui/src/i18n/ka.rs index 29c2258ce..7d8c0c8f5 100644 --- a/crates/ui-egui/src/i18n/ka.rs +++ b/crates/ui-egui/src/i18n/ka.rs @@ -772,6 +772,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Panels", "პანელების ჩვენება/დამალვა"), ("Show/Hide Panels Except Tools", "პანელების ჩვენება/დამალვა, ხელსაწყოების გარდა"), ("Show/Hide Rulers", "სახაზავების ჩვენება/დამალვა"), + ("Show/Hide Style Name Column", "სტილების სახელების სვეტის ჩვენება/დამალვა"), ("Show/Hide Tagged Frames", "ტეგირებული ჩარჩოების ჩვენება/დამალვა"), ("Show/Hide Text Threads", "ტექსტის კავშირების ჩვენება/დამალვა"), ("Smooth", "გლუვი"), diff --git a/crates/ui-egui/src/i18n/pl.rs b/crates/ui-egui/src/i18n/pl.rs index 7f4249bb5..dfd0c73b4 100644 --- a/crates/ui-egui/src/i18n/pl.rs +++ b/crates/ui-egui/src/i18n/pl.rs @@ -723,6 +723,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Panels", "Pokaż/ukryj panele"), ("Show/Hide Panels Except Tools", "Pokaż/ukryj panele oprócz narzędzi"), ("Show/Hide Rulers", "Pokaż/ukryj linijki"), + ("Show/Hide Style Name Column", "Pokaż/ukryj kolumnę nazw stylów"), ("Show/Hide Tagged Frames", "Pokaż/ukryj ramki z tagami"), ("Show/Hide Text Threads", "Pokaż/ukryj powiązania tekstu"), ("Smooth", "Wygładź"), diff --git a/crates/ui-egui/src/i18n/pt_br.rs b/crates/ui-egui/src/i18n/pt_br.rs index 293c2a3a0..9da2271e1 100644 --- a/crates/ui-egui/src/i18n/pt_br.rs +++ b/crates/ui-egui/src/i18n/pt_br.rs @@ -1691,6 +1691,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Panels", "Mostrar/ocultar painéis"), ("Show/Hide Panels Except Tools", "Mostrar/ocultar painéis, exceto ferramentas"), ("Show/Hide Rulers", "Mostrar/ocultar réguas"), + ("Show/Hide Style Name Column", "Mostrar/ocultar coluna de nomes de estilo"), ("Show/Hide Tagged Frames", "Mostrar/ocultar quadros marcados"), ("Show/Hide Text Threads", "Mostrar/ocultar encadeamentos de texto"), ("Sort", "Ordenar"), diff --git a/crates/ui-egui/src/i18n/ru.rs b/crates/ui-egui/src/i18n/ru.rs index 9c46ba7bc..a9cf072d6 100644 --- a/crates/ui-egui/src/i18n/ru.rs +++ b/crates/ui-egui/src/i18n/ru.rs @@ -703,6 +703,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Panels", "Показать/скрыть панели"), ("Show/Hide Panels Except Tools", "Показать/скрыть панели, кроме инструментов"), ("Show/Hide Rulers", "Показать/скрыть линейки"), + ("Show/Hide Style Name Column", "Показать/скрыть столбец имен стилей"), ("Show/Hide Tagged Frames", "Показать/скрыть рамки с тегами"), ("Show/Hide Text Threads", "Показать/скрыть связи текстовых рамок"), ("Smooth", "Сгладить"), diff --git a/crates/ui-egui/src/i18n/uk.rs b/crates/ui-egui/src/i18n/uk.rs index 93fe795d8..77ef25482 100644 --- a/crates/ui-egui/src/i18n/uk.rs +++ b/crates/ui-egui/src/i18n/uk.rs @@ -848,6 +848,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Panels", "Показати/приховати панелі"), ("Show/Hide Panels Except Tools", "Показати/приховати панелі, крім інструментів"), ("Show/Hide Rulers", "Показати/приховати лінійки"), + ("Show/Hide Style Name Column", "Показати/приховати стовпець назв стилів"), ("Show/Hide Tagged Frames", "Показати/приховати фрейми з тегами"), ("Show/Hide Text Threads", "Показати/приховати зв’язки текстових фреймів"), ("Smooth", "Згладити"), diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index 3b471395b..a8d50049d 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -243,6 +243,11 @@ pub struct UiState { pub story_editor_size: f32, /// View › Story Editor › Show/Hide Depth Ruler. pub story_editor_depth_ruler: bool, + /// View › Story Editor › Show/Hide Style Name Column. + pub story_editor_style_column: bool, + /// Width of the Story Editor's style name column, in screen points (set by dragging its bar or by + /// `view.storyEditorStyleColumn` `width`). + pub story_editor_style_width: f32, /// Preferences › General › Interface Language: supported codes are listed in `i18n::LANGUAGES`. pub language: String, /// Edit › Transparency Flattener Presets: "" (none), "high", "medium" or "low" for PDF export. @@ -394,6 +399,8 @@ impl Default for UiState { show_full_menus: false, story_editor_size: 14.0, story_editor_depth_ruler: true, + story_editor_style_column: true, + story_editor_style_width: story_editor::STYLE_COLUMN_WIDTH, scripts: vec![ ("Number the pages".into(), "# A page-number frame at the bottom of the current page.\nframe.create {\"rect\": [288, 740, 324, 760], \"content\": \"text\", \"text\": \"\"}\ntext.select {\"story\": \"$0.story\", \"anchor\": 0, \"focus\": 0}\ntext.insert {\"text\": \"\\ue000\", \"raw\": true}".into()), ("Two-column grid".into(), "# Four text frames in a 2 × 2 grid.\nframe.grid {\"rect\": [36, 36, 576, 756], \"cols\": 2, \"rows\": 2, \"gutter\": 12}".into()), diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rs index 9f473ccce..5e8f2d297 100644 --- a/crates/ui-egui/src/menus.rs +++ b/crates/ui-egui/src/menus.rs @@ -215,6 +215,12 @@ pub const UI_COMMANDS: &[(&str, &str, Option<&str>, &str)] = &[ ("view.textThreads", "Show/Hide Text Threads", Some("Cmd+Alt+Y"), "{}"), ("view.hiddenCharacters", "Show Hidden Characters", Some("Cmd+Alt+I"), "{}"), ("view.taggedFrames", "Show/Hide Tagged Frames", None, "{} — XML-tagged frames outlined in their tag colour"), + ( + "view.storyEditorStyleColumn", + "Show/Hide Style Name Column", + None, + "{on?: bool, width?: 40–400 (points)} — the Story Editor's column of paragraph style names; toggles without either → {on, width}", + ), ( "view.storyEditorDepthRuler", "Show/Hide Depth Ruler", @@ -867,6 +873,7 @@ pub const MENUS: &[(&str, &[&str])] = &[ "ui:view.tagMarkers", "<", ">Story Editor", + "ui:view.storyEditorStyleColumn", "ui:view.storyEditorDepthRuler", "<", ], @@ -1587,6 +1594,23 @@ fn run_ui_inner(app: &mut DesignApp, id: &str, p: &Value) -> Option flag(&mut app.ui.text_threads), "view.hiddenCharacters" => flag(&mut app.ui.hidden_characters), "view.taggedFrames" => flag(&mut app.ui.tagged_frames), + "view.storyEditorStyleColumn" => { + let on = p.get("on"); + let width = p.get("width"); + if on.is_some_and(|v| !v.is_boolean()) || width.is_some_and(|v| !v.is_number()) { + return Some(Err(format!("{id}: `on` is a bool and `width` a number"))); + } + match (on.and_then(Value::as_bool), width.and_then(Value::as_f64)) { + (None, None) => app.ui.story_editor_style_column = !app.ui.story_editor_style_column, + (on, width) => { + app.ui.story_editor_style_column = on.unwrap_or(app.ui.story_editor_style_column); + if let Some(w) = width { + app.ui.story_editor_style_width = crate::story_editor::style_column_width(w as f32); + } + } + } + Ok(json!({"on": app.ui.story_editor_style_column, "width": app.ui.story_editor_style_width})) + } "view.storyEditorDepthRuler" => flag(&mut app.ui.story_editor_depth_ruler), "window.hidePanels" | "window.hidePanelsExceptTools" => { let mode = if id == "window.hidePanels" { 1 } else { 2 }; @@ -2475,6 +2499,7 @@ pub fn checked(app: &DesignApp, id: &str, params: &Value) -> Option { "view.textThreads" => app.ui.text_threads, "view.hiddenCharacters" => app.ui.hidden_characters, "view.taggedFrames" => app.ui.tagged_frames, + "view.storyEditorStyleColumn" => app.ui.story_editor_style_column, "view.storyEditorDepthRuler" => app.ui.story_editor_depth_ruler, "changes.track" => app.session.active().is_some_and(|d| d.doc.settings.track_changes), // Pressed, as the Bulleted and Numbered List buttons: every paragraph the command applies @@ -3415,6 +3440,7 @@ mod tests { "view.separations", "view.taggedFrames", "view.tagMarkers", + "view.storyEditorStyleColumn", "view.storyEditorDepthRuler", ] { assert!(view.contains(&id), "{id} is in View"); diff --git a/crates/ui-egui/src/story_editor.rs b/crates/ui-egui/src/story_editor.rs index 3d8356bf7..614249bd3 100644 --- a/crates/ui-egui/src/story_editor.rs +++ b/crates/ui-egui/src/story_editor.rs @@ -11,6 +11,12 @@ use designcraft_doc::StoryId; use crate::DesignApp; use crate::theme::Tokens; +/// Width of the style name column before its bar is dragged, in screen points. +pub const STYLE_COLUMN_WIDTH: f32 = 130.0; +/// Narrowest and widest the style name column can be dragged, in screen points. +const STYLE_COLUMN_RANGE: (f32, f32) = (40.0, 400.0); +/// Width of the bar between the style name column and the text, in screen points. +const STYLE_BAR_WIDTH: f32 = 6.0; /// Width of the depth ruler, in screen points. const RULER_WIDTH: f32 = 34.0; /// Least distance between two of the depth ruler's labels, in screen points. @@ -51,8 +57,10 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) { let overset = cs.overset_at; let depths = app.ui.story_editor_depth_ruler.then(|| line_depths(&cs)); let unit = st.doc.settings.vertical_units; + let style_width = app.ui.story_editor_style_column.then(|| style_column_width(app.ui.story_editor_style_width)); let mut open = true; let mut edit: Option<(usize, usize, String)> = None; + let mut dragged_width: Option = None; let words = story.text.split_whitespace().count().to_string(); egui::Window::new(crate::i18n::tr(&app.ui.language, "Story Editor — {count} words").replace("{count}", &words)) .id(egui::Id::new("story_editor")) @@ -61,27 +69,46 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) { .show(ctx, |ui| { egui::ScrollArea::vertical().auto_shrink([false, false]).show(ui, |ui| { ui.horizontal_top(|ui| { - // Style column: the labels are painted after the text, at the rows the text really wraps to. - let (column, _) = ui.allocate_exact_size(vec2(130.0, 0.0), egui::Sense::hover()); - ui.separator(); + // Style column: the labels are painted after the text, at the rows the text really wraps to, + // and so is the bar that resizes it. + let column = style_width.map(|w| { + let column = ui.allocate_exact_size(vec2(w, 0.0), egui::Sense::hover()).0; + let bar = ui.allocate_exact_size(vec2(STYLE_BAR_WIDTH, 0.0), egui::Sense::hover()).0; + (column, bar) + }); // Depth ruler: painted after the text too, beside the rows the lines start on. let ruler = depths.as_ref().map(|_| ui.allocate_exact_size(vec2(RULER_WIDTH, 0.0), egui::Sense::hover()).0); let mut text = story.text.clone(); + // The text field has a fixed id, so it keeps its focus and caret when the columns before it + // are shown or hidden. let out = egui::TextEdit::multiline(&mut text) + .id(egui::Id::new("story_editor_text")) .font(egui::FontId::proportional(app.ui.story_editor_size.clamp(8.0, 36.0))) .desired_width(f32::INFINITY) .desired_rows(20) .frame(egui::Frame::NONE) .show(ui); let r = out.response; - let starts = paragraph_start_offsets(out.galley.rows.iter().map(|row| (row.pos.y, row.ends_with_newline))); - for (i, y) in starts.into_iter().enumerate() { - let Some(para) = story.paras.get(i) else { break }; - let rect = egui::Rect::from_min_size(egui::pos2(column.min.x, out.galley_pos.y + y), vec2(130.0, 14.0)); - ui.scope_builder(egui::UiBuilder::new().max_rect(rect), |ui| { - let name = crate::i18n::style_name(&app.ui.language, ¶.style); - crate::rtl::label(ui, egui::RichText::new(name).size(11.0).color(t.text_dim)); - }); + if let Some((column, bar)) = column { + let starts = paragraph_start_offsets(out.galley.rows.iter().map(|row| (row.pos.y, row.ends_with_newline))); + for (i, y) in starts.into_iter().enumerate() { + let Some(para) = story.paras.get(i) else { break }; + let rect = egui::Rect::from_min_size(egui::pos2(column.min.x, out.galley_pos.y + y), vec2(column.width(), 14.0)); + ui.scope_builder(egui::UiBuilder::new().max_rect(rect), |ui| { + let name = crate::i18n::style_name(&app.ui.language, ¶.style); + crate::rtl::label(ui, egui::RichText::new(name).size(11.0).color(t.text_dim)); + }); + } + // The bar between the column and the text: drag it to make the column wider or narrower. + let bar = egui::Rect::from_x_y_ranges(bar.x_range(), r.rect.y_range()); + let drag = ui.interact(bar, egui::Id::new("story_editor_style_bar"), egui::Sense::drag()); + let line = egui::Rect::from_center_size(bar.center(), vec2(1.0, bar.height())); + ui.painter().rect_filled(line, 0.0, if drag.hovered() || drag.dragged() { t.text_dim } else { t.section_divider }); + let drag = drag.on_hover_cursor(egui::CursorIcon::ResizeHorizontal); + if drag.dragged() { + dragged_width = Some(style_column_width(column.width() + drag.drag_delta().x)); + } + drag.widget_info(|| egui::WidgetInfo::labeled(egui::WidgetType::Other, true, "Style name column divider")); } let overset_y = overset.map(|o| { let ci = char_offsets(&story.text, std::iter::once(o)); @@ -141,6 +168,9 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) { } }); }); + if let Some(w) = dragged_width { + let _ = app.run("view.storyEditorStyleColumn", json!({"width": w})); + } if let Some((a, b, text)) = edit { let _ = app.run("story.replaceRange", json!({"story": sid.0, "start": a, "end": b, "text": text})); } @@ -149,6 +179,12 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) { } } +/// The style name column's width for a saved or dragged `width`: kept between the narrowest and +/// widest the bar allows, and the starting width when `width` is not a number. +pub(crate) fn style_column_width(width: f32) -> f32 { + if width.is_finite() { width.clamp(STYLE_COLUMN_RANGE.0, STYLE_COLUMN_RANGE.1) } else { STYLE_COLUMN_WIDTH } +} + /// Vertical offset of the first laid-out row of each paragraph, from `(row y, row ends with a newline)` /// in layout order. A paragraph that wraps spans several rows, so counting characters per line /// drifts from what the editor draws; the rows themselves are the truth. @@ -467,6 +503,117 @@ mod tests { assert!(!crate::UiState::from_preferences_json(&saved).unwrap().story_editor_depth_ruler); } + fn story_editor_harness(text: &str) -> egui_kittest::Harness<'static, crate::test_window::Window> { + let mut app = DesignApp::new(designcraft_engine::Session::new(), Default::default()); + app.run("file.new", json!({})).unwrap(); + let r = app.run("frame.create", json!({"rect": [72, 72, 300, 200], "content": "text", "text": text, "caret": false})).unwrap(); + app.run("app.storyEditor", json!({"story": r["story"].as_u64().unwrap()})).unwrap(); + let mut h = crate::test_window::open(app, egui::vec2(1440.0, 900.0)); + h.run_steps(2); + h + } + + fn text_left(h: &egui_kittest::Harness<'_, crate::test_window::Window>, text: &str) -> f32 { + h.get_by(|n| n.role() == egui::accesskit::Role::MultilineTextInput && n.value().as_deref() == Some(text)).rect().min.x + } + + /// View › Story Editor › Show/Hide Style Name Column: hiding the column takes away the style + /// names and the bar beside them, and the text moves left by their width; the setting is + /// remembered. + #[test] + fn style_name_column_shows_and_hides_from_the_view_menu() { + let mut h = story_editor_harness("Column story"); + assert!(h.state().app.ui.story_editor_style_column, "shown by default"); + let app = &h.state().app; + let para_style = &app.session.active().unwrap().doc.stories.values().next().unwrap().paras[0].style; + let style = crate::i18n::style_name(&app.ui.language, para_style).to_string(); + assert!(h.query_by_label(&style).is_some(), "the column names the paragraph's style {style:?}"); + assert!(h.query_by_label("Style name column divider").is_some()); + let with = text_left(&h, "Column story"); + h.state_mut().app.run("view.storyEditorStyleColumn", json!({})).unwrap(); + h.run_steps(2); + let without = text_left(&h, "Column story"); + assert!(h.query_by_label(&style).is_none(), "no style names while the column is hidden"); + assert!(h.query_by_label("Style name column divider").is_none()); + assert!( + (with - without - super::STYLE_COLUMN_WIDTH - super::STYLE_BAR_WIDTH).abs() < 20.0, + "the text moves by the column: {with} vs {without}" + ); + let app = &h.state().app; + assert_eq!(crate::menus::checked(app, "view.storyEditorStyleColumn", &json!({})), Some(false)); + let saved = serde_json::to_vec(&app.ui).unwrap(); + assert!(!crate::UiState::from_preferences_json(&saved).unwrap().story_editor_style_column); + } + + /// Dragging the bar between the style names and the text resizes the column; the text moves + /// with the bar, and the width is remembered for the next time the editor opens. + #[test] + fn dragging_the_style_column_bar_resizes_the_column() { + use egui::{Event, Modifiers, PointerButton}; + let mut h = story_editor_harness("Resize story"); + let before = text_left(&h, "Resize story"); + let a = h.get_by_label("Style name column divider").rect().center(); + let b = a + egui::vec2(60.0, 0.0); + h.input_mut().events.push(Event::PointerMoved(a)); + h.input_mut().events.push(Event::PointerButton { pos: a, button: PointerButton::Primary, pressed: true, modifiers: Modifiers::NONE }); + h.step(); + for k in 1..=4 { + h.input_mut().events.push(Event::PointerMoved(a + (b - a) * (k as f32 / 4.0))); + h.step(); + } + h.input_mut().events.push(Event::PointerButton { pos: b, button: PointerButton::Primary, pressed: false, modifiers: Modifiers::NONE }); + h.run_steps(3); + let width = h.state().app.ui.story_editor_style_width; + assert!((width - super::STYLE_COLUMN_WIDTH - 60.0).abs() < 1.0, "the column is 60 points wider: {width}"); + let after = text_left(&h, "Resize story"); + assert!((after - before - 60.0).abs() < 1.0, "the text moves with the bar: {before} → {after}"); + let saved = serde_json::to_vec(&h.state().app.ui).unwrap(); + assert_eq!(crate::UiState::from_preferences_json(&saved).unwrap().story_editor_style_width, width); + } + + /// A saved width out of range, or not a number, gives a column the bar can still be dragged in. + #[test] + fn style_column_width_stays_in_range() { + assert_eq!(super::style_column_width(200.0), 200.0); + assert_eq!(super::style_column_width(-50.0), super::STYLE_COLUMN_RANGE.0); + assert_eq!(super::style_column_width(1e9), super::STYLE_COLUMN_RANGE.1); + assert_eq!(super::style_column_width(f32::NAN), super::STYLE_COLUMN_WIDTH); + assert_eq!(super::style_column_width(f32::INFINITY), super::STYLE_COLUMN_WIDTH); + } + + /// Showing or hiding the style name column or the depth ruler keeps the text's focus and caret: + /// typing goes on into the story. + #[test] + fn typing_goes_on_after_the_columns_show_or_hide() { + let mut h = story_editor_harness("Focus story"); + h.get_by(|n| n.role() == egui::accesskit::Role::MultilineTextInput && n.value().as_deref() == Some("Focus story")).focus(); + h.run_steps(2); + h.event(egui::Event::Text("1".into())); + h.run_steps(2); + for (i, id) in ["view.storyEditorStyleColumn", "view.storyEditorDepthRuler", "view.storyEditorStyleColumn"].into_iter().enumerate() { + h.state_mut().app.run(id, json!({})).unwrap(); + h.run_steps(2); + h.event(egui::Event::Text((i + 2).to_string())); + h.run_steps(2); + } + let text = story_text(&h.state().app, 0); + assert!(text.contains("1234"), "every key reaches the story at the caret: {text:?}"); + } + + /// `view.storyEditorStyleColumn` sets the column's width and whether it shows, as the bar and + /// the menu item do, and toggles it without either. + #[test] + fn the_style_column_command_takes_a_width() { + let mut app = DesignApp::new(designcraft_engine::Session::new(), Default::default()); + assert_eq!(app.run("view.storyEditorStyleColumn", json!({"width": 250})).unwrap(), json!({"on": true, "width": 250.0})); + assert_eq!(app.run("view.storyEditorStyleColumn", json!({"width": 1000})).unwrap()["width"], json!(400.0)); + assert_eq!(app.run("view.storyEditorStyleColumn", json!({"on": false})).unwrap(), json!({"on": false, "width": 400.0})); + assert_eq!(app.run("view.storyEditorStyleColumn", json!({})).unwrap()["on"], json!(true)); + assert!(app.run("view.storyEditorStyleColumn", json!({"width": "wide"})).is_err()); + assert!(app.run("view.storyEditorStyleColumn", json!({"on": 1})).is_err()); + assert_eq!((app.ui.story_editor_style_column, app.ui.story_editor_style_width), (true, 400.0)); + } + /// Story ids are counted per document: typing in the editor after switching documents edited /// the other document's story with the same id. #[test] diff --git a/docs/gaps.md b/docs/gaps.md index 17b852494..b302ababd 100644 --- a/docs/gaps.md +++ b/docs/gaps.md @@ -188,7 +188,7 @@ Kind: **F** feature · **U** UI/UX · **T** typography · **FF** file format · Profile / Edit Original, File ▸ File Info / Open PDF / Document and Print Presets / User Settings, Type ▸ Size presets, Table ▸ Table Options / Cell Options submenus, Paste Before/After, Convert Columns, Object ▸ Interactive ▸ Convert to (form fields), - View ▸ Extras badges and Story Editor options (Show/Hide Depth Ruler is there). Pages panel ▸ Parent Options (Based on Parent is + View ▸ Extras badges and Story Editor options (Show/Hide Depth Ruler and Show/Hide Style Name Column are there). Pages panel ▸ Parent Options (Based on Parent is the `layout.parents.options` command only); overriding a base parent's items on a parent spread itself (overrides work on document pages only). - **Estimate:** 40–70 h (most are thin wrappers over existing engine features). diff --git a/docs/ui-parity.md b/docs/ui-parity.md index 889ded035..2b174c8f2 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -50,7 +50,7 @@ basics of editing fail for too many users on Windows and Linux. | Panels: Pages, Layers, Swatches, Color, Stroke, Character, Paragraph, Styles, Links, Effects, Text Wrap, Align, Pathfinder, Table, Index, TOC, Hyperlinks, Bookmarks, Articles, Tags, Notes, Track Changes, Object States, Buttons and Forms, Preflight, Data Merge, Library, Scripts, Glyphs, Info, Tabs, Story | ✓ | all present | ~ | Navigator, Trap Presets, Animation, Timing missing; pull-down panels can't scroll on Linux (#267) | | Dialogs: New Document, Document Setup, Preferences (all pages), Paragraph/Character/Object/Table/Cell Style Options, Export PDF, Print, Package, Find/Change | ✓ | present | ~ | generated command dialogs fill the long tail; depth varies | | Workspaces | Essentials, Essentials Classic, Advanced, Book, Digital Publishing, Interactive for PDF, Printing and Proofing, Review, Typography, Touch | ✓ named workspaces (Essentials Classic: Control panel and iconic panel groups) + custom; Window › Workspace; no Review or Touch | ~ | tab bar overlaps menus in Book/Advanced (#182) | -| Story Editor | ✓ | ✓ | ~ | depth ruler and View › Story Editor › Show/Hide Depth Ruler (`story_editor.rs` `depth_ruler_shows_and_hides_from_the_view_menu`); hiding or resizing the style-name column missing | +| Story Editor | ✓ | ✓ | ~ | depth ruler and View › Story Editor › Show/Hide Depth Ruler (`story_editor.rs` `depth_ruler_shows_and_hides_from_the_view_menu`); Show/Hide Style Name Column and dragging the column's width (`style_name_column_shows_and_hides_from_the_view_menu`, `dragging_the_style_column_bar_resizes_the_column`); Expand/Collapse All Footnotes and Show/Hide Paragraph Break Marks missing | | Undo granularity (a drag = one step) | ✓ | ✓ (Begin/Preview/Commit) | ✓ | | | Closing with unsaved changes asks | ✓ | ✓ File › Close and window/menu quit (#146, #545) | ✓ | macOS Dock Quit still bypasses the prompt (#544) | | UI scaling, System appearance | ✓ | scaling ✓ (#281); follows macOS light/dark ✗ (#237) | ~ | | From ae375cdac4aa0128b4c0cb060c9e1d7852d840d5 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sat, 24 Oct 2026 17:35:31 -0700 Subject: [PATCH 15/77] =?UTF-8?q?Story=20Editor:=20View=20=E2=80=BA=20Stor?= =?UTF-8?q?y=20Editor=20=E2=80=BA=20Show/Hide=20Paragraph=20Break=20Marks,?= =?UTF-8?q?=20as=20in=20InDesign?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit View › Story Editor › Show/Hide Paragraph Break Marks (view.storyEditorParagraphMarks) shows or hides a ¶ after the last row of each paragraph in the Story Editor, the mark Type › Show Hidden Characters draws at paragraph ends on the canvas. The story's last paragraph has no paragraph break and gets no mark. While the marks show, the text wraps one text size short of the editor's right edge, so a mark after a full row stays within the text's width. The marks are off by default, and the setting is saved with the preferences. --- ROADMAP.md | 1 + crates/ui-egui/src/i18n.rs | 10 +++ crates/ui-egui/src/i18n/ar.rs | 1 + crates/ui-egui/src/i18n/cs.rs | 1 + crates/ui-egui/src/i18n/de.rs | 1 + crates/ui-egui/src/i18n/it.rs | 1 + crates/ui-egui/src/i18n/ja.rs | 1 + crates/ui-egui/src/i18n/ka.rs | 1 + crates/ui-egui/src/i18n/pl.rs | 1 + crates/ui-egui/src/i18n/pt_br.rs | 1 + crates/ui-egui/src/i18n/ru.rs | 1 + crates/ui-egui/src/i18n/uk.rs | 1 + crates/ui-egui/src/lib.rs | 3 + crates/ui-egui/src/menus.rs | 10 +++ crates/ui-egui/src/story_editor.rs | 117 ++++++++++++++++++++++++++++- docs/gaps.md | 2 +- docs/ui-parity.md | 2 +- 17 files changed, 151 insertions(+), 4 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index f7e4ca462..a831dbd13 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -366,6 +366,7 @@ Newest first. - **2026-10-23** · Layout › Go Back and Go Forward (Cmd+Page Up / Cmd+Page Down, Ctrl on Windows and Linux) retrace the jumps between pages (Go to Page, the page and spread commands, the Pages panel) as InDesign's do, returning to where the view was on each page at the current zoom; a new jump after going back drops the pages ahead, scrolling adds no entry, and pages deleted since are skipped. No readiness percentage change. - **2026-10-24** · The Story Editor has InDesign's vertical depth ruler between the style column and the text, and View › Story Editor › Show/Hide Depth Ruler (`view.storyEditorDepthRuler`) shows or hides it in the Story Editor, remembered with the preferences. The ruler is marked in the document's vertical ruler units with how deep the story's text fills its frames, counted through its columns and threaded frames (lines set side by side, in the sub-columns of a split paragraph or on both sides of a wrap object, count once), and is shaded down to the overset point, where a red line now crosses the editor. No readiness percentage change. - **2026-10-24** · View › Story Editor › Show/Hide Style Name Column (`view.storyEditorStyleColumn`) shows or hides the Story Editor's column of paragraph style names, as in InDesign, and dragging the bar between the column and the text makes the column wider or narrower (40 to 400 points; the command's `width` sets it too). Both settings are remembered with the preferences, so the editor opens with the same column the next time. No readiness percentage change. +- **2026-10-24** · View › Story Editor › Show/Hide Paragraph Break Marks (`view.storyEditorParagraphMarks`) shows or hides a ¶ after each paragraph that a paragraph break ends in the Story Editor, as in InDesign. The marks are off until turned on, and the setting is remembered with the preferences. No readiness percentage change. - **2026-10-24** · Type › Notes › Previous Note and Next Note (`note.previous`, `note.next`): as in InDesign, they move the insertion point from note to note in the story, putting the caret after the note's anchor. Each item is unavailable when no note lies in its direction in the story, or when the insertion point is in a table cell or a footnote. No readiness percentage change. - **2026-10-24** · Type › Notes › Convert to Note (`note.convertFromText {author?}`): as in InDesign, the selected text leaves the story and becomes the text of a new note, whose anchor takes its place; Convert Note to Text puts it back. DesignCraft refuses a selection in a table cell, or one that holds a note, footnote, endnote, anchored object, index marker, text anchor, cross-reference or table. No readiness percentage change. - **2026-10-23** · Effects dialog: with Use Global Light on, the Angle field (and the Bevel and Emboss one) stays editable and shows the document's global light angle; a change there sets the global light for every effect that uses it, applied with the effects in one undo step (`object.effects` takes `globalLight`). Before, the field was greyed out and the angle couldn't be changed in the dialog. No readiness percentage change. diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rs index e8f2058f2..c4d4c2508 100644 --- a/crates/ui-egui/src/i18n.rs +++ b/crates/ui-egui/src/i18n.rs @@ -2287,6 +2287,16 @@ const TABLE: &[(&str, [&str; 5])] = &[ "显示/隐藏面板(工具除外)", ], ), + ( + "Show/Hide Paragraph Break Marks", + [ + "Show/Hide Paragraph Break Marks", + "Afficher/Masquer les marques de fin de paragraphe", + "Show/Hide Paragraph Break Marks", + "Show/Hide Paragraph Break Marks", + "显示/隐藏段落结束标记", + ], + ), ("Show/Hide Rulers", ["Show/Hide Rulers", "Afficher/Masquer les règles", "Show/Hide Rulers", "Show/Hide Rulers", "显示/隐藏标尺"]), ( "Show/Hide Style Name Column", diff --git a/crates/ui-egui/src/i18n/ar.rs b/crates/ui-egui/src/i18n/ar.rs index cc859683a..a40812c76 100644 --- a/crates/ui-egui/src/i18n/ar.rs +++ b/crates/ui-egui/src/i18n/ar.rs @@ -1560,6 +1560,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Hidden Characters", "إظهار/إخفاء الأحرف المخفية"), ("Show/Hide Panels", "إظهار/إخفاء اللوحات"), ("Show/Hide Panels Except Tools", "إظهار/إخفاء اللوحات باستثناء الأدوات"), + ("Show/Hide Paragraph Break Marks", "إظهار/إخفاء علامات نهاية الفقرات"), ("Show/Hide Rulers", "إظهار/إخفاء المساطر"), ("Show/Hide Style Name Column", "إظهار/إخفاء عمود أسماء الأنماط"), ("Show/Hide Tagged Frames", "إظهار/إخفاء الإطارات الموسومة"), diff --git a/crates/ui-egui/src/i18n/cs.rs b/crates/ui-egui/src/i18n/cs.rs index ebaf96754..91dcf0f1a 100644 --- a/crates/ui-egui/src/i18n/cs.rs +++ b/crates/ui-egui/src/i18n/cs.rs @@ -715,6 +715,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Hidden Characters", "Zobrazit/skrýt skryté znaky"), ("Show/Hide Panels", "Zobrazit/skrýt panely"), ("Show/Hide Panels Except Tools", "Zobrazit/skrýt panely kromě nástrojů"), + ("Show/Hide Paragraph Break Marks", "Zobrazit/skrýt značky konce odstavce"), ("Show/Hide Rulers", "Zobrazit/skrýt pravítka"), ("Show/Hide Style Name Column", "Zobrazit/skrýt sloupec názvů stylů"), ("Show/Hide Tagged Frames", "Zobrazit/skrýt otagované rámečky"), diff --git a/crates/ui-egui/src/i18n/de.rs b/crates/ui-egui/src/i18n/de.rs index 988fffe45..d5dd233aa 100644 --- a/crates/ui-egui/src/i18n/de.rs +++ b/crates/ui-egui/src/i18n/de.rs @@ -752,6 +752,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Hidden Characters", "Verborgene Zeichen ein-/ausblenden"), ("Show/Hide Panels", "Bedienfelder ein-/ausblenden"), ("Show/Hide Panels Except Tools", "Bedienfelder außer Werkzeugen ein-/ausblenden"), + ("Show/Hide Paragraph Break Marks", "Absatzendemarken ein-/ausblenden"), ("Show/Hide Rulers", "Lineale ein-/ausblenden"), ("Show/Hide Style Name Column", "Spalte mit Formatnamen ein-/ausblenden"), ("Show/Hide Tagged Frames", "Getaggte Rahmen ein-/ausblenden"), diff --git a/crates/ui-egui/src/i18n/it.rs b/crates/ui-egui/src/i18n/it.rs index 7c3e6a1fa..dfd3a07ba 100644 --- a/crates/ui-egui/src/i18n/it.rs +++ b/crates/ui-egui/src/i18n/it.rs @@ -844,6 +844,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Hidden Characters", "Mostra/nascondi caratteri nascosti"), ("Show/Hide Panels", "Mostra/nascondi pannelli"), ("Show/Hide Panels Except Tools", "Mostra/nascondi pannelli tranne Strumenti"), + ("Show/Hide Paragraph Break Marks", "Mostra/nascondi segni di fine paragrafo"), ("Show/Hide Rulers", "Mostra/nascondi righelli"), ("Show/Hide Style Name Column", "Mostra/nascondi colonna nomi stili"), ("Show/Hide Tagged Frames", "Mostra/nascondi cornici con tag"), diff --git a/crates/ui-egui/src/i18n/ja.rs b/crates/ui-egui/src/i18n/ja.rs index 11d500fff..ef2da439e 100644 --- a/crates/ui-egui/src/i18n/ja.rs +++ b/crates/ui-egui/src/i18n/ja.rs @@ -945,6 +945,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Hidden Characters", "制御文字を表示・非表示"), ("Show/Hide Panels", "パネルを表示・非表示"), ("Show/Hide Panels Except Tools", "ツール以外のパネルを表示・非表示"), + ("Show/Hide Paragraph Break Marks", "段落の終わりのマークを表示・非表示"), ("Show/Hide Rulers", "定規を表示・非表示"), ("Show/Hide Style Name Column", "スタイル名の列を表示・非表示"), ("Show/Hide Tagged Frames", "タグ付きフレームを表示・非表示"), diff --git a/crates/ui-egui/src/i18n/ka.rs b/crates/ui-egui/src/i18n/ka.rs index 7d8c0c8f5..3bf75d0d8 100644 --- a/crates/ui-egui/src/i18n/ka.rs +++ b/crates/ui-egui/src/i18n/ka.rs @@ -771,6 +771,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Hidden Characters", "დამალული სიმბოლოების ჩვენება/დამალვა"), ("Show/Hide Panels", "პანელების ჩვენება/დამალვა"), ("Show/Hide Panels Except Tools", "პანელების ჩვენება/დამალვა, ხელსაწყოების გარდა"), + ("Show/Hide Paragraph Break Marks", "აბზაცის დასასრულის ნიშნების ჩვენება/დამალვა"), ("Show/Hide Rulers", "სახაზავების ჩვენება/დამალვა"), ("Show/Hide Style Name Column", "სტილების სახელების სვეტის ჩვენება/დამალვა"), ("Show/Hide Tagged Frames", "ტეგირებული ჩარჩოების ჩვენება/დამალვა"), diff --git a/crates/ui-egui/src/i18n/pl.rs b/crates/ui-egui/src/i18n/pl.rs index dfd0c73b4..8fd2d2999 100644 --- a/crates/ui-egui/src/i18n/pl.rs +++ b/crates/ui-egui/src/i18n/pl.rs @@ -722,6 +722,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Hidden Characters", "Pokaż/ukryj ukryte znaki"), ("Show/Hide Panels", "Pokaż/ukryj panele"), ("Show/Hide Panels Except Tools", "Pokaż/ukryj panele oprócz narzędzi"), + ("Show/Hide Paragraph Break Marks", "Pokaż/ukryj znaczniki końca akapitu"), ("Show/Hide Rulers", "Pokaż/ukryj linijki"), ("Show/Hide Style Name Column", "Pokaż/ukryj kolumnę nazw stylów"), ("Show/Hide Tagged Frames", "Pokaż/ukryj ramki z tagami"), diff --git a/crates/ui-egui/src/i18n/pt_br.rs b/crates/ui-egui/src/i18n/pt_br.rs index 9da2271e1..841d82cf4 100644 --- a/crates/ui-egui/src/i18n/pt_br.rs +++ b/crates/ui-egui/src/i18n/pt_br.rs @@ -1690,6 +1690,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Hidden Characters", "Mostrar/ocultar caracteres ocultos"), ("Show/Hide Panels", "Mostrar/ocultar painéis"), ("Show/Hide Panels Except Tools", "Mostrar/ocultar painéis, exceto ferramentas"), + ("Show/Hide Paragraph Break Marks", "Mostrar/ocultar marcas de fim de parágrafo"), ("Show/Hide Rulers", "Mostrar/ocultar réguas"), ("Show/Hide Style Name Column", "Mostrar/ocultar coluna de nomes de estilo"), ("Show/Hide Tagged Frames", "Mostrar/ocultar quadros marcados"), diff --git a/crates/ui-egui/src/i18n/ru.rs b/crates/ui-egui/src/i18n/ru.rs index a9cf072d6..2f26b4908 100644 --- a/crates/ui-egui/src/i18n/ru.rs +++ b/crates/ui-egui/src/i18n/ru.rs @@ -702,6 +702,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Hidden Characters", "Показать/скрыть скрытые символы"), ("Show/Hide Panels", "Показать/скрыть панели"), ("Show/Hide Panels Except Tools", "Показать/скрыть панели, кроме инструментов"), + ("Show/Hide Paragraph Break Marks", "Показать/скрыть знаки конца абзаца"), ("Show/Hide Rulers", "Показать/скрыть линейки"), ("Show/Hide Style Name Column", "Показать/скрыть столбец имен стилей"), ("Show/Hide Tagged Frames", "Показать/скрыть рамки с тегами"), diff --git a/crates/ui-egui/src/i18n/uk.rs b/crates/ui-egui/src/i18n/uk.rs index 77ef25482..d1e0e86b4 100644 --- a/crates/ui-egui/src/i18n/uk.rs +++ b/crates/ui-egui/src/i18n/uk.rs @@ -847,6 +847,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Hidden Characters", "Показати/приховати приховані символи"), ("Show/Hide Panels", "Показати/приховати панелі"), ("Show/Hide Panels Except Tools", "Показати/приховати панелі, крім інструментів"), + ("Show/Hide Paragraph Break Marks", "Показати/приховати знаки кінця абзацу"), ("Show/Hide Rulers", "Показати/приховати лінійки"), ("Show/Hide Style Name Column", "Показати/приховати стовпець назв стилів"), ("Show/Hide Tagged Frames", "Показати/приховати фрейми з тегами"), diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index a8d50049d..9706375b3 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -248,6 +248,8 @@ pub struct UiState { /// Width of the Story Editor's style name column, in screen points (set by dragging its bar or by /// `view.storyEditorStyleColumn` `width`). pub story_editor_style_width: f32, + /// View › Story Editor › Show/Hide Paragraph Break Marks. + pub story_editor_paragraph_marks: bool, /// Preferences › General › Interface Language: supported codes are listed in `i18n::LANGUAGES`. pub language: String, /// Edit › Transparency Flattener Presets: "" (none), "high", "medium" or "low" for PDF export. @@ -401,6 +403,7 @@ impl Default for UiState { story_editor_depth_ruler: true, story_editor_style_column: true, story_editor_style_width: story_editor::STYLE_COLUMN_WIDTH, + story_editor_paragraph_marks: false, scripts: vec![ ("Number the pages".into(), "# A page-number frame at the bottom of the current page.\nframe.create {\"rect\": [288, 740, 324, 760], \"content\": \"text\", \"text\": \"\"}\ntext.select {\"story\": \"$0.story\", \"anchor\": 0, \"focus\": 0}\ntext.insert {\"text\": \"\\ue000\", \"raw\": true}".into()), ("Two-column grid".into(), "# Four text frames in a 2 × 2 grid.\nframe.grid {\"rect\": [36, 36, 576, 756], \"cols\": 2, \"rows\": 2, \"gutter\": 12}".into()), diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rs index 5e8f2d297..17aa59e9e 100644 --- a/crates/ui-egui/src/menus.rs +++ b/crates/ui-egui/src/menus.rs @@ -227,6 +227,12 @@ pub const UI_COMMANDS: &[(&str, &str, Option<&str>, &str)] = &[ None, "{} — the Story Editor's vertical ruler of how deep the text reaches in its frames", ), + ( + "view.storyEditorParagraphMarks", + "Show/Hide Paragraph Break Marks", + None, + "{} — a ¶ after each paragraph that a paragraph break ends, in the Story Editor", + ), ("window.hidePanels", "Show/Hide Panels", Some("Tab"), "{} — every panel, the Tools panel included"), ("window.hidePanelsExceptTools", "Show/Hide Panels Except Tools", Some("Shift+Tab"), "{}"), ("window.nextDocument", "Next Document", Some("Cmd+F6"), "{}"), @@ -875,6 +881,7 @@ pub const MENUS: &[(&str, &[&str])] = &[ ">Story Editor", "ui:view.storyEditorStyleColumn", "ui:view.storyEditorDepthRuler", + "ui:view.storyEditorParagraphMarks", "<", ], ), @@ -1612,6 +1619,7 @@ fn run_ui_inner(app: &mut DesignApp, id: &str, p: &Value) -> Option flag(&mut app.ui.story_editor_depth_ruler), + "view.storyEditorParagraphMarks" => flag(&mut app.ui.story_editor_paragraph_marks), "window.hidePanels" | "window.hidePanelsExceptTools" => { let mode = if id == "window.hidePanels" { 1 } else { 2 }; app.ui.hidden_panels = if app.ui.hidden_panels == mode { 0 } else { mode }; @@ -2501,6 +2509,7 @@ pub fn checked(app: &DesignApp, id: &str, params: &Value) -> Option { "view.taggedFrames" => app.ui.tagged_frames, "view.storyEditorStyleColumn" => app.ui.story_editor_style_column, "view.storyEditorDepthRuler" => app.ui.story_editor_depth_ruler, + "view.storyEditorParagraphMarks" => app.ui.story_editor_paragraph_marks, "changes.track" => app.session.active().is_some_and(|d| d.doc.settings.track_changes), // Pressed, as the Bulleted and Numbered List buttons: every paragraph the command applies // to (selected text, cells or text frames) has it. @@ -3442,6 +3451,7 @@ mod tests { "view.tagMarkers", "view.storyEditorStyleColumn", "view.storyEditorDepthRuler", + "view.storyEditorParagraphMarks", ] { assert!(view.contains(&id), "{id} is in View"); assert!(!typ.contains(&id), "{id} isn't in Type"); diff --git a/crates/ui-egui/src/story_editor.rs b/crates/ui-egui/src/story_editor.rs index 614249bd3..227d52a50 100644 --- a/crates/ui-egui/src/story_editor.rs +++ b/crates/ui-egui/src/story_editor.rs @@ -23,6 +23,9 @@ const RULER_WIDTH: f32 = 34.0; const RULER_LABEL_GAP: f32 = 10.0; /// Color of the overset line and label. const OVERSET_RED: egui::Color32 = egui::Color32::from_rgb(230, 40, 40); +/// The mark after each paragraph that a paragraph break ends while View › Story Editor › Show Paragraph +/// Break Marks is on, as Type › Show Hidden Characters marks paragraph ends on the canvas. +const PARAGRAPH_MARK: &str = "¶"; /// The story open in the Story Editor. Story ids are counted per document, so the editor is bound /// to the document the story belongs to. @@ -79,12 +82,16 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) { // Depth ruler: painted after the text too, beside the rows the lines start on. let ruler = depths.as_ref().map(|_| ui.allocate_exact_size(vec2(RULER_WIDTH, 0.0), egui::Sense::hover()).0); let mut text = story.text.clone(); + let font = egui::FontId::proportional(app.ui.story_editor_size.clamp(8.0, 36.0)); + // With paragraph break marks shown, the text wraps one text size short of the edge, so a + // mark after a full row stays within the width the text has without marks. + let width = if app.ui.story_editor_paragraph_marks { (ui.available_width() - font.size).max(font.size) } else { f32::INFINITY }; // The text field has a fixed id, so it keeps its focus and caret when the columns before it // are shown or hidden. let out = egui::TextEdit::multiline(&mut text) .id(egui::Id::new("story_editor_text")) - .font(egui::FontId::proportional(app.ui.story_editor_size.clamp(8.0, 36.0))) - .desired_width(f32::INFINITY) + .font(font.clone()) + .desired_width(width) .desired_rows(20) .frame(egui::Frame::NONE) .show(ui); @@ -110,6 +117,11 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) { } drag.widget_info(|| egui::WidgetInfo::labeled(egui::WidgetType::Other, true, "Style name column divider")); } + if app.ui.story_editor_paragraph_marks { + for spot in paragraph_mark_spots(&out.galley) { + ui.painter().text(out.galley_pos + spot.to_vec2(), egui::Align2::LEFT_TOP, PARAGRAPH_MARK, font.clone(), t.text_dim); + } + } let overset_y = overset.map(|o| { let ci = char_offsets(&story.text, std::iter::once(o)); out.galley_pos.y + start_rows(&out.galley, &ci).first().map_or(0.0, |row| row.0) @@ -185,6 +197,12 @@ pub(crate) fn style_column_width(width: f32) -> f32 { if width.is_finite() { width.clamp(STYLE_COLUMN_RANGE.0, STYLE_COLUMN_RANGE.1) } else { STYLE_COLUMN_WIDTH } } +/// Where the paragraph break marks go, in galley coordinates (each mark's top left): just after the +/// last row of every paragraph that a paragraph break ends, past any spaces at its end. +fn paragraph_mark_spots(galley: &egui::Galley) -> Vec { + galley.rows.iter().filter(|row| row.ends_with_newline).map(|row| pos2(row.rect().max.x + 1.0, row.rect().min.y)).collect() +} + /// Vertical offset of the first laid-out row of each paragraph, from `(row y, row ends with a newline)` /// in layout order. A paragraph that wraps spans several rows, so counting characters per line /// drifts from what the editor draws; the rows themselves are the truth. @@ -614,6 +632,101 @@ mod tests { assert_eq!((app.ui.story_editor_style_column, app.ui.story_editor_style_width), (true, 400.0)); } + /// Every ¶ painted in the window: its rect and the rect it is clipped to. + fn paragraph_marks(h: &egui_kittest::Harness<'_, crate::test_window::Window>) -> Vec<(egui::Rect, egui::Rect)> { + fn walk(shape: &egui::Shape, clip: egui::Rect, out: &mut Vec<(egui::Rect, egui::Rect)>) { + match shape { + egui::Shape::Vec(shapes) => shapes.iter().for_each(|s| walk(s, clip, out)), + egui::Shape::Text(t) if t.galley.text() == super::PARAGRAPH_MARK => out.push((t.visual_bounding_rect(), clip)), + _ => {} + } + } + let mut out = Vec::new(); + for c in &h.output().shapes { + walk(&c.shape, c.clip_rect, &mut out); + } + out + } + + /// View › Story Editor › Show/Hide Paragraph Break Marks: off at first; on, a ¶ follows each of the + /// first two paragraphs and none the last; the setting is remembered. + #[test] + fn paragraph_break_marks_show_and_hide_from_the_view_menu() { + let text = format!("First\n{}\nLast", "A paragraph long enough to wrap over several rows in the editor. ".repeat(12).trim_end()); + let mut h = story_editor_harness(&text); + assert!(!h.state().app.ui.story_editor_paragraph_marks, "hidden by default"); + let before = paragraph_marks(&h); + h.state_mut().app.run("view.storyEditorParagraphMarks", json!({})).unwrap(); + h.run_steps(2); + let field = h.get_by(|n| n.role() == egui::accesskit::Role::MultilineTextInput && n.value().as_deref() == Some(text.as_str())).rect(); + let marks: Vec<_> = paragraph_marks(&h).into_iter().filter(|m| !before.contains(m)).collect(); + assert_eq!(marks.len(), 2, "one mark after each of the first two paragraphs: {marks:?}"); + let (first, second) = (marks[0].0, marks[1].0); + assert!(first.min.x > field.min.x && first.min.x < field.center().x, "the first mark follows the short first row: {first:?} in {field:?}"); + assert!( + second.min.y > first.min.y + 2.0 * first.height(), + "the second mark is below the first, past the wrapped paragraph's first rows: {first:?}, {second:?}" + ); + let app = &h.state().app; + assert_eq!(crate::menus::checked(app, "view.storyEditorParagraphMarks", &json!({})), Some(true)); + let saved = serde_json::to_vec(&app.ui).unwrap(); + assert!(crate::UiState::from_preferences_json(&saved).unwrap().story_editor_paragraph_marks); + h.state_mut().app.run("view.storyEditorParagraphMarks", json!({})).unwrap(); + h.run_steps(2); + assert_eq!(paragraph_marks(&h), before, "hiding them takes the marks away"); + } + + /// A paragraph that would just fill the editor's width wraps while the marks show, so its mark is + /// drawn within the width the text has without marks, not in the window's margin or cut off. + #[test] + fn a_mark_after_a_full_row_stays_in_the_window() { + let field = |h: &egui_kittest::Harness<'_, crate::test_window::Window>, text: &str| { + h.get_by(|n| n.role() == egui::accesskit::Role::MultilineTextInput && n.value().as_deref() == Some(text)).rect() + }; + let h = story_editor_harness("x"); + let full = field(&h, "x").width(); + let size = h.state().app.ui.story_editor_size; + let width = |s: &str| h.ctx.fonts_mut(|f| f.layout_no_wrap(s.into(), egui::FontId::proportional(size), egui::Color32::WHITE)).size().x; + let mut line = String::from("i"); + while width(&format!("{line}i")) < full - 1.0 { + line.push('i'); + } + assert!(full - width(&line) < 4.0, "the row fills the editor: {} of {full}", width(&line)); + drop(h); + let text = format!("{line}\nEnd"); + let mut h = story_editor_harness(&text); + let edge = field(&h, &text).max.x; + let before = paragraph_marks(&h); + h.state_mut().app.run("view.storyEditorParagraphMarks", json!({})).unwrap(); + h.run_steps(2); + let marks: Vec<_> = paragraph_marks(&h).into_iter().filter(|m| !before.contains(m)).collect(); + assert_eq!(marks.len(), 1, "{marks:?}"); + let (rect, clip) = marks[0]; + assert!(clip.contains_rect(rect), "the mark is not cut off: {rect:?} in {clip:?}"); + assert!(rect.max.x <= edge, "the mark stays left of the text's right edge {edge}: {rect:?}"); + } + + /// A mark goes after the last row of a wrapped paragraph and after an empty paragraph, and not + /// after the story's last paragraph, which no paragraph break ends. + #[test] + fn paragraph_marks_go_after_each_paragraph_break() { + let ctx = egui::Context::default(); + let mut galley = None; + let mut output = ctx.run_ui(egui::RawInput::default(), |ui| { + galley = Some(ui.fonts_mut(|f| f.layout("aa\nbbbb bbbb\n\ncc".into(), egui::FontId::proportional(14.0), egui::Color32::WHITE, 40.0))); + }); + output.textures_delta.clear(); + let galley = galley.expect("laid out"); + let spots = super::paragraph_mark_spots(&galley); + assert_eq!(spots.len(), 3, "{spots:?}"); + let rows = &galley.rows; + assert!(rows.len() >= 5, "the second paragraph wraps: {} rows", rows.len()); + assert_eq!(spots[0], egui::pos2(rows[0].rect().max.x + 1.0, rows[0].rect().min.y)); + assert_eq!(spots[1].y, rows[2].rect().min.y, "after the wrapped row, not the paragraph's first"); + assert!(spots[1].x > rows[2].rect().min.x + 1.0); + assert_eq!(spots[2], egui::pos2(rows[3].rect().min.x + 1.0, rows[3].rect().min.y), "the empty paragraph"); + } + /// Story ids are counted per document: typing in the editor after switching documents edited /// the other document's story with the same id. #[test] diff --git a/docs/gaps.md b/docs/gaps.md index b302ababd..0f77c46ab 100644 --- a/docs/gaps.md +++ b/docs/gaps.md @@ -188,7 +188,7 @@ Kind: **F** feature · **U** UI/UX · **T** typography · **FF** file format · Profile / Edit Original, File ▸ File Info / Open PDF / Document and Print Presets / User Settings, Type ▸ Size presets, Table ▸ Table Options / Cell Options submenus, Paste Before/After, Convert Columns, Object ▸ Interactive ▸ Convert to (form fields), - View ▸ Extras badges and Story Editor options (Show/Hide Depth Ruler and Show/Hide Style Name Column are there). Pages panel ▸ Parent Options (Based on Parent is + View ▸ Extras badges and Story Editor options (Show/Hide Depth Ruler, Show/Hide Style Name Column and Show/Hide Paragraph Break Marks are there). Pages panel ▸ Parent Options (Based on Parent is the `layout.parents.options` command only); overriding a base parent's items on a parent spread itself (overrides work on document pages only). - **Estimate:** 40–70 h (most are thin wrappers over existing engine features). diff --git a/docs/ui-parity.md b/docs/ui-parity.md index 2b174c8f2..25855ffef 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -50,7 +50,7 @@ basics of editing fail for too many users on Windows and Linux. | Panels: Pages, Layers, Swatches, Color, Stroke, Character, Paragraph, Styles, Links, Effects, Text Wrap, Align, Pathfinder, Table, Index, TOC, Hyperlinks, Bookmarks, Articles, Tags, Notes, Track Changes, Object States, Buttons and Forms, Preflight, Data Merge, Library, Scripts, Glyphs, Info, Tabs, Story | ✓ | all present | ~ | Navigator, Trap Presets, Animation, Timing missing; pull-down panels can't scroll on Linux (#267) | | Dialogs: New Document, Document Setup, Preferences (all pages), Paragraph/Character/Object/Table/Cell Style Options, Export PDF, Print, Package, Find/Change | ✓ | present | ~ | generated command dialogs fill the long tail; depth varies | | Workspaces | Essentials, Essentials Classic, Advanced, Book, Digital Publishing, Interactive for PDF, Printing and Proofing, Review, Typography, Touch | ✓ named workspaces (Essentials Classic: Control panel and iconic panel groups) + custom; Window › Workspace; no Review or Touch | ~ | tab bar overlaps menus in Book/Advanced (#182) | -| Story Editor | ✓ | ✓ | ~ | depth ruler and View › Story Editor › Show/Hide Depth Ruler (`story_editor.rs` `depth_ruler_shows_and_hides_from_the_view_menu`); Show/Hide Style Name Column and dragging the column's width (`style_name_column_shows_and_hides_from_the_view_menu`, `dragging_the_style_column_bar_resizes_the_column`); Expand/Collapse All Footnotes and Show/Hide Paragraph Break Marks missing | +| Story Editor | ✓ | ✓ | ~ | depth ruler and View › Story Editor › Show/Hide Depth Ruler (`story_editor.rs` `depth_ruler_shows_and_hides_from_the_view_menu`); Show/Hide Style Name Column and dragging the column's width (`style_name_column_shows_and_hides_from_the_view_menu`, `dragging_the_style_column_bar_resizes_the_column`); Show/Hide Paragraph Break Marks (`paragraph_break_marks_show_and_hide_from_the_view_menu`); Expand/Collapse All Footnotes missing | | Undo granularity (a drag = one step) | ✓ | ✓ (Begin/Preview/Commit) | ✓ | | | Closing with unsaved changes asks | ✓ | ✓ File › Close and window/menu quit (#146, #545) | ✓ | macOS Dock Quit still bypasses the prompt (#544) | | UI scaling, System appearance | ✓ | scaling ✓ (#281); follows macOS light/dark ✗ (#237) | ~ | | From 59065765652b2a94578b7d27919dd6174f21dd76 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sat, 24 Oct 2026 18:42:35 -0700 Subject: [PATCH 16/77] Story Editor: a long style name is cut short at the column, and a huge width gives the widest column --- crates/ui-egui/src/menus.rs | 3 ++- crates/ui-egui/src/story_editor.rs | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rs index 5e8f2d297..85d05dc8e 100644 --- a/crates/ui-egui/src/menus.rs +++ b/crates/ui-egui/src/menus.rs @@ -1605,7 +1605,8 @@ fn run_ui_inner(app: &mut DesignApp, id: &str, p: &Value) -> Option { app.ui.story_editor_style_column = on.unwrap_or(app.ui.story_editor_style_column); if let Some(w) = width { - app.ui.story_editor_style_width = crate::story_editor::style_column_width(w as f32); + app.ui.story_editor_style_width = + crate::story_editor::style_column_width(w.clamp(f64::from(f32::MIN), f64::from(f32::MAX)) as f32); } } } diff --git a/crates/ui-egui/src/story_editor.rs b/crates/ui-egui/src/story_editor.rs index 614249bd3..5f283d577 100644 --- a/crates/ui-egui/src/story_editor.rs +++ b/crates/ui-egui/src/story_editor.rs @@ -95,6 +95,7 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) { let Some(para) = story.paras.get(i) else { break }; let rect = egui::Rect::from_min_size(egui::pos2(column.min.x, out.galley_pos.y + y), vec2(column.width(), 14.0)); ui.scope_builder(egui::UiBuilder::new().max_rect(rect), |ui| { + ui.style_mut().wrap_mode = Some(egui::TextWrapMode::Truncate); let name = crate::i18n::style_name(&app.ui.language, ¶.style); crate::rtl::label(ui, egui::RichText::new(name).size(11.0).color(t.text_dim)); }); @@ -545,6 +546,22 @@ mod tests { assert!(!crate::UiState::from_preferences_json(&saved).unwrap().story_editor_style_column); } + /// A style name wider than the column is cut short at the column's edge, so it does not run + /// into the story text. + #[test] + fn a_long_style_name_stays_in_the_column() { + let mut h = story_editor_harness("Narrow story"); + h.state_mut().app.run("view.storyEditorStyleColumn", json!({"width": 40})).unwrap(); + h.run_steps(2); + let app = &h.state().app; + let para_style = &app.session.active().unwrap().doc.stories.values().next().unwrap().paras[0].style; + let style = crate::i18n::style_name(&app.ui.language, para_style).to_string(); + let name = h.get_by_label(&style).rect(); + let text = text_left(&h, "Narrow story"); + assert!(name.width() <= 40.5, "the name {style:?} is cut to the column: {name:?}"); + assert!(name.max.x <= text, "the name ends before the text: {name:?}, text at {text}"); + } + /// Dragging the bar between the style names and the text resizes the column; the text moves /// with the bar, and the width is remembered for the next time the editor opens. #[test] @@ -607,6 +624,8 @@ mod tests { let mut app = DesignApp::new(designcraft_engine::Session::new(), Default::default()); assert_eq!(app.run("view.storyEditorStyleColumn", json!({"width": 250})).unwrap(), json!({"on": true, "width": 250.0})); assert_eq!(app.run("view.storyEditorStyleColumn", json!({"width": 1000})).unwrap()["width"], json!(400.0)); + assert_eq!(app.run("view.storyEditorStyleColumn", json!({"width": -1e40})).unwrap()["width"], json!(40.0)); + assert_eq!(app.run("view.storyEditorStyleColumn", json!({"width": 1e40})).unwrap()["width"], json!(400.0)); assert_eq!(app.run("view.storyEditorStyleColumn", json!({"on": false})).unwrap(), json!({"on": false, "width": 400.0})); assert_eq!(app.run("view.storyEditorStyleColumn", json!({})).unwrap()["on"], json!(true)); assert!(app.run("view.storyEditorStyleColumn", json!({"width": "wide"})).is_err()); From e971d781874ac42d50acdfc1b38b8b1f0b0dfb75 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Tue, 27 Oct 2026 22:16:50 -0700 Subject: [PATCH 17/77] i18n: translate Show/Hide Paragraph Break Marks into Spanish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The View › Story Editor item showed in English when the interface language was Spanish. A test checks that the three Story Editor items are translated in every interface language. --- crates/ui-egui/src/i18n/table.rs | 2 +- crates/ui-egui/src/i18n/tests.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/i18n/table.rs b/crates/ui-egui/src/i18n/table.rs index c41fa2c02..56d26d157 100644 --- a/crates/ui-egui/src/i18n/table.rs +++ b/crates/ui-egui/src/i18n/table.rs @@ -2350,7 +2350,7 @@ pub(super) const TABLE: &[(&str, [&str; 5])] = &[ [ "Show/Hide Paragraph Break Marks", "Afficher/Masquer les marques de fin de paragraphe", - "Show/Hide Paragraph Break Marks", + "Mostrar/ocultar marcas de fin de párrafo", "Show/Hide Paragraph Break Marks", "显示/隐藏段落结束标记", ], diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs index db13138cf..c28d2725f 100644 --- a/crates/ui-egui/src/i18n/tests.rs +++ b/crates/ui-egui/src/i18n/tests.rs @@ -77,6 +77,18 @@ fn arrangement_accessible_name_is_localized_in_every_interface_language() { } } +/// The View › Story Editor items are translated in every interface language. +#[test] +fn story_editor_view_items_are_localized_in_every_interface_language() { + for key in ["Show/Hide Depth Ruler", "Show/Hide Style Name Column", "Show/Hide Paragraph Break Marks"] { + for (code, name) in LANGUAGES.iter().filter(|(code, _)| !code.is_empty()) { + let label = tr(code, key); + assert_ne!(label, key, "{name}: {key}"); + assert!(!label.trim().is_empty(), "{name}: {key}"); + } + } +} + #[test] fn context_captions_come_from_their_context_or_the_plain_translation() { for (lang, table) in CONTEXT_TABLES { From 65bb4521ddc074d44b6dadb7261dc7acadc0288c Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 28 Oct 2026 19:04:14 +0000 Subject: [PATCH 18/77] Save documents as: the Preferences menu uses craft_ui's combo box Upstream now disallows egui::ComboBox (it can't grow back while open, egui#5225). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CgGsJkVe5GYG9qK6VFdECa --- crates/ui-egui/src/dialogs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs index 8dff69f1a..11cd6a973 100644 --- a/crates/ui-egui/src/dialogs.rs +++ b/crates/ui-egui/src/dialogs.rs @@ -1866,7 +1866,7 @@ fn preferences(app: &crate::DesignApp, ui: &mut egui::Ui, d: &mut Dialog, max_he let cur = d.s("saveFormat"); let formats = [("designcraft", "DesignCraft (.designcraft)"), ("idml", "InDesign Markup (.idml)")]; let shown = formats.iter().find(|(v, _)| *v == cur).map_or(formats[0].1, |(_, l)| l); - egui::ComboBox::from_id_salt("pref_save_format") + craft_ui::ComboBox::from_id_salt("pref_save_format") .selected_text(crate::rtl::widget(ui, crate::i18n::tr(&app.ui.language, shown))) .width(220.0) .show_ui(ui, |ui| { From da108b7155ff53c457a7a647e208f936087f2522 Mon Sep 17 00:00:00 2001 From: moppeeer Date: Thu, 29 Oct 2026 13:32:09 +0100 Subject: [PATCH 19/77] rustfmt Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/canvas/tests.rs | 141 ++++++++++++++--------------- 1 file changed, 70 insertions(+), 71 deletions(-) diff --git a/crates/ui-egui/src/canvas/tests.rs b/crates/ui-egui/src/canvas/tests.rs index 194b29e6f..34030e491 100644 --- a/crates/ui-egui/src/canvas/tests.rs +++ b/crates/ui-egui/src/canvas/tests.rs @@ -86,78 +86,77 @@ fn bleed_and_slug_are_preview_modes_that_show_their_area() { } } - /// A picture placed from a file carries the link badge on its frame's top edge, near the left - /// corner, as in the tutorial's chapter 10; an embedded picture has none, a missing file shows - /// the stop instead, and View › Extras hides the badges. - #[test] - fn linked_pictures_carry_the_link_badge() { - let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default()); - app.run("file.new", json!({})).unwrap(); - let png = designcraft_render::Rendered { width: 40, height: 20, pixels: vec![200; 40 * 20 * 4] }.to_png(); - let dir = tempfile::tempdir().unwrap(); - let path = dir.path().join("snowflake.png"); - std::fs::write(&path, &png).unwrap(); - let linked = app.run("frame.create", json!({"rect": [72, 72, 272, 172]})).unwrap()["id"].as_u64().unwrap(); - app.run("file.place", json!({"path": path.to_string_lossy(), "frame": linked})).unwrap(); - let embedded = app.run("frame.create", json!({"rect": [72, 300, 272, 400]})).unwrap()["id"].as_u64().unwrap(); - app.run("file.place", json!({"base64": designcraft_engine::cmd::base64_encode(&png), "name": "e.png", "frame": embedded})).unwrap(); - let ctx = egui::Context::default(); - let xf = Xf::new(Rect::from_min_size(Pos2::ZERO, vec2(1440.0, 900.0)), &View::default()); - // The check runs off the UI thread: ask until the result for this document state is in. - let badges = |app: &mut DesignApp| { - let doc = app.session.active().unwrap().doc.clone(); - let key = (app.session.active().unwrap().uid, app.session.active().unwrap().revision); - for _ in 0..1000 { - let status = link_statuses(app, &ctx, &doc); - let check = ctx.data(|d| d.get_temp::(egui::Id::new(("link_badge_status", app.pane)))).unwrap(); - if check.key == key && check.pending.is_none() { - return link_badges(&doc, &CanvasLayout::new(&doc, false), &xf, &status); - } - std::thread::sleep(std::time::Duration::from_millis(2)); +/// A picture placed from a file carries the link badge on its frame's top edge, near the left +/// corner, as in the tutorial's chapter 10; an embedded picture has none, a missing file shows +/// the stop instead, and View › Extras hides the badges. +#[test] +fn linked_pictures_carry_the_link_badge() { + let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default()); + app.run("file.new", json!({})).unwrap(); + let png = designcraft_render::Rendered { width: 40, height: 20, pixels: vec![200; 40 * 20 * 4] }.to_png(); + let dir = tempfile::tempdir().unwrap(); + let path = dir.path().join("snowflake.png"); + std::fs::write(&path, &png).unwrap(); + let linked = app.run("frame.create", json!({"rect": [72, 72, 272, 172]})).unwrap()["id"].as_u64().unwrap(); + app.run("file.place", json!({"path": path.to_string_lossy(), "frame": linked})).unwrap(); + let embedded = app.run("frame.create", json!({"rect": [72, 300, 272, 400]})).unwrap()["id"].as_u64().unwrap(); + app.run("file.place", json!({"base64": designcraft_engine::cmd::base64_encode(&png), "name": "e.png", "frame": embedded})).unwrap(); + let ctx = egui::Context::default(); + let xf = Xf::new(Rect::from_min_size(Pos2::ZERO, vec2(1440.0, 900.0)), &View::default()); + // The check runs off the UI thread: ask until the result for this document state is in. + let badges = |app: &mut DesignApp| { + let doc = app.session.active().unwrap().doc.clone(); + let key = (app.session.active().unwrap().uid, app.session.active().unwrap().revision); + for _ in 0..1000 { + let status = link_statuses(app, &ctx, &doc); + let check = ctx.data(|d| d.get_temp::(egui::Id::new(("link_badge_status", app.pane)))).unwrap(); + if check.key == key && check.pending.is_none() { + return link_badges(&doc, &CanvasLayout::new(&doc, false), &xf, &status); } - panic!("the link check didn't finish"); - }; - let b = badges(&mut app); - assert_eq!(b.len(), 1, "only the linked picture: {b:?}"); - assert_eq!(b[0].1, LinkBadge::Linked); - let doc = app.session.active().unwrap().doc.clone(); - let layout = CanvasLayout::new(&doc, false); - let (a, _) = item_canvas_xf(&doc, &layout, designcraft_doc::ItemId(linked)).unwrap(); - let r = doc.item(designcraft_doc::ItemId(linked)).unwrap().bounds(); - let corner = xf.to_screen(a * Point::new(r.x0, r.y0)); - let d = b[0].0 - corner; - assert!(d.y.abs() < 0.5 && d.x > 0.0 && d.x <= 16.5, "on the top edge near the left corner: {d:?}"); - // Rotated, the badge stays on the frame's own top edge, 16 px from its corner along it. - app.run("transform.set", json!({"ids": [linked], "rotation": 30})).unwrap(); - let doc = app.session.active().unwrap().doc.clone(); - let it = doc.item(designcraft_doc::ItemId(linked)).unwrap().clone(); - let (a, _) = item_canvas_xf(&doc, &CanvasLayout::new(&doc, false), designcraft_doc::ItemId(linked)).unwrap(); - let ib = it.inner_bounds(); - let (tl, tr) = (xf.to_screen(a * it.xf * Point::new(ib.x0, ib.y0)), xf.to_screen(a * it.xf * Point::new(ib.x1, ib.y0))); - let c = badges(&mut app)[0].0; - let along = (tr - tl).normalized(); - let off = c - tl; - assert!((off.dot(along) - 16.0).abs() < 0.5 && (off.x * along.y - off.y * along.x).abs() < 0.5, "on the rotated top edge: {off:?}"); - app.run("edit.undo", json!({})).unwrap(); - // A linked picture on the parent page shows its badge on the document page that shows it - // (the first page is a right-hand one: the parent's right page). - let px = app.session.active().unwrap().doc.parents[0].pages[1].x; - let pf = - app.run("frame.create", json!({"rect": [px + 300.0, 500, px + 400.0, 600], "spread": {"kind": "parent", "index": 0}})).unwrap()["id"] - .as_u64() - .unwrap(); - app.run("file.place", json!({"path": path.to_string_lossy(), "frame": pf})).unwrap(); - assert_eq!(badges(&mut app).len(), 2, "the parent page's picture too"); - // The file gone: the badge says so (the check runs again once the document changes). - std::fs::remove_file(&path).unwrap(); - app.run("frame.create", json!({"rect": [400, 400, 420, 420]})).unwrap(); - assert_eq!(badges(&mut app)[0].1, LinkBadge::Missing); - // View › Extras › Hide Link Badge. - assert_eq!(crate::menus::checked(&app, "view.linkBadge", &json!({})), Some(true)); - app.run("view.linkBadge", json!({})).unwrap(); - assert!(!app.ui.link_badge); - assert_eq!(crate::menus::checked(&app, "view.linkBadge", &json!({})), Some(false)); - } + std::thread::sleep(std::time::Duration::from_millis(2)); + } + panic!("the link check didn't finish"); + }; + let b = badges(&mut app); + assert_eq!(b.len(), 1, "only the linked picture: {b:?}"); + assert_eq!(b[0].1, LinkBadge::Linked); + let doc = app.session.active().unwrap().doc.clone(); + let layout = CanvasLayout::new(&doc, false); + let (a, _) = item_canvas_xf(&doc, &layout, designcraft_doc::ItemId(linked)).unwrap(); + let r = doc.item(designcraft_doc::ItemId(linked)).unwrap().bounds(); + let corner = xf.to_screen(a * Point::new(r.x0, r.y0)); + let d = b[0].0 - corner; + assert!(d.y.abs() < 0.5 && d.x > 0.0 && d.x <= 16.5, "on the top edge near the left corner: {d:?}"); + // Rotated, the badge stays on the frame's own top edge, 16 px from its corner along it. + app.run("transform.set", json!({"ids": [linked], "rotation": 30})).unwrap(); + let doc = app.session.active().unwrap().doc.clone(); + let it = doc.item(designcraft_doc::ItemId(linked)).unwrap().clone(); + let (a, _) = item_canvas_xf(&doc, &CanvasLayout::new(&doc, false), designcraft_doc::ItemId(linked)).unwrap(); + let ib = it.inner_bounds(); + let (tl, tr) = (xf.to_screen(a * it.xf * Point::new(ib.x0, ib.y0)), xf.to_screen(a * it.xf * Point::new(ib.x1, ib.y0))); + let c = badges(&mut app)[0].0; + let along = (tr - tl).normalized(); + let off = c - tl; + assert!((off.dot(along) - 16.0).abs() < 0.5 && (off.x * along.y - off.y * along.x).abs() < 0.5, "on the rotated top edge: {off:?}"); + app.run("edit.undo", json!({})).unwrap(); + // A linked picture on the parent page shows its badge on the document page that shows it + // (the first page is a right-hand one: the parent's right page). + let px = app.session.active().unwrap().doc.parents[0].pages[1].x; + let pf = app.run("frame.create", json!({"rect": [px + 300.0, 500, px + 400.0, 600], "spread": {"kind": "parent", "index": 0}})).unwrap()["id"] + .as_u64() + .unwrap(); + app.run("file.place", json!({"path": path.to_string_lossy(), "frame": pf})).unwrap(); + assert_eq!(badges(&mut app).len(), 2, "the parent page's picture too"); + // The file gone: the badge says so (the check runs again once the document changes). + std::fs::remove_file(&path).unwrap(); + app.run("frame.create", json!({"rect": [400, 400, 420, 420]})).unwrap(); + assert_eq!(badges(&mut app)[0].1, LinkBadge::Missing); + // View › Extras › Hide Link Badge. + assert_eq!(crate::menus::checked(&app, "view.linkBadge", &json!({})), Some(true)); + app.run("view.linkBadge", json!({})).unwrap(); + assert!(!app.ui.link_badge); + assert_eq!(crate::menus::checked(&app, "view.linkBadge", &json!({})), Some(false)); +} /// Each preview mode's shown area: Preview stops at the trim, Bleed reaches the bleed box and /// Slug the slug box. A slug narrower than the bleed never pulls the edge back in. From 9d84639a61097d8da2cae0aa9b5e45b81c16879f Mon Sep 17 00:00:00 2001 From: moppeeer Date: Thu, 29 Oct 2026 15:29:00 +0100 Subject: [PATCH 20/77] Link badges: drawn from main's split canvas frames module Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/canvas.rs | 4 ++-- crates/ui-egui/src/canvas/frames.rs | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs index ca4aa0c67..dcf90205b 100644 --- a/crates/ui-egui/src/canvas.rs +++ b/crates/ui-egui/src/canvas.rs @@ -28,9 +28,9 @@ mod tool_overlays; mod view; use column_guides::{COLUMN_DRAG, ColumnDrag, column_guide_at, spread_x_across}; -use frames::{draw_frames, draw_selection}; +use frames::{draw_frames, draw_link_badge, draw_selection, link_badges, link_statuses}; #[cfg(test)] -use frames::{item_canvas_xf, overset_frames, overset_marks, ported_frames, text_frames_in}; +use frames::{LinkBadge, item_canvas_xf, overset_frames, overset_marks, ported_frames, text_frames_in}; use guides::{GUIDE_DRAG, GUIDE_PRESS, GuideDrag, GuidePress, guide_readout, guide_spot, moving_guides, readout_at}; #[cfg(test)] use guides::{guide_at, guide_drag_delta, guide_measure}; diff --git a/crates/ui-egui/src/canvas/frames.rs b/crates/ui-egui/src/canvas/frames.rs index 55ab9bb02..7a5e7f83a 100644 --- a/crates/ui-egui/src/canvas/frames.rs +++ b/crates/ui-egui/src/canvas/frames.rs @@ -142,13 +142,13 @@ pub(super) fn selection_color(app: &DesignApp) -> Color32 { /// What a link badge shows: the chain of a linked file, or the trouble the Links panel reports. #[derive(Clone, Copy, Debug, PartialEq, Eq)] -enum LinkBadge { +pub(super) enum LinkBadge { Linked, Modified, Missing, } -type LinkStatuses = std::sync::Arc>; +pub(super) type LinkStatuses = std::sync::Arc>; /// The link badges' check: the last result, the document state it was made for, and a check /// running off the UI thread. @@ -166,7 +166,7 @@ struct LinkCheck { /// badges. Checking reads the linked files, so it runs on a background thread when the document /// changes and at most once a second otherwise; the badges show the last result meanwhile (none /// for another document). -fn link_statuses(app: &mut DesignApp, ctx: &egui::Context, doc: &Document) -> LinkStatuses { +pub(super) fn link_statuses(app: &mut DesignApp, ctx: &egui::Context, doc: &Document) -> LinkStatuses { if !doc.assets.values().any(|a| a.link.is_some()) { return Default::default(); } @@ -212,7 +212,7 @@ fn link_statuses(app: &mut DesignApp, ctx: &egui::Context, doc: &Document) -> Li /// edge, near the left corner, in its layer's colour, as InDesign marks placed files. A modified /// link shows a warning and a missing one a stop instead, as in the Links panel. Returns each /// badge's screen centre, kind and colour. -fn link_badges(doc: &Document, layout: &CanvasLayout, xf: &Xf, status: &std::collections::HashMap) -> Vec<(Pos2, LinkBadge, Color32)> { +pub(super) fn link_badges(doc: &Document, layout: &CanvasLayout, xf: &Xf, status: &std::collections::HashMap) -> Vec<(Pos2, LinkBadge, Color32)> { fn walk( doc: &Document, xf: &Xf, @@ -280,7 +280,7 @@ fn link_badges(doc: &Document, layout: &CanvasLayout, xf: &Xf, status: &std::col /// A link badge centred on `c`: two interlocked links on a light halo, so it reads over any /// picture; a red stop with a question mark for a missing file, a yellow warning for a modified /// one. Drawn in code. -fn draw_link_badge(painter: &egui::Painter, c: Pos2, badge: LinkBadge, col: Color32) { +pub(super) fn draw_link_badge(painter: &egui::Painter, c: Pos2, badge: LinkBadge, col: Color32) { match badge { LinkBadge::Linked => { painter.rect_filled(Rect::from_center_size(c, vec2(24.0, 13.0)), 6.5, Color32::from_white_alpha(235)); From e019b63a962383f4affc8f582a92c3815dcbcd9b Mon Sep 17 00:00:00 2001 From: Markus Reimr Date: Thu, 29 Oct 2026 16:24:12 +0100 Subject: [PATCH 21/77] UI1994: hide character marks with hidden frames and layers --- ROADMAP.md | 6 ++- crates/ui-egui/src/canvas/tests.rs | 50 +++++++++++++++++++++++ crates/ui-egui/src/canvas/text_overlay.rs | 18 ++++++++ docs/ui-parity.md | 6 ++- 4 files changed, 78 insertions(+), 2 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index c02176bab..6abc869b9 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,10 +1,14 @@ # DesignCraft roadmap +- **2026-10-29 · UI1994:** Hidden-character marks follow frame, layer and containing-group + visibility. Locked, visible layers still show marks; showing a hidden layer restores them. + The canvas painter has synthetic regression coverage. No readiness percentage change. + **Stage: pre-alpha** · next: alpha, ~5–7 h away; beta ~28 points and ~420–750 h beyond that (the core-workflow gate, not the percentage: ready for real work is already ~47%) - 2026-10-23: placed-artwork layer options survive IDML and native round trips per placement, independently of shared assets. Unsupported visibility overrides are explicit import/preflight/PDF warnings; format 4 prevents older native readers from silently discarding them. Rendering parity is still open; see [graphic-layer-options.md](docs/graphic-layer-options.md). - FID1: PDF export normalizes mixed emitted gradient color spaces to RGB with an explicit warning; homogeneous device-space gradients retain their components. Linear/radial, midpoint, archival and print policies have synthetic regression coverage. -> **Last reviewed:** 2026-10-11 · **Last updated:** 2026-10-23 · **Change:** minor (placed graphic layer-option preservation and explicit rendering warnings; File ▸ Open Recent; .indd and .indt open through indd-utils; text threads by hand; the alpha gate waits on Primary Text Frame page fixes; Japanese print, import and table controls localized; Live corners (#186); Optical kerning from outlines (#181); window and menu quit confirmation; failed writes preserve live save and collection state; spring-loaded Zoom navigation; orderly native exit recovery; Pages panel parents; cancelable macOS Dock Quit; text stroke behind fill; Based on Parent; object styles carry effects; table anchors keep their own paragraphs; grouped HTML/EPUB reading order; Links source paths; XLSX cached cell values retain numeric precision and text) · **Target:** Adobe InDesign 2026 +> **Last reviewed:** 2026-10-11 · **Last updated:** 2026-10-29 · **Change:** minor (placed graphic layer-option preservation and explicit rendering warnings; File ▸ Open Recent; .indd and .indt open through indd-utils; text threads by hand; the alpha gate waits on Primary Text Frame page fixes; Japanese print, import and table controls localized; Live corners (#186); Optical kerning from outlines (#181); window and menu quit confirmation; failed writes preserve live save and collection state; spring-loaded Zoom navigation; orderly native exit recovery; Pages panel parents; cancelable macOS Dock Quit; text stroke behind fill; Based on Parent; object styles carry effects; table anchors keep their own paragraphs; grouped HTML/EPUB reading order; Links source paths; XLSX cached cell values retain numeric precision and text) · **Target:** Adobe InDesign 2026 - AR1.1: Kashida justification tests verify space fallback without Tatweel fonts using an isolated font database, while retaining elongation assertions when fonts support it. - AR1: Arabic IDML controls now retain character direction, kashida switches, diacritic offsets/forms, paragraph policy values and independent story/table directions. Shaping preserves joining context and script/language selection; paragraph-level bidi, contextual digit conversion, mark-safe elongation, RTL columns/tables and physical column insertion have regression coverage. Vendor-specific justification and diacritic presets remain explicit preflight warnings; see docs/arabic-typography.md. diff --git a/crates/ui-egui/src/canvas/tests.rs b/crates/ui-egui/src/canvas/tests.rs index 01300bdd0..24dc20eb3 100644 --- a/crates/ui-egui/src/canvas/tests.rs +++ b/crates/ui-egui/src/canvas/tests.rs @@ -2837,3 +2837,53 @@ fn trailing_spaces_show_dots_before_the_paragraph_mark() { assert!(para_x >= space.x + space.adv, "{mark} at {para_x} overlaps the last space"); } } + +/// #1994: hiding a frame or its layer must also hide the separately painted marks. +#[test] +fn hidden_characters_follow_frame_layer_and_group_visibility() { + let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default()); + app.run("file.new", json!({})).unwrap(); + let frame = app.run("frame.create", json!({"rect": [36, 36, 336, 136], "content": "text", "text": "a b\tc\nd"})).unwrap(); + let id = designcraft_doc::ItemId(frame["id"].as_u64().unwrap()); + let mut doc = (*app.session.active().unwrap().doc).clone(); + let layer = doc.item(id).unwrap().layer; + fn marks(app: &DesignApp, doc: &Document) -> Vec { + let ctx = egui::Context::default(); + let layout = CanvasLayout::new(doc, false); + let xf = Xf::new(Rect::from_min_size(Pos2::ZERO, vec2(1440.0, 900.0)), &View::default()); + let mut out = ctx.run_ui(egui::RawInput::default(), |ui| { + draw_hidden_characters(app, ui.painter(), &xf, doc, &layout); + }); + out.textures_delta.clear(); + out.shapes + .iter() + .filter_map(|s| match &s.shape { + egui::Shape::Text(t) => Some(t.galley.text().to_owned()), + _ => None, + }) + .collect::>() + } + let expected = marks(&app, &doc); + for mark in ["·", "»", "¶", "#"] { + assert!(expected.iter().any(|m| m == mark), "visible text draws {mark}: {expected:?}"); + } + doc.layer_mut(layer).unwrap().visible = false; + assert!(marks(&app, &doc).is_empty(), "hidden layers draw no marks"); + doc.layer_mut(layer).unwrap().visible = true; + assert_eq!(marks(&app, &doc), expected, "showing the layer restores its marks"); + doc.item_mut(id).unwrap().hidden = true; + assert!(marks(&app, &doc).is_empty(), "hidden frames draw no marks"); + doc.item_mut(id).unwrap().hidden = false; + doc.layer_mut(layer).unwrap().locked = true; + assert_eq!(marks(&app, &doc), expected, "locked but visible layers still show marks"); + + // A child stays individually visible when its containing group is hidden. + let sibling = app.run("frame.create", json!({"rect": [400, 36, 450, 86]})).unwrap(); + app.run("selection.set", json!({"ids": [id.0, sibling["id"]]})).unwrap(); + let group = app.run("object.group", json!({})).unwrap(); + let group_id = designcraft_doc::ItemId(group["id"].as_u64().unwrap()); + let mut grouped = (*app.session.active().unwrap().doc).clone(); + assert_eq!(marks(&app, &grouped), expected); + grouped.item_mut(group_id).unwrap().hidden = true; + assert!(marks(&app, &grouped).is_empty(), "hidden groups draw no child marks"); +} diff --git a/crates/ui-egui/src/canvas/text_overlay.rs b/crates/ui-egui/src/canvas/text_overlay.rs index dc48ae720..04b07cc8e 100644 --- a/crates/ui-egui/src/canvas/text_overlay.rs +++ b/crates/ui-egui/src/canvas/text_overlay.rs @@ -270,6 +270,9 @@ pub(super) fn draw_hidden_characters(app: &DesignApp, painter: &egui::Painter, x for story in doc.stories.values() { let cs = app.session.cache.get(doc, story.id, None); for ft in &cs.frames { + if !hidden_characters_frame_visible(doc, ft.frame) { + continue; + } let (Some((a, _)), Some(it)) = (item_canvas_xf(doc, layout, ft.frame), doc.item(ft.frame)) else { continue }; let m = a * doc.text_xf(it); let col = layer_color(doc, it); @@ -286,6 +289,21 @@ pub(super) fn draw_hidden_characters(app: &DesignApp, painter: &egui::Painter, x } } +/// Marks follow the frame's visibility, including the groups containing it. +fn hidden_characters_frame_visible(doc: &Document, frame: designcraft_doc::ItemId) -> bool { + let Some(loc) = doc.find(frame) else { return false }; + let Some(spread) = doc.spread(loc.spread) else { return false }; + let mut items = spread.items.as_slice(); + for index in loc.path { + let Some(item) = items.get(index) else { return false }; + if item.hidden || doc.layer(item.layer).is_some_and(|layer| !layer.visible) { + return false; + } + items = item.children(); + } + true +} + /// The hidden-character marks on line `l` of a story with text `text`: frame-space x, mark, and /// whether the mark is centered on x (spaces) or starts at it. pub(super) fn hidden_marks(text: &str, l: &compose::Line) -> Vec<(f64, &'static str, bool)> { diff --git a/docs/ui-parity.md b/docs/ui-parity.md index 4bc40c627..9f672dd6c 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -1,6 +1,10 @@ # UI and interaction parity -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-24 · **Change:** minor (Story panel; text Control panel Character/Paragraph modes; Properties ••• expands Character and Paragraph; live corners work; document views row: scrollbars, Alt pans while editing text; Tabs panel listed as present (#343); spring-loaded Zoom navigation; paragraph style override feedback and clearing) · **Target:** Adobe InDesign 2026 (21.6, Medium Dark, macOS) +- **2026-10-29 · UI1994:** Show Hidden Characters no longer paints marks for hidden text + frames, hidden layers or children of hidden groups. Visible locked layers retain their marks. + A canvas-painter regression checks the emitted marks and hide/show transitions (#1994). + +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-29 · **Change:** minor (Story panel; text Control panel Character/Paragraph modes; Properties ••• expands Character and Paragraph; live corners work; document views row: scrollbars, Alt pans while editing text; Tabs panel listed as present (#343); spring-loaded Zoom navigation; paragraph style override feedback and clearing) · **Target:** Adobe InDesign 2026 (21.6, Medium Dark, macOS) Tools, handles, snapping, nudging, modifiers, shortcuts, panels, menus, context menus and feel, against InDesign 2026. The look was measured from the running app From 62bc2215619a3616dc4bc5c0eaab5832ecbb802f Mon Sep 17 00:00:00 2001 From: Markus Reimr Date: Thu, 29 Oct 2026 16:49:18 +0100 Subject: [PATCH 22/77] UI1994: reuse resolved frames when painting hidden characters --- ROADMAP.md | 3 ++- crates/ui-egui/src/canvas/text_overlay.rs | 23 +++++++++++------------ docs/ui-parity.md | 1 + 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index 6abc869b9..613ba4148 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -2,7 +2,8 @@ - **2026-10-29 · UI1994:** Hidden-character marks follow frame, layer and containing-group visibility. Locked, visible layers still show marks; showing a hidden layer restores them. - The canvas painter has synthetic regression coverage. No readiness percentage change. + Visibility checks and painting reuse one frame lookup. The canvas painter has synthetic + regression coverage. No readiness percentage change. **Stage: pre-alpha** · next: alpha, ~5–7 h away; beta ~28 points and ~420–750 h beyond that (the core-workflow gate, not the percentage: ready for real work is already ~47%) - 2026-10-23: placed-artwork layer options survive IDML and native round trips per placement, independently of shared assets. Unsupported visibility overrides are explicit import/preflight/PDF warnings; format 4 prevents older native readers from silently discarding them. Rendering parity is still open; see [graphic-layer-options.md](docs/graphic-layer-options.md). diff --git a/crates/ui-egui/src/canvas/text_overlay.rs b/crates/ui-egui/src/canvas/text_overlay.rs index 04b07cc8e..345484fd4 100644 --- a/crates/ui-egui/src/canvas/text_overlay.rs +++ b/crates/ui-egui/src/canvas/text_overlay.rs @@ -270,10 +270,8 @@ pub(super) fn draw_hidden_characters(app: &DesignApp, painter: &egui::Painter, x for story in doc.stories.values() { let cs = app.session.cache.get(doc, story.id, None); for ft in &cs.frames { - if !hidden_characters_frame_visible(doc, ft.frame) { - continue; - } - let (Some((a, _)), Some(it)) = (item_canvas_xf(doc, layout, ft.frame), doc.item(ft.frame)) else { continue }; + let Some((loc, it)) = hidden_characters_frame(doc, ft.frame) else { continue }; + let a = layout.xf(loc.spread) * doc.parent_xf(&loc); let m = a * doc.text_xf(it); let col = layer_color(doc, it); for l in &ft.lines { @@ -289,19 +287,20 @@ pub(super) fn draw_hidden_characters(app: &DesignApp, painter: &egui::Painter, x } } -/// Marks follow the frame's visibility, including the groups containing it. -fn hidden_characters_frame_visible(doc: &Document, frame: designcraft_doc::ItemId) -> bool { - let Some(loc) = doc.find(frame) else { return false }; - let Some(spread) = doc.spread(loc.spread) else { return false }; +/// Resolve a visible frame once for both the visibility check and painting, including its groups. +fn hidden_characters_frame(doc: &Document, frame: designcraft_doc::ItemId) -> Option<(designcraft_doc::ItemLoc, &designcraft_doc::Item)> { + let loc = doc.find(frame)?; + let spread = doc.spread(loc.spread)?; let mut items = spread.items.as_slice(); - for index in loc.path { - let Some(item) = items.get(index) else { return false }; + for &index in &loc.path { + let item = items.get(index)?; if item.hidden || doc.layer(item.layer).is_some_and(|layer| !layer.visible) { - return false; + return None; } items = item.children(); } - true + let item = doc.item_at(&loc)?; + Some((loc, item)) } /// The hidden-character marks on line `l` of a story with text `text`: frame-space x, mark, and diff --git a/docs/ui-parity.md b/docs/ui-parity.md index 9f672dd6c..cff02fbe8 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -2,6 +2,7 @@ - **2026-10-29 · UI1994:** Show Hidden Characters no longer paints marks for hidden text frames, hidden layers or children of hidden groups. Visible locked layers retain their marks. + Visibility checks and painting share the resolved frame location and item. A canvas-painter regression checks the emitted marks and hide/show transitions (#1994). > **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-29 · **Change:** minor (Story panel; text Control panel Character/Paragraph modes; Properties ••• expands Character and Paragraph; live corners work; document views row: scrollbars, Alt pans while editing text; Tabs panel listed as present (#343); spring-loaded Zoom navigation; paragraph style override feedback and clearing) · **Target:** Adobe InDesign 2026 (21.6, Medium Dark, macOS) From f92baac1066380bfe4ede62f779177eb38fedaca Mon Sep 17 00:00:00 2001 From: moppeeer Date: Thu, 29 Oct 2026 19:03:11 +0100 Subject: [PATCH 23/77] rustfmt Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/canvas.rs | 2 +- crates/ui-egui/src/canvas/frames.rs | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs index dcf90205b..44bc6071e 100644 --- a/crates/ui-egui/src/canvas.rs +++ b/crates/ui-egui/src/canvas.rs @@ -28,9 +28,9 @@ mod tool_overlays; mod view; use column_guides::{COLUMN_DRAG, ColumnDrag, column_guide_at, spread_x_across}; -use frames::{draw_frames, draw_link_badge, draw_selection, link_badges, link_statuses}; #[cfg(test)] use frames::{LinkBadge, item_canvas_xf, overset_frames, overset_marks, ported_frames, text_frames_in}; +use frames::{draw_frames, draw_link_badge, draw_selection, link_badges, link_statuses}; use guides::{GUIDE_DRAG, GUIDE_PRESS, GuideDrag, GuidePress, guide_readout, guide_spot, moving_guides, readout_at}; #[cfg(test)] use guides::{guide_at, guide_drag_delta, guide_measure}; diff --git a/crates/ui-egui/src/canvas/frames.rs b/crates/ui-egui/src/canvas/frames.rs index 7a5e7f83a..9b55217b4 100644 --- a/crates/ui-egui/src/canvas/frames.rs +++ b/crates/ui-egui/src/canvas/frames.rs @@ -212,7 +212,12 @@ pub(super) fn link_statuses(app: &mut DesignApp, ctx: &egui::Context, doc: &Docu /// edge, near the left corner, in its layer's colour, as InDesign marks placed files. A modified /// link shows a warning and a missing one a stop instead, as in the Links panel. Returns each /// badge's screen centre, kind and colour. -pub(super) fn link_badges(doc: &Document, layout: &CanvasLayout, xf: &Xf, status: &std::collections::HashMap) -> Vec<(Pos2, LinkBadge, Color32)> { +pub(super) fn link_badges( + doc: &Document, + layout: &CanvasLayout, + xf: &Xf, + status: &std::collections::HashMap, +) -> Vec<(Pos2, LinkBadge, Color32)> { fn walk( doc: &Document, xf: &Xf, From da145a7b563c6feba2256982fc12d68f6f839595 Mon Sep 17 00:00:00 2001 From: moppeeer Date: Thu, 29 Oct 2026 19:07:10 +0100 Subject: [PATCH 24/77] egui 0.37: the renamed APIs in this branch's code Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/canvas/frames.rs | 2 +- crates/ui-egui/src/canvas/tests.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/canvas/frames.rs b/crates/ui-egui/src/canvas/frames.rs index 9b55217b4..498b292d7 100644 --- a/crates/ui-egui/src/canvas/frames.rs +++ b/crates/ui-egui/src/canvas/frames.rs @@ -175,7 +175,7 @@ pub(super) fn link_statuses(app: &mut DesignApp, ctx: &egui::Context, doc: &Docu let now = ctx.input(|i| i.time); // An idle canvas still draws again when the check is due, so a file changed on disk shows. ctx.request_repaint_after(std::time::Duration::from_secs(1)); - let id = egui::Id::new(("link_badge_status", app.pane)); + let id = egui::Id::unique(("link_badge_status", app.pane)); let mut check = ctx.data(|d| d.get_temp::(id)).unwrap_or_default(); if let Some((for_key, slot)) = check.pending.clone() && let Some(map) = slot.lock().unwrap_or_else(|e| e.into_inner()).take() diff --git a/crates/ui-egui/src/canvas/tests.rs b/crates/ui-egui/src/canvas/tests.rs index 34030e491..59aa3e423 100644 --- a/crates/ui-egui/src/canvas/tests.rs +++ b/crates/ui-egui/src/canvas/tests.rs @@ -109,7 +109,7 @@ fn linked_pictures_carry_the_link_badge() { let key = (app.session.active().unwrap().uid, app.session.active().unwrap().revision); for _ in 0..1000 { let status = link_statuses(app, &ctx, &doc); - let check = ctx.data(|d| d.get_temp::(egui::Id::new(("link_badge_status", app.pane)))).unwrap(); + let check = ctx.data(|d| d.get_temp::(egui::Id::unique(("link_badge_status", app.pane)))).unwrap(); if check.key == key && check.pending.is_none() { return link_badges(&doc, &CanvasLayout::new(&doc, false), &xf, &status); } From bae28da35a01a9c7e2b8640aaa9aa90f9571567c Mon Sep 17 00:00:00 2001 From: moppeeer Date: Thu, 29 Oct 2026 19:07:52 +0100 Subject: [PATCH 25/77] Link badge test: the link check state reachable from main's split canvas frames module Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/canvas.rs | 2 +- crates/ui-egui/src/canvas/frames.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs index 44bc6071e..916801630 100644 --- a/crates/ui-egui/src/canvas.rs +++ b/crates/ui-egui/src/canvas.rs @@ -29,7 +29,7 @@ mod view; use column_guides::{COLUMN_DRAG, ColumnDrag, column_guide_at, spread_x_across}; #[cfg(test)] -use frames::{LinkBadge, item_canvas_xf, overset_frames, overset_marks, ported_frames, text_frames_in}; +use frames::{LinkBadge, LinkCheck, item_canvas_xf, overset_frames, overset_marks, ported_frames, text_frames_in}; use frames::{draw_frames, draw_link_badge, draw_selection, link_badges, link_statuses}; use guides::{GUIDE_DRAG, GUIDE_PRESS, GuideDrag, GuidePress, guide_readout, guide_spot, moving_guides, readout_at}; #[cfg(test)] diff --git a/crates/ui-egui/src/canvas/frames.rs b/crates/ui-egui/src/canvas/frames.rs index 498b292d7..27c612be9 100644 --- a/crates/ui-egui/src/canvas/frames.rs +++ b/crates/ui-egui/src/canvas/frames.rs @@ -153,13 +153,13 @@ pub(super) type LinkStatuses = std::sync::Arc>>>)>, + pub(super) pending: Option<((u64, u64), std::sync::Arc>>>)>, } /// The Links panel's status of each linked asset ("ok", "modified", "missing"), for the link From 5693085ab67eeba42cc94f423425215d752bdcd5 Mon Sep 17 00:00:00 2001 From: moppeeer Date: Fri, 30 Oct 2026 12:11:57 +0100 Subject: [PATCH 26/77] Link badges: drawn by their own function Keeps the canvas's show within clippy's cognitive complexity limit. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/canvas.rs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs index 916801630..ccd1f01ef 100644 --- a/crates/ui-egui/src/canvas.rs +++ b/crates/ui-egui/src/canvas.rs @@ -208,6 +208,17 @@ fn present_click(app: &mut DesignApp, ui: &egui::Ui, resp: &egui::Response, rect } } +/// View ▸ Show Link Badges: each placed graphic's link status in its corner. +fn draw_link_badges(app: &mut DesignApp, ctx: &egui::Context, painter: &egui::Painter, doc: &Document, layout: &CanvasLayout, xf: &Xf) { + if !app.ui.link_badge { + return; + } + let status = link_statuses(app, ctx, doc); + for (c, badge, col) in link_badges(doc, layout, xf, &status) { + draw_link_badge(painter, c, badge, col); + } +} + /// Lay out the canvas, scrollbars and rulers, presentation mode, fit/view state, input handling and painting. pub fn show(app: &mut DesignApp, ui: &mut egui::Ui) { let t = Tokens::get(ui.ctx()); @@ -311,12 +322,7 @@ pub fn show(app: &mut DesignApp, ui: &mut egui::Ui) { painter.circle_stroke(c, 8.0, Stroke::new(1.5, Color32::from_white_alpha(170))); painter.circle_stroke(c, 4.0, Stroke::new(1.5, Color32::from_white_alpha(170))); } - if app.ui.link_badge { - let status = link_statuses(app, ui.ctx(), &doc); - for (c, badge, col) in link_badges(&doc, &layout, &xf, &status) { - draw_link_badge(&painter, c, badge, col); - } - } + draw_link_badges(app, ui.ctx(), &painter, &doc, &layout, &xf); } draw_tool_overlays(app, &painter, &xf); ime_canvas_pass(app, ui.ctx(), &xf); From 505d0063500e9ef3c3785f572579d6fa7bdbde16 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 30 Oct 2026 18:46:58 +0000 Subject: [PATCH 27/77] Web relink: upstream's new open requests ask for no particular files Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CgGsJkVe5GYG9qK6VFdECa --- crates/ui-egui/src/app/files.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/app/files.rs b/crates/ui-egui/src/app/files.rs index d6de82db5..87b784611 100644 --- a/crates/ui-egui/src/app/files.rs +++ b/crates/ui-egui/src/app/files.rs @@ -12,7 +12,7 @@ impl DesignApp { #[track_caller] pub fn pick_and_open(&mut self, purpose: &str) -> Result { if let Some(open) = self.services.open_async.as_mut() { - let request = ImportRequest { purpose: purpose.into(), target: self.session.active().map(|d| d.uid) }; + let request = ImportRequest { purpose: purpose.into(), target: self.session.active().map(|d| d.uid), wanted: Vec::new() }; open(request); return Ok(Value::Null); } @@ -47,7 +47,7 @@ impl DesignApp { designcraft_engine::cmd::has_doc(&self.session)?; if let Some(open) = self.services.open_async.as_mut() { let purpose = if kind.is_empty() { "styles".to_string() } else { format!("styles:{kind}") }; - open(ImportRequest { purpose, target: self.session.active().map(|d| d.uid) }); + open(ImportRequest { purpose, target: self.session.active().map(|d| d.uid), wanted: Vec::new() }); return Ok(Value::Null); } let kind = kind.to_string(); From 8c180623854da921d6c95772c7f6de22785f759a Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 1 Nov 2026 23:40:02 +0000 Subject: [PATCH 28/77] Save format (web): a preference changed between checks is stored without waiting for input CodeRabbit: egui draws no frame just because time passes, so a change made before the next check stayed unwritten until the next input event. A check that isn't due yet now asks for a frame at its time. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CgGsJkVe5GYG9qK6VFdECa --- apps/designcraft-web/src/prefs_store.rs | 19 +++++++++++++++++++ apps/designcraft-web/src/web.rs | 8 +++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/apps/designcraft-web/src/prefs_store.rs b/apps/designcraft-web/src/prefs_store.rs index bb4a665ee..507a8c1c0 100644 --- a/apps/designcraft-web/src/prefs_store.rs +++ b/apps/designcraft-web/src/prefs_store.rs @@ -39,6 +39,14 @@ impl PrefsSync { true } + /// Seconds from `now` until the next check, when one is still to come; `None` when a check is + /// already due (or `now` isn't a number). The shell asks for a frame then: egui draws no frame + /// just because time passes, so a change made between checks would otherwise wait for the + /// next input before it's stored. + pub(crate) fn wait(&self, now: f64) -> Option { + (now.is_finite() && now < self.next_check).then_some(self.next_check - now) + } + /// The JSON to store when `prefs` differ from what was last stored; `None` otherwise. Nothing /// counts as stored until [`PrefsSync::stored`] says the write succeeded, so a write that /// fails (or storage that isn't available) is tried again at the next check. @@ -96,4 +104,15 @@ mod tests { assert!(sync.due(1.0)); assert!(!sync.due(f64::NAN), "a time that isn't a number is never due"); } + + /// A check that isn't due yet asks for a frame at its time; a due one doesn't need to. + #[test] + fn a_check_not_yet_due_says_when_it_will_be() { + let mut sync = PrefsSync::new(None); + assert_eq!(sync.wait(0.0), None, "due at once"); + assert!(sync.due(0.0)); + assert_eq!(sync.wait(0.25), Some(0.75)); + assert_eq!(sync.wait(1.0), None); + assert_eq!(sync.wait(f64::NAN), None); + } } diff --git a/apps/designcraft-web/src/web.rs b/apps/designcraft-web/src/web.rs index ac5f6e736..4e1f489d9 100644 --- a/apps/designcraft-web/src/web.rs +++ b/apps/designcraft-web/src/web.rs @@ -366,7 +366,13 @@ impl eframe::App for WebShell { let graphics = self.graphics.clone(); let _ = graphics.run_if_healthy(|| self.app.logic(ctx)); // Changed preferences go to local storage, so they survive a reload. - if self.prefs_sync.due(ctx.input(|i| i.time)) + let now = ctx.input(|i| i.time); + if let Some(wait) = self.prefs_sync.wait(now) { + // Not due yet: a frame then checks, even if nothing else happens until then. + if let Ok(d) = std::time::Duration::try_from_secs_f64(wait) { + ctx.request_repaint_after(d); + } + } else if self.prefs_sync.due(now) && let Some(json) = self.prefs_sync.changed(&self.app.session.prefs) && let Some(storage) = local_storage() { From 18c85c8578dc496c7dee8f3799636ba641208017 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 2 Nov 2026 00:02:33 +0000 Subject: [PATCH 29/77] Save format: ask before an IDML save that would lose editorial notes or endnotes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CodeRabbit: an explicit .idml save wrote a package without the document's editorial notes, then marked the document saved and dropped its recovery copy, so the loss was silent and for good. Endnote references were lost the same way. The engine now refuses such a save unless allowLoss (file.save, saveAs, saveACopy), and file.idmlLosses says what IDML can't keep. The UI asks first, on every save that writes IDML (Save, Save As, Save a Copy, the save when closing or quitting, the browser download): Save Anyway, Save as DesignCraft… (keeps everything), or Cancel (nothing written; the document stays unsaved with its recovery copy). Quit waits for the answer. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CgGsJkVe5GYG9qK6VFdECa --- crates/engine/src/cmd/file/bytes.rs | 20 ++- crates/engine/src/cmd/file/registry.rs | 15 ++- crates/engine/src/cmd/file/save.rs | 3 +- .../engine/src/cmd/file/save_format_tests.rs | 38 ++++++ crates/idml/src/lib.rs | 27 ++++ crates/ui-egui/src/app.rs | 1 + crates/ui-egui/src/app/quit.rs | 5 +- crates/ui-egui/src/dialogs.rs | 37 +++++- crates/ui-egui/src/lib.rs | 2 + crates/ui-egui/src/menus.rs | 2 +- crates/ui-egui/src/menus/export.rs | 28 +++- crates/ui-egui/src/menus/run.rs | 120 +++++++++++++++--- crates/ui-egui/src/menus/save_format_tests.rs | 96 ++++++++++++++ 13 files changed, 360 insertions(+), 34 deletions(-) diff --git a/crates/engine/src/cmd/file/bytes.rs b/crates/engine/src/cmd/file/bytes.rs index abbcc23cd..fbc683898 100644 --- a/crates/engine/src/cmd/file/bytes.rs +++ b/crates/engine/src/cmd/file/bytes.rs @@ -37,6 +37,9 @@ pub fn is_document(bytes: &[u8]) -> bool { /// How much of a file [`is_document`] needs to recognise a package by its `mimetype` entry. pub const DOCUMENT_SNIFF_BYTES: u64 = 64 << 10; +/// How a refused lossy IDML save's error starts (see [`bytes_for_path`]). +pub const LOSSY_IDML_SAVE: &str = "saving as IDML would lose content"; + /// The longer side of the first-page picture saved in the file, in pixels. pub(super) const PREVIEW_PX: f64 = 320.0; @@ -55,10 +58,21 @@ pub(super) fn to_bytes_with_preview(d: &Document, cache: &crate::Cache) -> Resul /// The bytes a save to `path` writes: an IDML package (images embedded) for a `.idml` name, else /// DesignCraft's own format with its first-page picture (Preferences › File Handling › Save -/// documents as). -pub fn bytes_for_path(d: &Document, path: &str, cache: &crate::Cache) -> Result> { +/// documents as). An IDML save that would lose content IDML can't hold (editorial notes, +/// endnotes) is refused unless `allow_loss`: the save marks the document saved and drops its +/// recovery copy, so the loss would be silent and for good. +pub fn bytes_for_path(d: &Document, path: &str, cache: &crate::Cache, allow_loss: bool) -> Result> { match crate::SaveFormat::of_path(path) { - crate::SaveFormat::Idml => crate::cmd::interchange::idml_bytes(d, &designcraft_idml::ExportOptions::default()), + crate::SaveFormat::Idml => { + let lost = designcraft_idml::unwritten(d); + if !allow_loss && !lost.is_empty() { + return Err(EngineError::Other(format!( + "{LOSSY_IDML_SAVE}: IDML can't keep {} editorial note(s) and {} endnote(s); pass allowLoss to save anyway", + lost.editorial_notes, lost.endnotes + ))); + } + crate::cmd::interchange::idml_bytes(d, &designcraft_idml::ExportOptions::default()) + } crate::SaveFormat::Designcraft => to_bytes_with_preview(d, cache), } } diff --git a/crates/engine/src/cmd/file/registry.rs b/crates/engine/src/cmd/file/registry.rs index 43a43abc6..188505ee4 100644 --- a/crates/engine/src/cmd/file/registry.rs +++ b/crates/engine/src/cmd/file/registry.rs @@ -50,18 +50,25 @@ pub fn specs() -> Vec { s.prefs.recent_files.clear(); ok() }), - cmd!(noundo "file.save", "Save", ["File"], Some("Cmd+S"), "{path?} — a `.idml` path is written as IDML (images embedded); any other `path` without the .designcraft extension gets it → {path: the file written, bytes}", has_doc, file_save), - cmd!(noundo "file.saveAs", "Save As…", ["File"], Some("Cmd+Shift+S"), "{path} — a `.idml` path is written as IDML (images embedded); any other path without the .designcraft extension gets it → {path: the file written, bytes}", has_doc, file_save), - cmd!(noundo "file.saveACopy", "Save a Copy…", ["File"], None, "{path} — writes the document without changing which file it is or its unsaved state; a `.idml` path is written as IDML, any other without the .designcraft extension gets it → {path: the file written, bytes}", has_doc, |s, p| { + cmd!(noundo "file.save", "Save", ["File"], Some("Cmd+S"), "{path?, allowLoss?} — a `.idml` path is written as IDML (images embedded; refused when IDML can't keep some of the document, see file.idmlLosses, unless allowLoss); any other `path` without the .designcraft extension gets it → {path: the file written, bytes}", has_doc, file_save), + cmd!(noundo "file.saveAs", "Save As…", ["File"], Some("Cmd+Shift+S"), "{path, allowLoss?} — a `.idml` path is written as IDML (images embedded; refused when IDML can't keep some of the document, see file.idmlLosses, unless allowLoss); any other path without the .designcraft extension gets it → {path: the file written, bytes}", has_doc, file_save), + cmd!(noundo "file.saveACopy", "Save a Copy…", ["File"], None, "{path, allowLoss?} — writes the document without changing which file it is or its unsaved state; a `.idml` path is written as IDML (refused when IDML can't keep some of the document, unless allowLoss), any other without the .designcraft extension gets it → {path: the file written, bytes}", has_doc, |s, p| { let path = str_param(p, "path").ok_or_else(|| bad("file.saveACopy", "missing `path`"))?; let path = with_save_extension(path); let mut copy = (*s.doc()?.doc).clone(); crate::cmd::datamerge::refresh_relative_paths(&mut copy, std::path::Path::new(&path)); - let bytes = bytes_for_path(©, &path, &s.cache)?; + let allow_loss = p.get("allowLoss").and_then(Value::as_bool).unwrap_or(false); + let bytes = bytes_for_path(©, &path, &s.cache, allow_loss)?; #[cfg(not(target_arch = "wasm32"))] crate::io::write_file(&path, &bytes).map_err(EngineError::Other)?; Ok(json!({"path": path, "bytes": bytes.len()})) }), + cmd!(query "file.idmlLosses", "IDML Losses", [], None, + "{} → {editorialNotes, endnotes}: what saving the document as IDML would lose (editorial notes aren't written; endnotes become plain text in the endnote frame). A `.idml` save refuses while any is non-zero, unless allowLoss", + has_doc, |s, _| { + let lost = designcraft_idml::unwritten(&s.doc()?.doc); + Ok(json!({"editorialNotes": lost.editorial_notes, "endnotes": lost.endnotes})) + }), cmd!(noundo "file.revert", "Revert", ["File"], None, "{} — back to the last saved version (not undoable)", can_revert, file_revert), cmd!(query "file.recovery.list", "Recovery Data", [], None, "{dir?} → [{uid, path, title, saved}] unsaved documents left by a crash (default: the session's recovery folder)", always, |s, p| { let dir = recovery_dir(s, p, FolderAccess::Read)?; diff --git a/crates/engine/src/cmd/file/save.rs b/crates/engine/src/cmd/file/save.rs index 0cdb8d201..1be666f30 100644 --- a/crates/engine/src/cmd/file/save.rs +++ b/crates/engine/src/cmd/file/save.rs @@ -23,7 +23,8 @@ pub(super) fn file_save(s: &mut Session, p: &Value) -> Result { crate::cmd::datamerge::refresh_relative_paths(&mut saved, std::path::Path::new(&path)); let paths_changed = saved.data_merge != st.doc.data_merge; let saved = if paths_changed { Arc::new(saved) } else { st.doc.clone() }; - let bytes = bytes_for_path(&saved, &path, &s.cache)?; + let allow_loss = p.get("allowLoss").and_then(Value::as_bool).unwrap_or(false); + let bytes = bytes_for_path(&saved, &path, &s.cache, allow_loss)?; #[cfg(not(target_arch = "wasm32"))] crate::io::write_file(&path, &bytes).map_err(EngineError::Other)?; let st = s.doc_mut()?; diff --git a/crates/engine/src/cmd/file/save_format_tests.rs b/crates/engine/src/cmd/file/save_format_tests.rs index 9bbab91ae..2248d6cb7 100644 --- a/crates/engine/src/cmd/file/save_format_tests.rs +++ b/crates/engine/src/cmd/file/save_format_tests.rs @@ -114,3 +114,41 @@ fn the_save_format_preference_takes_only_known_formats() { assert_eq!(crate::SaveFormat::of_path("/a/B.designcraft"), crate::SaveFormat::Designcraft); assert_eq!(crate::SaveFormat::of_path("/a/idml"), crate::SaveFormat::Designcraft, "a name, not an extension"); } + +/// CodeRabbit on #1105: a save as IDML would drop editorial notes (and turn endnotes into plain +/// text), then mark the document saved and drop its recovery copy, so the loss would be silent +/// and for good. Such a save is refused unless `allowLoss`; file.idmlLosses says what it loses. +#[test] +fn an_idml_save_that_would_lose_content_is_refused_unless_allowed() { + let dir = temp_dir("lossy"); + let mut s = Session::new(); + document_with(&mut s, "Has a note"); + assert_eq!(s.execute("file.idmlLosses", &json!({})).unwrap(), json!({"editorialNotes": 0, "endnotes": 0})); + s.execute("note.new", &json!({"text": "Check this"})).unwrap(); + assert_eq!(s.execute("file.idmlLosses", &json!({})).unwrap(), json!({"editorialNotes": 1, "endnotes": 0})); + + let path = dir.join("Notes.idml"); + let copy = dir.join("Copy.idml"); + for (cmd, p) in [("file.saveAs", &path), ("file.saveACopy", ©)] { + let e = s.execute(cmd, &json!({"path": p.to_string_lossy()})).unwrap_err(); + assert!(e.to_string().starts_with(super::bytes::LOSSY_IDML_SAVE), "{cmd}: {e}"); + assert!(!p.exists(), "{cmd}: nothing written"); + } + assert!(s.doc().unwrap().is_dirty() && s.doc().unwrap().path.is_none(), "the document is as it was"); + + // Saved as DesignCraft, nothing is lost and nothing is asked. + s.execute("file.saveAs", &json!({"path": dir.join("Notes.designcraft").to_string_lossy()})).unwrap(); + // Allowed, the IDML is written; the document's own file is then IDML, and ⌘S is refused again + // while there is something to lose. + s.execute("file.saveAs", &json!({"path": path.to_string_lossy(), "allowLoss": true})).unwrap(); + assert!(designcraft_idml::is_idml(&std::fs::read(&path).unwrap())); + s.execute("endnote.insert", &json!({"text": "An endnote."})).unwrap(); + assert_eq!(s.execute("file.idmlLosses", &json!({})).unwrap(), json!({"editorialNotes": 1, "endnotes": 1})); + assert!(s.execute("file.save", &json!({})).is_err()); + assert!(s.doc().unwrap().is_dirty()); + s.execute("file.save", &json!({"allowLoss": true})).unwrap(); + assert!(!s.doc().unwrap().is_dirty()); + s.execute("file.saveACopy", &json!({"path": copy.to_string_lossy(), "allowLoss": true})).unwrap(); + assert!(copy.exists()); + let _ = std::fs::remove_dir_all(&dir); +} diff --git a/crates/idml/src/lib.rs b/crates/idml/src/lib.rs index 8f7b22ff9..5c9e7b9e0 100644 --- a/crates/idml/src/lib.rs +++ b/crates/idml/src/lib.rs @@ -60,6 +60,33 @@ mod tests; pub use export::{ExportOptions, export_idml, export_idml_with}; pub use import::{Imported, import_idml, import_idml_report, import_idml_report_with_previews, import_idml_with}; +/// What an IDML package can't keep of a document (see [`unwritten`]): a save that writes IDML +/// loses it. +#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)] +pub struct Unwritten { + /// Editorial notes (Type › Notes): not written at all. + pub editorial_notes: usize, + /// Endnotes: their text stays in the endnote frame as plain text, numbers included, but the + /// references and the notes themselves are gone. + pub endnotes: usize, +} + +impl Unwritten { + /// Nothing is lost. + pub fn is_empty(&self) -> bool { + *self == Unwritten::default() + } +} + +/// What [`export_idml`] leaves out of `d`. Editorial notes and endnotes are anchored only in +/// stories (not in table cells or footnotes), so the stories are all there is to count. +pub fn unwritten(d: &designcraft_doc::Document) -> Unwritten { + d.stories.values().fold(Unwritten::default(), |u, st| Unwritten { + editorial_notes: u.editorial_notes.saturating_add(st.editorial.len()), + endnotes: u.endnotes.saturating_add(st.endnotes.len()), + }) +} + /// The IDML package mimetype (content of the first, stored `mimetype` entry). pub const MIMETYPE: &str = "application/vnd.adobe.indesign-idml-package"; /// The DOM version written to every part. diff --git a/crates/ui-egui/src/app.rs b/crates/ui-egui/src/app.rs index 383362594..ded72d4da 100644 --- a/crates/ui-egui/src/app.rs +++ b/crates/ui-egui/src/app.rs @@ -123,6 +123,7 @@ impl DesignApp { close_requested_pending: false, quit_without_asking: false, quitting: None, + lossy_save: None, cursors: cursors::Images::default(), live_preview: LivePreview::default(), updates_rt: updates_ui::Runtime::default(), diff --git a/crates/ui-egui/src/app/quit.rs b/crates/ui-egui/src/app/quit.rs index c1c67a493..c99c9e722 100644 --- a/crates/ui-egui/src/app/quit.rs +++ b/crates/ui-egui/src/app/quit.rs @@ -55,8 +55,9 @@ impl DesignApp { } let Some(q) = self.quitting.as_ref() else { return }; if q.saving.is_some() { - // Waiting for the save dialog; cancelled, it answers without saving and Quit stops. - if !self.file_dialogs_pending() { + // Waiting for the save dialog (or the IDML loss question); cancelled, it answers + // without saving and Quit stops. + if !self.file_dialogs_pending() && self.lossy_save.is_none() { self.cancel_quit(); } return; diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs index b319f018a..3a96f0bae 100644 --- a/crates/ui-egui/src/dialogs.rs +++ b/crates/ui-egui/src/dialogs.rs @@ -2942,6 +2942,7 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) { "userDictionary" => crate::i18n::tr(&app.ui.language, "User Dictionary"), "newWorkspace" => crate::i18n::tr(&app.ui.language, "New Workspace"), "closeDocument" => crate::i18n::tr(&app.ui.language, "Unsaved Changes"), + "idmlLoss" => crate::i18n::tr(&app.ui.language, "Save as IDML"), "deletePages" => crate::i18n::tr(&app.ui.language, "Warning"), "pagesPanelOptions" => crate::i18n::tr(&app.ui.language, "Panel Options"), "updateLink" => crate::i18n::tr(&app.ui.language, "Update Link"), @@ -2977,7 +2978,8 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) { let available = (ctx.content_rect().size() - frame_margin - egui::vec2(16.0, 16.0)).max(egui::Vec2::splat(1.0)); let preferred_width: f32 = match d.id.as_str() { "alert" => 440.0, - "closeDocument" | "updateLink" | "deletePages" | "newWorkspace" | "pagesPanelOptions" | "insertTable" | "convertTableToText" => 380.0, + "closeDocument" | "idmlLoss" | "updateLink" | "deletePages" | "newWorkspace" | "pagesPanelOptions" | "insertTable" + | "convertTableToText" => 380.0, "insertPages" => 440.0, "convertTextToTable" => 420.0, "newDocument" => 960.0, @@ -3533,6 +3535,7 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) { .replace("{}", &d.s("title")); crate::rtl::label(ui, text); } + "idmlLoss" => idml_loss_text(app, ui, &d), "deletePages" => { let several = d.fields.get("pages").and_then(Value::as_array).is_some_and(|p| p.len() > 1); crate::rtl::label( @@ -3780,6 +3783,7 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) { let ok_label = match d.id.as_str() { "colorTheme" => crate::i18n::tr(&app.ui.language, "Add to Swatches").to_string(), "closeDocument" => crate::i18n::tr(&app.ui.language, " Save ").to_string(), + "idmlLoss" => crate::i18n::tr(&app.ui.language, "Save Anyway").to_string(), "updateLink" => crate::i18n::tr(&app.ui.language, " Update ").to_string(), "findFont" => crate::i18n::tr(&app.ui.language, "Replace All").to_string(), "newDocument" => format!(" {} ", crate::i18n::tr(&app.ui.language, "Create")), @@ -3828,6 +3832,10 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) { d.fields.insert("discard".into(), json!(true)); result = Some(true); } + if d.id == "idmlLoss" && ui.button(crate::rtl::widget(ui, crate::i18n::tr(&app.ui.language, "Save as DesignCraft…"))).clicked() { + d.fields.insert("asDesigncraft".into(), json!(true)); + result = Some(true); + } }); }); }); @@ -3999,6 +4007,11 @@ pub fn cancel(app: &mut DesignApp) { app.session.cancel_interaction(); } app.cancel_pdf_import(); + if d.as_ref().is_some_and(|d| d.id == "idmlLoss") + && let Err(e) = crate::menus::answer_idml_loss(app, crate::menus::LossyAnswer::Cancel) + { + app.status(e); + } if let Some(d) = d && d.id == "preferences" { @@ -4016,6 +4029,24 @@ pub fn cancel(app: &mut DesignApp) { } } +/// The IDML loss question: what saving as IDML would lose, and what the answers do. +fn idml_loss_text(app: &DesignApp, ui: &mut egui::Ui, d: &Dialog) { + let lang = &app.ui.language; + let count = |k: &str| d.fields.get(k).and_then(Value::as_u64).unwrap_or(0); + crate::rtl::label(ui, crate::i18n::tr(lang, "IDML can't keep all of this document. Saving it as IDML loses:")); + ui.add_space(4.0); + let (notes, endnotes) = (count("editorialNotes"), count("endnotes")); + if notes > 0 { + crate::rtl::label(ui, format!("• {}", crate::i18n::tr(lang, "{} editorial note(s)").replace("{}", ¬es.to_string()))); + } + if endnotes > 0 { + let text = crate::i18n::tr(lang, "{} endnote(s): their text stays as plain text in the endnote frame").replace("{}", &endnotes.to_string()); + crate::rtl::label(ui, format!("• {text}")); + } + ui.add_space(8.0); + crate::rtl::label(ui, crate::i18n::tr(lang, "Saved as DesignCraft, the document keeps everything.")); +} + fn find_change_params(d: &Dialog) -> Value { let mut p = json!({ "find": d.s("find"), "change": d.s("change"), "grep": d.b("grep"), @@ -4880,6 +4911,10 @@ fn confirm_part5(app: &mut DesignApp, d: Dialog) -> Result { Ok(Value::Null) } "updateLink" => crate::panels::properties::run_update_links(app, d.fields.get("target").cloned().unwrap_or_else(|| json!({}))), + "idmlLoss" => { + let answer = if d.b("asDesigncraft") { crate::menus::LossyAnswer::SaveAsDesigncraft } else { crate::menus::LossyAnswer::SaveAnyway }; + crate::menus::answer_idml_loss(app, answer) + } "closeDocument" => { // The document may have moved in the tab row (or gone) while the dialog was open. let uid = d.fields.get("uid").and_then(Value::as_u64); diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index de364b91f..608299ea8 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -277,6 +277,8 @@ pub struct DesignApp { pub(crate) quit_without_asking: bool, /// No document is discarded until every unsaved document has an up-to-date approval. quitting: Option, + /// A save waiting for the answer to "IDML can't keep all of this document" (`idmlLoss`). + pub(crate) lossy_save: Option, /// The tool cursor bitmaps handed to the OS. pub cursors: cursors::Images, /// A panel's live preview (a slider being dragged), committed when it is let go. diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rs index fa72d27b0..c51b64afb 100644 --- a/crates/ui-egui/src/menus.rs +++ b/crates/ui-egui/src/menus.rs @@ -31,7 +31,7 @@ pub use keys::{forwarded_shortcuts, shortcuts}; use quick_apply::quick_commands; pub use quick_apply::{QuickItem, command_search, palette, quick_apply_items}; pub use run::run_ui; -pub(crate) use run::save_then; +pub(crate) use run::{LossyAnswer, LossySave, answer_idml_loss, save_then}; pub use state::{ checked, default_shortcut, enabled, menu_enabled, native_menu_enabled, shortcut_label, shortcut_of, shortcut_text, tool_shortcut_label, }; diff --git a/crates/ui-egui/src/menus/export.rs b/crates/ui-egui/src/menus/export.rs index bed00d1e0..82925226e 100644 --- a/crates/ui-egui/src/menus/export.rs +++ b/crates/ui-egui/src/menus/export.rs @@ -1,10 +1,27 @@ use super::{DesignApp, Value, json}; use crate::app::file_dialogs::{Bound, with_path}; -pub(super) fn download_document(app: &mut DesignApp) -> Result { - // Preferences › File Handling › Save documents as: an IDML package (images embedded), or - // DesignCraft's own format. +/// Save in a browser: download the document in the Save documents as format, asking first when +/// that is IDML and IDML can't keep all of it; then run `after`. +pub(super) fn download_document(app: &mut DesignApp, after: super::run::After) -> Result { + use super::run::LossyAnswer; let format = app.session.prefs.save_format; + super::run::guard_idml_loss(app, format == designcraft_engine::SaveFormat::Idml, move |app, answer| match answer { + LossyAnswer::SaveAnyway => { + download_as(app, format)?; + after(app) + } + LossyAnswer::SaveAsDesigncraft => { + download_as(app, designcraft_engine::SaveFormat::Designcraft)?; + after(app) + } + LossyAnswer::Cancel => after(app), + }) +} + +/// Download the document as `format`: an IDML package (images embedded), or DesignCraft's own +/// format. +fn download_as(app: &mut DesignApp, format: designcraft_engine::SaveFormat) -> Result { let name = app.session.active().map(|d| format!("{}.{}", d.doc.title, format.extension())).ok_or("no document")?; let ser = match format { designcraft_engine::SaveFormat::Idml => app.run("file.exportIdml", json!({}))?, @@ -13,8 +30,9 @@ pub(super) fn download_document(app: &mut DesignApp) -> Result { let bytes = designcraft_engine::cmd::base64_decode(ser["base64"].as_str().unwrap_or_default()); let download = app.services.download.as_mut().ok_or("no download service")?; download(&name, &bytes).map_err(|e| format!("could not download {name}: {e}"))?; - // Marks the document saved; on the web the engine doesn't touch a file system. - app.run("file.saveAs", json!({"path": name})) + // Marks the document saved; on the web the engine doesn't touch a file system. The question + // about what IDML loses was asked above. + app.run("file.saveAs", json!({"path": name, "allowLoss": true})) } /// Asks where to save `name`, then runs `export` with `p` and the chosen path. diff --git a/crates/ui-egui/src/menus/run.rs b/crates/ui-egui/src/menus/run.rs index 599238cf8..36be79439 100644 --- a/crates/ui-egui/src/menus/run.rs +++ b/crates/ui-egui/src/menus/run.rs @@ -38,30 +38,113 @@ fn rerun_with_path(app: &mut DesignApp, purpose: &str, id: &str, p: &Value, key: app.ask_open(purpose, Bound::Document, move |app, path| run_ui(app, &id, &with_path(&p, key, path)).unwrap_or(Ok(Value::Null))) } -/// File › Save As: asks where, saves there, then runs `after`. +/// What runs once a save has happened (or was cancelled: it checks the document's state). +pub(crate) type After = Box Result>; + +/// The answer to "IDML can't keep all of this document". +pub(crate) enum LossyAnswer { + /// Save as IDML all the same (also the answer when there is nothing to lose). + SaveAnyway, + /// Save in DesignCraft's own format instead, which keeps everything. + SaveAsDesigncraft, + Cancel, +} + +/// The continuation of a save waiting for the IDML loss question. +pub(crate) type LossySave = Box Result>; + +/// A save as IDML (`idml`) that would lose part of the active document (editorial notes, +/// endnotes: `file.idmlLosses`) asks first, and `then` runs with the answer once it is given. +/// Otherwise `then` runs now, as Save Anyway: there is nothing to lose. The engine refuses such a +/// save without `allowLoss`, so nothing is lost without this question (CodeRabbit on #1105). +pub(super) fn guard_idml_loss( + app: &mut DesignApp, + idml: bool, + then: impl FnOnce(&mut DesignApp, LossyAnswer) -> Result + 'static, +) -> Result { + if idml { + let lost = app.run("file.idmlLosses", json!({}))?; + let count = |k: &str| lost.get(k).and_then(Value::as_u64).unwrap_or(0); + if count("editorialNotes") > 0 || count("endnotes") > 0 { + app.ui.dialog = Some(crate::dialogs::Dialog::new("idmlLoss", lost)); + app.lossy_save = Some(Box::new(then)); + return Ok(Value::Null); + } + } + then(app, LossyAnswer::SaveAnyway) +} + +/// Whether a save to `path` writes IDML. +fn is_idml_path(path: &str) -> bool { + designcraft_engine::SaveFormat::of_path(path) == designcraft_engine::SaveFormat::Idml +} + +/// File › Save As: asks where (suggesting the `ext` format), saves there, then runs `after`. #[track_caller] -fn save_as_dialog(app: &mut DesignApp, after: impl FnOnce(&mut DesignApp) -> Result + 'static) -> Result { - let ext = app.session.prefs.save_format.extension(); +fn save_as_dialog(app: &mut DesignApp, ext: &str, after: After) -> Result { let name = app.session.active().map(|d| format!("{}.{ext}", d.doc.title)).unwrap_or_default(); - app.ask_save(&name, Bound::Document, move |app, path| { - app.run("file.saveAs", json!({"path": path}))?; - after(app) + app.ask_save(&name, Bound::Document, move |app, path| save_as_checked(app, path, after)) +} + +/// Save As to `path`, asking first when that is an IDML save that would lose content. +fn save_as_checked(app: &mut DesignApp, path: String, after: After) -> Result { + guard_idml_loss(app, is_idml_path(&path), move |app, answer| match answer { + LossyAnswer::SaveAnyway => { + app.run("file.saveAs", json!({"path": path, "allowLoss": true}))?; + after(app) + } + LossyAnswer::SaveAsDesigncraft => save_as_dialog(app, designcraft_engine::SaveFormat::Designcraft.extension(), after), + LossyAnswer::Cancel => after(app), }) } +/// Save the active document to its own file, asking first when that is an IDML file and the save +/// would lose content. +fn save_to_own_file(app: &mut DesignApp, after: After) -> Result { + let idml = app.session.active().and_then(|d| d.path.as_deref()).is_some_and(is_idml_path); + guard_idml_loss(app, idml, move |app, answer| match answer { + LossyAnswer::SaveAnyway => { + app.run("file.save", json!({"allowLoss": true}))?; + after(app) + } + LossyAnswer::SaveAsDesigncraft => save_as_dialog(app, designcraft_engine::SaveFormat::Designcraft.extension(), after), + LossyAnswer::Cancel => after(app), + }) +} + +/// Save a Copy to `path`, asking first when that is an IDML save that would lose content. +fn save_copy_checked(app: &mut DesignApp, path: String) -> Result { + guard_idml_loss(app, is_idml_path(&path), move |app, answer| match answer { + LossyAnswer::SaveAnyway => app.run("file.saveACopy", json!({"path": path, "allowLoss": true})), + LossyAnswer::SaveAsDesigncraft => { + let ext = designcraft_engine::SaveFormat::Designcraft.extension(); + let name = app.session.active().map(|d| format!("{} copy.{ext}", d.doc.title)).unwrap_or_default(); + app.ask_save(&name, Bound::Document, save_copy_checked) + } + LossyAnswer::Cancel => Ok(Value::Null), + }) +} + +/// The IDML loss question was answered: run the save that was waiting for it. +pub(crate) fn answer_idml_loss(app: &mut DesignApp, answer: LossyAnswer) -> Result { + match app.lossy_save.take() { + Some(then) => then(app, answer), + None => Ok(Value::Null), + } +} + /// Save the active document (a download in a browser; Save As for one never saved), then run /// `after` once it is written. A save dialog answers on a later frame; Cancel runs nothing. #[track_caller] pub(crate) fn save_then(app: &mut DesignApp, after: impl FnOnce(&mut DesignApp) -> Result + 'static) -> Result { if app.services.download.is_some() { - download_document(app)?; - return after(app); + return download_document(app, Box::new(after)); } if app.session.active().is_some_and(|d| d.path.is_some()) { - app.run("file.save", json!({}))?; - return after(app); + return save_to_own_file(app, Box::new(after)); } - save_as_dialog(app, after) + let ext = app.session.prefs.save_format.extension(); + save_as_dialog(app, ext, Box::new(after)) } /// Run a UI command; `None` if `id` isn't one. @@ -170,27 +253,30 @@ fn run_ui_part1(app: &mut DesignApp, id: &str, p: &Value) -> Option download_document(app), + "app.save" | "app.saveDialog" if app.services.download.is_some() => download_document(app, Box::new(|_| Ok(Value::Null))), "app.save" => { if app.session.active().is_some_and(|d| d.path.is_some()) { - return Some(app.run("file.save", json!({}))); + return Some(save_to_own_file(app, Box::new(|_| Ok(Value::Null)))); } return run_ui(app, "app.saveDialog", p); } "app.saveDialog" => match p.get("path").and_then(Value::as_str) { - Some(path) => app.run("file.saveAs", json!({"path": path})), - None => save_as_dialog(app, |_| Ok(Value::Null)), + Some(path) => save_as_checked(app, path.to_string(), Box::new(|_| Ok(Value::Null))), + None => { + let ext = app.session.prefs.save_format.extension(); + save_as_dialog(app, ext, Box::new(|_| Ok(Value::Null))) + } }, "app.quit" => { app.request_quit(); Ok(Value::Null) } "app.saveCopyDialog" => match p.get("path").and_then(Value::as_str) { - Some(path) => app.run("file.saveACopy", json!({"path": path})), + Some(path) => save_copy_checked(app, path.to_string()), None => { let ext = app.session.prefs.save_format.extension(); let name = app.session.active().map(|d| format!("{} copy.{ext}", d.doc.title)).unwrap_or_default(); - app.ask_save(&name, Bound::Document, |app, path| app.run("file.saveACopy", json!({"path": path}))) + app.ask_save(&name, Bound::Document, save_copy_checked) } }, "app.exportPng" => export_png(app, p), diff --git a/crates/ui-egui/src/menus/save_format_tests.rs b/crates/ui-egui/src/menus/save_format_tests.rs index 84fa109b9..83df2b537 100644 --- a/crates/ui-egui/src/menus/save_format_tests.rs +++ b/crates/ui-egui/src/menus/save_format_tests.rs @@ -89,3 +89,99 @@ fn a_download_save_follows_the_save_format() { assert!(!app.session.active().unwrap().is_dirty(), "the document counts as saved"); } } + +/// Answers every file dialog with `path` (as typed in it). +fn answer_with(app: &mut DesignApp, path: &std::path::Path) { + let path = path.to_path_buf(); + app.answer_dialogs(move |request| match request { + craft_dialogs::Request::File(_) => craft_dialogs::Answer::Paths(vec![path.clone()]), + _ => craft_dialogs::Answer::Cancelled, + }); +} + +/// A new document with a text frame holding an editorial note: IDML can't keep it. +fn document_with_a_note(app: &mut DesignApp, title: &str) { + app.run("file.new", json!({"title": title})).unwrap(); + app.run("frame.create", json!({"rect": [72, 72, 400, 200], "content": "text", "text": "Hello"})).unwrap(); + app.run("note.new", json!({"text": "Check this"})).unwrap(); +} + +/// CodeRabbit on #1105: a save as IDML that would lose editorial notes asks first. Cancel saves +/// nothing; Save Anyway writes the IDML; Save as DesignCraft… asks where and writes DesignCraft's +/// format instead, which keeps the notes. +#[test] +fn an_idml_save_that_would_lose_notes_asks_first() { + let dir = tempfile::tempdir().unwrap(); + let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default()); + app.run("prefs.set", json!({"saveFormat": "idml"})).unwrap(); + document_with_a_note(&mut app, "Notes"); + let idml = dir.path().join("Notes.idml"); + answer_with(&mut app, &idml); + + // Cancel: nothing written, still unsaved. + app.run("app.save", json!({})).unwrap(); + app.settle_dialogs(); + let d = app.ui.dialog.as_ref().expect("the IDML loss question"); + assert_eq!((d.id.as_str(), &d.fields["editorialNotes"], &d.fields["endnotes"]), ("idmlLoss", &json!(1), &json!(0))); + crate::dialogs::cancel(&mut app); + assert!(app.ui.dialog.is_none() && app.lossy_save.is_none()); + assert!(!idml.exists()); + assert!(app.session.active().unwrap().is_dirty()); + + // Save Anyway: the IDML is written and the document counts as saved. + app.run("app.save", json!({})).unwrap(); + app.settle_dialogs(); + crate::dialogs::confirm(&mut app).unwrap(); + assert!(designcraft_idml::is_idml(&std::fs::read(&idml).unwrap())); + assert!(!app.session.active().unwrap().is_dirty()); + assert_eq!(app.session.active().unwrap().path.as_deref(), Some(idml.to_str().unwrap())); + + // ⌘S to its own IDML file asks again; Save as DesignCraft… saves as DesignCraft instead. + app.run("note.new", json!({"text": "And this"})).unwrap(); + let before = std::fs::read(&idml).unwrap(); + let native = dir.path().join("Notes.designcraft"); + answer_with(&mut app, &native); + app.run("app.save", json!({})).unwrap(); + assert_eq!(app.ui.dialog.as_ref().map(|d| d.id.as_str()), Some("idmlLoss")); + app.ui.dialog.as_mut().unwrap().fields.insert("asDesigncraft".into(), json!(true)); + crate::dialogs::confirm(&mut app).unwrap(); + app.settle_dialogs(); + assert_eq!(std::fs::read(&idml).unwrap(), before, "the IDML file is untouched"); + let saved = std::fs::read(&native).unwrap(); + assert!(!designcraft_idml::is_idml(&saved)); + assert_eq!(app.session.active().unwrap().path.as_deref(), Some(native.to_str().unwrap())); + assert!(!app.session.active().unwrap().is_dirty()); + + // Save a Copy to an IDML name asks too; Cancel writes nothing. + let copy = dir.path().join("Copy.idml"); + app.run("app.saveCopyDialog", json!({"path": copy.to_string_lossy()})).unwrap(); + assert_eq!(app.ui.dialog.as_ref().map(|d| d.id.as_str()), Some("idmlLoss")); + crate::dialogs::cancel(&mut app); + assert!(!copy.exists()); +} + +/// In a browser, the download asks the same question; Save as DesignCraft… downloads DesignCraft's +/// format. +#[test] +fn a_download_that_would_lose_notes_asks_first() { + let dir = tempfile::tempdir().unwrap(); + let title = dir.path().join("Notes").to_string_lossy().to_string(); + let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default()); + let got: Arc)>>> = Arc::default(); + let sink = got.clone(); + app.services.download = Some(Box::new(move |name: &str, bytes: &[u8]| { + sink.lock().unwrap().push((name.to_string(), bytes.to_vec())); + Ok(()) + })); + app.run("prefs.set", json!({"saveFormat": "idml"})).unwrap(); + document_with_a_note(&mut app, &title); + app.run("app.save", json!({})).unwrap(); + assert!(got.lock().unwrap().is_empty(), "nothing downloaded before the answer"); + app.ui.dialog.as_mut().unwrap().fields.insert("asDesigncraft".into(), json!(true)); + crate::dialogs::confirm(&mut app).unwrap(); + let got = got.lock().unwrap(); + let [(name, bytes)] = got.as_slice() else { panic!("one download: {:?}", got.len()) }; + assert!(name.ends_with("Notes.designcraft"), "{name}"); + assert!(!designcraft_idml::is_idml(bytes)); + assert!(!app.session.active().unwrap().is_dirty()); +} From 6c328898ef09182fae7d7c2ef51dd3adc263537c Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 2 Nov 2026 00:53:17 +0000 Subject: [PATCH 30/77] Save format: Don't ask again for this document (IDML loss question) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With Save Anyway, a ticked Don't ask again stops the question for that document until DesignCraft quits. It is kept by the app only, not in the document or the preferences; Save as DesignCraft… ignores it. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CgGsJkVe5GYG9qK6VFdECa --- crates/ui-egui/src/app.rs | 1 + crates/ui-egui/src/dialogs.rs | 14 ++++++- crates/ui-egui/src/lib.rs | 3 ++ crates/ui-egui/src/menus/run.rs | 12 ++++-- crates/ui-egui/src/menus/save_format_tests.rs | 38 +++++++++++++++++++ 5 files changed, 63 insertions(+), 5 deletions(-) diff --git a/crates/ui-egui/src/app.rs b/crates/ui-egui/src/app.rs index ded72d4da..33fa32a34 100644 --- a/crates/ui-egui/src/app.rs +++ b/crates/ui-egui/src/app.rs @@ -124,6 +124,7 @@ impl DesignApp { quit_without_asking: false, quitting: None, lossy_save: None, + idml_loss_accepted: Default::default(), cursors: cursors::Images::default(), live_preview: LivePreview::default(), updates_rt: updates_ui::Runtime::default(), diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs index 3a96f0bae..5cbc610b1 100644 --- a/crates/ui-egui/src/dialogs.rs +++ b/crates/ui-egui/src/dialogs.rs @@ -3535,7 +3535,13 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) { .replace("{}", &d.s("title")); crate::rtl::label(ui, text); } - "idmlLoss" => idml_loss_text(app, ui, &d), + "idmlLoss" => { + idml_loss_text(app, ui, &d); + ui.add_space(8.0); + // With Save Anyway: no more asking about this document until DesignCraft + // quits. + check(ui, &mut d, "dontAskAgain", crate::i18n::tr(&app.ui.language, "Don't ask again for this document")); + } "deletePages" => { let several = d.fields.get("pages").and_then(Value::as_array).is_some_and(|p| p.len() > 1); crate::rtl::label( @@ -4913,6 +4919,12 @@ fn confirm_part5(app: &mut DesignApp, d: Dialog) -> Result { "updateLink" => crate::panels::properties::run_update_links(app, d.fields.get("target").cloned().unwrap_or_else(|| json!({}))), "idmlLoss" => { let answer = if d.b("asDesigncraft") { crate::menus::LossyAnswer::SaveAsDesigncraft } else { crate::menus::LossyAnswer::SaveAnyway }; + if matches!(answer, crate::menus::LossyAnswer::SaveAnyway) + && d.b("dontAskAgain") + && let Some(uid) = d.fields.get("uid").and_then(Value::as_u64) + { + app.idml_loss_accepted.insert(uid); + } crate::menus::answer_idml_loss(app, answer) } "closeDocument" => { diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs index 608299ea8..452cc393c 100644 --- a/crates/ui-egui/src/lib.rs +++ b/crates/ui-egui/src/lib.rs @@ -279,6 +279,9 @@ pub struct DesignApp { quitting: Option, /// A save waiting for the answer to "IDML can't keep all of this document" (`idmlLoss`). pub(crate) lossy_save: Option, + /// Documents (by uid) whose IDML losses were accepted with Don't ask again: for this session + /// only, never saved. + pub(crate) idml_loss_accepted: std::collections::HashSet, /// The tool cursor bitmaps handed to the OS. pub cursors: cursors::Images, /// A panel's live preview (a slider being dragged), committed when it is let go. diff --git a/crates/ui-egui/src/menus/run.rs b/crates/ui-egui/src/menus/run.rs index 36be79439..9d34ec895 100644 --- a/crates/ui-egui/src/menus/run.rs +++ b/crates/ui-egui/src/menus/run.rs @@ -55,17 +55,21 @@ pub(crate) type LossySave = Box Resul /// A save as IDML (`idml`) that would lose part of the active document (editorial notes, /// endnotes: `file.idmlLosses`) asks first, and `then` runs with the answer once it is given. -/// Otherwise `then` runs now, as Save Anyway: there is nothing to lose. The engine refuses such a -/// save without `allowLoss`, so nothing is lost without this question (CodeRabbit on #1105). +/// Otherwise `then` runs now, as Save Anyway: there is nothing to lose, or the losses were +/// accepted for this document with Don't ask again (this session only). The engine refuses such +/// a save without `allowLoss`, so nothing is lost without this question (CodeRabbit on #1105). pub(super) fn guard_idml_loss( app: &mut DesignApp, idml: bool, then: impl FnOnce(&mut DesignApp, LossyAnswer) -> Result + 'static, ) -> Result { - if idml { - let lost = app.run("file.idmlLosses", json!({}))?; + let uid = app.session.active().map(|d| d.uid); + if idml && !uid.is_some_and(|uid| app.idml_loss_accepted.contains(&uid)) { + let mut lost = app.run("file.idmlLosses", json!({}))?; let count = |k: &str| lost.get(k).and_then(Value::as_u64).unwrap_or(0); if count("editorialNotes") > 0 || count("endnotes") > 0 { + lost["uid"] = json!(uid); + lost["dontAskAgain"] = json!(false); app.ui.dialog = Some(crate::dialogs::Dialog::new("idmlLoss", lost)); app.lossy_save = Some(Box::new(then)); return Ok(Value::Null); diff --git a/crates/ui-egui/src/menus/save_format_tests.rs b/crates/ui-egui/src/menus/save_format_tests.rs index 83df2b537..13d56293e 100644 --- a/crates/ui-egui/src/menus/save_format_tests.rs +++ b/crates/ui-egui/src/menus/save_format_tests.rs @@ -185,3 +185,41 @@ fn a_download_that_would_lose_notes_asks_first() { assert!(!designcraft_idml::is_idml(bytes)); assert!(!app.session.active().unwrap().is_dirty()); } + +/// Don't ask again (with Save Anyway) stops the question for that document, for this session +/// only (it is kept by the app, not in the document or the preferences): another document is +/// still asked about. +#[test] +fn dont_ask_again_holds_for_the_document_in_this_session() { + let dir = tempfile::tempdir().unwrap(); + let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default()); + document_with_a_note(&mut app, "Notes"); + let idml = dir.path().join("Notes.idml"); + // Not ticked: asked again next time. + app.run("app.saveDialog", json!({"path": idml.to_string_lossy()})).unwrap(); + assert_eq!(app.ui.dialog.as_ref().unwrap().fields["dontAskAgain"], false); + crate::dialogs::confirm(&mut app).unwrap(); + app.run("note.new", json!({"text": "Two"})).unwrap(); + app.run("app.save", json!({})).unwrap(); + // Ticked, but Save as DesignCraft… chosen: it doesn't count. + let d = app.ui.dialog.as_mut().expect("asked again"); + d.fields.insert("dontAskAgain".into(), json!(true)); + d.fields.insert("asDesigncraft".into(), json!(true)); + answer_with(&mut app, &dir.path().join("Notes.designcraft")); + crate::dialogs::confirm(&mut app).unwrap(); + app.settle_dialogs(); + app.run("app.saveDialog", json!({"path": idml.to_string_lossy()})).unwrap(); + // Ticked with Save Anyway: saved, and not asked again for this document. + app.ui.dialog.as_mut().expect("still asked").fields.insert("dontAskAgain".into(), json!(true)); + crate::dialogs::confirm(&mut app).unwrap(); + app.run("note.new", json!({"text": "Three"})).unwrap(); + app.run("app.save", json!({})).unwrap(); + assert!(app.ui.dialog.is_none(), "not asked again"); + assert!(!app.session.active().unwrap().is_dirty(), "saved as IDML"); + assert!(designcraft_idml::is_idml(&std::fs::read(&idml).unwrap())); + // Another document is still asked about. + document_with_a_note(&mut app, "Other"); + app.run("app.saveDialog", json!({"path": dir.path().join("Other.idml").to_string_lossy()})).unwrap(); + assert_eq!(app.ui.dialog.as_ref().map(|d| d.id.as_str()), Some("idmlLoss")); + crate::dialogs::cancel(&mut app); +} From ef588e17c0aa8db6180796694d56df352538d419 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sun, 1 Nov 2026 23:05:02 -0800 Subject: [PATCH 31/77] ROADMAP: move the Story Editor entries to the top of the progress log --- ROADMAP.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index 75a83f1bf..4bec65e05 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -384,6 +384,8 @@ list) · [roadmap.md](docs/roadmap.md) (milestones, plan) · [parity-checklist.m - **2026-10-30** · The Color Picker takes an eyedropper: dragged from the picker onto the page, it takes the colour the canvas shows (proofed under Proof Colors). No readiness percentage change. - **2026-10-30** · The Color Picker is laid out as the reference app's: a field and slider for the component chosen, HSB, Lab, RGB and CMYK values, the old colour, and Add CMYK Swatch; Enter and Esc close it once. No readiness percentage change. +- **2026-10-24** · View › Story Editor › Show/Hide Style Name Column (`view.storyEditorStyleColumn`) shows or hides the Story Editor's column of paragraph style names, as in InDesign, and dragging the bar between the column and the text makes the column wider or narrower (40 to 400 points; the command's `width` sets it too). Both settings are remembered with the preferences, so the editor opens with the same column the next time. No readiness percentage change. +- **2026-10-24** · View › Story Editor › Show/Hide Paragraph Break Marks (`view.storyEditorParagraphMarks`) shows or hides a ¶ after each paragraph that a paragraph break ends in the Story Editor, as in InDesign. The marks are off until turned on, and the setting is remembered with the preferences. No readiness percentage change. - **2026-10-18** · Table of Contents gains Create PDF Bookmarks: included headings become nested page destinations, regenerated in their existing outline position on update without replacing or moving surrounding manual bookmarks. The setting survives native and IDML files. No readiness percentage change. Newest first. @@ -425,8 +427,6 @@ Newest first. - **2026-10-23** · `designcraft-cli mcp` takes `--automation-read-root` and `--automation-write-root` more than once, as the suite's other apps do (#1552): a path inside any root of its kind passes, and the roots' common parent, `..` or a link out of them and the other kind's roots stay refused. No readiness percentage change. - **2026-10-23** · Layout › Go Back and Go Forward (Cmd+Page Up / Cmd+Page Down, Ctrl on Windows and Linux) retrace the jumps between pages (Go to Page, the page and spread commands, the Pages panel) as InDesign's do, returning to where the view was on each page at the current zoom; a new jump after going back drops the pages ahead, scrolling adds no entry, and pages deleted since are skipped. No readiness percentage change. - **2026-10-24** · The Story Editor has InDesign's vertical depth ruler between the style column and the text, and View › Story Editor › Show/Hide Depth Ruler (`view.storyEditorDepthRuler`) shows or hides it in the Story Editor, remembered with the preferences. The ruler is marked in the document's vertical ruler units with how deep the story's text fills its frames, counted through its columns and threaded frames (lines set side by side, in the sub-columns of a split paragraph or on both sides of a wrap object, count once), and is shaded down to the overset point, where a red line now crosses the editor. No readiness percentage change. -- **2026-10-24** · View › Story Editor › Show/Hide Style Name Column (`view.storyEditorStyleColumn`) shows or hides the Story Editor's column of paragraph style names, as in InDesign, and dragging the bar between the column and the text makes the column wider or narrower (40 to 400 points; the command's `width` sets it too). Both settings are remembered with the preferences, so the editor opens with the same column the next time. No readiness percentage change. -- **2026-10-24** · View › Story Editor › Show/Hide Paragraph Break Marks (`view.storyEditorParagraphMarks`) shows or hides a ¶ after each paragraph that a paragraph break ends in the Story Editor, as in InDesign. The marks are off until turned on, and the setting is remembered with the preferences. No readiness percentage change. - **2026-10-24** · Split Note (`note.split {story, id, at}`, the Notes panel's Split Note button): as in InDesign, a note splits in two at the insertion point in its text. DesignCraft moves the text after it into a new note by the same author, anchored right after the first. No readiness percentage change. - **2026-10-24** · Type › Notes › Previous Note and Next Note (`note.previous`, `note.next`): as in InDesign, they move the insertion point from note to note in the story, putting the caret after the note's anchor. Each item is unavailable when no note lies in its direction in the story, or when the insertion point is in a table cell or a footnote. No readiness percentage change. - **2026-10-24** · Type › Notes › Convert to Note (`note.convertFromText {author?}`): as in InDesign, the selected text leaves the story and becomes the text of a new note, whose anchor takes its place; Convert Note to Text puts it back. DesignCraft refuses a selection in a table cell, or one that holds a note, footnote, endnote, anchored object, index marker, text anchor, cross-reference or table. No readiness percentage change. From 839af837b38c553d73a93614d4113bc291690f67 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Mon, 2 Nov 2026 01:13:13 -0800 Subject: [PATCH 32/77] Story Editor: put a right-to-left paragraph's break mark at its left end --- crates/ui-egui/src/story_editor.rs | 61 +++++++++++++++++++++++++----- 1 file changed, 51 insertions(+), 10 deletions(-) diff --git a/crates/ui-egui/src/story_editor.rs b/crates/ui-egui/src/story_editor.rs index 0fdfa8f01..a8b322b19 100644 --- a/crates/ui-egui/src/story_editor.rs +++ b/crates/ui-egui/src/story_editor.rs @@ -83,9 +83,12 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) { let ruler = depths.as_ref().map(|_| ui.allocate_exact_size(vec2(RULER_WIDTH, 0.0), egui::Sense::hover()).0); let mut text = story.text.clone(); let font = egui::FontId::proportional(app.ui.story_editor_size.clamp(8.0, 36.0)); - // With paragraph break marks shown, the text wraps one text size short of the edge, so a - // mark after a full row stays within the width the text has without marks. - let width = if app.ui.story_editor_paragraph_marks { (ui.available_width() - font.size).max(font.size) } else { f32::INFINITY }; + // With paragraph break marks shown, the text wraps one text size short of the right edge and + // starts one text size in from the left, so a mark after a full row, left-to-right or + // right-to-left, stays within the width the text has without marks. + let marks = app.ui.story_editor_paragraph_marks; + let width = if marks { (ui.available_width() - font.size).max(font.size) } else { f32::INFINITY }; + let left = if marks { font.size.round().clamp(0.0, f32::from(i8::MAX)) as i8 } else { 0 }; // The text field has a fixed id, so it keeps its focus and caret when the columns before it // are shown or hidden. let out = egui::TextEdit::multiline(&mut text) @@ -93,7 +96,7 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) { .font(font.clone()) .desired_width(width) .desired_rows(20) - .frame(egui::Frame::NONE) + .frame(egui::Frame::NONE.inner_margin(egui::Margin { left, ..egui::Margin::ZERO })) .show(ui); let r = out.response; let changed = r.changed(); @@ -120,8 +123,8 @@ pub fn show(app: &mut DesignApp, ctx: &egui::Context) { drag.widget_info(|| egui::WidgetInfo::labeled(egui::Role::Unknown, true, "Style name column divider")); } if app.ui.story_editor_paragraph_marks { - for spot in paragraph_mark_spots(&out.galley) { - ui.painter().text(out.galley_pos + spot.to_vec2(), egui::Align2::LEFT_TOP, PARAGRAPH_MARK, font.clone(), t.text_dim); + for (spot, corner) in paragraph_mark_spots(&out.galley) { + ui.painter().text(out.galley_pos + spot.to_vec2(), corner, PARAGRAPH_MARK, font.clone(), t.text_dim); } } let overset_y = overset.filter(|_| !changed).map(|o| { @@ -199,10 +202,23 @@ pub(crate) fn style_column_width(width: f32) -> f32 { if width.is_finite() { width.clamp(STYLE_COLUMN_RANGE.0, STYLE_COLUMN_RANGE.1) } else { STYLE_COLUMN_WIDTH } } -/// Where the paragraph break marks go, in galley coordinates (each mark's top left): just after the -/// last row of every paragraph that a paragraph break ends, past any spaces at its end. -fn paragraph_mark_spots(galley: &egui::Galley) -> Vec { - galley.rows.iter().filter(|row| row.ends_with_newline).map(|row| pos2(row.rect().max.x + 1.0, row.rect().min.y)).collect() +/// Where the paragraph break marks go, in galley coordinates, with the corner of the mark at that +/// point: just after the last row of every paragraph that a paragraph break ends, past any spaces at +/// its end. A right-to-left paragraph ends on the left, so its mark goes left of the row. +fn paragraph_mark_spots(galley: &egui::Galley) -> Vec<(egui::Pos2, egui::Align2)> { + galley + .rows + .iter() + .filter(|row| row.ends_with_newline) + .map(|row| { + let rect = row.rect(); + if row.rtl_paragraph { + (pos2(rect.min.x - 1.0, rect.min.y), egui::Align2::RIGHT_TOP) + } else { + (pos2(rect.max.x + 1.0, rect.min.y), egui::Align2::LEFT_TOP) + } + }) + .collect() } /// Vertical offset of the first laid-out row of each paragraph, from `(row y, row ends with a newline)` @@ -726,6 +742,29 @@ mod tests { assert!(rect.max.x <= edge, "the mark stays left of the text's right edge {edge}: {rect:?}"); } + /// A right-to-left paragraph ends on the left, so its mark goes left of its last row, within + /// the editor even when that row starts at the text's left edge. + #[test] + fn a_right_to_left_paragraph_has_its_mark_on_the_left() { + let field = |h: &egui_kittest::Harness<'_, crate::test_window::Window>, text: &str| { + h.get_by(|n| n.role() == egui::accesskit::Role::MultilineTextInput && n.value().as_deref() == Some(text)).rect() + }; + // The right-to-left row is wider than "End", so it starts at the text's left edge. + let text = format!("{}\nEnd", "\u{628}".repeat(12)); + let mut h = story_editor_harness(&text); + let size = h.state().app.ui.story_editor_size; + let before = paragraph_marks(&h); + h.state_mut().app.run("view.storyEditorParagraphMarks", json!({})).unwrap(); + h.run_steps(2); + let field = field(&h, &text); + let marks: Vec<_> = paragraph_marks(&h).into_iter().filter(|m| !before.contains(m)).collect(); + assert_eq!(marks.len(), 1, "{marks:?}"); + let (rect, clip) = marks[0]; + assert!(rect.max.x <= field.min.x + size, "the mark is left of the row, where the paragraph ends: {rect:?} in {field:?}"); + assert!(rect.min.x >= field.min.x, "the mark stays within the editor: {rect:?} in {field:?}"); + assert!(clip.contains_rect(rect), "the mark is not cut off: {rect:?} in {clip:?}"); + } + /// A mark goes after the last row of a wrapped paragraph and after an empty paragraph, and not /// after the story's last paragraph, which no paragraph break ends. #[test] @@ -738,6 +777,8 @@ mod tests { output.textures_delta.clear(); let galley = galley.expect("laid out"); let spots = super::paragraph_mark_spots(&galley); + assert!(spots.iter().all(|s| s.1 == egui::Align2::LEFT_TOP), "{spots:?}"); + let spots: Vec<_> = spots.into_iter().map(|s| s.0).collect(); assert_eq!(spots.len(), 3, "{spots:?}"); let rows = &galley.rows; assert!(rows.len() >= 5, "the second paragraph wraps: {} rows", rows.len()); From fdca472ef9ac7b664467447e458951bfce46d157 Mon Sep 17 00:00:00 2001 From: Hamza Date: Mon, 2 Nov 2026 17:52:19 +0500 Subject: [PATCH 33/77] An anchor a hyperlink cannot mean is refused, not ignored This PR added anchors as link destinations and did not check that the anchor exists, so the feature was wrong on its own and review was right not to take the fix from a PR stacked above it. `dest_param` returns `Result>` now. `None` still means no destination was given, which `hyperlink.edit` needs for an edit that only renames; an `anchor` that is given and names none is an error. Two behaviours follow. An unknown *id* was accepted outright -- `as_u64` answered for any number -- so a link was stored to an anchor nobody has and the export quietly left it out. And on `hyperlink.edit` the `None` read as "no destination given", so the command reported success and kept the old destination, which is the case review reported. An unknown *name* did already fail on `hyperlink.create`, but with "give `url`, `email`, `page` or `anchor`", which named the wrong problem; it says "no text anchor X (anchor.list names them)" now. The test covers the id, the name, both on `edit`, that a refused edit leaves the destination, the name and the exported page alone, and that a rename naming no destination still works -- that last one is what `None` is for and it must not have become an error on the way. The page-number validation #1564 adds stays there; this is the anchor half, which belongs with the anchor feature. --- crates/engine/src/cmd/interactive.rs | 63 ++++++++++++++++++++++------ 1 file changed, 51 insertions(+), 12 deletions(-) diff --git a/crates/engine/src/cmd/interactive.rs b/crates/engine/src/cmd/interactive.rs index 463253d40..e312b4146 100644 --- a/crates/engine/src/cmd/interactive.rs +++ b/crates/engine/src/cmd/interactive.rs @@ -27,7 +27,7 @@ pub fn specs() -> Vec { cmd!(query "hyperlink.list", "Hyperlinks", [], None, "{}", has_doc, |s, _| Ok(serde_json::to_value(&s.doc()?.doc.hyperlinks).unwrap_or_default())), cmd!("hyperlink.edit", "Hyperlink Options…", [], None, "{id, name?, url? | email? | page? (1-based) | anchor?}", has_doc, |s, p| { let id = p.get("id").and_then(Value::as_u64).ok_or_else(|| bad("hyperlink.edit", "missing id"))?; - let dest = dest_param(&s.doc()?.doc, p); + let dest = dest_param("hyperlink.edit", &s.doc()?.doc, p)?; let name = str_param(p, "name").map(str::to_string); s.edit(|d, _| { let h = d.hyperlinks.iter_mut().find(|h| h.id == id).ok_or_else(|| bad("hyperlink.edit", format!("no hyperlink {id}")))?; @@ -91,17 +91,30 @@ pub fn specs() -> Vec { } /// `url`, `email`, `page` (1-based) or `anchor` (a text anchor's id, or its name). -fn dest_param(d: &designcraft_doc::Document, p: &Value) -> Option { +/// +/// `None` is "no destination given", which `hyperlink.edit` needs for an edit that only renames. +/// An `anchor` that is given and names none is an error, not `None`: an unknown name made +/// `hyperlink.create` fall through to `page` and an unknown id was stored as it stood, so the +/// link went to an anchor nobody has and the export quietly left it out -- and on +/// `hyperlink.edit` the `None` read as "no destination given", so the command reported success +/// and kept the old destination (noted in review). +fn dest_param(id: &str, d: &designcraft_doc::Document, p: &Value) -> Result> { if let Some(u) = str_param(p, "url") { - Some(HyperlinkDest::Url(u.to_string())) - } else if let Some(e) = str_param(p, "email") { - Some(HyperlinkDest::Email(e.to_string())) - } else if let Some(a) = p.get("anchor").filter(|a| !a.is_null()) { - let by_name = |name: &str| d.stories.values().flat_map(|st| st.anchors.iter()).find(|x| x.name == name).map(|x| x.id); - a.as_u64().or_else(|| a.as_str().and_then(by_name)).map(HyperlinkDest::Anchor) - } else { - p.get("page").and_then(Value::as_u64).map(|pg| HyperlinkDest::Page((pg as usize).saturating_sub(1))) + return Ok(Some(HyperlinkDest::Url(u.to_string()))); } + if let Some(e) = str_param(p, "email") { + return Ok(Some(HyperlinkDest::Email(e.to_string()))); + } + if let Some(a) = p.get("anchor").filter(|a| !a.is_null()) { + let by_name = |name: &str| d.stories.values().flat_map(|st| st.anchors.iter()).find(|x| x.name == name).map(|x| x.id); + let known = |id: &u64| d.stories.values().any(|st| st.anchors.iter().any(|x| x.id == *id)); + let found = a.as_u64().filter(known).or_else(|| a.as_str().and_then(by_name)); + return match found { + Some(anchor) => Ok(Some(HyperlinkDest::Anchor(anchor))), + None => Err(bad(id, format!("no text anchor {a} (anchor.list names them)"))), + }; + } + Ok(p.get("page").and_then(Value::as_u64).map(|pg| HyperlinkDest::Page((pg as usize).saturating_sub(1)))) } /// The anchor's own name, for a link to one that was not given a name. @@ -116,7 +129,7 @@ fn dest_label(d: &designcraft_doc::Document, dest: &HyperlinkDest) -> String { fn create(s: &mut Session, p: &Value) -> Result { let st = s.doc()?; - let dest = dest_param(&st.doc, p).ok_or_else(|| bad("hyperlink.create", "give `url`, `email`, `page` or `anchor`"))?; + let dest = dest_param("hyperlink.create", &st.doc, p)?.ok_or_else(|| bad("hyperlink.create", "give `url`, `email`, `page` or `anchor`"))?; let sources: Vec = if let Some(ids) = super::ids_param(p, "ids") { ids.into_iter().map(|id| HyperlinkSource::Item { id }).collect() } else if let Some(t) = st.selection.text.filter(|t| !t.is_caret()) { @@ -233,7 +246,33 @@ mod anchor_dest_tests { s.execute("hyperlink.create", &json!({"anchor": anchor["id"].clone(), "ids": [thumb["id"].clone()], "name": "Thumbnail"})).unwrap(); assert_eq!(s.execute("hyperlink.list", &json!({})).unwrap()[0]["name"], "Thumbnail"); assert_eq!(link_pages(&mut s), vec![3]); - assert!(s.execute("hyperlink.create", &json!({"anchor": "No Such Anchor", "ids": [thumb["id"].clone()]})).is_err()); + let e = s.execute("hyperlink.create", &json!({"anchor": "No Such Anchor", "ids": [thumb["id"].clone()]})).expect_err("refused").to_string(); + assert!(e.contains("no text anchor"), "and it says why, rather than that no destination was given: {e}"); + + // An unknown anchor *id* is refused as well. `as_u64` answered for any number, so a link + // was stored to an anchor nobody has and the export quietly left it out (noted in review). + let live = s.execute("hyperlink.list", &json!({})).unwrap()[0]["id"].clone(); + let missing = anchor["id"].as_u64().expect("the anchor's id") + 9_999; + let e = s.execute("hyperlink.create", &json!({"anchor": missing, "ids": [thumb["id"].clone()]})).expect_err("refused").to_string(); + assert!(e.contains("no text anchor"), "an unknown id is refused: {e}"); + + // And `hyperlink.edit` reports it rather than reading it as "no destination given", which + // made the command succeed and keep the old destination (noted in review). + for unknown in [json!(missing), json!("No Such Anchor")] { + let e = s.execute("hyperlink.edit", &json!({"id": live.clone(), "anchor": unknown.clone()})).expect_err("refused").to_string(); + assert!(e.contains("no text anchor"), "{unknown}: {e}"); + } + let after = s.execute("hyperlink.list", &json!({})).unwrap(); + assert_eq!(after[0]["dest"], json!({"kind": "anchor", "value": anchor["id"].clone()}), "the destination is unchanged: {after}"); + assert_eq!(after[0]["name"], "Thumbnail", "and so is the name"); + assert_eq!(link_pages(&mut s), vec![3], "and the export still lands on the anchor's page"); + + // A rename that names no destination still works: that is what `None` is for, and it must + // not have become an error on the way. + s.execute("hyperlink.edit", &json!({"id": live.clone(), "name": "Thumb"})).unwrap(); + let renamed = s.execute("hyperlink.list", &json!({})).unwrap(); + assert_eq!(renamed[0]["name"], "Thumb"); + assert_eq!(renamed[0]["dest"], json!({"kind": "anchor", "value": anchor["id"].clone()}), "the destination survives a rename"); // A link to a deleted anchor is not exported, rather than pointing at the wrong page. s.execute("text.select", &json!({"story": dest["story"].clone(), "anchor": 0, "focus": 8})).unwrap(); From 6ec524afc4bcc91e21b85c9baddc10300c15c376 Mon Sep 17 00:00:00 2001 From: Hamza Date: Mon, 2 Nov 2026 18:18:51 +0500 Subject: [PATCH 34/77] A name two anchors share cannot pick one of them `anchor.create` does not require an anchor's name to be unique, and an IDML import can bring a document that already has two of the same. The lookup took the first match, so a link made on a shared name went to whichever anchor came first -- a different page, with nothing to say so (noted in review). An id still names one anchor or none, and is checked as before. A name that two anchors answer to is refused, with their ids in the message so the caller can say which one they meant. Not uniqueness at creation, which was the other way offered: a document can already hold duplicates, so enforcing it there would refuse to open files that are fine today, and the ambiguity only matters where a name is being resolved. The test builds two anchors of one name on different pages, asserts both `hyperlink.create` and `hyperlink.edit` refuse it and say what to do instead, that the refused create made no link and the refused edit left the destination alone, and that each anchor is still reachable by its id. It is a test of its own because the twin anchor outlives the deletion the other test ends with. --- crates/engine/src/cmd/interactive.rs | 72 +++++++++++++++++++++++++--- 1 file changed, 66 insertions(+), 6 deletions(-) diff --git a/crates/engine/src/cmd/interactive.rs b/crates/engine/src/cmd/interactive.rs index e312b4146..1063e009a 100644 --- a/crates/engine/src/cmd/interactive.rs +++ b/crates/engine/src/cmd/interactive.rs @@ -106,12 +106,28 @@ fn dest_param(id: &str, d: &designcraft_doc::Document, p: &Value) -> Result Ok(Some(HyperlinkDest::Anchor(anchor))), - None => Err(bad(id, format!("no text anchor {a} (anchor.list names them)"))), + let anchors = || d.stories.values().flat_map(|st| st.anchors.iter()); + // An id names one anchor or none. + if let Some(n) = a.as_u64() { + return match anchors().any(|x| x.id == n) { + true => Ok(Some(HyperlinkDest::Anchor(n))), + false => Err(bad(id, format!("no text anchor {a} (anchor.list names them)"))), + }; + } + // A name need not. `anchor.create` does not require one to be unique -- and an IDML + // import can bring a document that already has two of the same -- so taking the first + // match stored whichever anchor happened to come first, and a link on a name shared by + // anchors on two pages went to the wrong page with nothing to say so (noted in review). + // The id still reaches either of them. + let Some(name) = a.as_str() else { return Err(bad(id, format!("no text anchor {a} (anchor.list names them)"))) }; + let mut named = anchors().filter(|x| x.name == name); + return match (named.next(), named.next()) { + (Some(x), None) => Ok(Some(HyperlinkDest::Anchor(x.id))), + (Some(_), Some(_)) => { + let ids: Vec = anchors().filter(|x| x.name == name).map(|x| x.id.to_string()).collect(); + Err(bad(id, format!("more than one text anchor is named {name:?} ({}); give the id instead", ids.join(", ")))) + } + (None, _) => Err(bad(id, format!("no text anchor {a} (anchor.list names them)"))), }; } Ok(p.get("page").and_then(Value::as_u64).map(|pg| HyperlinkDest::Page((pg as usize).saturating_sub(1)))) @@ -213,6 +229,50 @@ mod anchor_dest_tests { out } + /// `anchor.create` does not require a name to be unique -- and an IDML import can bring a + /// document that already has two of the same -- so the lookup taking the first match meant a + /// link made on a shared name went to whichever anchor came first, a different page, with + /// nothing to say so (noted in review). The id still reaches either of them. + #[test] + fn a_name_two_anchors_share_cannot_pick_one_of_them() { + let mut s = Session::new(); + s.execute("file.new", &json!({"width": 300, "height": 300, "pages": 3, "facingPages": false, "margins": 0})).unwrap(); + + // Two anchors with one name, in text on different pages. + let mut made = Vec::new(); + for page in [1usize, 2] { + let sp = s.doc().unwrap().doc.page_loc(page).unwrap().0; + let f = s + .execute("frame.create", &json!({"spread": sp, "rect": [20, 20, 280, 100], "content": "text", "text": "Photo 1 full size"})) + .unwrap(); + s.execute("text.select", &json!({"story": f["story"].clone(), "anchor": 0, "focus": 7})).unwrap(); + made.push(s.execute("anchor.create", &json!({"name": "Photo 1"})).unwrap()); + } + assert_ne!(made[0]["id"], made[1]["id"], "two anchors, one name"); + let thumb = s.execute("frame.create", &json!({"rect": [20, 20, 120, 80], "content": "unassigned"})).unwrap(); + + // Creating on the shared name is refused, and says what to do instead. + let e = s.execute("hyperlink.create", &json!({"anchor": "Photo 1", "ids": [thumb["id"].clone()]})).expect_err("ambiguous").to_string(); + assert!(e.contains("more than one text anchor"), "{e}"); + assert!(e.contains("give the id instead"), "it says what to do instead: {e}"); + assert!(s.execute("hyperlink.list", &json!({})).unwrap().as_array().is_some_and(|l| l.is_empty()), "and no link was made"); + + // By id it works, and the id picks the one that was asked for. + s.execute("hyperlink.create", &json!({"anchor": made[1]["id"].clone(), "ids": [thumb["id"].clone()]})).unwrap(); + let live = s.execute("hyperlink.list", &json!({})).unwrap()[0]["id"].clone(); + let dest = |s: &mut Session| s.execute("hyperlink.list", &json!({})).unwrap()[0]["dest"].clone(); + assert_eq!(dest(&mut s), json!({"kind": "anchor", "value": made[1]["id"].clone()})); + + // An edit on the shared name is refused and leaves the destination as it was. + let e = s.execute("hyperlink.edit", &json!({"id": live.clone(), "anchor": "Photo 1"})).expect_err("ambiguous").to_string(); + assert!(e.contains("more than one text anchor"), "{e}"); + assert_eq!(dest(&mut s), json!({"kind": "anchor", "value": made[1]["id"].clone()}), "the refused edit changed nothing"); + + // And the other anchor is still reachable by its id. + s.execute("hyperlink.edit", &json!({"id": live, "anchor": made[0]["id"].clone()})).unwrap(); + assert_eq!(dest(&mut s), json!({"kind": "anchor", "value": made[0]["id"].clone()})); + } + /// A frame can link to a text anchor, as a cross-reference refers to one, and the link lands /// on whichever page the anchor's text is on when the PDF is written — IDML files link photo /// thumbnails to their full-size pictures that way (#1446). From 3b72628b77e8b1e6e5609e6e14f238b14c22391e Mon Sep 17 00:00:00 2001 From: Hamza Date: Thu, 22 Oct 2026 16:25:50 +0500 Subject: [PATCH 35/77] A hyperlink destination the document cannot mean is refused MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found probing `hyperlink.create` on a four-page document: {"page": 0} → a link to page 1 ("Page 1"), because 0 - 1 saturated to 0 {"page": 999} → a link to page 999, accepted and then silently left out of the PDF, since no sheet shows that page {"anchor": 123} → a link to an anchor nobody has, the same way A page number is 1-based and the document has as many pages as it has, so each of those is a usage error now, and says which: "page 999: the document has 4 page(s), numbered from 1", "no text anchor 123 (anchor.list names them)". `hyperlink.edit` reads the same parameter and reports the same way. `dest_param` returns `Result>`: None is still "no destination given", which is what `hyperlink.edit` needs for an edit that only renames. The test covers the four refusals and that page 4 of four still becomes index 3. Without the check, page 0 becomes page 1 again. --- crates/engine/src/cmd/interactive.rs | 47 ++++++++++++++++++++++++---- 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a/crates/engine/src/cmd/interactive.rs b/crates/engine/src/cmd/interactive.rs index 1063e009a..034026ec3 100644 --- a/crates/engine/src/cmd/interactive.rs +++ b/crates/engine/src/cmd/interactive.rs @@ -93,11 +93,14 @@ pub fn specs() -> Vec { /// `url`, `email`, `page` (1-based) or `anchor` (a text anchor's id, or its name). /// /// `None` is "no destination given", which `hyperlink.edit` needs for an edit that only renames. -/// An `anchor` that is given and names none is an error, not `None`: an unknown name made -/// `hyperlink.create` fall through to `page` and an unknown id was stored as it stood, so the -/// link went to an anchor nobody has and the export quietly left it out -- and on -/// `hyperlink.edit` the `None` read as "no destination given", so the command reported success -/// and kept the old destination (noted in review). +/// A destination that *is* given and cannot be used is an error. +/// +/// The anchor half of that landed with the anchor feature (#1555): an unknown id was stored as it +/// stood and an unknown name read as no destination at all. +/// +/// The page half is this one. A page number is 1-based and the document has as many pages as it +/// has, so `page 0` became page 1 (`saturating_sub`) and a page past the end was accepted and +/// then left out of the export, since no sheet shows it. fn dest_param(id: &str, d: &designcraft_doc::Document, p: &Value) -> Result> { if let Some(u) = str_param(p, "url") { return Ok(Some(HyperlinkDest::Url(u.to_string()))); @@ -130,7 +133,16 @@ fn dest_param(id: &str, d: &designcraft_doc::Document, p: &Value) -> Result Err(bad(id, format!("no text anchor {a} (anchor.list names them)"))), }; } - Ok(p.get("page").and_then(Value::as_u64).map(|pg| HyperlinkDest::Page((pg as usize).saturating_sub(1)))) + match p.get("page").filter(|v| !v.is_null()) { + None => Ok(None), + Some(pg) => { + let pages = d.page_count(); + match pg.as_u64().map(|n| n as usize) { + Some(n) if n >= 1 && n <= pages => Ok(Some(HyperlinkDest::Page(n - 1))), + _ => Err(bad(id, format!("page {pg}: the document has {pages} page(s), numbered from 1"))), + } + } + } } /// The anchor's own name, for a link to one that was not given a name. @@ -301,6 +313,29 @@ mod anchor_dest_tests { assert_eq!(s.execute("anchor.list", &json!({})).unwrap()[0]["page"], "4"); assert_eq!(link_pages(&mut s), vec![3], "the link follows the text"); + // A page number the document does not have is refused, rather than becoming page 1 or a + // link the export quietly leaves out. + let dest_err = |s: &mut Session, dest: serde_json::Value| { + let mut params = dest; + params["ids"] = json!([thumb["id"].clone()]); + s.execute("hyperlink.create", ¶ms).expect_err("refused").to_string() + }; + for (params, wanted) in [ + (json!({"page": 0}), "numbered from 1"), + (json!({"page": 99}), "the document has 4 page(s)"), + (json!({"anchor": 12345}), "no text anchor"), + (json!({"anchor": "No Such Anchor"}), "no text anchor"), + ] { + let e = dest_err(&mut s, params.clone()); + assert!(e.contains(wanted), "{params}: {e}"); + } + // The pages it does have still work, 1-based. + let made = s.execute("hyperlink.create", &json!({"page": 4, "ids": [thumb["id"].clone()]})).unwrap()["ids"][0].clone(); + let links = s.execute("hyperlink.list", &json!({})).unwrap(); + let link = links.as_array().unwrap().iter().find(|h| h["id"] == made).expect("the new link"); + assert_eq!(link["dest"], json!({"kind": "page", "value": 3}), "page 4 is index 3"); + s.execute("hyperlink.delete", &json!({"id": made})).unwrap(); + // An anchor's id works as well as its name, and an unknown name is refused. s.execute("hyperlink.delete", &json!({"id": links[0]["id"].clone()})).unwrap(); s.execute("hyperlink.create", &json!({"anchor": anchor["id"].clone(), "ids": [thumb["id"].clone()], "name": "Thumbnail"})).unwrap(); From 6faaf3d5b2d623124ad72f74428cacac6d225cb1 Mon Sep 17 00:00:00 2001 From: Hamza Date: Wed, 28 Oct 2026 16:19:25 +0500 Subject: [PATCH 36/77] Hyperlinks: compare the page number before narrowing it Review caught a cast that makes the check depend on the width of usize. `pg.as_u64().map(|n| n as usize)` is lossy on wasm, where usize is 32 bits: 4294967297 became 1, so a one-page document accepted it and made a link to its own first page. The comparison now happens on the u64 as it arrived, and only the accepted value is narrowed. Two cases cover it, and both are honest about what they can show: on a 64-bit host usize is u64 and the comparison is the same either way, so they discriminate only on wasm. The cast that made the value's meaning depend on the target is gone regardless, which is the part that can be checked here -- `cargo check -p designcraft-engine --target wasm32-unknown-unknown` is clean. --- crates/engine/src/cmd/interactive.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/crates/engine/src/cmd/interactive.rs b/crates/engine/src/cmd/interactive.rs index 034026ec3..56eb507ae 100644 --- a/crates/engine/src/cmd/interactive.rs +++ b/crates/engine/src/cmd/interactive.rs @@ -137,8 +137,10 @@ fn dest_param(id: &str, d: &designcraft_doc::Document, p: &Value) -> Result Ok(None), Some(pg) => { let pages = d.page_count(); - match pg.as_u64().map(|n| n as usize) { - Some(n) if n >= 1 && n <= pages => Ok(Some(HyperlinkDest::Page(n - 1))), + // Compared as it arrived: `n as usize` is lossy where usize is 32 bits, so on wasm + // 4294967297 became 1 and a one-page document accepted it (noted in review). + match pg.as_u64() { + Some(n) if n >= 1 && n <= pages as u64 => Ok(Some(HyperlinkDest::Page(n as usize - 1))), _ => Err(bad(id, format!("page {pg}: the document has {pages} page(s), numbered from 1"))), } } @@ -323,6 +325,11 @@ mod anchor_dest_tests { for (params, wanted) in [ (json!({"page": 0}), "numbered from 1"), (json!({"page": 99}), "the document has 4 page(s)"), + // Compared before it is narrowed: where usize is 32 bits this value truncates to 1 + // and the document accepted it as its own first page (noted in review). On a 64-bit + // host the comparison is the same either way, so this case discriminates on wasm. + (json!({"page": 4_294_967_297u64}), "the document has 4 page(s)"), + (json!({"page": u64::MAX}), "the document has 4 page(s)"), (json!({"anchor": 12345}), "no text anchor"), (json!({"anchor": "No Such Anchor"}), "no text anchor"), ] { From 756281e26886d21b1254d8b9b2b298175dadec5b Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Mon, 2 Nov 2026 18:47:58 -0800 Subject: [PATCH 37/77] Story Editor: build after merging main state.rs imports story_editor through super, and the Show/Hide Style Name Column label has Hungarian and Swedish rows. --- crates/ui-egui/src/i18n/hu.rs | 1 + crates/ui-egui/src/i18n/sv.rs | 1 + crates/ui-egui/src/state.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/i18n/hu.rs b/crates/ui-egui/src/i18n/hu.rs index 890959761..c7e877e2b 100644 --- a/crates/ui-egui/src/i18n/hu.rs +++ b/crates/ui-egui/src/i18n/hu.rs @@ -1500,6 +1500,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Show/Hide Panels", "Panelek megjelenítése/elrejtése"), ("Show/Hide Panels Except Tools", "Panelek megjelenítése/elrejtése az eszközök kivételével"), ("Show/Hide Rulers", "Vonalzók megjelenítése/elrejtése"), + ("Show/Hide Style Name Column", "Stílusnevek oszlopának megjelenítése/elrejtése"), ("Show/Hide Tagged Frames", "Címkézett keretek megjelenítése/elrejtése"), ("Show/Hide Text Threads", "Szövegláncok megjelenítése/elrejtése"), ("Signature", "Aláírás"), diff --git a/crates/ui-egui/src/i18n/sv.rs b/crates/ui-egui/src/i18n/sv.rs index 1a7550a35..bddf6f56d 100644 --- a/crates/ui-egui/src/i18n/sv.rs +++ b/crates/ui-egui/src/i18n/sv.rs @@ -2490,6 +2490,7 @@ pub(super) const TABLE: &[(&str, &str)] = &[ ("Optical Margin Size", "Storlek för optisk marginal"), ("Dismiss", "Stäng"), ("Show/Hide Depth Ruler", "Visa/dölj djuplinjal"), + ("Show/Hide Style Name Column", "Visa/dölj kolumnen med stilnamn"), ("Split Note", "Dela anteckning"), ("Arrangement", "Arrangemang"), ("All Inks", "Alla tryckfärger"), diff --git a/crates/ui-egui/src/state.rs b/crates/ui-egui/src/state.rs index 6bb772bbb..d3a9c6d9a 100644 --- a/crates/ui-egui/src/state.rs +++ b/crates/ui-egui/src/state.rs @@ -1,6 +1,6 @@ #[cfg(not(target_arch = "wasm32"))] use super::render_worker; -use super::{Deserialize, Point, Serialize, SnapView, Unit, canvas, dialogs, page_history, panels, prefs, separations, theme}; +use super::{Deserialize, Point, Serialize, SnapView, Unit, canvas, dialogs, page_history, panels, prefs, separations, story_editor, theme}; /// Context captured before any host file-picker or read await. #[derive(Clone, Debug)] From 1b6fb2e2c58ef0d1c76b3f0cfaebf8d7e9639355 Mon Sep 17 00:00:00 2001 From: aiongg <67543387+aiongg@users.noreply.github.com> Date: Tue, 3 Nov 2026 18:48:04 +0000 Subject: [PATCH 38/77] Apply review fixes - crates/ui-egui/src/prefs.rs --- crates/ui-egui/src/prefs.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ui-egui/src/prefs.rs b/crates/ui-egui/src/prefs.rs index 9473981f5..4d41922b6 100644 --- a/crates/ui-egui/src/prefs.rs +++ b/crates/ui-egui/src/prefs.rs @@ -34,6 +34,7 @@ impl UiState { } } let mut ui: UiState = serde_json::from_value(saved)?; + ui.story_editor_style_width = crate::story_editor::style_column_width(ui.story_editor_style_width); clear_stale_open_panels(&mut ui); intact &= migrate(&mut ui.docking, &mut ui.floating, &ui.docking_hidden, ui.dock_expanded, ui.icon_groups.as_deref()); for workspace in &mut ui.custom_workspaces { From c2b7067dbbceb202724fc68544e1e01c174390cf Mon Sep 17 00:00:00 2001 From: Hamza Date: Thu, 5 Nov 2026 11:53:08 +0500 Subject: [PATCH 39/77] Test: two anchors sharing a name come from a file, now that anchor.create refuses a name in use main's anchor.create now refuses a second anchor of a name, so the test makes the first and renames the second in the document, as a file opened with two can hold them. The comment on the guard says the same. --- crates/engine/src/cmd/interactive.rs | 29 ++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/crates/engine/src/cmd/interactive.rs b/crates/engine/src/cmd/interactive.rs index c187fe219..9f340e24d 100644 --- a/crates/engine/src/cmd/interactive.rs +++ b/crates/engine/src/cmd/interactive.rs @@ -115,11 +115,11 @@ fn dest_param(id: &str, d: &designcraft_doc::Document, p: &Value) -> Result Err(bad(id, format!("no text anchor {a} (anchor.list names them)"))), }; } - // A name need not. `anchor.create` does not require one to be unique -- and an IDML - // import can bring a document that already has two of the same -- so taking the first - // match stored whichever anchor happened to come first, and a link on a name shared by - // anchors on two pages went to the wrong page with nothing to say so (noted in review). - // The id still reaches either of them. + // A name need not. `anchor.create` refuses a name in use, but an IDML import can bring a + // document that already has two of the same, so taking the first match stored whichever + // anchor happened to come first, and a link on a name shared by anchors on two pages went + // to the wrong page with nothing to say so (noted in review). The id still reaches either + // of them. let Some(name) = a.as_str() else { return Err(bad(id, format!("no text anchor {a} (anchor.list names them)"))) }; let mut named = anchors().filter(|x| x.name == name); return match (named.next(), named.next()) { @@ -239,16 +239,29 @@ mod anchor_dest_tests { let mut s = Session::new(); s.execute("file.new", &json!({"width": 300, "height": 300, "pages": 3, "facingPages": false, "margins": 0})).unwrap(); - // Two anchors with one name, in text on different pages. + // Two anchors with one name, in text on different pages. `anchor.create` refuses a name + // in use, but a document opened from a file can still hold two, so the second is renamed + // in the document directly. let mut made = Vec::new(); - for page in [1usize, 2] { + for (page, name) in [(1usize, "Photo 1"), (2, "Photo 1 (second)")] { let sp = s.doc().unwrap().doc.page_loc(page).unwrap().0; let f = s .execute("frame.create", &json!({"spread": sp, "rect": [20, 20, 280, 100], "content": "text", "text": "Photo 1 full size"})) .unwrap(); s.execute("text.select", &json!({"story": f["story"].clone(), "anchor": 0, "focus": 7})).unwrap(); - made.push(s.execute("anchor.create", &json!({"name": "Photo 1"})).unwrap()); + made.push(s.execute("anchor.create", &json!({"name": name})).unwrap()); } + s.edit(|d, _| { + for sid in d.stories.keys().copied().collect::>() { + for a in &mut d.story_mut(sid).unwrap().anchors { + if a.name == "Photo 1 (second)" { + std::sync::Arc::make_mut(a).name = "Photo 1".into(); + } + } + } + Ok(()) + }) + .unwrap(); assert_ne!(made[0]["id"], made[1]["id"], "two anchors, one name"); let thumb = s.execute("frame.create", &json!({"rect": [20, 20, 120, 80], "content": "unassigned"})).unwrap(); From 57100101f0238dec630452084cf95fcccd79917c Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 8 Nov 2026 21:27:06 +0000 Subject: [PATCH 40/77] Web relink: address review (drops no longer relink, the journal keeps the files, unreadable files reported, the picker's listener released, desktop names as before) - Dropping an image places it as before; relinking from a drop is left for its own change. The web host's drop handling is main's again. - links.relinkFiles is journaled with its files' bytes, as file.place {base64} is, so the entry replays; journal_params is gone. - In a folder relink, a matching file that can't be read is reported under failed and leaves its graphic missing; the others relink. The status names the unread files. One chosen file still errors. - The folder picker's change/cancel listener belongs to the call and is removed when the picker settles (no forget()). - Relink and Update name the graphic with Path::file_name, as main does; only a link kept from the file splits on either separator. --- ROADMAP.md | 2 +- apps/designcraft-web/src/web.rs | 42 +++++++++-------- crates/engine/src/cmd/links.rs | 81 +++++++++++++++++++++++++++------ crates/engine/src/lib.rs | 18 +------- crates/ui-egui/src/app/files.rs | 57 ++++++++++------------- 5 files changed, 115 insertions(+), 85 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index 93e96ae1b..716144bda 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -556,7 +556,7 @@ Newest first. - **2026-10-17** · Cross-references keep text typed over their generated text (IDML import and export), with the page number still live, as InDesign shows them until updated; a cross-reference whose destination is gone shows its saved text and page instead of "??"; and a cross-reference's text breaks at its spaces instead of inside words. No readiness percentage change. - **2026-10-17** · Parent pages: while parents are edited, the document pages' hidden characters, spelling squiggles and other overlays no longer pile onto the right parent page. No readiness percentage change. - **2026-10-16** · A Direct Selection click on an image whose frame is already selected selects the image, so Delete removes only the image and leaves the empty frame, as in InDesign. No readiness percentage change. -- **2026-10-18** · Web build: linked graphics relink from files handed over — Links › Relink… opens the browser's file picker for one graphic, Relink to Folder… its folder picker (each missing graphic takes the file whose path in the folder ends like its link; same-named files nothing tells apart are left missing and reported), and dropped images named like a missing graphic relink it; one undo step per batch. New `links.relinkFiles`. Before, both buttons did nothing in the browser, so an IDML opened without its Links folder had no way to get its pictures. No readiness percentage change. +- **2026-10-18** · Web build: linked graphics relink from files handed over — Links › Relink… opens the browser's file picker for one graphic, Relink to Folder… its folder picker (each missing graphic takes the file whose path in the folder ends like its link; same-named files nothing tells apart are left missing and reported); one undo step per batch. New `links.relinkFiles`. Before, both buttons did nothing in the browser, so an IDML opened without its Links folder had no way to get its pictures. No readiness percentage change. - **2026-10-16** · Type › Reload Fonts (`font.reload`): fonts installed, edited or removed while DesignCraft runs are read again without a restart, and the open documents recompose with them (#328, #547). An edited font file is noticed by its length and modification time; bundled, added and document fonts stay as they are. InDesign does this by itself, so noticing changes automatically is still open (gap 6). No readiness percentage change. - **2026-10-16** · Parents can be deleted from their Pages-panel context menu or `layout.parents.delete {id}`. Applied-page and based-on references are cleared, local override copies survive, and Undo restores the parent. Addresses the deletion portion of #956; no readiness percentage change. - **2026-10-17** · File › Package writes the document's and the IDML's links relative to the package (`Links/logo.png`, `file:Links/logo.png`), so a package holds no path from the machine that made it; opening a document resolves them to the files beside it. Links › Copy Link(s) To still links by full path. (#340). No readiness percentage change. diff --git a/apps/designcraft-web/src/web.rs b/apps/designcraft-web/src/web.rs index 8f7593afc..2548fd2d3 100644 --- a/apps/designcraft-web/src/web.rs +++ b/apps/designcraft-web/src/web.rs @@ -359,24 +359,19 @@ impl eframe::App for WebShell { let _ = self.graphics.run_if_healthy(|| { // Dropped files belong to this host iteration's raw input, not to stale logic input: // read them here once, before the batch is saved as pending for a hidden pass. - let dropped = std::mem::take(&mut raw.dropped_files); - if !dropped.is_empty() { + for f in std::mem::take(&mut raw.dropped_files) { let request = self.app.import_request("drop"); let inbox = self.inbox.clone(); let ctx = ctx.clone(); - // Read every dropped file before delivering any: dropped graphics that relink - // missing links relink together, in one undo step. wasm_bindgen_futures::spawn_local(async move { - let mut files = Vec::with_capacity(dropped.len()); - for f in dropped { - let name = f.path().file_name().map(|n| n.to_string_lossy().to_string()).unwrap_or_else(|| "dropped".into()); - match f.bytes_async().await { - Ok(bytes) => files.push(ImportedFile { request: request.clone(), name, bytes }), - Err(e) => log::error!("couldn't read dropped file {name}: {e}"), + let name = f.path().file_name().map(|n| n.to_string_lossy().to_string()).unwrap_or_else(|| "dropped".into()); + match f.bytes_async().await { + Ok(bytes) => { + inbox.lock().unwrap_or_else(|e| e.into_inner()).push(ImportedFile { request, name, bytes }); + ctx.request_repaint(); } + Err(e) => log::error!("couldn't read dropped file {name}: {e}"), } - inbox.lock().unwrap_or_else(|e| e.into_inner()).extend(files); - ctx.request_repaint(); }); } designcraft_ui_egui::drop_key_name_text(raw, ctx.text_edit_focused() || self.app.canvas_ime()); @@ -463,17 +458,24 @@ async fn pick_folder_files(wanted: &[String]) -> Vec<(String, Vec)> { if input.set_attribute("webkitdirectory", "").is_err() { return Vec::new(); } - // Settles when files are chosen or the picker is cancelled. - let chosen = js_sys::Promise::new(&mut |resolve, _reject| { - let done = wasm_bindgen::closure::Closure::::new(move || { - let _ = resolve.call0(&wasm_bindgen::JsValue::UNDEFINED); - }); - let _ = input.add_event_listener_with_callback("change", done.as_ref().unchecked_ref()); - let _ = input.add_event_listener_with_callback("cancel", done.as_ref().unchecked_ref()); - done.forget(); + // Settles when files are chosen or the picker is cancelled. The listener is this call's and + // goes when the picker settles, not kept for the page's life. (A browser that fires neither + // event leaves this call waiting; current browsers fire `cancel`.) + let mut resolve = None; + let chosen = js_sys::Promise::new(&mut |r, _reject| resolve = Some(r)); + let Some(resolve) = resolve else { return Vec::new() }; + let done = wasm_bindgen::closure::Closure::::new(move || { + let _ = resolve.call0(&wasm_bindgen::JsValue::UNDEFINED); }); + for event in ["change", "cancel"] { + let _ = input.add_event_listener_with_callback(event, done.as_ref().unchecked_ref()); + } input.click(); let _ = wasm_bindgen_futures::JsFuture::from(chosen).await; + for event in ["change", "cancel"] { + let _ = input.remove_event_listener_with_callback(event, done.as_ref().unchecked_ref()); + } + drop(done); let Some(list) = input.files() else { return Vec::new() }; let mut out = Vec::new(); let mut bytes = 0.0; diff --git a/crates/engine/src/cmd/links.rs b/crates/engine/src/cmd/links.rs index 57198e72b..19a1df1bd 100644 --- a/crates/engine/src/cmd/links.rs +++ b/crates/engine/src/cmd/links.rs @@ -56,7 +56,7 @@ pub fn specs() -> Vec { "Relink to Files", [], None, - "{files: [{name, base64, path?: the file's path within a chosen folder}], asset?: id} — relink from files handed over by name (the web build's file picker and drops, which give no path on disk): with `asset`, that graphic from the first file; otherwise each missing graphic from the file whose path ends most like its link (the same name at least, any case), all in one undo step — a graphic those can't tell apart (two equally likely files, or one file named only like graphics linking to different files) stays missing. A file named like the link keeps the link's path → {relinked, notFound: [names no file matched], ambiguous: [names left missing], unused: [files that matched nothing]}", + "{files: [{name, base64, path?: the file's path within a chosen folder}], asset?: id} — relink from files handed over by name (the web build's file and folder pickers, which give no path on disk): with `asset`, that graphic from the first file; otherwise each missing graphic from the file whose path ends most like its link (the same name at least, any case), all in one undo step — a graphic those can't tell apart (two equally likely files, or one file named only like graphics linking to different files) stays missing. A file named like the link keeps the link's path → {relinked, notFound: [names no file matched], ambiguous: [names left missing], failed: [{name, error}: matching files that couldn't be read, their graphics left missing], unused: [files that matched nothing]}", has_doc, relink_files ), @@ -466,7 +466,9 @@ fn reload(path: impl AsRef) -> Result<(Vec, (u32, u32))> { /// to and the stored link itself, so refreshing a link never rewrites what the document holds. fn relinked_asset(a: &designcraft_doc::Asset, read: &Path, link: &str) -> Result> { let (bytes, px) = reload(read)?; - relinked_from(a, bytes, px, &read.display().to_string(), link) + // Named as the platform reads the link (a path on this computer). + let name = Path::new(link).file_name().map_or_else(|| link.to_string(), |n| n.to_string_lossy().to_string()); + relinked_from(a, bytes, px, &read.display().to_string(), link, name) } /// [`relinked_asset`] from a file handed over as bytes with its name (the browser's file picker @@ -479,7 +481,9 @@ fn relinked_bytes(a: &designcraft_doc::Asset, name: &str, bytes: Vec) -> Res Some(old) if link_file_name(old).eq_ignore_ascii_case(name) => old.clone(), _ => name.to_string(), }; - relinked_from(a, bytes, px, name, &link) + // The link kept may come from another platform: named after its last part, either separator. + let file = link_file_name(&link).to_string(); + relinked_from(a, bytes, px, name, &link, file) } /// The file name at the end of a link (either kind of separator). @@ -487,8 +491,16 @@ fn link_file_name(link: &str) -> &str { link.rsplit(['/', '\\']).next().unwrap_or(link) } -/// The asset with a new file's bytes (`px` its pixel size, `label` naming it in errors). -fn relinked_from(a: &designcraft_doc::Asset, bytes: Vec, px: (u32, u32), label: &str, link: &str) -> Result> { +/// The asset with a new file's bytes (`px` its pixel size, `label` naming it in errors, `name` +/// the graphic's name from now on). +fn relinked_from( + a: &designcraft_doc::Asset, + bytes: Vec, + px: (u32, u32), + label: &str, + link: &str, + name: String, +) -> Result> { let page = if designcraft_render::is_pdf(&bytes) { a.page } else { 0 }; let px = if page > 0 { designcraft_render::pdf_page_size(&bytes, page as usize) @@ -502,7 +514,7 @@ fn relinked_from(a: &designcraft_doc::Asset, bytes: Vec, px: (u32, u32), lab a.data = Arc::new(bytes); a.pixels = Some(px); a.page = page; - a.name = link_file_name(link).to_string(); + a.name = name; a.link = Some(link.to_string()); // A placed PDF keeps its crop choice; its box is found on the new file. super::file::crop_pdf(&mut a); @@ -691,7 +703,7 @@ fn relink_files(s: &mut Session, p: &Value) -> Result { // Every replacement is built before the edit: a bad file leaves the document as it was. let mut fresh = Vec::new(); let mut used = vec![false; files.len()]; - let (mut not_found, mut ambiguous) = (Vec::new(), Vec::new()); + let (mut not_found, mut ambiguous, mut failed) = (Vec::new(), Vec::new(), Vec::new()); if let Some(aid) = p.get("asset").and_then(Value::as_u64).map(AssetId) { let a = d.assets.get(&aid).ok_or_else(|| bad(ID, "no such graphic"))?; let ((name, _), b64) = files.first().zip(data.first()).ok_or_else(|| bad(ID, "no file"))?; @@ -717,10 +729,14 @@ fn relink_files(s: &mut Session, p: &Value) -> Result { } for (aid, k) in chosen { let (Some(a), Some((name, _)), Some(b64)) = (d.assets.get(&aid), files.get(k), data.get(k)) else { continue }; - fresh.push((aid, relinked_bytes(a, name, super::base64_decode(b64))?)); if let Some(u) = used.get_mut(k) { *u = true; } + // A file that can't be read leaves its graphic missing and the others relinking. + match relinked_bytes(a, name, super::base64_decode(b64)) { + Ok(fresh_asset) => fresh.push((aid, fresh_asset)), + Err(e) => failed.push(json!({"name": name, "error": e.to_string()})), + } } } let unused: Vec = files.iter().zip(&used).filter(|(_, u)| !**u).map(|((n, _), _)| n.clone()).collect(); @@ -733,7 +749,7 @@ fn relink_files(s: &mut Session, p: &Value) -> Result { Ok(()) })?; } - Ok(json!({"relinked": n, "notFound": not_found, "ambiguous": ambiguous, "unused": unused})) + Ok(json!({"relinked": n, "notFound": not_found, "ambiguous": ambiguous, "failed": failed, "unused": unused})) } /// `links.update`: re-read the modified links (one, or every one) from where they resolve. @@ -943,7 +959,7 @@ mod shared_asset_tests { /// but relinking it would change nothing on the page. The journal keeps the files' names, /// not their contents. #[test] - fn relinks_only_placed_graphics_and_journals_no_file_contents() { + fn relinks_only_placed_graphics_and_replays_from_the_journal() { let (mut s, a, b) = two_missing(); // b's frame is deleted: its asset stays (for undo) but nothing shows it. s.edit(|d, _| { @@ -959,9 +975,43 @@ mod shared_asset_tests { assert_eq!(r["unused"], json!(["pic1.png"]), "nothing placed is named pic1"); let d = &s.doc().unwrap().doc; assert!(!d.assets[&a].data.is_empty() && d.assets[&b].data.is_empty()); - let (id, params) = s.journal.last().unwrap(); + // The journal keeps the files whole, as it does for `file.place {base64}`: replayed, the + // entry relinks again. + let (id, params) = s.journal.last().unwrap().clone(); assert_eq!(id, "links.relinkFiles"); - assert!(params["files"].as_array().unwrap().iter().all(|f| f.get("base64").is_none() && f["name"].is_string()), "{params}"); + s.execute("edit.undo", &json!({})).unwrap(); + assert!(s.doc().unwrap().doc.assets[&a].data.is_empty()); + assert_eq!(s.execute(&id, ¶ms).unwrap()["relinked"], 1); + assert!(!s.doc().unwrap().doc.assets[&a].data.is_empty()); + } + + /// A matching file that can't be read (here not an image at all) is reported and leaves its + /// graphic missing; the other files still relink theirs. + #[test] + fn an_unreadable_file_leaves_the_others_relinking() { + let (mut s, a, b) = two_missing(); + let good = json!({"name": "pic0.png", "base64": super::super::file::base64_encode(&png(6, 6))}); + let bad_file = json!({"name": "pic1.png", "base64": super::super::file::base64_encode(b"not an image")}); + let r = s.execute("links.relinkFiles", &json!({"files": [good, bad_file]})).unwrap(); + assert_eq!(r["relinked"], 1, "{r}"); + assert_eq!(r["failed"].as_array().map(|f| f.iter().map(|f| f["name"].clone()).collect::>()), Some(vec![json!("pic1.png")]), "{r}"); + let d = &s.doc().unwrap().doc; + assert!(!d.assets[&a].data.is_empty() && d.assets[&b].data.is_empty()); + } + + /// Relinking to a file on disk names the graphic after that file as the platform reads + /// paths: a backslash is part of a file name on Linux and macOS. + #[cfg(unix)] + #[test] + fn a_path_relink_names_the_graphic_by_the_platform_s_file_name() { + let (mut s, a, _) = two_missing(); + let dir = std::env::temp_dir().join(format!("dc-relink-name-{}", std::process::id())); + std::fs::create_dir_all(&dir).unwrap(); + let path = dir.join("cover\\v2.png"); + std::fs::write(&path, png(4, 4)).unwrap(); + s.execute("links.relink", &json!({"asset": a.0, "path": path.to_string_lossy()})).unwrap(); + assert_eq!(s.doc().unwrap().doc.assets[&a].name, "cover\\v2.png"); + let _ = std::fs::remove_dir_all(&dir); } /// Files of the same name in different folders of a chosen folder: each missing graphic takes @@ -1029,10 +1079,13 @@ mod shared_asset_tests { s.execute("links.relinkFiles", &json!({"asset": b.0, "files": [file("new.png", 5)]})).unwrap(); let d = &s.doc().unwrap().doc; assert_eq!((d.assets[&b].pixels, d.assets[&b].link.as_deref(), d.assets[&b].name.as_str()), (Some((5, 5)), Some("new.png"), "new.png")); - // A file that isn't an image changes nothing. + // A file that isn't an image changes nothing: reported for a folder, an error for one + // chosen file. let before = s.doc().unwrap().doc.assets.clone(); let bad = json!({"name": "pic0.png", "base64": super::super::file::base64_encode(b"not an image")}); - assert!(s.execute("links.relinkFiles", &json!({"files": [bad]})).is_err()); + let r = s.execute("links.relinkFiles", &json!({"files": [bad.clone()]})).unwrap(); + assert_eq!((r["relinked"].clone(), r["failed"][0]["name"].clone()), (json!(0), json!("pic0.png")), "{r}"); + assert!(s.execute("links.relinkFiles", &json!({"asset": a.0, "files": [bad]})).is_err()); assert_eq!(s.doc().unwrap().doc.assets, before); assert!(s.execute("links.relinkFiles", &json!({"files": "x"})).is_err()); } diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs index 530dff09c..1c585aa4f 100644 --- a/crates/engine/src/lib.rs +++ b/crates/engine/src/lib.rs @@ -663,7 +663,7 @@ impl Session { self.keep_guide_selection_valid(before.as_ref(), id); self.record_undo_step(spec, before, nested); if spec.journal { - self.journal.push((id.to_string(), journal_params(id, params))); + self.journal.push((id.to_string(), params.clone())); } self.discard_stale_find_scope(); Ok(r) @@ -825,21 +825,5 @@ fn push_undo(st: &mut DocState, e: HistoryEntry) { pub(crate) use push_undo as record_undo; -/// A command's parameters as the journal keeps them: `links.relinkFiles` keeps its files' names -/// and paths but not their contents (whole image files, which would stay in memory for the -/// session). -fn journal_params(id: &str, params: &Value) -> Value { - if id != "links.relinkFiles" { - return params.clone(); - } - let mut p = params.clone(); - if let Some(files) = p.get_mut("files").and_then(Value::as_array_mut) { - for f in files.iter_mut().filter_map(Value::as_object_mut) { - f.remove("base64"); - } - } - p -} - #[cfg(test)] mod tests; diff --git a/crates/ui-egui/src/app/files.rs b/crates/ui-egui/src/app/files.rs index ccdb3bc47..70fa158b2 100644 --- a/crates/ui-egui/src/app/files.rs +++ b/crates/ui-egui/src/app/files.rs @@ -330,20 +330,14 @@ impl DesignApp { } /// Relink graphics from delivered files, returning the files left to import. Files chosen - /// to relink (`relink:{asset}`, `relinkFiles`) and dropped images named like a missing - /// graphic of the document they were dropped on relink, each request's files in one undo - /// step; other dropped files are placed or opened as before. + /// to relink (`relink:{asset}`, `relinkFiles`) relink, each request's files in one undo step; + /// every other file (a dropped one too) is placed or opened as before. fn relink_from_inbox(&mut self, files: Vec) -> Vec { let mut rest = Vec::new(); // (request, files) in arrival order; a request's files arrive together. let mut batches: Vec<(ImportRequest, Vec)> = Vec::new(); for file in files { - let relink = file.request.purpose.starts_with("relink") - || (file.request.purpose == "drop" - && file.request.target.is_some() - && !opens_as_document(&file.name) - && designcraft_render::image_size(&file.bytes).is_some()); - if !relink { + if !file.request.purpose.starts_with("relink") { rest.push(file); continue; } @@ -353,11 +347,7 @@ impl DesignApp { } } for (request, batch) in batches { - let drop = request.purpose == "drop"; if self.activate_import_target(&request).is_err() { - if drop { - rest.extend(batch); - } continue; } // A file from a chosen folder is named by its path in it (which tells same-named @@ -374,7 +364,15 @@ impl DesignApp { Ok(v) => { let n = v["relinked"].as_u64().unwrap_or(0); let unsure = v["ambiguous"].as_array().map_or(0, Vec::len); - if unsure > 0 { + let unread: Vec<&str> = v["failed"].as_array().map(|f| f.iter().filter_map(|f| f["name"].as_str()).collect()).unwrap_or_default(); + if !unread.is_empty() { + // Matching files that couldn't be read: their graphics stay missing. + self.status( + crate::i18n::tr(&self.ui.language, "Relinked {count}; couldn't read {files}") + .replace("{count}", &n.to_string()) + .replace("{files}", &unread.join(", ")), + ); + } else if unsure > 0 { // Files named like graphics they couldn't be told apart for: neither // relinked nor placed. self.status( @@ -382,21 +380,11 @@ impl DesignApp { .replace("{count}", &n.to_string()) .replace("{unsure}", &unsure.to_string()), ); - } else if n > 0 || !drop { + } else { self.status(crate::i18n::tr(&self.ui.language, "Relinked {count}").replace("{count}", &n.to_string())); } - // Dropped images that named no missing graphic are placed as before. - if drop { - let unused: Vec<&str> = v["unused"].as_array().map(|a| a.iter().filter_map(Value::as_str).collect()).unwrap_or_default(); - rest.extend(batch.into_iter().filter(|f| unused.iter().any(|u| file_name_of(&f.name) == *u))); - } - } - Err(e) => { - self.status(e); - if drop { - rest.extend(batch); - } } + Err(e) => self.status(e), } } rest @@ -614,21 +602,24 @@ pub(crate) mod browser_import_tests { deliver(&mut app, request, "a.svg", image()); assert!(has_data(&app), "{}", app.ui.status); assert_eq!(app.session.doc().unwrap().doc.assets[&aid].link.as_deref(), Some("/Users/someone/Links/a.svg")); + // A dropped image is placed, as ever, even when it is named like a missing graphic. make_missing(&mut app); - let request = app.import_request("drop"); - deliver(&mut app, request, "A.SVG", image()); - assert!(has_data(&app), "a dropped file named like the missing graphic relinks it"); - assert_eq!(items(&app), n, "nothing new is placed"); - // Nothing selected, so a placed image gets a frame of its own. app.run("edit.deselectAll", json!({})).unwrap(); let request = app.import_request("drop"); - deliver(&mut app, request, "other.svg", image()); - assert_eq!(items(&app), n + 1, "a dropped image that names no missing graphic is placed"); + deliver(&mut app, request, "A.SVG", image()); + assert!(!has_data(&app), "the dropped file doesn't relink"); + assert_eq!(items(&app), n + 1, "it is placed"); // Relink… for one graphic: the chosen file, whatever its name. make_missing(&mut app); let request = app.import_request(&format!("relink:{}", aid.0)); deliver(&mut app, request, "renamed.svg", image()); assert_eq!(app.session.doc().unwrap().doc.assets[&aid].link.as_deref(), Some("renamed.svg")); + // A matching file that can't be read is named in the status, its graphic left missing. + make_missing(&mut app); + let request = app.import_request("relinkFiles"); + deliver(&mut app, request, "a.svg", b"not an image".to_vec()); + assert!(!has_data(&app)); + assert!(app.ui.status.contains("couldn't read a.svg"), "{}", app.ui.status); } fn deliver(app: &mut DesignApp, request: ImportRequest, name: &str, bytes: Vec) { From bfc4777d8b73c970b49021aeccd9ba4cd16561f7 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 9 Nov 2026 00:40:18 +0000 Subject: [PATCH 41/77] Web relink: comments no longer say drops relink --- apps/designcraft-web/src/main.rs | 2 +- crates/engine/src/cmd/links.rs | 4 ++-- crates/ui-egui/src/app/files.rs | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/designcraft-web/src/main.rs b/apps/designcraft-web/src/main.rs index 5b44d5e77..96dcbfbfe 100644 --- a/apps/designcraft-web/src/main.rs +++ b/apps/designcraft-web/src/main.rs @@ -12,7 +12,7 @@ //! - dropped files are read asynchronously by `web::WebShell` and delivered through the inbox; //! - linked graphics can't be read from their paths (an IDML's Links folder): they show as //! missing, and relink from files handed over instead (Links › Relink… and Relink to Folder… -//! pick the files; dropped images named like a missing graphic relink it, `links.relinkFiles`). +//! pick the files, `links.relinkFiles`). //! //! URL query flags: `?webgl` forces the WebGL2 backend instead of WebGPU; `?sample` opens the //! sample magazine on start. Flags match case-sensitive, percent-decoded query keys; values diff --git a/crates/engine/src/cmd/links.rs b/crates/engine/src/cmd/links.rs index 19a1df1bd..b2979da08 100644 --- a/crates/engine/src/cmd/links.rs +++ b/crates/engine/src/cmd/links.rs @@ -471,8 +471,8 @@ fn relinked_asset(a: &designcraft_doc::Asset, read: &Path, link: &str) -> Result relinked_from(a, bytes, px, &read.display().to_string(), link, name) } -/// [`relinked_asset`] from a file handed over as bytes with its name (the browser's file picker -/// and drops give no path). A file of the same name as the link keeps the link's path, so the +/// [`relinked_asset`] from a file handed over as bytes with its name (the browser's file and +/// folder pickers give no path). A file of the same name as the link keeps the link's path, so the /// document still finds the file on the computer the link came from; another name becomes the /// link. fn relinked_bytes(a: &designcraft_doc::Asset, name: &str, bytes: Vec) -> Result> { diff --git a/crates/ui-egui/src/app/files.rs b/crates/ui-egui/src/app/files.rs index 70fa158b2..be8141ee0 100644 --- a/crates/ui-egui/src/app/files.rs +++ b/crates/ui-egui/src/app/files.rs @@ -587,9 +587,9 @@ pub(crate) mod browser_import_tests { assert_eq!(*a.data, image(), "the Links folder's file: {}", app.ui.status); } - /// The web build relinks from files it is handed: chosen with Relink to Folder… (several at - /// once) or dropped. A dropped image named like a missing graphic relinks it instead of - /// being placed; one named like nothing is placed as before. + /// The web build relinks from files it is handed: chosen with Relink… (one graphic) or + /// Relink to Folder… (several at once). A dropped image is placed as before, even one named + /// like a missing graphic. #[test] fn delivered_files_relink_missing_graphics() { let mut app = app(); From c7fafdf8d14b5a8e9c1ce14b2006cff84ddb0b67 Mon Sep 17 00:00:00 2001 From: Madhav Agarwal Date: Sun, 15 Nov 2026 23:38:59 +0530 Subject: [PATCH 42/77] Text Frame Options: open with the Columns field focused (#2397) --- crates/ui-egui/src/dialogs.rs | 8 ++++++++ crates/ui-egui/src/dialogs/tests.rs | 26 ++++++++++++++++++++++++++ crates/ui-egui/src/widgets.rs | 6 ++++++ 3 files changed, 40 insertions(+) diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs index c50f00e5c..2bc88f3c9 100644 --- a/crates/ui-egui/src/dialogs.rs +++ b/crates/ui-egui/src/dialogs.rs @@ -1464,6 +1464,14 @@ pub(crate) fn general(lang: &str, ui: &mut egui::Ui, d: &mut Dialog) { if let Some(v) = columns.width(field).spinner().range(1.0, 40.0).show(ui) { d.fields.insert("columns".into(), json!(v.round().to_string())); } + // InDesign opens with the Columns count focused, so Up, Up, Return makes 3 columns + // without the mouse. Once, after the field is shown and registered this frame: + // moving focus elsewhere is not overridden on later frames. (Object Styles reuse + // this page for their Text Frame section: only Text Frame Options takes the focus.) + if d.id == "textFrameOptions" && !d.fields.contains_key("_focusColumns") { + ui.ctx().memory_mut(|m| m.request_focus(crate::widgets::NumField::editor_id(ui, "tfo_columns"))); + d.fields.insert("_focusColumns".into(), json!(true)); + } // Fixed Number: the width follows from the frame; Fixed Width: it's set here. caption_at(ui, tr("Width:"), cap2); if d.s("columnsKind") == "fixedWidth" { diff --git a/crates/ui-egui/src/dialogs/tests.rs b/crates/ui-egui/src/dialogs/tests.rs index f5c6403e8..dbd8b5da2 100644 --- a/crates/ui-egui/src/dialogs/tests.rs +++ b/crates/ui-egui/src/dialogs/tests.rs @@ -5620,3 +5620,29 @@ fn parent_resize_exact_dialog_keeps_its_target_and_rejects_invalid_input() { assert!(app.ui.dialog.is_some()); assert!(std::sync::Arc::ptr_eq(&saved, &app.session.doc().unwrap().doc)); } + +/// #2397: opening Text Frame Options focuses the Columns count field, so Ctrl/Cmd+B, Up, Up, +/// Return changes 1 column to 3 without the mouse. +#[test] +fn text_frame_options_opens_with_the_columns_field_focused() { + let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default()); + app.run("file.new", json!({})).unwrap(); + let r = app.run("frame.create", json!({"rect": [36, 36, 336, 236], "content": "text", "text": "Hello"})).unwrap(); + let id = designcraft_doc::ItemId(r["id"].as_u64().unwrap()); + app.run("selection.set", json!({"ids": [id.0]})).unwrap(); + crate::menus::activate(&mut app, "object.textFrameOptions", &Value::Null); + assert_eq!(app.ui.dialog.as_ref().map(|d| d.id.as_str()), Some("textFrameOptions")); + let ctx = dialog_context("en"); + let screen = egui::Rect::from_min_size(egui::Pos2::ZERO, egui::vec2(1200.0, 800.0)); + dialog_frame(&mut app, &ctx, screen, vec![]); + dialog_frame(&mut app, &ctx, screen, vec![]); + let up = || egui::Event::Key { key: egui::Key::ArrowUp, physical_key: None, pressed: true, repeat: false, modifiers: egui::Modifiers::NONE }; + dialog_frame(&mut app, &ctx, screen, vec![up()]); + dialog_frame(&mut app, &ctx, screen, vec![]); + dialog_frame(&mut app, &ctx, screen, vec![up()]); + dialog_frame(&mut app, &ctx, screen, vec![]); + let d = app.ui.dialog.as_ref().unwrap(); + assert_eq!(d.n("columns"), Some(3.0), "two Up presses step 1 column to 3: {:?}", d.fields.get("columns")); + confirm(&mut app).unwrap(); + assert_eq!(app.session.doc().unwrap().doc.item(id).unwrap().text_frame().unwrap().options.columns, 3); +} diff --git a/crates/ui-egui/src/widgets.rs b/crates/ui-egui/src/widgets.rs index 58ac91e89..c6f28ea56 100644 --- a/crates/ui-egui/src/widgets.rs +++ b/crates/ui-egui/src/widgets.rs @@ -188,6 +188,12 @@ impl<'a> NumField<'a> { self.show_or_clear(ui).flatten() } + /// The id of the text editor a [`NumField`] with id `id` shows in `ui`: request focus on it + /// to put the keyboard there (a dialog does so once for its first field when it opens). + pub fn editor_id(ui: &Ui, id: &str) -> egui::Id { + ui.scope_id().with(id).with("te") + } + /// The spinner segment's up and down buttons; the value a click on one gives. fn spinner_segment(&self, ui: &mut Ui, rect: Rect, key: egui::Id, enabled: bool, t: &Tokens) -> Option { let name = self.name.unwrap_or(self.id); From 5504fd09493a900e7e2f2e1dc630eda87b523220 Mon Sep 17 00:00:00 2001 From: Madhav Agarwal Date: Sun, 15 Nov 2026 23:50:50 +0530 Subject: [PATCH 43/77] Links: Relink to Folder asks for a folder, not a file (#2543) --- crates/ui-egui/src/panels/properties/links.rs | 28 ++++++++------- crates/ui-egui/src/panels/properties/tests.rs | 35 +++++++++++++++++++ 2 files changed, 51 insertions(+), 12 deletions(-) diff --git a/crates/ui-egui/src/panels/properties/links.rs b/crates/ui-egui/src/panels/properties/links.rs index 2911815b7..8ef32164d 100644 --- a/crates/ui-egui/src/panels/properties/links.rs +++ b/crates/ui-egui/src/panels/properties/links.rs @@ -247,24 +247,16 @@ pub fn links_panel(app: &mut DesignApp, ui: &mut egui::Ui) { } }); ui.horizontal(|ui| { - // Choose any file in the folder: missing links are looked up there by name. + // Missing links are looked up in the chosen folder by name. if ui .button(crate::i18n::tr(&app.ui.language, "Relink to Folder…")) .on_hover_ui(|ui| { - crate::rtl::label(ui, crate::i18n::tr(&app.ui.language, "Pick a file in the folder holding the moved graphics")); + crate::rtl::label(ui, crate::i18n::tr(&app.ui.language, "Choose the folder holding the moved graphics")); }) .clicked() + && let Err(e) = relink_to_folder(app) { - let asked = app.ask_open("relink", Bound::Document, |app, path| { - let Some(dir) = std::path::Path::new(&path).parent() else { return Ok(Value::Null) }; - if let Ok(v) = app.run("links.relinkFolder", json!({"dir": dir.to_string_lossy()})) { - app.status(crate::i18n::tr(&app.ui.language, "Relinked {count}").replace("{count}", &v["relinked"].to_string())); - } - Ok(Value::Null) - }); - if let Err(e) = asked { - app.status_error("Relink", e); - } + app.status_error("Relink", e); } }); } @@ -355,6 +347,18 @@ impl DesignApp { } } +/// Relink to Folder: asks for the folder holding the moved graphics and looks missing +/// links up there by name. +pub(crate) fn relink_to_folder(app: &mut DesignApp) -> Result { + let title = crate::i18n::tr(&app.ui.language, "Relink to Folder").to_string(); + app.ask_folder(&title, Bound::Document, |app, dir| { + if let Ok(v) = app.run("links.relinkFolder", json!({"dir": dir})) { + app.status(crate::i18n::tr(&app.ui.language, "Relinked {count}").replace("{count}", &v["relinked"].to_string())); + } + Ok(Value::Null) + }) +} + /// Update Link from the Links panel or the menu (`{asset}`, `{story}`, or `{}` for all): asks /// first when a linked text story edited in the layout would lose those edits, as InDesign's /// Links panel does. The `links.update` command itself doesn't ask (as in InDesign scripting). diff --git a/crates/ui-egui/src/panels/properties/tests.rs b/crates/ui-egui/src/panels/properties/tests.rs index 3bb36c2ee..49b02f086 100644 --- a/crates/ui-egui/src/panels/properties/tests.rs +++ b/crates/ui-egui/src/panels/properties/tests.rs @@ -1570,3 +1570,38 @@ fn text_frame_section_shows_the_frame_that_shows_the_caret() { let shown = super::text::text_frame_target(&app).map(|(id, o, _)| (id, o.columns)); assert_eq!(shown, Some((ItemId(b), 3))); } + +/// #2543: Relink to Folder opens a folder picker (not a file picker) and relinks the missing +/// graphic from the chosen folder. +#[test] +fn relink_to_folder_asks_for_a_folder_and_relinks() { + use std::{cell::RefCell, rc::Rc}; + let dir = tempfile::tempdir().unwrap(); + let (from, to) = (dir.path().join("from"), dir.path().join("to")); + std::fs::create_dir_all(&from).unwrap(); + std::fs::create_dir_all(&to).unwrap(); + let png = designcraft_render::Rendered { width: 10, height: 10, pixels: vec![200; 400] }.to_png(); + let old = from.join("photo.png"); + std::fs::write(&old, &png).unwrap(); + let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default()); + app.run("file.new", json!({})).unwrap(); + app.run("file.place", json!({"path": old.to_string_lossy()})).unwrap(); + let moved = to.join("photo.png"); + std::fs::rename(&old, &moved).unwrap(); + let rows = app.session.execute("links.list", &json!({})).unwrap(); + assert_eq!(rows[0]["status"], "missing"); + let seen: Rc>> = Rc::default(); + let seen2 = seen.clone(); + let dest = to.to_string_lossy().to_string(); + app.answer_dialogs(move |request| { + let craft_dialogs::Request::File(dialog) = request else { return craft_dialogs::Answer::Cancelled }; + *seen2.borrow_mut() = Some(dialog.kind); + craft_dialogs::Answer::Paths(vec![dest.clone().into()]) + }); + super::links::relink_to_folder(&mut app).unwrap(); + app.settle_dialogs(); + assert_eq!(seen.borrow().clone(), Some(craft_dialogs::Kind::Folder), "Relink to Folder opens a folder picker"); + let rows = app.session.execute("links.list", &json!({})).unwrap(); + assert_eq!(rows[0]["status"], "ok", "{rows:?}"); + assert!(app.ui.status.contains("Relinked 1"), "status line says what happened: {:?}", app.ui.status); +} From 511d5edd2752d15f3547c7dcda78454bd1408863 Mon Sep 17 00:00:00 2001 From: "autocraft-bot[bot]" <354215646+autocraft-bot[bot]@users.noreply.github.com> Date: Wed, 18 Nov 2026 11:30:55 +0000 Subject: [PATCH 44/77] Apply review fixes - crates/engine/src/cmd/links.rs - docs/linked-artwork.md --- crates/engine/src/cmd/links.rs | 3 +++ docs/linked-artwork.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/cmd/links.rs b/crates/engine/src/cmd/links.rs index 059ab738d..04f844c67 100644 --- a/crates/engine/src/cmd/links.rs +++ b/crates/engine/src/cmd/links.rs @@ -915,6 +915,9 @@ fn relinked_asset(a: &designcraft_doc::Asset, read: &Path, document: Option<&Pat /// name as the link keeps the link's record, so the document still knows the file on the computer /// the link came from; another name becomes the link. fn relinked_bytes(a: &designcraft_doc::Asset, name: &str, bytes: Vec) -> Result> { + if designcraft_render::is_pdf(&bytes) { + designcraft_render::check_pdf_input_size(bytes.len()).map_err(|e| bad("links", format!("{name}: {e}")))?; + } let px = designcraft_render::image_size(&bytes).ok_or_else(|| bad("links", format!("{name}: unsupported or corrupt image")))?; let mut a = relinked_from(a, &bytes, px, name)?; let same = a.link.as_deref().is_some_and(|old| link_file_name(old).eq_ignore_ascii_case(name)); diff --git a/docs/linked-artwork.md b/docs/linked-artwork.md index 045c4a7e5..6d1816ac5 100644 --- a/docs/linked-artwork.md +++ b/docs/linked-artwork.md @@ -77,4 +77,4 @@ The status line reports once: "N images will be saved as links to their files (L ## Web builds -The web build cannot read files, so it embeds everything it places and cannot unembed. A document with linked assets opens with their proxies. Saving it on the web keeps the link records as version 5 and warns: "N linked files are saved as links only: the web version can't read them to embed them". +The web build cannot read files, so it embeds everything it places and cannot unembed. Links › Relink… and Relink to Folder… take files from the browser's file and folder pickers instead (`links.relinkFiles`): a missing graphic takes the file whose path ends most like its link, and the bytes become the document's copy. A document with linked assets opens with their proxies. Saving it on the web keeps the link records as version 5 and warns: "N linked files are saved as links only: the web version can't read them to embed them". From afeb6f38388ec48095278fce896a6a550f4e2fba Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Wed, 18 Nov 2026 08:08:53 -0800 Subject: [PATCH 45/77] ROADMAP: drop the duplicate Style Name Column entry The Show/Hide Style Name Column entry is already in main's progress log, so the copy this branch added next to the Paragraph Break Marks entry is removed. --- ROADMAP.md | 1 - 1 file changed, 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index d1867bc74..814cbbec6 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -424,7 +424,6 @@ list) · [roadmap.md](docs/roadmap.md) (milestones, plan) · [parity-checklist.m - **2026-11-02** · Windows: the custom title bar window stays borderless, so the content is no longer drawn offset by the caption and border (black bars at the top and left, clicks landing off target). The workaround goes when winit carries the fix (storytold/winit#17). No readiness percentage change. - **2026-10-30** · The Color Picker takes an eyedropper: dragged from the picker onto the page, it takes the colour the canvas shows (proofed under Proof Colors). No readiness percentage change. - **2026-10-30** · The Color Picker is laid out as the reference app's: a field and slider for the component chosen, HSB, Lab, RGB and CMYK values, the old colour, and Add CMYK Swatch; Enter and Esc close it once. No readiness percentage change. -- **2026-10-24** · View › Story Editor › Show/Hide Style Name Column (`view.storyEditorStyleColumn`) shows or hides the Story Editor's column of paragraph style names, as in InDesign, and dragging the bar between the column and the text makes the column wider or narrower (40 to 400 points; the command's `width` sets it too). Both settings are remembered with the preferences, so the editor opens with the same column the next time. No readiness percentage change. - **2026-10-24** · View › Story Editor › Show/Hide Paragraph Break Marks (`view.storyEditorParagraphMarks`) shows or hides a ¶ after each paragraph that a paragraph break ends in the Story Editor, as in InDesign. The marks are off until turned on, and the setting is remembered with the preferences. No readiness percentage change. - **2026-10-18** · Table of Contents gains Create PDF Bookmarks: included headings become nested page destinations, regenerated in their existing outline position on update without replacing or moving surrounding manual bookmarks. The setting survives native and IDML files. No readiness percentage change. From 2d9b83b48eee2e55bc814ba82b7c1dd8b21fac11 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Sun, 22 Nov 2026 14:45:03 -0600 Subject: [PATCH 46/77] fix(links): preserve freshly placed artwork on immediate save (#3143) Record a content hash from the placed bytes when no reliable timestamp is available. Keep proxy generation and ordinary link hashing in the worker. --- crates/engine/src/cmd/links.rs | 15 +++++----- crates/engine/src/cmd/links/tests.rs | 41 +++++++++++++++++++++++++++ crates/engine/src/cmd/native_links.rs | 23 ++++++++------- docs/linked-artwork.md | 2 +- 4 files changed, 61 insertions(+), 20 deletions(-) diff --git a/crates/engine/src/cmd/links.rs b/crates/engine/src/cmd/links.rs index f048ba98b..5b5335f50 100644 --- a/crates/engine/src/cmd/links.rs +++ b/crates/engine/src/cmd/links.rs @@ -236,13 +236,12 @@ pub(crate) fn give_bytes(a: &mut Asset, bytes: impl Into>>, file: Op } /// [`give_bytes`] for a graphic being placed, leaving out the work that grows with the file: the -/// graphic links to its file at once, with the file's size and time as its fingerprint and the -/// bytes just read kept in memory for drawing, and its content hash and proxy are made in the -/// background ([`super::native_links::prepare`] the returned work once the asset is in the -/// document; [`add_prepared`] adds them). A link without a hash is complete: its status goes by -/// size and time until the hash is in. Placing many press-size images would otherwise decode and -/// hash each one before the app responds again. Embedded placements, bytes without a file and -/// the web (no threads) are [`give_bytes`]. +/// graphic links to its file at once, with the bytes just read kept in memory for drawing. +/// A reliable size and time can identify those bytes until the worker makes the hash. If +/// there is no reliable time, record a hash of the bytes already read before the link can +/// be saved. The worker still makes any deferred hash and the proxy ([`super::native_links::prepare`]; +/// [`add_prepared`] adds the results). Embedded placements, bytes without a file and the web +/// (no threads) are [`give_bytes`]. #[must_use = "the hash and proxy are made only once the returned work is queued"] pub(crate) fn give_placed( a: &mut Asset, @@ -260,7 +259,7 @@ pub(crate) fn give_placed( } }; record_file(a, &bytes, file, document); - a.link_hash = None; + a.link_hash = a.link_fingerprint.is_none().then(|| crate::asset_io::content_hash(&bytes)); link_recorded(a, Arc::clone(&bytes), designcraft_doc::SourceKey::fresh(), document, |_, _| None); Some(super::native_links::Pending::of(a, bytes)) } diff --git a/crates/engine/src/cmd/links/tests.rs b/crates/engine/src/cmd/links/tests.rs index 8de21fb14..ee50171a3 100644 --- a/crates/engine/src/cmd/links/tests.rs +++ b/crates/engine/src/cmd/links/tests.rs @@ -868,6 +868,47 @@ fn placing_leaves_the_proxy_and_hash_to_the_background() { assert!(!s.doc().unwrap().links.checking()); } +/// A link whose modification time cannot identify its bytes must still reopen from +/// the original after an immediate save, rather than appear modified and show a proxy. +#[cfg(not(target_arch = "wasm32"))] +#[test] +fn immediate_save_preserves_a_link_without_a_trustworthy_timestamp() { + let dir = TempDir::new("save-unverified"); + let path = dir.0.join("art.png"); + let (placed_bytes, later_bytes) = same_size_pngs(); + let write_art = |bytes: &[u8]| { + std::fs::write(&path, bytes).unwrap(); + // A timestamp of zero never vouches for bytes, even on a slow test runner. + std::fs::File::options().write(true).open(&path).unwrap().set_modified(std::time::UNIX_EPOCH).unwrap(); + }; + write_art(&placed_bytes); + let mut s = Session::new(); + s.execute("file.new", &json!({})).unwrap(); + let id = AssetId(s.execute("file.place", &json!({"path": path.to_string_lossy()})).unwrap()["asset"].as_u64().unwrap()); + let doc = dir.0.join("doc.designcraft"); + s.execute("file.save", &json!({"path": doc.to_string_lossy()})).unwrap(); + + let reopen = |path: &Path| { + let mut t = Session::new(); + t.execute("file.open", &json!({"path": path.to_string_lossy()})).unwrap(); + crate::cmd::native_links::wait(&mut t); + t + }; + let mut t = reopen(&doc); + assert_eq!(row(&mut t, id)["status"], "ok", "unchanged artwork must not look modified"); + let a = asset_of(&t, id); + assert!(a.data.is_linked(), "the original must not be embedded just to save it"); + assert_eq!(a.data.load().unwrap().as_slice(), placed_bytes.as_slice()); + + // Saving a copy after the disk file changes must not adopt its replacement as the original. + write_art(&later_bytes); + let copy = dir.0.join("copy.designcraft"); + s.execute("file.saveACopy", &json!({"path": copy.to_string_lossy()})).unwrap(); + assert_eq!(row(&mut reopen(©), id)["status"], "modified", "same size and timestamp do not prove identity"); + write_art(&placed_bytes); + assert_eq!(row(&mut reopen(©), id)["status"], "ok", "the copy must still refer to the placed bytes"); +} + /// Cmd-S right after placing a large photo writes a link and a proxy, not the photo. #[cfg(not(target_arch = "wasm32"))] #[test] diff --git a/crates/engine/src/cmd/native_links.rs b/crates/engine/src/cmd/native_links.rs index e6ffdef82..6d2ef5e37 100644 --- a/crates/engine/src/cmd/native_links.rs +++ b/crates/engine/src/cmd/native_links.rs @@ -12,9 +12,9 @@ //! first whose hash is the recorded one is the file, and its time is kept with the asset; when //! none matches the link is Modified and the file's bytes are never used. //! -//! Graphics placed from files link to them at once. The same thread makes their content hash -//! and proxy ([`prepare`]), and hashes linked files that an open found by size and time and that -//! have no hash yet. A save makes the proxies still missing ([`with_proxies`]), never a hash. +//! Graphics placed from files link to them at once. The same thread makes their proxies and +//! any deferred content hashes ([`prepare`]), and hashes linked files that an open found by size +//! and time and that have no hash yet. A save makes missing proxies ([`with_proxies`]), never a hash. use std::collections::BTreeMap; use std::path::{Path, PathBuf}; @@ -121,8 +121,8 @@ enum Work { /// Compare the file at `source`'s path (the first of its candidates that has the size of the /// embedded `bytes`) with the embedded bytes of a document saved before linked storage. Migrate { asset: AssetId, key: SourceKey, bytes: Arc>, source: LinkedSource, page: u32 }, - /// Hash the `bytes` of graphics just placed from a file, and make their proxy with `proxy`. - Prepare { key: SourceKey, bytes: Arc>, page: u32, proxy: bool }, + /// Hash placed graphics that lack a `hash`, and make their proxy when requested. + Prepare { key: SourceKey, bytes: Arc>, hash: Option, page: u32, proxy: bool }, } /// What a [`Work`] found. `key` is the asset's bytes' key when the check started: a result for @@ -152,12 +152,13 @@ enum Outcome { Prepared { key: SourceKey, hash: String, proxy: Option }, } -/// A graphic placed from a file whose content hash and proxy are still to be made -/// ([`super::links::give_placed`]); [`prepare`] has them made in the background. +/// A graphic placed from a file with preparation left ([`super::links::give_placed`]); +/// [`prepare`] makes the proxy and any deferred hash in the background. #[cfg_attr(target_arch = "wasm32", allow(dead_code))] pub(crate) struct Pending { key: SourceKey, bytes: Arc>, + hash: Option, page: u32, proxy: bool, } @@ -165,7 +166,7 @@ pub(crate) struct Pending { impl Pending { /// The work for `a`, linked with `bytes` just read from its file. Video and sound get no proxy. pub(super) fn of(a: &Asset, bytes: Arc>) -> Self { - Pending { key: a.data.key(), bytes, page: a.page, proxy: !media(a) } + Pending { key: a.data.key(), bytes, hash: a.link_hash.clone(), page: a.page, proxy: !media(a) } } } @@ -363,7 +364,7 @@ pub(crate) fn prepare(st: &mut DocState, pending: Vec) { { // Taken from the end: the first placed is made first, before checks still waiting. let work: Vec = - pending.into_iter().rev().map(|Pending { key, bytes, page, proxy }| Work::Prepare { key, bytes, page, proxy }).collect(); + pending.into_iter().rev().map(|Pending { key, bytes, hash, page, proxy }| Work::Prepare { key, bytes, hash, page, proxy }).collect(); let mut results = Vec::new(); if let Some(handle) = &st.links.job { let mut state = lock(&handle.0); @@ -469,8 +470,8 @@ fn check(work: Work, cancel: &AtomicBool) -> Option { let fingerprint = if super::links::settled(&before) { before } else { Fingerprint { size: len, mtime: super::links::UNVERIFIED_MTIME } }; Some(Outcome::Confirmed { asset, key, path, fingerprint, hash, proxy }) } - Work::Prepare { key, bytes, page, proxy } => { - let hash = hash_bytes(&bytes, cancel)?; + Work::Prepare { key, bytes, hash, page, proxy } => { + let hash = hash.or_else(|| hash_bytes(&bytes, cancel))?; if cancel.load(Ordering::Relaxed) { return None; } diff --git a/docs/linked-artwork.md b/docs/linked-artwork.md index 045c4a7e5..7d0e9cb39 100644 --- a/docs/linked-artwork.md +++ b/docs/linked-artwork.md @@ -14,7 +14,7 @@ A graphic placed from a file is linked to it. The document stores the link, a sm Video and audio link as well, but have no image proxy (the poster frame is used when there is one). An SVG that references other files resolves them relative to the SVG's own path. -Placing reads each file once and links the graphic to it at once, as InDesign does, with the file's size and modification time as its fingerprint. The bytes just read stay in memory for drawing, so nothing is read again. Placing returns without decoding or hashing the file, so placing many large images doesn't stop the app. A background thread then makes each graphic's content hash and proxy, in placement order. Until the hash is in, the link's status goes by size and time; a time from the last 2 seconds, or none, can't vouch for the bytes, and the hash decides once it is known. A save in that time makes the proxies still missing and writes the links without a hash. When such a document is opened, a file that matches by size and time is hashed in the background, so the next save has the hash. +Placing reads each file once and links the graphic to it at once. The bytes just read stay in memory for drawing. When the file has a usable size and modification time, Place leaves both hashing and proxy generation to the background. If the time is missing or too recent to identify the bytes (within 2 seconds), Place records a hash from the bytes it already read so an immediate Save can still find the unchanged original. The background job makes any deferred hashes and proxies in placement order. A save before that job finishes makes any missing proxies; links with a usable fingerprint may still be saved without a hash. When reopened, those links are checked by size and time and hashed in the background. Linked bytes are read when a render, export or check needs them. They are held in a shared cache of 512 MiB; a file larger than the cache is read for one use and not kept. A linked file larger than 1 GiB is not loaded. From 5b226b75b71558e5a834aff4c7e0dab0534d68f5 Mon Sep 17 00:00:00 2001 From: PiMinusMax <121135695+PiMinusMax@users.noreply.github.com> Date: Sat, 31 Oct 2026 12:23:21 +0100 Subject: [PATCH 47/77] CMYK view: keep image plates cached; convert large images only in view - CMYK view: keep image plates cached; convert large images only in view - CMYK view: a large image shown whole is converted once and cached - CMYK view: an image three-quarters or more in view uses its cached whole plate - CMYK view: a large image's crop reaches only as far as its own effects; a plate is kept whole only up to half the cache Rebased onto current main as one commit; main had split the files this touched into modules. Co-Authored-By: Claude Opus 5.5 --- crates/render/src/color.rs | 283 ++++++++++++++++++++++++++++++++---- crates/render/src/stroke.rs | 48 ++++-- 2 files changed, 286 insertions(+), 45 deletions(-) diff --git a/crates/render/src/color.rs b/crates/render/src/color.rs index 84d648128..ad992816b 100644 --- a/crates/render/src/color.rs +++ b/crates/render/src/color.rs @@ -1,5 +1,5 @@ use super::types::{Frame, Rendered}; -use super::{Affine, BlendMode, Compose, DcBlend, Document, Item, Mix, Rect, RenderContext, peniko, vello_cpu}; +use super::{Affine, BlendMode, Compose, DcBlend, Document, Item, Mix, Rect, RenderContext, fx, peniko, vello_cpu}; const CMYK_N: usize = 17; @@ -48,21 +48,131 @@ pub(crate) fn cmyk_in(table: &[[f32; 4]], rgb: [f32; 3]) -> [f32; 4] { out } +/// How far (points) any effect in `doc` can carry an image's pixels: an image is converted to a +/// plate only where the view can show it, widened by this so shadows and glows near the edge of +/// the view still find their pixels. Generous on purpose: it only makes the converted part bigger. +pub(crate) fn effect_reach(doc: &Document) -> f64 { + let mut reach = 0.0; + let mut add = |it: &Item| { + if it.effects.any() { + reach += fx::outset(it) + 144.0; + } + }; + for it in doc.spreads.iter().flat_map(|sp| &sp.items).chain(doc.parents.iter().flat_map(|p| &p.items)) { + it.walk(&mut add); + } + reach +} + +/// How far the effects of the object showing graphic `g` and of the groups around it can carry +/// its pixels: only those move or spread this image. None when the graphic isn't found on a page +/// (an anchored object in a story): then [`effect_reach`] covers it. +pub(crate) fn image_effect_reach(doc: &Document, g: &designcraft_doc::Graphic) -> Option { + fn find(it: &Item, g: &designcraft_doc::Graphic, around: f64, depth: usize) -> Option { + let reach = around + if it.effects.any() { fx::outset(it) + 144.0 } else { 0.0 }; + if it.graphic().is_some_and(|own| std::ptr::eq(own, g)) { + return Some(reach); + } + if depth >= 64 { + return None; + } + it.children().iter().find_map(|c| find(c, g, reach, depth + 1)) + } + doc.spreads.iter().flat_map(|sp| &sp.items).chain(doc.parents.iter().flat_map(|p| &p.items)).find_map(|it| find(it, g, 0.0, 0)) +} + +/// An image's plate (see [`plate_pixmap`]) where `area` (spread space; `to_pixels` maps it to the +/// image's pixels) can show it, and where that part starts in the image. Small images are +/// converted whole and cached. A large one (a 3840 × 5760 photo at full resolution, zoomed in) +/// would take seconds to convert and crowd the other images out of the cache, so only the part in +/// view is converted. None: none of it is in view. +pub(crate) fn plate_part( + pm: &std::sync::Arc, + plate: u8, + to_pixels: Affine, + area: impl FnOnce() -> Rect, +) -> Option<(std::sync::Arc, (u16, u16))> { + let (w, h) = (pm.width(), pm.height()); + if plate_bytes(w, h) <= PLATE_CACHE_BYTES / 8 { + return Some((plate_pixmap(pm, plate), (0, 0))); + } + // Bilinear and bicubic sampling read a few pixels around each one shown. + let r = to_pixels.transform_rect_bbox(area()).inflate(4.0, 4.0); + if !(r.x0.is_finite() && r.y0.is_finite() && r.x1.is_finite() && r.y1.is_finite()) { + return Some((plate_pixmap(pm, plate), (0, 0))); + } + let clamp = |v: f64, max: u16| v.clamp(0.0, f64::from(max)) as u16; + let (x0, y0, x1, y1) = (clamp(r.x0.floor(), w), clamp(r.y0.floor(), h), clamp(r.x1.ceil(), w), clamp(r.y1.ceil(), h)); + if x1 <= x0 || y1 <= y0 { + return None; + } + // All or nearly all of it in view (three quarters or more): convert the whole plate once and + // keep it, as long as it takes at most half the cache (kept whole, a bigger one would push + // every other image out). Converting it in parts would redo nearly all of it on every render. + let part_area = u64::from(x1 - x0) * u64::from(y1 - y0); + let whole_area = u64::from(w) * u64::from(h); + if part_area.saturating_mul(4) >= whole_area.saturating_mul(3) && plate_bytes(w, h) <= PLATE_CACHE_BYTES / 2 { + return Some((plate_pixmap(pm, plate), (0, 0))); + } + let row = usize::from(w); + let data = pm.data(); + let mut part = Vec::with_capacity(usize::from(x1 - x0) * usize::from(y1 - y0)); + for y in usize::from(y0)..usize::from(y1) { + let start = y * row; + part.extend_from_slice(data.get(start + usize::from(x0)..start + usize::from(x1))?); + } + let table = cmyk_table(); + let part = plate_pixels(&part, &table, plate); + Some((std::sync::Arc::new(vello_cpu::Pixmap::from_parts(part, x1 - x0, y1 - y0)), (x0, y0))) +} + +/// Plate conversions cached per image and plate: at most this much derived raster memory. +pub(crate) const PLATE_CACHE_BYTES: usize = 192 << 20; + +/// What one plate of a `w` × `h` image costs the cache (premultiplied RGBA8). +fn plate_bytes(w: u16, h: u16) -> usize { + usize::from(w).saturating_mul(usize::from(h)).saturating_mul(4) +} + +/// Premultiplied pixels' ink coverage on `plate` (4: C, M and Y complements as R, G and B). +fn plate_pixels(pixels: &[vello_cpu::color::PremulRgba8], table: &[[f32; 4]], plate: u8) -> Vec { + pixels + .iter() + .map(|p| { + if p.a == 0 { + return *p; + } + let k = 255.0 / p.a as f32; + let rgb = [p.r, p.g, p.b].map(|v| (v as f32 * k / 255.0).min(1.0)); + let cmyk = cmyk_in(table, rgb); + let ink = |i: usize| ((1.0 - cmyk[i].clamp(0.0, 1.0)) * p.a as f32).round() as u8; + if plate == 4 { + return vello_cpu::color::PremulRgba8 { r: ink(0), g: ink(1), b: ink(2), a: p.a }; + } + let v = ink(plate.min(3) as usize); + vello_cpu::color::PremulRgba8 { r: v, g: v, b: v, a: p.a } + }) + .collect() +} + /// An image's ink coverage on one process plate, as grey (cached per image and plate). pub(crate) fn plate_pixmap(pm: &std::sync::Arc, plate: u8) -> std::sync::Arc { // Keep source allocations alive (their addresses are keys), invalidate on colour settings, - // and cap derived raster memory rather than merely counting differently sized images. - type Entry = (std::sync::Arc, std::sync::Arc); - type Cache = (designcraft_color::cms::ColorSettings, std::collections::HashMap<(usize, u8), Entry>, usize); - const BUDGET: usize = 64 << 20; + // and cap derived raster memory. A full cache lets go of the plates used longest ago: every + // CMYK view render draws each image twice (two ink passes), so dropping the whole cache when + // it filled made a few placed images miss on every render and converted them again each time. + type Entry = (std::sync::Arc, std::sync::Arc, u64); + type Cache = (designcraft_color::cms::ColorSettings, std::collections::HashMap<(usize, u8), Entry>, usize, u64); static CACHE: std::sync::Mutex> = std::sync::Mutex::new(None); let key = (std::sync::Arc::as_ptr(pm) as usize, plate); let settings = designcraft_color::cms::active_settings(); { let mut guard = CACHE.lock().unwrap_or_else(std::sync::PoisonError::into_inner); - if let Some((previous, map, _)) = guard.as_ref() { + if let Some((previous, map, _, clock)) = guard.as_mut() { if *previous == settings { - if let Some((_, derived)) = map.get(&key) { + *clock += 1; + if let Some((_, derived, used_at)) = map.get_mut(&key) { + *used_at = *clock; return derived.clone(); } } else { @@ -71,37 +181,30 @@ pub(crate) fn plate_pixmap(pm: &std::sync::Arc, plate: u8) -> } } let table = cmyk_table(); - let data: Vec = pm - .data() - .iter() - .map(|p| { - if p.a == 0 { - return *p; - } - let k = 255.0 / p.a as f32; - let rgb = [p.r, p.g, p.b].map(|v| (v as f32 * k / 255.0).min(1.0)); - let cmyk = cmyk_in(&table, rgb); - let ink = |i: usize| ((1.0 - cmyk[i].clamp(0.0, 1.0)) * p.a as f32).round() as u8; - if plate == 4 { - return vello_cpu::color::PremulRgba8 { r: ink(0), g: ink(1), b: ink(2), a: p.a }; - } - let v = ink(plate.min(3) as usize); - vello_cpu::color::PremulRgba8 { r: v, g: v, b: v, a: p.a } - }) - .collect(); + #[cfg(test)] + PLATE_CONVERSIONS.with(|n| n.set(n.get() + 1)); + let data = plate_pixels(pm.data(), &table, plate); let out = std::sync::Arc::new(vello_cpu::Pixmap::from_parts(data, pm.width(), pm.height())); - let bytes = (pm.width() as usize).saturating_mul(pm.height() as usize).saturating_mul(8); - if bytes <= BUDGET { + let bytes = plate_bytes(pm.width(), pm.height()); + if bytes <= PLATE_CACHE_BYTES { let mut guard = CACHE.lock().unwrap_or_else(std::sync::PoisonError::into_inner); - let (previous, map, used) = guard.get_or_insert_with(|| (settings.clone(), Default::default(), 0)); - if *previous != settings || used.saturating_add(bytes) > BUDGET { + let (previous, map, used, clock) = guard.get_or_insert_with(|| (settings.clone(), Default::default(), 0, 0)); + if *previous != settings { map.clear(); *used = 0; *previous = settings; } - if map.insert(key, (pm.clone(), out.clone())).is_none() { - *used += bytes; + while used.saturating_add(bytes) > PLATE_CACHE_BYTES { + let Some(oldest) = map.iter().min_by_key(|(_, e)| e.2).map(|(k, _)| *k) else { break }; + if let Some((_, gone, _)) = map.remove(&oldest) { + *used = used.saturating_sub(plate_bytes(gone.width(), gone.height())); + } } + *clock += 1; + if let Some((_, replaced, _)) = map.insert(key, (pm.clone(), out.clone(), *clock)) { + *used = used.saturating_sub(plate_bytes(replaced.width(), replaced.height())); + } + *used = used.saturating_add(bytes); } out } @@ -278,3 +381,121 @@ pub(crate) fn blend_space_view(img: &mut Rendered, area: Rect) { } } } + +#[cfg(test)] +thread_local! { + /// How many whole images [`plate_pixmap`] converted to a plate on this thread. + pub(crate) static PLATE_CONVERSIONS: std::cell::Cell = const { std::cell::Cell::new(0) }; +} + +#[cfg(test)] +mod plate_tests { + use designcraft_doc::SpreadRef; + use designcraft_doc::build::NewDocument; + + use super::*; + + /// A `w` × `h` image with a different colour in every pixel. + fn ramp(w: u16, h: u16) -> std::sync::Arc { + let data = (0..usize::from(w) * usize::from(h)) + .map(|i| vello_cpu::color::PremulRgba8 { r: (i % 251) as u8, g: (i / 7 % 241) as u8, b: (i / 13 % 239) as u8, a: 255 }) + .collect(); + std::sync::Arc::new(vello_cpu::Pixmap::from_parts(data, w, h)) + } + + /// A CMYK view draws every image twice per render (two ink passes). The plate cache used to + /// count each plate twice and empty itself when full, so three placed photos missed on every + /// render and an edit took half a second; now they all stay cached. + #[test] + fn plates_of_the_images_in_view_stay_cached_across_renders() { + let images = [ramp(1600, 1200), ramp(1500, 1300), ramp(1400, 1400)]; + let before = PLATE_CONVERSIONS.with(std::cell::Cell::get); + for _ in 0..3 { + for plate in [4, 3] { + for pm in &images { + plate_pixmap(pm, plate); + } + } + } + assert_eq!(PLATE_CONVERSIONS.with(std::cell::Cell::get) - before, 6, "each image and plate is converted once"); + } + + /// A large image is converted only where the view shows it, with the same inks as converting + /// it whole. + #[test] + fn a_large_image_converts_only_the_part_in_view() { + let pm = ramp(4000, 2500); + assert!(plate_bytes(4000, 2500) > PLATE_CACHE_BYTES / 8, "large enough to be converted in parts"); + let before = PLATE_CONVERSIONS.with(std::cell::Cell::get); + let (part, at) = plate_part(&pm, 4, Affine::IDENTITY, || Rect::new(1000.0, 500.0, 1100.0, 560.0)).unwrap(); + assert_eq!(PLATE_CONVERSIONS.with(std::cell::Cell::get), before, "the whole image was not converted"); + assert_eq!(at, (996, 496)); + assert_eq!((part.width(), part.height()), (108, 68)); + let table = cmyk_table(); + let row = usize::from(pm.width()); + for (y, x) in [(0usize, 0usize), (30, 50), (67, 107)] { + let source = pm.data()[(usize::from(at.1) + y) * row + usize::from(at.0) + x]; + assert_eq!(part.data()[y * 108 + x], plate_pixels(&[source], &table, 4)[0]); + } + assert!(plate_part(&pm, 4, Affine::IDENTITY, || Rect::new(5000.0, 0.0, 5100.0, 50.0)).is_none(), "out of view: nothing"); + // All of it in view: converted whole once, then taken from the cache. + let before = PLATE_CONVERSIONS.with(std::cell::Cell::get); + for _ in 0..3 { + let (whole, at) = plate_part(&pm, 4, Affine::IDENTITY, || Rect::new(-10.0, -10.0, 4010.0, 2510.0)).unwrap(); + assert_eq!(((whole.width(), whole.height()), at), ((4000, 2500), (0, 0))); + } + assert_eq!(PLATE_CONVERSIONS.with(std::cell::Cell::get) - before, 1, "the whole plate is converted once and cached"); + // Nearly all of it in view (90 % of the width): the cached whole plate, not a new part. + let before = PLATE_CONVERSIONS.with(std::cell::Cell::get); + let (whole, at) = plate_part(&pm, 4, Affine::IDENTITY, || Rect::new(200.0, -10.0, 3800.0, 2510.0)).unwrap(); + assert_eq!(((whole.width(), whole.height()), at), ((4000, 2500), (0, 0))); + assert_eq!(PLATE_CONVERSIONS.with(std::cell::Cell::get), before, "taken from the cache"); + let small = ramp(64, 64); + let (whole, at) = plate_part(&small, 3, Affine::IDENTITY, || Rect::new(0.0, 0.0, 10.0, 10.0)).unwrap(); + assert_eq!(((whole.width(), whole.height()), at), ((64, 64), (0, 0)), "a small image is converted whole and cached"); + } + + /// A large image is widened only by the effects that move its own pixels (its object's and + /// the groups' around it), not by a big shadow elsewhere in the document. + #[test] + fn an_images_effect_reach_is_its_own() { + let mut d = Document::new(&NewDocument::default()); + let lid = d.default_layer(); + let graphic = |aid| designcraft_doc::Graphic { + layer_options: None, + asset: aid, + size: (100.0, 100.0), + xf: Affine::IDENTITY, + clip: None, + auto_fit: Default::default(), + fit_align: 4, + crop: [0.0; 4], + wrap: Default::default(), + fill: Default::default(), + }; + let item = |d: &mut Document, shadow: f64, with_graphic: bool| { + let mut it = Item::new( + designcraft_doc::ItemId(d.alloc()), + lid, + designcraft_doc::Shape::Rectangle, + designcraft_geom::shapes::rectangle(Rect::new(0.0, 0.0, 100.0, 100.0)), + ); + if with_graphic { + it.content = designcraft_doc::Content::Graphic(graphic(designcraft_doc::AssetId(1))); + } + if shadow > 0.0 { + it.effects.drop_shadow.on = true; + it.effects.drop_shadow.distance = shadow; + } + d.insert_item(SpreadRef::Doc(0), it.clone(), None).unwrap(); + it.id + }; + let image = item(&mut d, 0.0, true); + item(&mut d, 500.0, false); + let g = d.item(image).unwrap().graphic().unwrap().clone(); + let own = d.item(image).unwrap().graphic().unwrap(); + assert_eq!(image_effect_reach(&d, own), Some(0.0), "no effect on the image's own object"); + assert!(effect_reach(&d) > 500.0, "the document-wide reach counts the other shadow"); + assert_eq!(image_effect_reach(&d, &g), None, "a graphic not in the document: the document-wide reach"); + } +} diff --git a/crates/render/src/stroke.rs b/crates/render/src/stroke.rs index 5b6d2e885..94b2da8c9 100644 --- a/crates/render/src/stroke.rs +++ b/crates/render/src/stroke.rs @@ -1,4 +1,6 @@ -use super::color::{HIDDEN_LAYERS, PLATE, color_of, overprints, plate_pixmap, screen_color, set_fill_paint}; +use super::color::{ + HIDDEN_LAYERS, PLATE, color_of, effect_reach, image_effect_reach, overprints, plate_part, plate_pixmap, screen_color, set_fill_paint, +}; use super::pdf_raster::{is_pdf, shown_box_now}; use super::prepare::Prepared; use super::types::{DisplayQuality, Frame}; @@ -273,7 +275,8 @@ impl Renderer { Some(plate) => plate_pixmap(&pm, plate), None => pm, }; - paint_pixels(ctx, f, g, xf, page, width_pt, page_h, pm); + let to_image = image_space(page, width_pt, page_h, &pm); + paint_pixels(ctx, f, g, xf, page, to_image, pm); } None => loading(ctx), } @@ -293,38 +296,55 @@ impl Renderer { Prepared::Ready(coloured) => coloured, Prepared::Pending | Prepared::Failed => return loading(ctx), }; - let pm = match (coloured, PLATE.with(std::cell::Cell::get)) { - (Some(coloured), _) => coloured, - (None, Some(plate)) => plate_pixmap(&pm, plate), - (None, None) => pm, + // Where the whole image's pixels sit in graphic space (a plate part is placed inside it). + let to_image = image_space(page, page_w, page_h, &pm); + let (pm, at) = match (coloured, PLATE.with(std::cell::Cell::get)) { + (Some(coloured), _) => (coloured, (0, 0)), + (None, Some(plate)) => { + // Spread space → the image's pixels. + let to_pixels = (xf * g.xf * to_image).inverse(); + // The document is walked for effects only when a large image needs it. + let area = || { + let reach = image_effect_reach(f.doc, g).unwrap_or_else(|| effect_reach(f.doc)); + f.visible.inflate(reach, reach) + }; + match plate_part(&pm, plate, to_pixels, area) { + Some(part) => part, + None => return, + } + } + (None, None) => (pm, (0, 0)), }; - paint_pixels(ctx, f, g, xf, page, page_w, page_h, pm); + paint_pixels(ctx, f, g, xf, page, to_image * Affine::translate((f64::from(at.0), f64::from(at.1))), pm); } } -/// Draw `pm`, the pixels of a page `page_w` × `page_h` points at `page` in graphic `g`'s space. -#[allow(clippy::too_many_arguments)] +/// Graphic space of a page `page_w` × `page_h` points at `page` → the pixels of `pm`, its image. +fn image_space(page: Rect, page_w: f64, page_h: f64, pm: &vello_cpu::Pixmap) -> Affine { + let sx = page_w / pm.width().max(1) as f64; + let sy = page_h / pm.height().max(1) as f64; + Affine::translate((page.x0, page.y0)) * Affine::scale_non_uniform(sx, sy) +} + +/// Draw `pm` in graphic `g`'s space, its pixels placed by `to_image`, where the page at `page` is. fn paint_pixels( ctx: &mut RenderContext, f: &Frame, g: &designcraft_doc::Graphic, xf: Affine, page: Rect, - page_w: f64, - page_h: f64, + to_image: Affine, pm: std::sync::Arc, ) { // Only where the page is: a box reaching past it (a media box larger than the crop box) // shows nothing there. let rect = Rect::new(0.0, 0.0, g.size.0, g.size.1).intersect(page); ctx.set_transform(f.view * xf * g.xf); - let sx = page_w / pm.width().max(1) as f64; - let sy = page_h / pm.height().max(1) as f64; ctx.set_paint(vello_cpu::Image { image: vello_cpu::ImageSource::Pixmap(pm), sampler: peniko::ImageSampler::default().with_quality(peniko::ImageQuality::Medium), }); - ctx.set_paint_transform(Affine::translate((page.x0, page.y0)) * Affine::scale_non_uniform(sx, sy)); + ctx.set_paint_transform(to_image); ctx.fill_rect(&rect); ctx.reset_paint_transform(); } From 692d20e8b2da6ed0c058f5c1b9caca90672e0d69 Mon Sep 17 00:00:00 2001 From: PiMinusMax <121135695+PiMinusMax@users.noreply.github.com> Date: Sat, 21 Nov 2026 18:57:30 +0100 Subject: [PATCH 48/77] CMYK view: an anchored object's effects widen a large image's converted part too Co-Authored-By: Claude Opus 5.5 --- crates/render/src/color.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/render/src/color.rs b/crates/render/src/color.rs index ad992816b..fc4ef41ad 100644 --- a/crates/render/src/color.rs +++ b/crates/render/src/color.rs @@ -61,6 +61,10 @@ pub(crate) fn effect_reach(doc: &Document) -> f64 { for it in doc.spreads.iter().flat_map(|sp| &sp.items).chain(doc.parents.iter().flat_map(|p| &p.items)) { it.walk(&mut add); } + // Anchored objects live in their stories, not on a spread. + for o in doc.stories.values().flat_map(|s| &s.objects) { + o.item.walk(&mut add); + } reach } From 1a208863e848ed0b899572bfe3a0812c86f8deb6 Mon Sep 17 00:00:00 2001 From: PiMinusMax <121135695+PiMinusMax@users.noreply.github.com> Date: Sun, 22 Nov 2026 23:14:16 +0100 Subject: [PATCH 49/77] =?UTF-8?q?render:=20image=5Fspace's=20doc=20comment?= =?UTF-8?q?=20names=20its=20direction=20(pixels=20=E2=86=92=20graphic=20sp?= =?UTF-8?q?ace)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- crates/render/src/stroke.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/render/src/stroke.rs b/crates/render/src/stroke.rs index 94b2da8c9..721c3ae17 100644 --- a/crates/render/src/stroke.rs +++ b/crates/render/src/stroke.rs @@ -319,7 +319,7 @@ impl Renderer { } } -/// Graphic space of a page `page_w` × `page_h` points at `page` → the pixels of `pm`, its image. +/// The pixels of `pm`, the image of a page `page_w` × `page_h` points at `page`, → graphic space (the paint transform; its inverse maps back to the pixels). fn image_space(page: Rect, page_w: f64, page_h: f64, pm: &vello_cpu::Pixmap) -> Affine { let sx = page_w / pm.width().max(1) as f64; let sy = page_h / pm.height().max(1) as f64; From c92635f83e5f45f8be92fd5b78fabe3e2370198c Mon Sep 17 00:00:00 2001 From: PiMinusMax <121135695+PiMinusMax@users.noreply.github.com> Date: Sat, 31 Oct 2026 12:24:46 +0100 Subject: [PATCH 50/77] Text selection: invert what lies under the highlight - Text selection: invert what lies under the highlight - Text selection: redraw the highlight when a display option changes - Text selection: invert the highlight from the canvas pixels already rendered - Text selection: adapt to the current main (Id::unique) - Text selection: keep main's Separations Preview state; the highlight's own render follows the proof setup Rebased onto current main as one commit; main had split the files this touched into modules. Review: in Preview, Bleed and Slug the inverted highlight is clipped to what each spread shows, as the canvas is. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/canvas/render.rs | 16 ++- crates/ui-egui/src/canvas/tests.rs | 82 +++++++++++ crates/ui-egui/src/canvas/text_overlay.rs | 168 +++++++++++++++------- crates/ui-egui/src/state.rs | 6 + 4 files changed, 222 insertions(+), 50 deletions(-) diff --git a/crates/ui-egui/src/canvas/render.rs b/crates/ui-egui/src/canvas/render.rs index f33fc9ea0..55b168d1d 100644 --- a/crates/ui-egui/src/canvas/render.rs +++ b/crates/ui-egui/src/canvas/render.rs @@ -95,7 +95,7 @@ pub struct DisplayKey { highlight_custom_tracking: bool, } -fn display_key(app: &DesignApp) -> DisplayKey { +pub(super) fn display_key(app: &DesignApp) -> DisplayKey { let (ui, prefs) = (&app.ui, &app.session.prefs); DisplayKey { quality: ui.display_quality, @@ -318,6 +318,18 @@ fn patch_texture(app: &mut DesignApp, layout: &CanvasLayout, ppp: f64, doc_key: if let Some(tex) = app.canvas.texture.as_mut() { tex.set_partial([x0 as usize, y0 as usize], ci, egui::TextureOptions::LINEAR); } + // The same region in the canvas's own copy of its pixels. + if let Some(all) = app.canvas.pixels.as_mut() { + let all = std::sync::Arc::make_mut(all); + let (aw, pw) = (all.width as usize, img.width as usize); + for (row, src) in img.pixels.chunks_exact(pw * 4).enumerate() { + let start = ((y0 as usize + row) * aw + x0 as usize) * 4; + if let Some(dst) = all.pixels.get_mut(start..start + pw * 4) { + dst.copy_from_slice(src); + } + } + app.canvas.pixels_generation += 1; + } done(app); app.canvas.patches += 1; app.perf.render_ms = crate::now_ms() - t0; @@ -351,4 +363,6 @@ fn upload(app: &mut DesignApp, ctx: &egui::Context, mut img: designcraft_render: Some(tex) => tex.set(ci, egui::TextureOptions::LINEAR), None => app.canvas.texture = Some(ctx.load_texture("canvas", ci, egui::TextureOptions::LINEAR)), } + app.canvas.pixels = Some(std::sync::Arc::new(img)); + app.canvas.pixels_generation += 1; } diff --git a/crates/ui-egui/src/canvas/tests.rs b/crates/ui-egui/src/canvas/tests.rs index 914777616..3c5e791b0 100644 --- a/crates/ui-egui/src/canvas/tests.rs +++ b/crates/ui-egui/src/canvas/tests.rs @@ -1,6 +1,7 @@ use designcraft_geom::Unit; use egui_kittest::{Harness, kittest::Queryable}; +use super::text_overlay::inverse_under; use super::*; /// A place-cursor drag past its 3-point threshold but short of egui's drag distance previews @@ -3485,3 +3486,84 @@ fn leaving_parent_editing_for_the_left_page_of_a_spread_keeps_that_page_selected h.run_steps(3); assert_eq!(current_page(h.state()), Some(1)); } + +/// Selected text shows what lies under it inverted: paper turns black, black turns white, +/// and a half-covered pixel is half inverted. +#[test] +fn the_text_highlight_inverts_what_lies_under_it() { + let mask = [0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 128, 128, 128, 128, 255, 255, 255, 255]; + let under = [9, 9, 9, 255, 255, 255, 255, 255, 0, 0, 0, 255, 0, 0, 0, 255, 0, 0, 0, 0]; + let out = inverse_under(&mask, &under, [80, 80, 80]); + assert_eq!(&out[0..4], &[0, 0, 0, 0], "outside the highlight: untouched"); + assert_eq!(&out[4..8], &[0, 0, 0, 255], "white paper turns black"); + assert_eq!(&out[8..12], &[255, 255, 255, 255], "black turns white"); + assert_eq!(&out[12..16], &[128, 128, 128, 128], "half covered: half the inverse"); + assert_eq!(&out[16..20], &[175, 175, 175, 255], "transparent: the inverse of the pasteboard"); +} + +/// White text on a black frame used to turn black on a black highlight. Now the highlight is +/// light there and the selected letters dark. +#[test] +fn selected_white_text_on_a_dark_fill_stays_readable() { + let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default()); + app.run("file.new", serde_json::json!({})).unwrap(); + let id = app + .run("frame.create", serde_json::json!({"rect": [72, 72, 400, 200], "content": "text", "text": "White text", "caret": true})) + .unwrap()["id"] + .as_u64() + .unwrap(); + app.run("edit.selectAll", serde_json::json!({})).unwrap(); + app.run("type.char", serde_json::json!({"attrs": {"size": 28, "fill": "[Paper]"}})).unwrap(); + app.run("object.fill", serde_json::json!({"ids": [id], "swatch": "[Black]"})).unwrap(); + let mut h = crate::test_window::open(app, vec2(900.0, 600.0)); + h.run_steps(6); + let app = &h.state().app; + let xf = Xf::new(app.canvas_rect.unwrap(), app.view().unwrap()); + let canvas = app.session.layout().xf(designcraft_doc::SpreadRef::Doc(0)); + let (a, b) = (xf.to_screen(canvas * Point::new(76.0, 78.0)), xf.to_screen(canvas * Point::new(180.0, 98.0))); + let image = match h.render() { + Ok(image) => image, + // CI has a renderer: there a missing one is a failure, not a silent pass. + Err(e) if std::env::var_os("CI").is_some() => panic!("no offscreen renderer in CI: {e}"), + Err(e) => { + eprintln!("skipped: no offscreen renderer ({e})"); + return; + } + }; + let (mut light, mut dark) = (0, 0); + for y in a.y as u32..b.y as u32 { + for x in a.x as u32..b.x as u32 { + let p = image.get_pixel(x, y); + let l = (u32::from(p[0]) + u32::from(p[1]) + u32::from(p[2])) / 3; + if l > 200 { + light += 1; + } else if l < 60 { + dark += 1; + } + } + } + assert!(light > dark, "a light highlight under the selected white text: {light} light, {dark} dark"); + assert!(dark > 0, "with the letters dark on it"); +} + +/// The highlight is drawn from a render of what lies under it: a display option that changes +/// that render (Overprint Preview here) draws it again instead of keeping the old pixels. +#[test] +fn the_text_highlight_follows_the_display_options() { + let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default()); + app.run("file.new", serde_json::json!({})).unwrap(); + app.run("frame.create", serde_json::json!({"rect": [72, 72, 400, 200], "content": "text", "text": "Some text", "caret": true})).unwrap(); + app.run("edit.selectAll", serde_json::json!({})).unwrap(); + let mut h = crate::test_window::open(app, vec2(900.0, 600.0)); + h.run_steps(6); + let cached = |h: &Harness<'_, crate::test_window::Window>| { + h.ctx.data(|d| d.get_temp::<(egui::Id, egui::TextureHandle)>(egui::Id::unique("inverse_sel_tex"))).map(|(k, _)| k) + }; + let before = cached(&h).expect("the highlight is drawn"); + h.run_steps(2); + assert_eq!(cached(&h), Some(before), "unchanged: the cached highlight is kept"); + h.state_mut().app.ui.overprint_preview = !h.state().app.ui.overprint_preview; + h.run_steps(2); + let after = cached(&h).expect("the highlight is drawn"); + assert_ne!(after, before, "a new display option: the highlight is drawn again"); +} diff --git a/crates/ui-egui/src/canvas/text_overlay.rs b/crates/ui-egui/src/canvas/text_overlay.rs index cc6e1432d..30a00930b 100644 --- a/crates/ui-egui/src/canvas/text_overlay.rs +++ b/crates/ui-egui/src/canvas/text_overlay.rs @@ -1,6 +1,8 @@ use super::caret; use super::frames::{item_canvas_xf, layer_color, path_screen}; +use super::render::{display_key, screen_options}; use super::{Affine, CanvasLayout, Color32, DesignApp, Document, Point, Pos2, Rect, Stroke, Xf, compose, pos2}; +use crate::{ScreenMode, theme::Tokens}; pub(super) fn draw_text_selection( app: &DesignApp, @@ -38,8 +40,8 @@ pub(super) fn draw_text_selection( draw_cell_selection(app, painter, xf, doc, layout, &cs, ts, cell); return; } - let mut runs: Vec<(usize, Affine, Vec<[Point; 4]>, Vec<(usize, usize)>)> = Vec::new(); - for (fi, ft) in cs.frames.iter().enumerate() { + let mut runs: Vec<(Affine, Vec<[Point; 4]>)> = Vec::new(); + for ft in &cs.frames { let Some((a, _)) = item_canvas_xf(doc, layout, ft.frame) else { continue }; let Some(it) = doc.item(ft.frame) else { continue }; let m = a * doc.text_xf(it); @@ -73,8 +75,7 @@ pub(super) fn draw_text_selection( continue; } let mut quads = Vec::new(); - let mut glyphs = Vec::new(); - for (li, l) in ft.lines.iter().enumerate() { + for l in &ft.lines { let s = range.start.max(l.range.start); let e = range.end.min(l.range.end); if s > e || (s == e && !(l.range.end < range.end && e == l.range.end)) { @@ -91,18 +92,13 @@ pub(super) fn draw_text_selection( quads.push([Point::new(a, r.y0), Point::new(b, r.y0), Point::new(b, r.y1), Point::new(a, r.y1)]); } } - for (gi, g) in l.glyphs.iter().enumerate() { - if g.visible && g.len > 0 && g.byte >= s && g.byte < e { - glyphs.push((li, gi)); - } - } } if !quads.is_empty() { - runs.push((fi, m, quads, glyphs)); + runs.push((m, quads)); } } if !runs.is_empty() { - draw_inverse_highlight(app, painter, xf, doc, &cs, ts.story, &runs); + draw_inverse_highlight(app, painter, xf, doc, layout, ts.story, &runs); } if ts.is_caret() && let Some((fi, x, bl, asc, desc)) = compose::caret(&cs, ts.focus) @@ -172,24 +168,49 @@ fn draw_cell_selection( } } -/// InDesign draws selected text inverted: a black highlight with the selected glyphs in the -/// inverse of their colour (white for black text). The highlight and glyph outlines are -/// rasterised with `vello_cpu` into a small screen-space texture over the selection. +thread_local! { + /// Renders what lies under a text highlight, apart from the canvas renderer and its worker. + static HIGHLIGHT_RENDERER: std::cell::RefCell> = const { std::cell::RefCell::new(None) }; +} + +/// The `w` × `h` premultiplied pixels of `img` from (`x0`, `y0`), the pasteboard colour `back` +/// where that reaches past the image. +fn crop(img: &designcraft_render::Rendered, x0: i64, y0: i64, w: u32, h: u32, back: [u8; 3]) -> Vec { + let mut out = Vec::with_capacity(w as usize * h as usize * 4); + for y in 0..i64::from(h) { + for x in 0..i64::from(w) { + let (sx, sy) = (x0 + x, y0 + y); + let inside = sx >= 0 && sy >= 0 && sx < i64::from(img.width) && sy < i64::from(img.height); + let px = inside.then(|| (sy as usize * img.width as usize + sx as usize) * 4).and_then(|i| img.pixels.get(i..i + 4)); + match px { + Some(p) => out.extend_from_slice(p), + None => out.extend_from_slice(&[back[0], back[1], back[2], 255]), + } + } + } + out +} + +/// InDesign draws selected text inverted: whatever lies under the highlight (paper, the frame's +/// fill, a placed image, the selected glyphs themselves) shows in its inverse colour. Black text +/// on white paper turns white on black, and white text on a dark fill turns dark on a light +/// highlight instead of vanishing into a black bar. The area under the selection is rendered from +/// the document into a small screen-space texture and inverted inside the highlight quads. fn draw_inverse_highlight( app: &DesignApp, painter: &egui::Painter, xf: &Xf, doc: &Document, - cs: &compose::ComposedStory, + layout: &CanvasLayout, story: designcraft_doc::StoryId, - runs: &[(usize, Affine, Vec<[Point; 4]>, Vec<(usize, usize)>)], + runs: &[(Affine, Vec<[Point; 4]>)], ) { use designcraft_render::vello_cpu::{self, kurbo, peniko}; let ctx = painter.ctx(); let ppp = ctx.pixels_per_point(); let to_screen = |m: Affine, p: Point| xf.to_screen(m * p); let mut bbox = Rect::NOTHING; - for (_, m, quads, _) in runs { + for (m, quads) in runs { for q in quads { for p in q { bbox.extend_with(to_screen(*m, *p)); @@ -207,18 +228,38 @@ fn draw_inverse_highlight( ); let (w, h) = (((bbox.width() * ppp).round() as u32).clamp(1, 8192), ((bbox.height() * ppp).round() as u32).clamp(1, 8192)); let Some(st) = app.session.active() else { return }; + let preview = app.ui.screen_mode != ScreenMode::Normal; + let back = Tokens::get(ctx).pasteboard; + // Everything that changes the colours the canvas shows changes the highlight too: the display + // options the canvas texture is redrawn for (Rich Black, Overprint Preview, quality …) and + // the proof setup and pasteboard behind them. + let display = (format!("{:?}", display_key(app)), app.ui.proof_colors.then(|| format!("{:?}", app.ui.proof_setup)), back.to_array()); + // What the canvas shows under the highlight: cut from the canvas's own pixels when its texture + // is at this zoom (no second render; Preview mode's clipping included), else rendered here. + // The texture's pixel at the highlight's top left, kept in canvas space so scrolling (which + // only shifts the texture) reuses the highlight. + let from_canvas = + app.canvas.shown.zip(app.canvas.pixels.clone()).filter(|(sh, _)| (sh.zoom - xf.zoom).abs() < 1e-9 && xf.rot == 0).map(|(sh, px)| { + let c = xf.to_canvas(bbox.min); + let k = sh.zoom * ppp as f64; + (((c.x - sh.origin.x) * k).round() as i64, ((c.y - sh.origin.y) * k).round() as i64, px) + }); + let at = from_canvas.as_ref().map(|(x, y, _)| (*x, *y)); let key = egui::Id::unique(("inverse_sel", st.uid, st.revision, std::sync::Arc::as_ptr(&st.doc) as usize, story.0)) - .with((runs.iter().map(|r| r.2.len() + r.3.len() * 7919).sum::(), w, h)) - .with((bbox.min.x.to_bits(), bbox.min.y.to_bits(), xf.zoom.to_bits(), st.selection.text.map(|t| (t.anchor, t.focus)))); + .with(&display) + .with((runs.iter().map(|r| r.1.len()).sum::(), w, h, preview)) + .with((at, app.canvas.pixels_generation, xf.zoom.to_bits(), xf.rot, st.selection.text.map(|t| (t.anchor, t.focus)))) + .with(at.is_none().then(|| (bbox.min.x.to_bits(), bbox.min.y.to_bits()))); let cache_id = egui::Id::unique("inverse_sel_tex"); let cached: Option<(egui::Id, egui::TextureHandle)> = ctx.data(|d| d.get_temp(cache_id)); let tex = match cached { Some((k, t)) if k == key => t, _ => { let view = xf.affine(ppp as f64, bbox.min); + // How much of each pixel the highlight covers. let mut rc = vello_cpu::RenderContext::new_with(w as u16, h as u16, vello_cpu::RenderSettings { num_threads: 0, ..Default::default() }); - rc.set_paint(peniko::Color::from_rgba8(0, 0, 0, 255)); - for (_, m, quads, _) in runs { + rc.set_paint(peniko::Color::from_rgba8(255, 255, 255, 255)); + for (m, quads) in runs { rc.set_transform(view * *m); for q in quads { let mut bp = kurbo::BezPath::new(); @@ -230,41 +271,70 @@ fn draw_inverse_highlight( rc.fill_path(&bp); } } - let db = designcraft_fonts::FontDb::global(); - for (fi, m, _, glyphs) in runs { - let Some(ft) = cs.frames.get(*fi) else { continue }; - for &(li, gi) in glyphs { - let Some(l) = ft.lines.get(li) else { continue }; - let Some(g) = l.glyphs.get(gi) else { continue }; - let Some(style) = cs.styles.get(g.style as usize) else { continue }; - let Some(c) = doc.resolve_color(&style.fill, style.fill_tint) else { continue }; - let [r, gg, b, _] = c.to_rgba8(1.0); - rc.set_paint(peniko::Color::from_rgba8(255 - r, 255 - gg, 255 - b, 255)); - let outline = db.outline(&g.face, g.gid); - let skew = - if style.skew != 0.0 { Affine::new([1.0, 0.0, -style.skew.to_radians().tan(), 1.0, 0.0, 0.0]) } else { Affine::IDENTITY }; - let shatai = style.shatai_xf(g, l.baseline).unwrap_or(Affine::IDENTITY); - let mut ga = shatai * Affine::translate((g.x, l.baseline + g.y)) * skew * Affine::scale_non_uniform(g.sx, g.sy); - if ft.vertical - && let Some(turn) = g.vertical_xf(l.baseline) - { - ga = turn * ga; - } - rc.set_transform(view * *m * ga); - rc.fill_path(&outline); - } - } rc.flush(); - let mut pm = vello_cpu::Pixmap::new(w as u16, h as u16); + let mut mask = vello_cpu::Pixmap::new(w as u16, h as u16); let mut res = vello_cpu::Resources::new(); - rc.render(&mut pm, &mut res); - let ci = egui::ColorImage::from_rgba_premultiplied([w as usize, h as usize], pm.data_as_u8_slice()); + rc.render(&mut mask, &mut res); + let under = match &from_canvas { + Some((x0, y0, px)) => crop(px, *x0, *y0, w, h, [back.r(), back.g(), back.b()]), + None => { + // Rendered with the canvas's own options and colours, on this thread only (a + // pool per frame of a drag would cost more than the render). + let placed: Vec = + layout.slots.iter().map(|s| designcraft_render::Placed { spread: s.spread, xf: s.xf }).collect(); + let opts = screen_options(app, layout, preview, ppp as f64); + let mut under = HIGHLIGHT_RENDERER.with(|r| { + let mut r = r.borrow_mut(); + r.get_or_insert_with(|| { + let mut r = designcraft_render::Renderer::new(); + r.threads = 0; + r + }) + .render(doc, &app.session.cache, &placed, (w, h), view, &opts) + }); + if app.ui.proof_colors { + designcraft_render::proof_view(&mut under, &app.ui.proof_setup); + } + under.pixels + } + }; + let pixels = inverse_under(mask.data_as_u8_slice(), &under, [back.r(), back.g(), back.b()]); + let ci = egui::ColorImage::from_rgba_premultiplied([w as usize, h as usize], &pixels); let t = crate::widgets::load_texture(ctx, "inverse_selection", ci, egui::TextureOptions::NEAREST); ctx.data_mut(|d| d.insert_temp(cache_id, (key, t.clone()))); t } }; - painter.image(tex.id(), bbox, Rect::from_min_max(pos2(0.0, 0.0), pos2(1.0, 1.0)), Color32::WHITE); + let uv = Rect::from_min_max(pos2(0.0, 0.0), pos2(1.0, 1.0)); + if app.ui.screen_mode == crate::ScreenMode::Normal { + painter.image(tex.id(), bbox, uv, Color32::WHITE); + } else { + // Preview, Bleed, Slug: only where each spread shows its content, as the canvas. + for slot in &layout.slots { + let r = super::page_decor::shown_area(app, doc, xf, slot); + painter.with_clip_rect(r.intersect(painter.clip_rect())).image(tex.id(), bbox, uv, Color32::WHITE); + } + } +} + +/// Premultiplied RGBA: the inverse of `under` (composited over `back` where it is transparent), +/// shown as far as `mask` (premultiplied white) covers each pixel. +pub(super) fn inverse_under(mask: &[u8], under: &[u8], back: [u8; 3]) -> Vec { + let mut out = vec![0u8; mask.len()]; + let under = under.as_chunks::<4>().0.iter().chain(std::iter::repeat(&[0u8; 4])); + for ((o, m), u) in out.as_chunks_mut::<4>().0.iter_mut().zip(mask.as_chunks::<4>().0).zip(under) { + let cover = u32::from(m[3]); + if cover == 0 { + continue; + } + let a = u32::from(u[3]); + for k in 0..3 { + let shown = (u32::from(u[k]) + u32::from(back[k]) * (255 - a) / 255).min(255); + o[k] = ((255 - shown) * cover / 255) as u8; + } + o[3] = cover as u8; + } + out } /// View → Show Hidden Characters: ¶ paragraph ends, » tabs, · spaces, ¬ forced line breaks, # end of story. diff --git a/crates/ui-egui/src/state.rs b/crates/ui-egui/src/state.rs index 53a77a6c5..293a1b1ce 100644 --- a/crates/ui-egui/src/state.rs +++ b/crates/ui-egui/src/state.rs @@ -573,6 +573,8 @@ impl CanvasCache { patches: 0, separations: separations::Preview::default(), images: (0, f64::NEG_INFINITY), + pixels: None, + pixels_generation: 0, } } } @@ -609,6 +611,10 @@ pub struct CanvasCache { /// The [`designcraft_render::images::generation`] the canvas renders with, and when it took /// it (ms): finished background decodes are taken up in batches, one render for many. pub images: (u64, f64), + /// The pixels the canvas texture shows (full resolution, as uploaded), and a counter that + /// changes with them: a text highlight inverts what it covers from these, without rendering. + pub pixels: Option>, + pub pixels_generation: u64, } #[derive(Default, Clone, Copy, Debug, Serialize)] From d9c20c9f816723913e7b846b73cef570a24dcde7 Mon Sep 17 00:00:00 2001 From: PiMinusMax <121135695+PiMinusMax@users.noreply.github.com> Date: Sat, 21 Nov 2026 19:03:10 +0100 Subject: [PATCH 51/77] Text selection: keep the canvas pixels only while text is selected; no highlight render on the UI thread while a texture is on its way The copy is renewed on the worker when text gets selected. Meanwhile, and with Separations Preview on, a plain highlight is drawn. A repaint of an edit's regions now goes through Proof Colors like a full upload. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/canvas/render.rs | 19 ++++++++++++++++--- crates/ui-egui/src/canvas/text_overlay.rs | 15 +++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/crates/ui-egui/src/canvas/render.rs b/crates/ui-egui/src/canvas/render.rs index 55b168d1d..9e4dcdb4e 100644 --- a/crates/ui-egui/src/canvas/render.rs +++ b/crates/ui-egui/src/canvas/render.rs @@ -150,6 +150,11 @@ pub(super) fn image_generation(seen: &mut (u64, f64), live: u64, now: f64, rende pub(super) fn render_texture(app: &mut DesignApp, ctx: &egui::Context, rect: Rect, xf: &Xf, layout: &CanvasLayout, preview: bool) { invalidate_on_display_change(app); let Some(st) = app.session.active() else { return }; + // The copy of the canvas's pixels serves the text highlight only: none without a text + // selection, so a canvas without one holds no second full-size image. + if st.selection.text.is_none() { + app.canvas.pixels = None; + } let ppp = ctx.pixels_per_point() as f64; let doc_key = (st.uid, std::sync::Arc::as_ptr(&st.doc) as u64, st.revision, preview); let editing_parents = st.editing_parents; @@ -194,7 +199,10 @@ pub(super) fn render_texture(app: &mut DesignApp, ctx: &egui::Context, rect: Rec x0 >= -0.5 && y0 >= -0.5 && x0 + rect.width() as f64 <= s.size.0 as f64 + 0.5 && y0 + rect.height() as f64 <= s.size.1 as f64 + 0.5 } }; - if app.canvas.shown.is_some_and(|s| covers(&s)) { + // Text just selected: the highlight needs the canvas's pixels (see `upload`), so the view is + // rendered again, on the worker, to keep a copy. + let needs_pixels = app.canvas.pixels.is_none() && app.session.active().is_some_and(|st| st.selection.text.is_some()); + if app.canvas.shown.is_some_and(|s| covers(&s)) && !needs_pixels { return; } let doc_changed = app.canvas.shown.is_none_or(|s| s.doc != doc_key); @@ -313,7 +321,10 @@ fn patch_texture(app: &mut DesignApp, layout: &CanvasLayout, ppp: f64, doc_key: * Affine::scale(sh.zoom) * Affine::translate((-sh.origin.x, -sh.origin.y)); let opts = screen_options(app, layout, preview, ppp); - let img = app.canvas.patcher.render(&new, &app.session.cache, &placed, ((x1 - x0) as u32, (y1 - y0) as u32), view, &opts); + let mut img = app.canvas.patcher.render(&new, &app.session.cache, &placed, ((x1 - x0) as u32, (y1 - y0) as u32), view, &opts); + // Proof Colors as for a full upload: the repainted region (and the highlight's copy of it) + // showed the unproofed colours until the next full render. + screen_post(app, &mut img); let ci = egui::ColorImage::from_rgba_premultiplied([img.width as usize, img.height as usize], &img.pixels); if let Some(tex) = app.canvas.texture.as_mut() { tex.set_partial([x0 as usize, y0 as usize], ci, egui::TextureOptions::LINEAR); @@ -363,6 +374,8 @@ fn upload(app: &mut DesignApp, ctx: &egui::Context, mut img: designcraft_render: Some(tex) => tex.set(ci, egui::TextureOptions::LINEAR), None => app.canvas.texture = Some(ctx.load_texture("canvas", ci, egui::TextureOptions::LINEAR)), } - app.canvas.pixels = Some(std::sync::Arc::new(img)); + // Kept only while text is selected (see `render_texture`). + let selecting = app.session.active().is_some_and(|st| st.selection.text.is_some()); + app.canvas.pixels = selecting.then(|| std::sync::Arc::new(img)); app.canvas.pixels_generation += 1; } diff --git a/crates/ui-egui/src/canvas/text_overlay.rs b/crates/ui-egui/src/canvas/text_overlay.rs index 30a00930b..e8cf84b4e 100644 --- a/crates/ui-egui/src/canvas/text_overlay.rs +++ b/crates/ui-egui/src/canvas/text_overlay.rs @@ -244,6 +244,21 @@ fn draw_inverse_highlight( let k = sh.zoom * ppp as f64; (((c.x - sh.origin.x) * k).round() as i64, ((c.y - sh.origin.y) * k).round() as i64, px) }); + // Without the canvas's pixels the area would be rendered here, on the UI thread. That is + // done for a turned view (its texture never matches; cached until the view or selection + // changes), but not on every frame of a zoom or right after text is selected, when the worker + // is already bringing a texture with its pixels: meanwhile, and with Separations Preview on + // (which shows a plate, not the composite the canvas pixels hold), a plain highlight. + let waiting = from_canvas.is_none() && xf.rot == 0 && app.canvas.pending.is_some(); + if app.ui.separations.is_some() || waiting { + for (m, quads) in runs { + for q in quads { + let poly = q.map(|p| to_screen(*m, p)); + painter.add(egui::Shape::convex_polygon(poly.to_vec(), Color32::from_rgba_unmultiplied(80, 140, 255, 110), Stroke::NONE)); + } + } + return; + } let at = from_canvas.as_ref().map(|(x, y, _)| (*x, *y)); let key = egui::Id::unique(("inverse_sel", st.uid, st.revision, std::sync::Arc::as_ptr(&st.doc) as usize, story.0)) .with(&display) From a3db50ac0d9baeca961e90a54f942df2ae5af1c6 Mon Sep 17 00:00:00 2001 From: PiMinusMax <121135695+PiMinusMax@users.noreply.github.com> Date: Sun, 22 Nov 2026 23:39:55 +0100 Subject: [PATCH 52/77] CMYK view: a mostly shown image is kept whole only up to a quarter of the plate cache Both ink passes keep a plate, so a whole plate up to half the cache let two of them take nearly all of it and push the other images out. Co-Authored-By: Claude Opus 5.5 --- crates/render/src/color.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/render/src/color.rs b/crates/render/src/color.rs index fc4ef41ad..9418a2149 100644 --- a/crates/render/src/color.rs +++ b/crates/render/src/color.rs @@ -111,11 +111,12 @@ pub(crate) fn plate_part( return None; } // All or nearly all of it in view (three quarters or more): convert the whole plate once and - // keep it, as long as it takes at most half the cache (kept whole, a bigger one would push - // every other image out). Converting it in parts would redo nearly all of it on every render. + // keep it, as long as it takes at most a quarter of the cache: both ink passes keep a plate, + // so a bigger one would push the other images out. Converting it in parts would redo nearly + // all of it on every render. let part_area = u64::from(x1 - x0) * u64::from(y1 - y0); let whole_area = u64::from(w) * u64::from(h); - if part_area.saturating_mul(4) >= whole_area.saturating_mul(3) && plate_bytes(w, h) <= PLATE_CACHE_BYTES / 2 { + if part_area.saturating_mul(4) >= whole_area.saturating_mul(3) && plate_bytes(w, h) <= PLATE_CACHE_BYTES / 4 { return Some((plate_pixmap(pm, plate), (0, 0))); } let row = usize::from(w); From e3b29cda79c82fe526038f8307790dc2011b01a0 Mon Sep 17 00:00:00 2001 From: PiMinusMax <121135695+PiMinusMax@users.noreply.github.com> Date: Sat, 21 Nov 2026 18:30:04 +0100 Subject: [PATCH 53/77] Effects dialog: a colour chip beside the shadow and glow colour, and in its menu Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/dialogs.rs | 2 +- crates/ui-egui/src/effects_dialog.rs | 56 +++++++++++++++++++++++----- 2 files changed, 48 insertions(+), 10 deletions(-) diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs index 336cf6409..03421678f 100644 --- a/crates/ui-egui/src/dialogs.rs +++ b/crates/ui-egui/src/dialogs.rs @@ -6608,7 +6608,7 @@ fn link_toggle(lang: &str, ui: &mut egui::Ui, d: &mut Dialog, key: &str, linked: /// A swatch menu with a colour chip per swatch (hidden swatches left out); returns the swatch /// picked. -fn swatch_menu(ui: &mut egui::Ui, doc: &designcraft_doc::Document, id: impl egui::AsIdSalt, current: &str, width: f32) -> Option { +pub(crate) fn swatch_menu(ui: &mut egui::Ui, doc: &designcraft_doc::Document, id: impl egui::AsIdSalt, current: &str, width: f32) -> Option { swatch_menu_with(ui, doc, id, current, width, None) } diff --git a/crates/ui-egui/src/effects_dialog.rs b/crates/ui-egui/src/effects_dialog.rs index a09b87498..650219bd2 100644 --- a/crates/ui-egui/src/effects_dialog.rs +++ b/crates/ui-egui/src/effects_dialog.rs @@ -337,15 +337,15 @@ fn swatch(app: &DesignApp, ui: &mut egui::Ui, d: &mut Dialog, path: &[&str]) { } v.as_str().unwrap_or("[Black]").to_string() }; - let names: Vec = app - .session - .active() - .map_or_else(Vec::new, |st| st.doc.swatches.iter().filter(|w| !w.hidden || w.name == cur).map(|w| w.name.clone()).collect()); - craft_ui::ComboBox::from_id_salt(("fx_swatch", path.join("."))).selected_text(&cur).width(150.0).show_ui(ui, |ui| { - for n in names { - if ui.selectable_label(n == cur, &n).clicked() { - set(d, path, json!(n)); - } + let Some(doc) = app.session.active().map(|st| &st.doc) else { return }; + // The colour itself beside its name, and a chip per swatch in the menu, as the swatch menus + // elsewhere: a list of bare names hid what the shadow was coloured with. + ui.horizontal(|ui| { + let (c, g) = crate::widgets::swatch_colors(doc, &cur, 1.0); + let (r, _) = ui.allocate_exact_size(egui::vec2(16.0, 16.0), egui::Sense::hover()); + crate::widgets::paint_chip(ui.painter(), r, c, g); + if let Some(n) = crate::dialogs::swatch_menu(ui, doc, ("fx_swatch", path.join(".")), &cur, 128.0) { + set(d, path, json!(n)); } }); } @@ -935,6 +935,44 @@ mod tests { assert_eq!(fx.outer_glow.mode, designcraft_color::BlendMode::Normal); } + #[test] + fn the_shadow_colour_shows_its_swatch_beside_the_name() { + let (mut app, _) = app_with_frame(); + app.run("swatch.create", json!({"name": "Shade", "color": "#12ab34"})).unwrap(); + let ctx = egui::Context::default(); + crate::theme::install_fonts(&ctx, "en"); + let shade = crate::widgets::swatch_colors(&app.session.doc().unwrap().doc, "Shade", 1.0).0.unwrap(); + // Does the dialog, once faded in, paint a chip of the colour `c`? + let mut time = 0.0; + let mut painted = |app: &mut DesignApp, c: egui::Color32| { + let mut found = false; + for _ in 0..20 { + time += 0.1; + let input = egui::RawInput { + screen_rect: Some(egui::Rect::from_min_size(egui::Pos2::ZERO, egui::vec2(1400.0, 900.0))), + time: Some(time), + ..Default::default() + }; + let mut out = ctx.run_ui(input, |ui| crate::dialogs::show(app, ui.ctx())); + out.textures_delta.clear(); + fn walk(s: &egui::epaint::Shape, c: egui::Color32) -> bool { + match s { + egui::epaint::Shape::Rect(r) => r.fill == c, + egui::epaint::Shape::Vec(v) => v.iter().any(|s| walk(s, c)), + _ => false, + } + } + found = out.shapes.iter().any(|s| walk(&s.shape, c)); + } + found + }; + open(&mut app, "dropShadow"); + assert!(!painted(&mut app, shade), "not the shadow's colour yet"); + set(app.ui.dialog.as_mut().unwrap(), &["dropShadow", "color"], json!("Shade")); + assert!(painted(&mut app, shade), "the chosen swatch's colour is shown, not only its name"); + assert_eq!(params(app.ui.dialog.as_ref().unwrap())["effects"]["dropShadow"]["color"], "Shade"); + } + #[test] fn offsets_follow_distance_and_angle_as_in_indesign() { let (mut app, _) = app_with_frame(); From a74f3ff5d3721898c081da02334480205ea29c09 Mon Sep 17 00:00:00 2001 From: PiMinusMax <121135695+PiMinusMax@users.noreply.github.com> Date: Sat, 21 Nov 2026 18:30:04 +0100 Subject: [PATCH 54/77] Effects panel: drop shadow Distance and Size have room for a measurement with its unit Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/panels/properties/object_panels.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/panels/properties/object_panels.rs b/crates/ui-egui/src/panels/properties/object_panels.rs index 194fecc2e..a2756621d 100644 --- a/crates/ui-egui/src/panels/properties/object_panels.rs +++ b/crates/ui-egui/src/panels/properties/object_panels.rs @@ -548,9 +548,11 @@ pub fn effects_panel(app: &mut DesignApp, ui: &mut egui::Ui) { // Distance and Size in the document's unit, as in the Effects dialog: a bare `7` means the // same in both. let u = units(app); + // Room for a measurement with its unit (`35.278 mm`). + const MEASURE_W: f32 = 66.0; egui::Grid::new("dsg").num_columns(4).spacing(vec2(6.0, 4.0)).show(ui, |ui| { caption(ui, crate::i18n::tr(&app.ui.language, "Distance")); - if let Some(v) = measure(ui, "dsd", Some(ds.distance), u, 56.0) { + if let Some(v) = measure(ui, "dsd", Some(ds.distance), u, MEASURE_W) { let _ = app.run("object.dropShadow", json!({"on": true, "distance": v})); } caption(ui, crate::i18n::tr(&app.ui.language, "Angle")); @@ -577,7 +579,7 @@ pub fn effects_panel(app: &mut DesignApp, ui: &mut egui::Ui) { let _ = app.run("object.dropShadow", json!({"on": true, "opacity": v / 100.0})); } caption(ui, crate::i18n::tr(&app.ui.language, "Size")); - if let Some(v) = measure(ui, "dss", Some(ds.size), u, 56.0) { + if let Some(v) = measure(ui, "dss", Some(ds.size), u, MEASURE_W) { let _ = app.run("object.dropShadow", json!({"on": true, "size": v})); } ui.end_row(); From 4dfbbe1fac082842e87360c6be5bbb7bcaa48d6d Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Mon, 23 Nov 2026 05:52:27 +0700 Subject: [PATCH 55/77] build: pin craft-libs to main 33be356 (craft-libs#778) Move every craft-libs crate, including craft-idml, to one rev that is merged on craft-libs main, so the strict JPEG EXIF orientation reader from craft-libs#3067 is available for the follow-up caller switch. --- Cargo.lock | 181 ++++++++++++++++++++++------------------------------- Cargo.toml | 84 ++++++++++++------------- 2 files changed, 118 insertions(+), 147 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 486db4e08..b3056a797 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1083,7 +1083,7 @@ dependencies = [ [[package]] name = "craft-atomic" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "rustix 1.1.5", ] @@ -1091,12 +1091,12 @@ dependencies = [ [[package]] name = "craft-cfb" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" [[package]] name = "craft-cms" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "md-5", "rayon", @@ -1105,12 +1105,12 @@ dependencies = [ [[package]] name = "craft-codepage" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" [[package]] name = "craft-csv" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "thiserror 2.0.21", ] @@ -1118,7 +1118,7 @@ dependencies = [ [[package]] name = "craft-dds" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "rayon", ] @@ -1126,7 +1126,7 @@ dependencies = [ [[package]] name = "craft-designcraft-format" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "craft-document-bundle", "craft-eps", @@ -1138,7 +1138,7 @@ dependencies = [ [[package]] name = "craft-dialogs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "block2 0.6.2", "objc2 0.6.5", @@ -1151,14 +1151,14 @@ dependencies = [ [[package]] name = "craft-docpath" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" [[package]] name = "craft-document-bundle" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ - "craft-zip 0.1.0 (git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1)", + "craft-zip", "serde_json", "thiserror 2.0.21", "zip 9.1.1", @@ -1167,7 +1167,7 @@ dependencies = [ [[package]] name = "craft-docx" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "base64 0.23.1", "chrono", @@ -1176,7 +1176,7 @@ dependencies = [ "craft-offcrypto", "craft-opc", "craft-wordmodel", - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1)", + "craft-xml", "log", "quick-xml 0.41.0", "thiserror 2.0.21", @@ -1187,10 +1187,10 @@ dependencies = [ [[package]] name = "craft-drawingml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "chrono", - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1)", + "craft-xml", "kurbo", "log", "serde", @@ -1199,27 +1199,27 @@ dependencies = [ [[package]] name = "craft-eps" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" [[package]] name = "craft-epub" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1)", - "craft-zip 0.1.0 (git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1)", + "craft-xml", + "craft-zip", "thiserror 2.0.21", ] [[package]] name = "craft-file-formats" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "craft-eps", - "craft-idml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1)", + "craft-idml", "craft-svg", - "craft-zip 0.1.0 (git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1)", + "craft-zip", "serde", "serde_json", ] @@ -1227,12 +1227,12 @@ dependencies = [ [[package]] name = "craft-fonts-build" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" [[package]] name = "craft-i18n" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "fixed_decimal", "icu_decimal", @@ -1255,27 +1255,17 @@ dependencies = [ [[package]] name = "craft-idml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=b92907f69d6599b91ac76fb8377ac407c8ac956d#b92907f69d6599b91ac76fb8377ac407c8ac956d" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=b92907f69d6599b91ac76fb8377ac407c8ac956d)", - "craft-zip 0.1.0 (git+https://github.com/storytold/craft-libs?rev=b92907f69d6599b91ac76fb8377ac407c8ac956d)", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-idml" -version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" -dependencies = [ - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1)", - "craft-zip 0.1.0 (git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1)", + "craft-xml", + "craft-zip", "thiserror 2.0.21", ] [[package]] name = "craft-image-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "craft-dds", "craft-jpeg", @@ -1302,7 +1292,7 @@ dependencies = [ [[package]] name = "craft-indd" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "indd", ] @@ -1310,7 +1300,7 @@ dependencies = [ [[package]] name = "craft-jpeg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "thiserror 2.0.21", ] @@ -1318,7 +1308,7 @@ dependencies = [ [[package]] name = "craft-keymap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "craft-i18n", "craft-ui", @@ -1330,9 +1320,9 @@ dependencies = [ [[package]] name = "craft-math" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1)", + "craft-xml", "roxmltree 0.21.2", "serde", ] @@ -1340,7 +1330,7 @@ dependencies = [ [[package]] name = "craft-mcp-server" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "serde_json", ] @@ -1348,7 +1338,7 @@ dependencies = [ [[package]] name = "craft-metadata" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "brotli-decompressor 6.3.1", "chrono", @@ -1360,7 +1350,7 @@ dependencies = [ [[package]] name = "craft-mime" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "chrono", "craft-codepage", @@ -1370,12 +1360,12 @@ dependencies = [ [[package]] name = "craft-offcrypto" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "aes", "base64 0.23.1", "craft-cfb", - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1)", + "craft-xml", "getrandom 0.3.4", "hmac", "sha1 0.11.0", @@ -1387,10 +1377,10 @@ dependencies = [ [[package]] name = "craft-opc" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1)", - "craft-zip 0.1.0 (git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1)", + "craft-xml", + "craft-zip", "log", "thiserror 2.0.21", ] @@ -1398,7 +1388,7 @@ dependencies = [ [[package]] name = "craft-pdf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "bytemuck", "craft-svg", @@ -1414,11 +1404,11 @@ dependencies = [ [[package]] name = "craft-pptx" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "craft-drawingml", "craft-opc", - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1)", + "craft-xml", "kurbo", "log", "serde", @@ -1429,7 +1419,7 @@ dependencies = [ [[package]] name = "craft-prepress" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "craft-cms", "craft-pdf", @@ -1442,7 +1432,7 @@ dependencies = [ [[package]] name = "craft-print" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "craft-winprint-gdi", "log", @@ -1456,7 +1446,7 @@ dependencies = [ [[package]] name = "craft-ps" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "craft-eps", "kurbo", @@ -1469,7 +1459,7 @@ dependencies = [ [[package]] name = "craft-psd" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "encoding_rs", "flate2", @@ -1480,7 +1470,7 @@ dependencies = [ [[package]] name = "craft-rtf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "craft-codepage", "encoding_rs", @@ -1489,15 +1479,15 @@ dependencies = [ [[package]] name = "craft-sheet" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" [[package]] name = "craft-svg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "craft-image-codecs", - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1)", + "craft-xml", "data-url", "flate2", "gif", @@ -1515,16 +1505,17 @@ dependencies = [ [[package]] name = "craft-tiff" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "serde", "thiserror 2.0.21", + "tiff", ] [[package]] name = "craft-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "craft-fonts-build", "craft-i18n", @@ -1545,7 +1536,7 @@ dependencies = [ [[package]] name = "craft-update" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "chrono", "dunce", @@ -1572,7 +1563,7 @@ dependencies = [ [[package]] name = "craft-window" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "egui", "objc2 0.6.5", @@ -1591,7 +1582,7 @@ dependencies = [ [[package]] name = "craft-wordmodel" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "base64 0.23.1", "craft-math", @@ -1605,29 +1596,19 @@ dependencies = [ [[package]] name = "craft-xlsx" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "craft-drawingml", "craft-opc", "craft-sheet", - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1)", + "craft-xml", "thiserror 2.0.21", ] [[package]] name = "craft-xml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=b92907f69d6599b91ac76fb8377ac407c8ac956d#b92907f69d6599b91ac76fb8377ac407c8ac956d" -dependencies = [ - "quick-xml 0.41.0", - "serde", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-xml" -version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "quick-xml 0.41.0", "serde", @@ -1637,17 +1618,7 @@ dependencies = [ [[package]] name = "craft-zip" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=b92907f69d6599b91ac76fb8377ac407c8ac956d#b92907f69d6599b91ac76fb8377ac407c8ac956d" -dependencies = [ - "flate2", - "thiserror 2.0.21", - "zip 9.1.1", -] - -[[package]] -name = "craft-zip" -version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "flate2", "thiserror 2.0.21", @@ -1899,7 +1870,7 @@ dependencies = [ "craft-prepress", "craft-print", "craft-svg", - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=b92907f69d6599b91ac76fb8377ac407c8ac956d)", + "craft-xml", "designcraft-color", "designcraft-compose", "designcraft-doc", @@ -1982,8 +1953,8 @@ name = "designcraft-idml" version = "0.21.0" dependencies = [ "craft-file-formats", - "craft-idml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=b92907f69d6599b91ac76fb8377ac407c8ac956d)", - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=b92907f69d6599b91ac76fb8377ac407c8ac956d)", + "craft-idml", + "craft-xml", "designcraft-color", "designcraft-compose", "designcraft-doc", @@ -2105,7 +2076,7 @@ version = "0.21.0" dependencies = [ "craft-docx", "craft-file-formats", - "craft-idml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=b92907f69d6599b91ac76fb8377ac407c8ac956d)", + "craft-idml", "craft-rtf", "craft-wordmodel", "craft-xlsx", @@ -3248,7 +3219,7 @@ dependencies = [ [[package]] name = "hayro" version = "0.7.1" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "bytemuck", "hayro-interpret", @@ -3268,7 +3239,7 @@ checksum = "9f4d0e94ddd48749f06bbe4e5389fb9799a0c45bcaf00495042076ef05e3241a" [[package]] name = "hayro-cmap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "brotli", "hayro-postscript", @@ -3277,7 +3248,7 @@ dependencies = [ [[package]] name = "hayro-interpret" version = "0.7.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "bitflags 2.13.2", "hayro-cmap", @@ -3295,7 +3266,7 @@ dependencies = [ [[package]] name = "hayro-jbig2" version = "0.3.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "fearless_simd", "hayro-ccitt", @@ -3313,12 +3284,12 @@ dependencies = [ [[package]] name = "hayro-postscript" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" [[package]] name = "hayro-syntax" version = "0.7.2" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "flate2", "hayro-ccitt", @@ -3953,7 +3924,7 @@ dependencies = [ [[package]] name = "krilla" version = "0.8.2" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "base64 0.22.1", "bumpalo", @@ -4062,7 +4033,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4" [[package]] name = "linesweeper" version = "0.5.0" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "arrayvec", "kurbo", @@ -7319,7 +7290,7 @@ dependencies = [ [[package]] name = "vello_common" version = "0.0.8" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "bytemuck", "fearless_simd", @@ -7368,7 +7339,7 @@ dependencies = [ [[package]] name = "vello_cpu" version = "0.0.8" -source = "git+https://github.com/storytold/craft-libs?rev=c60e7a20063313b80a994075adb4f797b24ab4f1#c60e7a20063313b80a994075adb4f797b24ab4f1" +source = "git+https://github.com/storytold/craft-libs?rev=33be35625e252cc4f06aa375b3b428521faea37d#33be35625e252cc4f06aa375b3b428521faea37d" dependencies = [ "bytemuck", "glifo 0.1.1", diff --git a/Cargo.toml b/Cargo.toml index cf544a6bf..bc84833b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,36 +12,36 @@ repository = "https://github.com/storytold/designcraft" [workspace.dependencies] # Shared RFC 4648 encoding; document decoding policies remain local. -craft-mime = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1" } +craft-mime = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d" } # Shared JSON-RPC 2.0 / MCP server framing and lifecycle. -craft-mcp-server = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } +craft-mcp-server = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } # Shared reader and writer; publish the immutable revision before this consumer. -craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0", default-features = false } -craft-designcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } -craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } -craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0", features = ["read"] } -craft-epub = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } -craft-idml = { git = "https://github.com/storytold/craft-libs", rev = "b92907f69d6599b91ac76fb8377ac407c8ac956d", version = "=0.1.0" } -craft-indd = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } -craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0", features = ["tree-render", "tree-text"] } -craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "b92907f69d6599b91ac76fb8377ac407c8ac956d", version = "=0.1.0" } -craft-rtf = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } -craft-xlsx = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } -craft-docx = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } -craft-wordmodel = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } -craft-csv = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } -craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } -craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } -craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } -craft-file-formats = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } -craft-opc = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } -craft-pptx = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } +craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0", default-features = false } +craft-designcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +craft-eps = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +craft-ps = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0", features = ["read"] } +craft-epub = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +craft-idml = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +craft-indd = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0", features = ["tree-render", "tree-text"] } +craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +craft-rtf = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +craft-xlsx = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +craft-docx = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +craft-wordmodel = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +craft-csv = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +craft-file-formats = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +craft-opc = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +craft-pptx = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } # Shared keyboard bindings: chords, overrides, conflicts, egui dispatch, the Keyboard Shortcuts dialog. -craft-keymap = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0", features = ["egui", "ui"] } +craft-keymap = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0", features = ["egui", "ui"] } # Separations, ink coverage and the ink manager; same revision as craft-pdf and the krilla patch. -craft-prepress = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0", features = ["flatten"] } +craft-prepress = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0", features = ["flatten"] } # craft-update: app-specific pretend versions apply to startup and manual checks. -craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", features = ["egui"] } +craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "33be35625e252cc4f06aa375b3b428521faea37d", features = ["egui"] } # internal designcraft-geom = { path = "crates/geom" } designcraft-color = { path = "crates/color" } @@ -99,20 +99,20 @@ qrcodegen = "1.8" quick-xml = "0.41" zip = { version = "3", default-features = false, features = ["deflate"] } # Which paths stored in documents may be followed (craft-libs). -craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1" } +craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d" } # Atomic file replacement for saves and exports (craft-libs). -craft-atomic = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1" } +craft-atomic = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d" } # File › Print through the system print spooler (craft-libs). -craft-print = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1" } +craft-print = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d" } # ICC colour management: working spaces, transforms, black point compensation (craft-libs). -craft-cms = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1" } +craft-cms = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d" } # ui # Shared frontend components; keep this dependency above the engine boundary. -craft-ui = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", features = ["serde"] } +craft-ui = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", features = ["serde"] } # The application bar as the window's title bar (craft-libs). -craft-window = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", features = ["egui"] } +craft-window = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", features = ["egui"] } egui = "0.37" # Resizable table columns (About ▸ Contributors / Models); no image loaders. egui_extras = { version = "0.37", default-features = false } @@ -122,7 +122,7 @@ egui_kittest = "0.37" web-time = "1" rfd = "0.17" # Native file and message dialogs that never block the event loop (craft-libs). -craft-dialogs = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1" } +craft-dialogs = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d" } raw-window-handle = "0.6" arboard = { version = "3.6", default-features = false } @@ -156,19 +156,19 @@ debug = 0 # Opt-in cancelable macOS termination on the pinned winit 0.30 line. [patch.crates-io] -krilla = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.8.2" } +krilla = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.8.2" } winit = { git = "https://github.com/storytold/winit.git", rev = "a517b3846ee8457d84ee4975110bfda6797c44dc" } # The hayro crates from craft-libs' vendor/ directory (pdfcraft's, plus the plate mode and decode # limits craft-pdf and craft-prepress need); same revision as craft-pdf. -hayro = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.7.1" } -hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.7.0" } -hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.7.2" } -hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.3.0" } -hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } -hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1", version = "=0.1.0" } -linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1" } -vello_common = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1" } -vello_cpu = { git = "https://github.com/storytold/craft-libs", rev = "c60e7a20063313b80a994075adb4f797b24ab4f1" } +hayro = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.7.1" } +hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.7.0" } +hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.7.2" } +hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.3.0" } +hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d", version = "=0.1.0" } +linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d" } +vello_common = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d" } +vello_cpu = { git = "https://github.com/storytold/craft-libs", rev = "33be35625e252cc4f06aa375b3b428521faea37d" } ecolor = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } emath = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } epaint = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } From 074033b9aff3090e8e4aca4df7108b189bae3168 Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Mon, 23 Nov 2026 05:56:14 +0700 Subject: [PATCH 56/77] images: read JPEG EXIF orientation through the shared strict reader (craft-libs#778) Replace the local APP1 scan restored in #3105 with craft_image_codecs::jpeg_probe::strict_exif_orientation, which craft-libs#3067 ported from it. Placement policy stays here. --- crates/images/src/resolution.rs | 43 ++++----------------------------- 1 file changed, 5 insertions(+), 38 deletions(-) diff --git a/crates/images/src/resolution.rs b/crates/images/src/resolution.rs index d20d4a940..42b6a448d 100644 --- a/crates/images/src/resolution.rs +++ b/crates/images/src/resolution.rs @@ -3,9 +3,10 @@ //! Delegates container resolution probes to `craft-image-codecs` (`file_resolution`, which reads //! JPEG Photoshop ResolutionInfo -> XMP -> EXIF -> JFIF, PNG eXIf, WebP EXIF, and classic TIFF; //! plus `exif_resolution`, `png_probe::pixels_per_meter`, and `bmp_probe::pixels_per_meter`) and -//! PSD `ResolutionInfo` to [`crate::psd`]. JPEG EXIF orientation keeps the strict local APP1 scan -//! (`"Exif\0\0"` with complete segment bounds). GIF and files without (usable) metadata report -//! nothing and keep the pixel-is-a-point size. +//! PSD `ResolutionInfo` to [`crate::psd`]. JPEG EXIF orientation uses the shared strict APP1 +//! reader (`jpeg_probe::strict_exif_orientation`: `"Exif\0\0"` with complete segment bounds, +//! before the first scan). GIF and files without (usable) metadata report nothing and keep the +//! pixel-is-a-point size. /// Dots per inch in x and y, when the file carries usable resolution metadata. pub fn raster_resolution(bytes: &[u8]) -> Option<(f64, f64)> { @@ -29,7 +30,7 @@ pub fn raster_resolution(bytes: &[u8]) -> Option<(f64, f64)> { /// The EXIF/TIFF orientation (1–8) of `bytes`, or 1 when absent or unreadable. fn orientation(bytes: &[u8]) -> u16 { if bytes.starts_with(b"\xFF\xD8\xFF") { - return jpeg_orientation(bytes); + return craft_image_codecs::jpeg_probe::strict_exif_orientation(bytes); } if bytes.starts_with(b"\x89PNG\r\n\x1a\n") { return craft_image_codecs::png_probe::header(bytes).map_or(1, |(_, _, o)| o); @@ -43,40 +44,6 @@ fn orientation(bytes: &[u8]) -> u16 { 1 } -/// EXIF orientation from a JPEG's first APP1 `"Exif\0\0"` segment before the first scan. -fn jpeg_orientation(bytes: &[u8]) -> u16 { - let mut i = 2usize; - while i + 4 <= bytes.len() { - if bytes[i] != 0xFF { - break; - } - let marker = bytes[i + 1]; - if marker == 0xFF { - i += 1; - continue; - } - if marker == 0xD8 || (0xD0..=0xD7).contains(&marker) || marker == 0x01 { - i += 2; - continue; - } - if marker == 0xDA || marker == 0xD9 { - break; - } - let len = u16::from_be_bytes([bytes[i + 2], bytes[i + 3]]) as usize; - if len < 2 || i + 2 + len > bytes.len() { - break; - } - let seg = &bytes[i + 4..i + 2 + len]; - if marker == 0xE1 - && let Some(exif) = seg.strip_prefix(b"Exif\0\0") - { - return craft_image_codecs::exif_orientation(exif); - } - i += 2 + len; - } - 1 -} - /// PNG `pHYs` pixels-per-metre via the shared probe: meters -> dpi in `f64` (preserving exact /// placement DPI without `dpi_of_ppm` snapping). fn png_resolution(bytes: &[u8]) -> Option<(f64, f64)> { From dd41a9692a37ca9f455acb5e425817a6b614c4da Mon Sep 17 00:00:00 2001 From: PiMinusMax <121135695+PiMinusMax@users.noreply.github.com> Date: Sun, 22 Nov 2026 23:36:38 +0100 Subject: [PATCH 57/77] Text highlight: the plain fill is clipped to the shown area, and a turned view uses it The plain highlight (waiting for the canvas's pixels, or with Separations Preview on) is clipped to each spread's shown area in Preview, Bleed and Slug, like the inverted one. A turned view, whose canvas pixels never match, draws the plain highlight instead of rendering what lies under the selection on the UI thread at every zoom or selection change. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/canvas/tests.rs | 67 +++++++++++++++++++++++ crates/ui-egui/src/canvas/text_overlay.rs | 44 ++++++++------- 2 files changed, 92 insertions(+), 19 deletions(-) diff --git a/crates/ui-egui/src/canvas/tests.rs b/crates/ui-egui/src/canvas/tests.rs index 3c5e791b0..c42abe16e 100644 --- a/crates/ui-egui/src/canvas/tests.rs +++ b/crates/ui-egui/src/canvas/tests.rs @@ -3567,3 +3567,70 @@ fn the_text_highlight_follows_the_display_options() { let after = cached(&h).expect("the highlight is drawn"); assert_ne!(after, before, "a new display option: the highlight is drawn again"); } + +/// The highlight's plain fill (painted at `h`'s last frame) and the rects it is clipped to. +fn plain_highlights(h: &Harness<'_, crate::test_window::Window>) -> Vec { + h.output() + .shapes + .iter() + .filter(|c| matches!(&c.shape, egui::Shape::Path(p) if p.fill == super::text_overlay::PLAIN_HIGHLIGHT)) + .map(|c| c.clip_rect) + .collect() +} + +/// A selected text frame that runs past the page's left edge, in a new document. +fn text_past_the_page_edge() -> DesignApp { + let mut app = DesignApp::new(designcraft_engine::Session::new(), crate::Services::default()); + app.run("file.new", serde_json::json!({})).unwrap(); + let text = "Some text past the edge"; + app.run("frame.create", serde_json::json!({"rect": [-150, 72, 300, 200], "content": "text", "text": text, "caret": true})).unwrap(); + app.run("edit.selectAll", serde_json::json!({})).unwrap(); + app.run("type.char", serde_json::json!({"attrs": {"size": 28}})).unwrap(); + app +} + +/// In Preview the plain highlight (here with Separations Preview on) shows only on the page, as +/// the inverted one does: not on the pasteboard where the selection runs past the trim. +#[test] +fn the_plain_text_highlight_is_clipped_to_the_shown_area() { + let mut app = text_past_the_page_edge(); + app.ui.separations = Some(crate::separations::Separations::default()); + let mut h = crate::test_window::open(app, vec2(900.0, 600.0)); + h.run_steps(6); + assert!(plain_highlights(&h).iter().any(|c| c.left() < page_left(&h) - 1.0), "Normal: on the pasteboard too"); + h.state_mut().app.ui.screen_mode = ScreenMode::Preview; + h.run_steps(4); + let clips = plain_highlights(&h); + assert!(!clips.is_empty(), "the highlight is drawn"); + let left = page_left(&h); + assert!(clips.iter().all(|c| c.left() >= left - 0.5), "only on the page: {clips:?}, page from {left}"); +} + +/// The page's left edge on screen. +fn page_left(h: &Harness<'_, crate::test_window::Window>) -> f32 { + let app = &h.state().app; + let xf = Xf::new(app.canvas_rect.unwrap(), app.view().unwrap()); + let canvas = app.session.layout().xf(designcraft_doc::SpreadRef::Doc(0)); + xf.to_screen(canvas * Point::new(0.0, 100.0)).x +} + +/// In a turned view the canvas's pixels never match, so the highlight is not rendered on the UI +/// thread: neither when text is selected nor on each zoom step, which get the plain highlight. +#[test] +fn a_turned_view_draws_the_plain_highlight_while_zooming() { + let mut h = crate::test_window::open(text_past_the_page_edge(), vec2(900.0, 600.0)); + let rendered = |h: &Harness<'_, crate::test_window::Window>| { + h.ctx.data(|d| d.get_temp::<(egui::Id, egui::TextureHandle)>(egui::Id::unique("inverse_sel_tex"))).is_some() + }; + h.state_mut().app.view_mut().unwrap().rotation = 1; + // What the unturned view drew when the window opened goes; a turned view adds nothing. + h.ctx.data_mut(|d| d.remove::<(egui::Id, egui::TextureHandle)>(egui::Id::unique("inverse_sel_tex"))); + h.run_steps(6); + assert!(!rendered(&h), "selected in a turned view: nothing rendered"); + for zoom in [1.0, 1.5, 2.0] { + h.state_mut().app.view_mut().unwrap().zoom *= zoom; + h.run_steps(2); + assert!(!plain_highlights(&h).is_empty(), "zoom ×{zoom}: the plain highlight"); + assert!(!rendered(&h), "zoom ×{zoom}: nothing rendered for it"); + } +} diff --git a/crates/ui-egui/src/canvas/text_overlay.rs b/crates/ui-egui/src/canvas/text_overlay.rs index e8cf84b4e..12d9b43ee 100644 --- a/crates/ui-egui/src/canvas/text_overlay.rs +++ b/crates/ui-egui/src/canvas/text_overlay.rs @@ -244,17 +244,26 @@ fn draw_inverse_highlight( let k = sh.zoom * ppp as f64; (((c.x - sh.origin.x) * k).round() as i64, ((c.y - sh.origin.y) * k).round() as i64, px) }); - // Without the canvas's pixels the area would be rendered here, on the UI thread. That is - // done for a turned view (its texture never matches; cached until the view or selection - // changes), but not on every frame of a zoom or right after text is selected, when the worker - // is already bringing a texture with its pixels: meanwhile, and with Separations Preview on - // (which shows a plate, not the composite the canvas pixels hold), a plain highlight. - let waiting = from_canvas.is_none() && xf.rot == 0 && app.canvas.pending.is_some(); - if app.ui.separations.is_some() || waiting { - for (m, quads) in runs { - for q in quads { - let poly = q.map(|p| to_screen(*m, p)); - painter.add(egui::Shape::convex_polygon(poly.to_vec(), Color32::from_rgba_unmultiplied(80, 140, 255, 110), Stroke::NONE)); + // Preview, Bleed, Slug: only where each spread shows its content, as the canvas. + let clips: Vec = if app.ui.screen_mode == crate::ScreenMode::Normal { + vec![painter.clip_rect()] + } else { + layout.slots.iter().map(|slot| super::page_decor::shown_area(app, doc, xf, slot).intersect(painter.clip_rect())).collect() + }; + // Without the canvas's pixels the area would be rendered here, on the UI thread. That is not + // done on a frame of a zoom or right after text is selected, when the worker is already + // bringing a texture with its pixels, nor in a turned view, whose texture never matches (every + // zoom or selection change would render again): there, and with Separations Preview on (which + // shows a plate, not the composite the canvas pixels hold), a plain highlight. + let waiting = from_canvas.is_none() && app.canvas.pending.is_some(); + if app.ui.separations.is_some() || waiting || xf.rot != 0 { + for clip in &clips { + let painter = painter.with_clip_rect(*clip); + for (m, quads) in runs { + for q in quads { + let poly = q.map(|p| to_screen(*m, p)); + painter.add(egui::Shape::convex_polygon(poly.to_vec(), PLAIN_HIGHLIGHT, Stroke::NONE)); + } } } return; @@ -321,17 +330,14 @@ fn draw_inverse_highlight( } }; let uv = Rect::from_min_max(pos2(0.0, 0.0), pos2(1.0, 1.0)); - if app.ui.screen_mode == crate::ScreenMode::Normal { - painter.image(tex.id(), bbox, uv, Color32::WHITE); - } else { - // Preview, Bleed, Slug: only where each spread shows its content, as the canvas. - for slot in &layout.slots { - let r = super::page_decor::shown_area(app, doc, xf, slot); - painter.with_clip_rect(r.intersect(painter.clip_rect())).image(tex.id(), bbox, uv, Color32::WHITE); - } + for clip in &clips { + painter.with_clip_rect(*clip).image(tex.id(), bbox, uv, Color32::WHITE); } } +/// The highlight where the inverse of what lies under it isn't at hand. +pub(super) const PLAIN_HIGHLIGHT: Color32 = Color32::from_rgba_premultiplied(35, 60, 110, 110); + /// Premultiplied RGBA: the inverse of `under` (composited over `back` where it is transparent), /// shown as far as `mask` (premultiplied white) covers each pixel. pub(super) fn inverse_under(mask: &[u8], under: &[u8], back: [u8; 3]) -> Vec { From f656b24db0c9224ba5241cc0e028f123d3ef338f Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Mon, 23 Nov 2026 06:04:40 +0700 Subject: [PATCH 58/77] xtask: expect the PDF backend at craft-libs 33be356 --- xtask/src/pdf_deps.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xtask/src/pdf_deps.rs b/xtask/src/pdf_deps.rs index 0329e0f7f..ec9c46693 100644 --- a/xtask/src/pdf_deps.rs +++ b/xtask/src/pdf_deps.rs @@ -5,8 +5,8 @@ use std::process::Command; use serde_json::Value; const REPO: &str = "https://github.com/storytold/craft-libs"; -const REV: &str = "c60e7a20063313b80a994075adb4f797b24ab4f1"; -const COMMIT: &str = "c60e7a20063313b80a994075adb4f797b24ab4f1"; +const REV: &str = "33be35625e252cc4f06aa375b3b428521faea37d"; +const COMMIT: &str = "33be35625e252cc4f06aa375b3b428521faea37d"; const PACKAGES: &[(&str, &str)] = &[ ("craft-pdf", "0.1.0"), ("krilla", "0.8.2"), From b7a8a9ac73314eb50dd8ec9c2dcacc3f1d7d555a Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Mon, 23 Nov 2026 09:33:36 -0500 Subject: [PATCH 59/77] ci(release): forward ARTCRAFT_SERVICES_DISPATCH_TOKEN secret (#3170) --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 29b2c0c98..bade04f46 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,3 +60,4 @@ jobs: AZURE_SIGNING_ACCOUNT: ${{ secrets.AZURE_SIGNING_ACCOUNT }} AZURE_CERT_PROFILE: ${{ secrets.AZURE_CERT_PROFILE }} LINUX_SIGNING_KEY: ${{ secrets.LINUX_SIGNING_KEY }} + ARTCRAFT_SERVICES_DISPATCH_TOKEN: ${{ secrets.ARTCRAFT_SERVICES_DISPATCH_TOKEN }} From b28cda37e7c2b390c2a018b5840b093d358b624e Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 23 Nov 2026 09:36:48 -0600 Subject: [PATCH 60/77] Save: refuse a document that would not reopen instead of writing it (#3155) * Save: refuse a document that would not reopen instead of writing it * Format test: an over-deep document is refused before writing * Format test: rustfmt blank line --- crates/engine/tests/it/main.rs | 2 + crates/engine/tests/it/save_readability.rs | 118 +++++++++++++++++++++ crates/format/src/lib.rs | 15 +++ crates/format/src/tests.rs | 32 ++++++ 4 files changed, 167 insertions(+) create mode 100644 crates/engine/tests/it/save_readability.rs diff --git a/crates/engine/tests/it/main.rs b/crates/engine/tests/it/main.rs index 5891c5d5d..f82bc0fe0 100644 --- a/crates/engine/tests/it/main.rs +++ b/crates/engine/tests/it/main.rs @@ -16,6 +16,8 @@ mod pdf_backend; mod preflight_resolution; mod primary_frame_columns; #[cfg(not(target_arch = "wasm32"))] +mod save_readability; +#[cfg(not(target_arch = "wasm32"))] mod save_state_atomicity; mod stroke_tint_range; mod text_decorations; diff --git a/crates/engine/tests/it/save_readability.rs b/crates/engine/tests/it/save_readability.rs new file mode 100644 index 000000000..8177154dc --- /dev/null +++ b/crates/engine/tests/it/save_readability.rs @@ -0,0 +1,118 @@ +use std::sync::Arc; + +use designcraft_doc::ItemId; +use designcraft_engine::{Session, cmd::base64_encode}; +use serde_json::{Value, json}; + +fn document_with_text() -> (Session, Value) { + let mut session = Session::new(); + session.execute("file.new", &json!({})).unwrap(); + let frame = session + .execute("frame.create", &json!({"rect": [0, 0, 100, 100], "content": "text", "text": "Keep this artwork", "caret": false})) + .unwrap()["id"] + .clone(); + (session, frame) +} + +fn nest_groups(session: &mut Session, mut group: Value) { + // Fixed synthetic reproduction, not a stress sweep: this legally edited document exceeded + // the reader's JSON nesting budget. Exercise commands (and native preview generation on + // Save), even if that makes this regression slower than a metadata-only format test. + for _ in 0..48 { + let sibling = session.execute("frame.create", &json!({"rect": [120, 0, 130, 10]})).unwrap()["id"].clone(); + group = session.execute("object.group", &json!({"ids": [group, sibling]})).unwrap()["id"].clone(); + } +} + +/// The readability check encodes the document without image payloads; reopening must still +/// read the real archive's embedded image bytes. +#[test] +fn a_document_with_a_placed_image_saves_and_reopens_with_its_image_bytes() { + let dir = tempfile::tempdir().unwrap(); + let path = dir.path().join("placed.designcraft"); + let mut session = Session::new(); + session.execute("file.new", &json!({})).unwrap(); + let png = designcraft_render::Rendered { width: 4, height: 3, pixels: vec![200; 4 * 3 * 4] }.to_png(); + let placed = session.execute("file.place", &json!({"base64": base64_encode(&png), "name": "photo.png", "x": 0, "y": 0, "width": 72})).unwrap(); + let id = ItemId(placed["id"].as_u64().unwrap()); + + session.execute("file.saveAs", &json!({"path": path})).expect("a document with a placed image saves"); + assert!(!session.doc().unwrap().is_dirty()); + + let mut reopened = Session::new(); + reopened.execute("file.open", &json!({"path": path})).expect("the saved document with an image reopens"); + let doc = &reopened.doc().unwrap().doc; + let asset = doc.item(id).and_then(|item| item.graphic()).map(|graphic| graphic.asset).expect("the placed graphic survives"); + assert_eq!(doc.assets[&asset].data.load().unwrap().as_slice(), png.as_slice(), "the embedded image bytes survive"); +} + +#[test] +fn nested_group_save_is_readable_or_preserves_the_good_file_and_dirty_edits() { + let dir = tempfile::tempdir().unwrap(); + let path = dir.path().join("nested.designcraft"); + let (mut session, root) = document_with_text(); + session.execute("file.saveAs", &json!({"path": path})).unwrap(); + let good_bytes = std::fs::read(&path).unwrap(); + let mut baseline = Session::new(); + baseline.execute("file.open", &json!({"path": path})).expect("the previous saved file must be readable"); + nest_groups(&mut session, root); + let before = session.doc().unwrap().clone(); + assert!(before.is_dirty()); + + let saved = session.execute("file.save", &json!({})); + let mut reopened = Session::new(); + match saved { + Ok(_) => { + assert!(!session.doc().unwrap().is_dirty(), "acknowledged Save is clean"); + reopened.execute("file.open", &json!({"path": path})).expect("acknowledged Save must produce a readable replacement"); + assert_eq!(*reopened.doc().unwrap().doc, *session.doc().unwrap().doc, "the complete artwork and text survive Save and reopen"); + } + Err(_) => { + let after = session.doc().unwrap(); + assert_eq!(std::fs::read(&path).unwrap(), good_bytes, "refused Save leaves previous good bytes alone"); + assert!(after.is_dirty(), "refused Save retains dirty edits"); + assert_eq!(after.path, before.path, "refused Save keeps the original path"); + assert!(Arc::ptr_eq(&after.doc, &before.doc), "refused Save keeps the edited document"); + assert!(Arc::ptr_eq(&after.saved_doc, &before.saved_doc), "refused Save does not acknowledge edits"); + assert_eq!((after.revision, after.saved_revision), (before.revision, before.saved_revision)); + reopened.execute("file.open", &json!({"path": path})).expect("refused Save must leave a readable baseline"); + assert_eq!(*reopened.doc().unwrap().doc, *baseline.doc().unwrap().doc); + } + } +} + +#[test] +fn nested_group_recovery_is_readable_or_preserves_the_previous_recoverable_checkpoint() { + let dir = tempfile::tempdir().unwrap(); + let recovery = dir.path().join("recovery"); + let (mut session, root) = document_with_text(); + session.execute("file.recovery.save", &json!({"dir": recovery})).unwrap(); + let uid = session.doc().unwrap().uid; + let checkpoint = recovery.join(format!("{uid}.designcraft")); + let metadata = recovery.join(format!("{uid}.json")); + let good_bytes = std::fs::read(&checkpoint).unwrap(); + let good_metadata = std::fs::read(&metadata).unwrap(); + let baseline = designcraft_format::load(&good_bytes).expect("the previous checkpoint must be readable"); + nest_groups(&mut session, root); + let before = session.doc().unwrap().clone(); + + let saved = session.execute("file.recovery.save", &json!({"dir": recovery})); + assert!(session.doc().unwrap().is_dirty(), "recovery must not acknowledge normal Save"); + assert!(Arc::ptr_eq(&session.doc().unwrap().doc, &before.doc), "checkpointing must not change dirty edits"); + let expected = match saved { + Ok(_) => { + let decoded = designcraft_format::load(&std::fs::read(&checkpoint).unwrap()).expect("accepted checkpoint must be readable"); + assert_eq!(decoded, *before.doc, "accepted recovery preserves the complete edited document"); + decoded + } + Err(_) => { + assert_eq!(std::fs::read(&checkpoint).unwrap(), good_bytes, "refused checkpoint replacement preserves good recovery bytes"); + assert_eq!(std::fs::read(&metadata).unwrap(), good_metadata, "refusal does not consume or replace checkpoint metadata"); + baseline + } + }; + let mut recovered = Session::new(); + let result = recovered.execute("file.recovery.open", &json!({"dir": recovery})).unwrap(); + assert!(!result["opened"].as_array().unwrap().is_empty(), "the surviving checkpoint must actually recover"); + assert_eq!(*recovered.doc().unwrap().doc, expected, "the recoverable document retains artwork and text"); +} diff --git a/crates/format/src/lib.rs b/crates/format/src/lib.rs index d42c3d25f..8be169a1e 100644 --- a/crates/format/src/lib.rs +++ b/crates/format/src/lib.rs @@ -39,6 +39,7 @@ pub fn write(out: &mut W, doc: &Document, pre } let mut compact = doc.clone(); compact.compact_assets(); + check_document_readable(&compact)?; let mut owned_assets = Vec::new(); let mut owned_proxies = Vec::new(); for asset in compact.assets.values() { @@ -59,6 +60,20 @@ pub fn write(out: &mut W, doc: &Document, pre craft_designcraft_format::write_to(out, &compact, concat!("DesignCraft ", env!("CARGO_PKG_VERSION")), preview, &assets, &proxies) } +/// The shared writer accepts deeper JSON than its bounded reader. Check the actual encoding, +/// not a group count: groups are only one of several sources of nested document data. +/// +/// Leave asset payloads and previews out of this probe. They do not affect document decoding, +/// and rereading them would duplicate potentially large image buffers and defeat streaming +/// recovery writes. This adds one serialization/compression and bounded decode of document +/// metadata only; those temporary buffers are dropped before the real archive is written. +fn check_document_readable(doc: &Document) -> Result<(), FormatError> { + let probe = craft_designcraft_format::save(doc, concat!("DesignCraft ", env!("CARGO_PKG_VERSION")), None, &[], &[])?; + craft_designcraft_format::load::(&probe) + .map(drop) + .map_err(|error| FormatError::Unsaveable(format!("the document would not reopen: {error}"))) +} + /// Required native format version for a document. Kept for app-side compatibility; inference is /// performed by the shared codec over the serialized neutral document schema. #[cfg(test)] diff --git a/crates/format/src/tests.rs b/crates/format/src/tests.rs index fd875a2c2..2a3fb2e67 100644 --- a/crates/format/src/tests.rs +++ b/crates/format/src/tests.rs @@ -936,3 +936,35 @@ fn embedded_documents_keep_their_older_version_and_version_5_loads() { let loaded = load(&save(&d).unwrap()).unwrap(); assert_eq!(loaded.assets.len(), d.assets.len()); } + +/// A document nested deeper than the reader accepts is refused before anything is written, +/// while a moderately nested one still saves and reopens. +#[test] +fn an_over_deep_document_is_refused_before_writing() { + use designcraft_doc::geom::shapes; + use designcraft_doc::{Content, Item, ItemId, Shape}; + fn nested(depth: usize) -> Document { + let mut d = Document::new(&NewDocument::default()); + let layer = d.default_layer(); + let square = || shapes::rectangle(Rect::new(0.0, 0.0, 10.0, 10.0)); + let mut item = Item::new(ItemId(d.alloc()), layer, Shape::Rectangle, square()); + for _ in 0..depth { + let mut group = Item::new(ItemId(d.alloc()), layer, Shape::Rectangle, square()); + group.content = Content::Group { items: vec![Arc::new(item)] }; + item = group; + } + d.insert_item(SpreadRef::Doc(0), item, None).unwrap(); + d + } + + let shallow = nested(8); + load(&save(&shallow).expect("a moderately nested document saves")).expect("and reopens"); + + let deep = nested(64); + let mut out = Cursor::new(Vec::new()); + match write(&mut out, &deep, None) { + Err(FormatError::Unsaveable(message)) => assert!(message.starts_with("the document would not reopen"), "{message}"), + other => panic!("expected a refusal, got {other:?}"), + } + assert!(out.get_ref().is_empty(), "nothing is written before the refusal"); +} From 5f177049172b4d3f33025e983173fde9e02eec7c Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 23 Nov 2026 09:37:22 -0600 Subject: [PATCH 61/77] Layers: Merge Layers moves grouped and anchored objects too (#3156) * Layers: Merge Layers moves grouped and anchored objects too * Layers test: use as_chunks for pixel counting (clippy) --- crates/engine/src/cmd/layout/registry.rs | 75 +++++- .../tests/it/layer_merge_descendants.rs | 235 ++++++++++++++++++ crates/engine/tests/it/main.rs | 2 + 3 files changed, 305 insertions(+), 7 deletions(-) create mode 100644 crates/engine/tests/it/layer_merge_descendants.rs diff --git a/crates/engine/src/cmd/layout/registry.rs b/crates/engine/src/cmd/layout/registry.rs index d79d829b8..28688963d 100644 --- a/crates/engine/src/cmd/layout/registry.rs +++ b/crates/engine/src/cmd/layout/registry.rs @@ -1,3 +1,7 @@ +use std::sync::Arc; + +use designcraft_doc::{Item, Story}; + use super::layers::{duplicate_layer, set_layer}; use super::margins::{adjust_layout, column_guides_unlocked, margin_boxes, move_column_guide, set_margins_columns, set_page_width}; use super::pages::{document_setup, page_options, page_size}; @@ -7,6 +11,52 @@ use super::parents::{ use super::sections::{ChapterEdit, SectionEdit, chapter_numbering, start_number}; use super::{CommandSpec, LAYER_COLORS, Layer, LayerId, Margins, Result, SpreadId, Value, bad, cmd, has_doc, json, ok, str_param}; +// A group can hold children on other layers, including in inactive states or pasted-into frames. +// Only references to removed layers change; surviving layers keep their assignments. Containers +// without such a reference stay shared with the undo history (copy-on-write only where one is). +fn item_uses_layers(it: &Item, gone: &[LayerId]) -> bool { + let mut found = false; + it.walk(&mut |i| found |= gone.contains(&i.layer)); + found +} + +fn story_uses_layers(st: &Story, gone: &[LayerId]) -> bool { + st.objects.iter().any(|o| item_uses_layers(&o.item, gone)) + || st.tables.values().any(|t| t.cells.iter().any(|c| story_uses_layers(&c.text, gone))) + || st.notes.iter().chain(&st.endnotes).any(|n| story_uses_layers(&n.text, gone)) +} + +fn merge_item_layers(it: &mut Item, gone: &[LayerId], into: LayerId) { + if gone.contains(&it.layer) { + it.layer = into; + } + for child in it.children_mut().into_iter().flatten() { + if item_uses_layers(child, gone) { + merge_item_layers(Arc::make_mut(child), gone, into); + } + } +} + +fn merge_story_layers(st: &mut Story, gone: &[LayerId], into: LayerId) { + for object in &mut st.objects { + if item_uses_layers(&object.item, gone) { + merge_item_layers(&mut Arc::make_mut(object).item, gone, into); + } + } + for table in st.tables.values_mut() { + if table.cells.iter().any(|c| story_uses_layers(&c.text, gone)) { + for cell in &mut Arc::make_mut(table).cells { + merge_story_layers(&mut cell.text, gone, into); + } + } + } + for note in st.notes.iter_mut().chain(st.endnotes.iter_mut()) { + if story_uses_layers(¬e.text, gone) { + merge_story_layers(&mut Arc::make_mut(note).text, gone, into); + } + } +} + pub fn specs() -> Vec { vec![ cmd!( @@ -770,24 +820,35 @@ pub fn specs() -> Vec { .map(LayerId) .or_else(|| ids.first().copied()) .ok_or_else(|| bad("layer.merge", "no layers"))?; - s.edit(|d, _| { + let gone: Vec = ids.iter().copied().filter(|l| *l != into).collect(); + let r = s.edit(|d, _| { if d.layer(into).is_none() || ids.iter().any(|l| d.layer(*l).is_none()) { return Err(bad("layer.merge", "no such layer")); } - let gone: Vec = ids.iter().copied().filter(|l| *l != into).collect(); for sp in d.spreads.iter_mut().chain(d.parents.iter_mut()) { - if !sp.items.iter().any(|i| gone.contains(&i.layer)) { + if !sp.items.iter().any(|i| item_uses_layers(i, &gone)) { continue; } - for it in &mut std::sync::Arc::make_mut(sp).items { - if gone.contains(&it.layer) { - std::sync::Arc::make_mut(it).layer = into; + for it in &mut Arc::make_mut(sp).items { + if item_uses_layers(it, &gone) { + merge_item_layers(Arc::make_mut(it), &gone, into); } } } + for story in d.stories.values_mut() { + if story_uses_layers(story, &gone) { + merge_story_layers(Arc::make_mut(story), &gone, into); + } + } d.layers.retain(|l| !gone.contains(&l.id)); Ok(json!({"merged": gone.len()})) - }) + })?; + // Drawing continues on the layer that now holds the active layer's objects. + let st = s.doc_mut()?; + if gone.contains(&st.active_layer) { + st.active_layer = into; + } + Ok(r) } ), cmd!("layer.deleteUnused", "Delete Unused Layers", [], None, "{} — layers without objects (one layer always stays)", has_doc, |s, _| { diff --git a/crates/engine/tests/it/layer_merge_descendants.rs b/crates/engine/tests/it/layer_merge_descendants.rs new file mode 100644 index 000000000..001736df5 --- /dev/null +++ b/crates/engine/tests/it/layer_merge_descendants.rs @@ -0,0 +1,235 @@ +//! Synthetic artwork created through our public commands and document APIs; no external fixtures. + +use std::sync::Arc; + +use designcraft_doc::{AnchoredObject, Document, Item, ItemId, LayerId, Story, Table}; +use designcraft_engine::Session; +use designcraft_render::Renderer; +use serde_json::json; + +fn new_session() -> Session { + let mut s = Session::new(); + s.execute("file.new", &json!({"pages": 1, "facingPages": false, "width": 240, "height": 240})).unwrap(); + s +} + +fn rectangle(s: &mut Session, rect: [i32; 4]) -> u64 { + let id = s.execute("frame.create", &json!({"rect": rect, "content": "unassigned"})).unwrap()["id"].as_u64().unwrap(); + s.execute("object.fill", &json!({"ids": [id], "swatch": "[Black]"})).unwrap(); + id +} + +fn group(s: &mut Session, ids: &[u64]) -> u64 { + s.execute("selection.set", &json!({"ids": ids})).unwrap(); + s.execute("object.group", &json!({})).unwrap()["id"].as_u64().unwrap() +} + +fn dark_coverage(s: &Session) -> usize { + let image = Renderer::new().render_page(&s.doc().unwrap().doc, &s.cache, 0, 1.0, false, &Default::default()).unwrap(); + image.pixels.as_chunks::<4>().0.iter().filter(|p| p[..3].iter().any(|c| *c < 220)).count() +} + +fn items(d: &Document) -> Vec<&Item> { + let mut out = Vec::new(); + for sp in d.spreads.iter().chain(&d.parents) { + for it in &sp.items { + it.walk(&mut |i| out.push(i)); + } + } + out.extend(d.anchored_items().into_iter().map(|(_, i)| i)); + out +} + +fn assert_remapped(before: &Document, after: &Document, source: LayerId, destination: LayerId) { + let old_items = items(before); + let new_items = items(after); + assert_eq!(old_items.len(), new_items.len(), "merging must not remove descendants"); + for old in old_items { + let new = new_items.iter().find(|i| i.id == old.id).unwrap(); + assert_eq!(new.layer, if old.layer == source { destination } else { old.layer }, "only removed-layer references move"); + assert!(after.layer(new.layer).is_some(), "every descendant must keep a live layer"); + assert_eq!(new.path, old.path); + assert_eq!(new.xf, old.xf); + assert_eq!(new.fill, old.fill); + assert_eq!(new.stroke, old.stroke); + assert_eq!(new.bounds(), old.bounds()); + } + after.check().unwrap(); +} + +#[test] +fn merging_grouped_artwork_survives_ungroup_undo_redo_and_native_reopen() { + let mut s = new_session(); + let destination = s.doc().unwrap().active_layer; + let source = LayerId(s.execute("layer.new", &json!({"name": "Grouped artwork"})).unwrap()["id"].as_u64().unwrap()); + let a = rectangle(&mut s, [30, 30, 90, 90]); + let b = rectangle(&mut s, [110, 30, 170, 90]); + let g = group(&mut s, &[a, b]); + let before_merge = s.doc().unwrap().doc.clone(); + let baseline = dark_coverage(&s); + assert!(baseline > 0, "fixture must contain visible artwork"); + + s.execute("layer.merge", &json!({"ids": [destination.0, source.0], "into": destination.0})).unwrap(); + let after_merge = s.doc().unwrap().doc.clone(); + assert_remapped(&before_merge, &after_merge, source, destination); + s.execute("object.ungroup", &json!({"ids": [g]})).unwrap(); + let after_ungroup = s.doc().unwrap().doc.clone(); + for id in [a, b] { + let mut expected = before_merge.item(ItemId(id)).unwrap().clone(); + expected.layer = destination; + assert_eq!(after_ungroup.item(ItemId(id)), Some(&expected), "promoted artwork preserves identity and geometry"); + } + assert!(dark_coverage(&s) >= baseline / 2, "Ungroup must not hide the merged artwork"); + + s.execute("edit.undo", &json!({})).unwrap(); + assert_eq!(s.doc().unwrap().doc, after_merge); + s.execute("edit.undo", &json!({})).unwrap(); + assert_eq!(s.doc().unwrap().doc, before_merge); + s.execute("edit.redo", &json!({})).unwrap(); + assert_eq!(s.doc().unwrap().doc, after_merge); + s.execute("edit.redo", &json!({})).unwrap(); + assert_eq!(s.doc().unwrap().doc, after_ungroup); + + let dir = tempfile::tempdir().unwrap(); + let path = dir.path().join("merged-artwork.designcraft"); + s.execute("file.saveAs", &json!({"path": path})).unwrap(); + let mut reopened = Session::new(); + reopened.execute("file.open", &json!({"path": path})).unwrap(); + let doc = &reopened.doc().unwrap().doc; + for id in [a, b] { + let it = doc.item(ItemId(id)).unwrap(); + assert_eq!(it, after_ungroup.item(ItemId(id)).unwrap()); + assert!(doc.layer(it.layer).is_some()); + } + assert!(dark_coverage(&reopened) >= baseline / 2, "native reopen must preserve visible artwork"); +} + +#[test] +fn merging_reaches_nested_groups_on_surviving_document_and_parent_layers() { + let mut s = new_session(); + let destination = s.doc().unwrap().active_layer; + let survivor = LayerId(s.execute("layer.new", &json!({"name": "Keep separate"})).unwrap()["id"].as_u64().unwrap()); + let a = rectangle(&mut s, [10, 10, 30, 30]); + let source = LayerId(s.execute("layer.new", &json!({"name": "Merge away"})).unwrap()["id"].as_u64().unwrap()); + let b = rectangle(&mut s, [40, 10, 60, 30]); + let inner = group(&mut s, &[a, b]); + s.execute("layer.activate", &json!({"id": destination.0})).unwrap(); + let c = rectangle(&mut s, [70, 10, 90, 30]); + let outer = group(&mut s, &[inner, c]); + // The root is on a surviving layer, but a grandchild references the layer being deleted. + assert_eq!(s.doc().unwrap().doc.item(ItemId(outer)).unwrap().layer, survivor); + s.execute("layer.activate", &json!({"id": survivor.0})).unwrap(); + let p = s.execute("frame.create", &json!({"spread": {"kind": "parent", "index": 0}, "rect": [10, 50, 30, 70]})).unwrap()["id"].as_u64().unwrap(); + s.execute("layer.activate", &json!({"id": source.0})).unwrap(); + let q = s.execute("frame.create", &json!({"spread": {"kind": "parent", "index": 0}, "rect": [40, 50, 60, 70]})).unwrap()["id"].as_u64().unwrap(); + group(&mut s, &[p, q]); + let before = s.doc().unwrap().doc.clone(); + + assert_eq!(s.doc().unwrap().active_layer, source); + + s.execute("layer.merge", &json!({"ids": [source.0], "into": destination.0})).unwrap(); + let merged = s.doc().unwrap().doc.clone(); + assert_remapped(&before, &merged, source, destination); + // Drawing continues on the layer that received the merged objects, not on whichever layer is on top. + assert_eq!(s.doc().unwrap().active_layer, destination); + s.execute("edit.undo", &json!({})).unwrap(); + assert_eq!(s.doc().unwrap().doc, before); + assert!(s.doc().unwrap().doc.layer(s.doc().unwrap().active_layer).is_some(), "Undo leaves a live active layer"); + s.execute("edit.redo", &json!({})).unwrap(); + assert_eq!(s.doc().unwrap().doc, merged); + assert_eq!(s.doc().unwrap().active_layer, destination); + s.execute("object.ungroup", &json!({"ids": [outer]})).unwrap(); + s.execute("object.ungroup", &json!({"ids": [inner]})).unwrap(); + let ungrouped = &s.doc().unwrap().doc; + assert_eq!(ungrouped.item(ItemId(a)).unwrap().layer, survivor); + assert_eq!(ungrouped.item(ItemId(b)).unwrap().layer, destination); + assert_eq!(ungrouped.item(ItemId(c)).unwrap().layer, destination); +} + +#[test] +fn merging_copies_only_containers_that_reference_a_merged_layer() { + let mut s = Session::new(); + s.execute("file.new", &json!({"pages": 2, "facingPages": false})).unwrap(); + let destination = s.doc().unwrap().active_layer; + rectangle(&mut s, [10, 10, 30, 30]); + let text = s.execute("frame.create", &json!({"rect": [10, 50, 200, 300], "content": "text", "text": "Untouched"})).unwrap(); + let (frame, story) = (ItemId(text["id"].as_u64().unwrap()), designcraft_doc::StoryId(text["story"].as_u64().unwrap())); + // An auto-size frame left at a size that doesn't fit its text, as a file can open: an edit that + // needlessly copies its story makes Auto-Size refit it and move artwork on an untouched layer. + s.edit(|d, _| { + if let Some(designcraft_doc::Content::Text(tf)) = d.item_mut(frame).map(|i| &mut i.content) { + tf.options.auto_size = designcraft_doc::AutoSize::HeightOnly; + } + Ok(()) + }) + .unwrap(); + assert!(designcraft_engine::autosize::fitted(&s.doc().unwrap().doc, frame, story).is_some(), "the fixture frame must be stale"); + let source = LayerId(s.execute("layer.new", &json!({"name": "Merge away"})).unwrap()["id"].as_u64().unwrap()); + s.execute("frame.create", &json!({"spread": 1, "rect": [10, 10, 30, 30]})).unwrap(); + let before = s.doc().unwrap().doc.clone(); + + s.execute("layer.merge", &json!({"ids": [source.0], "into": destination.0})).unwrap(); + let after = s.doc().unwrap().doc.clone(); + assert_remapped(&before, &after, source, destination); + // Untouched spreads, parents and stories stay shared with the undo snapshot instead of being deep-copied. + assert!(Arc::ptr_eq(&before.spreads[0], &after.spreads[0])); + assert!(before.parents.iter().zip(&after.parents).all(|(b, a)| Arc::ptr_eq(b, a))); + assert!(before.stories.iter().all(|(id, st)| Arc::ptr_eq(st, &after.stories[id]))); + assert!(!Arc::ptr_eq(&before.spreads[1], &after.spreads[1]), "the spread holding the merged object changes"); + assert_eq!(after.item(frame), before.item(frame), "Auto-Size must not refit a frame the merge didn't touch"); +} + +#[test] +fn merging_remaps_anchored_descendants_in_cells_footnotes_and_endnotes() { + let mut s = new_session(); + let destination = s.doc().unwrap().active_layer; + let host = s.execute("frame.create", &json!({"rect": [10, 100, 200, 220], "content": "text", "text": "Host"})).unwrap(); + let sid = designcraft_doc::StoryId(host["story"].as_u64().unwrap()); + let survivor = LayerId(s.execute("layer.new", &json!({"name": "Keep anchored"})).unwrap()["id"].as_u64().unwrap()); + let a = rectangle(&mut s, [10, 10, 20, 20]); + let source = LayerId(s.execute("layer.new", &json!({"name": "Merge anchored"})).unwrap()["id"].as_u64().unwrap()); + let b = rectangle(&mut s, [30, 10, 40, 20]); + let g = group(&mut s, &[a, b]); + s.execute("anchored.insert", &json!({"ids": [g], "story": sid.0, "pos": 0})).unwrap(); + let cell_item = rectangle(&mut s, [50, 10, 60, 20]); + let footnote_item = rectangle(&mut s, [70, 10, 80, 20]); + let endnote_item = rectangle(&mut s, [90, 10, 100, 20]); + // Construct the same nested story containers used by native import and existing layer tests. + s.edit(|d, _| { + let take = |d: &mut Document, id| { + let it = d.item(ItemId(id)).unwrap().clone(); + Arc::make_mut(&mut d.spreads[0]).items.retain(|i| i.id.0 != id); + AnchoredObject::new(it, Default::default()) + }; + let cell_object = take(d, cell_item); + let footnote_object = take(d, footnote_item); + let endnote_object = take(d, endnote_item); + let mut table = Table::new(d.alloc(), 1, 1, 0, 0, 40.0); + let cell = &mut table.cells[0].text; + cell.insert_object(0, cell_object); + cell.insert_note(cell.len(), "Footnote", Default::default()).unwrap(); + let note: &mut Story = &mut Arc::make_mut(&mut cell.notes[0]).text; + note.insert_object(0, footnote_object); + note.insert_endnote(note.len(), "Endnote", Default::default()).unwrap(); + Arc::make_mut(&mut note.endnotes[0]).text.insert_object(0, endnote_object); + d.story_mut(sid).unwrap().insert_table(0, table); + Ok(()) + }) + .unwrap(); + let before = s.doc().unwrap().doc.clone(); + before.check().unwrap(); + + s.execute("layer.merge", &json!({"ids": [source.0], "into": destination.0})).unwrap(); + let merged = s.doc().unwrap().doc.clone(); + assert_remapped(&before, &merged, source, destination); + assert_eq!(merged.anchored_item(ItemId(a)).unwrap().layer, survivor); + for id in [b, cell_item, footnote_item, endnote_item] { + assert_eq!(merged.anchored_item(ItemId(id)).unwrap().layer, destination); + } + s.execute("edit.undo", &json!({})).unwrap(); + assert_eq!(s.doc().unwrap().doc, before); + s.execute("edit.redo", &json!({})).unwrap(); + assert_eq!(s.doc().unwrap().doc, merged); + let reopened = designcraft_format::load(&designcraft_format::save(&merged).unwrap()).unwrap(); + assert_remapped(&before, &reopened, source, destination); +} diff --git a/crates/engine/tests/it/main.rs b/crates/engine/tests/it/main.rs index f82bc0fe0..770b8bc7b 100644 --- a/crates/engine/tests/it/main.rs +++ b/crates/engine/tests/it/main.rs @@ -11,6 +11,8 @@ mod distribute_locks; mod export_page_input; mod insert_pages_bounds; mod insert_pages_parent; +#[cfg(not(target_arch = "wasm32"))] +mod layer_merge_descendants; mod param_keys; mod pdf_backend; mod preflight_resolution; From cde44fec2f575b53a576886603d3fc2efb62d364 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 23 Nov 2026 09:37:44 -0600 Subject: [PATCH 62/77] PDF: whole-page flattening respects printing and layer export (#3157) --- crates/engine/src/cmd/export/flatten.rs | 10 +- crates/engine/tests/it/main.rs | 2 + .../tests/it/pdf_flatten_print_regressions.rs | 128 ++++++++++++++++++ 3 files changed, 138 insertions(+), 2 deletions(-) create mode 100644 crates/engine/tests/it/pdf_flatten_print_regressions.rs diff --git a/crates/engine/src/cmd/export/flatten.rs b/crates/engine/src/cmd/export/flatten.rs index 730f28b4a..a112beb53 100644 --- a/crates/engine/src/cmd/export/flatten.rs +++ b/crates/engine/src/cmd/export/flatten.rs @@ -58,10 +58,16 @@ pub(super) fn flatten(d: &designcraft_doc::Document, cache: &designcraft_compose if whole { // Parent items involve transparency: every page of the spread as one image. let first = d.first_page_of_spread(si); - let lid = out.default_layer(); + // The page image must survive the PDF layer filter. Layers are listed top first, so + // this is the default (top) layer when it prints, else the top-most printing one. + // The spread's own items and parent items are all removed below, so the layer's + // stacking order can't change what composites. If nothing can print, leave the + // spread alone: the normal export pipeline already emits an empty page. + let Some(lid) = out.layers.iter().find(|layer| designcraft_pdf::layer_exported(layer)).map(|layer| layer.id) else { continue }; + let opts = designcraft_render::RenderOptions { printing_only: true, ..Default::default() }; let mut images = Vec::new(); for (pi, pg) in sp.pages.iter().enumerate() { - if let Some(img) = rr.render_page(d, cache, first + pi, k, false, &Default::default()) { + if let Some(img) = rr.render_page(d, cache, first + pi, k, false, &opts) { images.push((pg.bounds(), img)); } } diff --git a/crates/engine/tests/it/main.rs b/crates/engine/tests/it/main.rs index 770b8bc7b..570fdf7da 100644 --- a/crates/engine/tests/it/main.rs +++ b/crates/engine/tests/it/main.rs @@ -15,6 +15,8 @@ mod insert_pages_parent; mod layer_merge_descendants; mod param_keys; mod pdf_backend; +#[cfg(not(target_arch = "wasm32"))] +mod pdf_flatten_print_regressions; mod preflight_resolution; mod primary_frame_columns; #[cfg(not(target_arch = "wasm32"))] diff --git a/crates/engine/tests/it/pdf_flatten_print_regressions.rs b/crates/engine/tests/it/pdf_flatten_print_regressions.rs new file mode 100644 index 000000000..e1ae2d437 --- /dev/null +++ b/crates/engine/tests/it/pdf_flatten_print_regressions.rs @@ -0,0 +1,128 @@ +//! Original synthetic artwork; no external fixtures or fonts are required. +//! These tests read exported PDFs back to pixels, rather than trusting the export warning. +//! PDF encode/readback can exceed the usual integration-test budget; pages stay at 240×240. + +use std::sync::Arc; + +use designcraft_engine::{Session, cmd::base64_decode}; +use serde_json::json; + +fn artwork(parent: bool) -> Session { + let mut s = Session::new(); + s.execute("file.new", &json!({"pages": 1, "facingPages": false, "width": 240, "height": 240})).unwrap(); + rectangle(&mut s, false, [30, 100, 150, 200]); + if parent { + let parent = s.doc().unwrap().doc.parents[0].id.0; + s.execute("layout.pages.applyParent", &json!({"pages": [0], "parent": parent})).unwrap(); + rectangle(&mut s, true, [30, 30, 90, 70]); + s.execute("object.opacity", &json!({"opacity": 0.5})).unwrap(); + } + s +} + +fn rectangle(s: &mut Session, parent: bool, rect: [u32; 4]) { + let spread = if parent { json!({"kind": "parent", "index": 0}) } else { json!({"kind": "doc", "index": 0}) }; + s.execute("frame.create", &json!({"spread": spread, "rect": rect, "content": "unassigned"})).unwrap(); + s.execute("object.fill", &json!({"swatch": "[Black]"})).unwrap(); +} + +fn layer(s: &mut Session, name: &str) -> u64 { + s.execute("layer.new", &json!({"name": name})).unwrap()["id"].as_u64().unwrap() +} + +// Read premultiplied PDF pixels on white, as for the operated PDF-readback evidence. +fn exported(s: &mut Session, flatten: bool) -> Vec<[u8; 3]> { + let before = s.doc().unwrap().clone(); + let document_before = serde_json::to_value(&before.doc).unwrap(); + let selection_before = serde_json::to_value(&before.selection).unwrap(); + let out = s.execute("file.exportPdf", &json!({"flatten": if flatten { json!("low") } else { json!(false) }})).unwrap(); + let after = s.doc().unwrap(); + assert!(Arc::ptr_eq(&before.doc, &after.doc), "export must keep the source document allocation"); + assert_eq!(document_before, serde_json::to_value(&after.doc).unwrap(), "export must preserve all source artwork and layer settings"); + assert_eq!(selection_before, serde_json::to_value(&after.selection).unwrap()); + assert_eq!(before.active_layer, after.active_layer); + assert_eq!(before.history.undo.len(), after.history.undo.len()); + assert_eq!(before.history.redo.len(), after.history.redo.len()); + assert_eq!(before.is_dirty(), after.is_dirty()); + let bytes = base64_decode(out["base64"].as_str().unwrap()); + let image = designcraft_render::render_pdf_page(&bytes, 0, 240).expect("read back the actual exported PDF"); + image + .data() + .iter() + .map(|p| { + let white = 255 - p.a; + [p.r.saturating_add(white), p.g.saturating_add(white), p.b.saturating_add(white)] + }) + .collect() +} + +// Separate exports are compared by appearance, not byte-for-byte: allow a few pixels of +// rasteriser or encoder drift, far fewer than any of the rectangles drawn here covers. +fn assert_same_print(a: &[[u8; 3]], b: &[[u8; 3]], what: &str) { + assert_eq!(a.len(), b.len(), "{what}"); + let differing = a.iter().zip(b).filter(|(p, q)| p.iter().zip(q.iter()).any(|(x, y)| x.abs_diff(*y) > 32)).count(); + assert!(differing <= a.len() / 200, "{what}: {differing} pixels differ"); +} + +fn dark(image: &[[u8; 3]], rect: [usize; 4]) -> usize { + let [x0, y0, x1, y1] = rect; + (y0..y1).flat_map(|y| (x0..x1).map(move |x| image[y * 240 + x])).filter(|p| p.iter().any(|c| *c < 220)).count() +} + +#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)] +#[cfg_attr(not(target_arch = "wasm32"), test)] +fn transparent_parent_artwork_survives_empty_nonprinting_and_hidden_top_layers() { + let mut s = artwork(true); + let baseline = exported(&mut s, true); + assert!(dark(&baseline, [40, 110, 140, 190]) > 0, "printable page artwork must be visible"); + assert!(dark(&baseline, [40, 40, 80, 60]) > 0, "the applied transparent parent must print too"); + let notes = layer(&mut s, "Notes"); + s.execute("layer.set", &json!({"id": notes, "printable": false})).unwrap(); + assert_same_print(&exported(&mut s, true), &baseline, "an empty nonprinting top layer must not blank the PDF"); + let hidden = layer(&mut s, "Hidden printable layer"); + s.execute("layer.set", &json!({"id": hidden, "visible": false})).unwrap(); + assert_same_print(&exported(&mut s, true), &baseline, "the raster destination must also be visible"); +} + +#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)] +#[cfg_attr(not(target_arch = "wasm32"), test)] +fn whole_page_flattening_does_not_bake_nonprinting_page_or_parent_notes_into_pdf() { + let mut s = artwork(true); + let baseline = exported(&mut s, true); + let notes = layer(&mut s, "Notes"); + rectangle(&mut s, false, [170, 170, 220, 220]); + rectangle(&mut s, true, [170, 30, 220, 70]); + s.execute("layer.set", &json!({"id": notes, "printable": false})).unwrap(); + // Keep the original destination printable, so the separate blank-output defect cannot + // hide a leak from the raster-input filter. + layer(&mut s, "Printable output"); + let excluded = exported(&mut s, true); + assert_same_print(&excluded, &baseline, "nonprinting Notes must not be baked into the exported image"); + assert_eq!(dark(&excluded, [180, 180, 210, 210]) + dark(&excluded, [180, 40, 210, 60]), 0, "no page or parent Notes ink"); + s.execute("layer.set", &json!({"id": notes, "printable": true})).unwrap(); + let printed = exported(&mut s, true); + assert!(dark(&printed, [180, 180, 210, 210]) > dark(&excluded, [180, 180, 210, 210]), "the page Notes control must be detectable when printable"); + assert!(dark(&printed, [180, 40, 210, 60]) > dark(&excluded, [180, 40, 210, 60]), "the parent Notes control must be detectable when printable"); +} + +#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)] +#[cfg_attr(not(target_arch = "wasm32"), test)] +fn a_document_without_an_exportable_layer_stays_blank_with_or_without_flattening() { + let mut s = artwork(true); + let original = s.doc().unwrap().doc.layers[0].id.0; + s.execute("layer.set", &json!({"id": original, "printable": false})).unwrap(); + let hidden = layer(&mut s, "Hidden printable layer"); + s.execute("layer.set", &json!({"id": hidden, "visible": false})).unwrap(); + let ordinary = exported(&mut s, false); + assert_eq!(dark(&ordinary, [0, 0, 240, 240]), 0, "the ordinary print pipeline excludes both layers"); + assert_eq!(dark(&exported(&mut s, true), [0, 0, 240, 240]), 0, "flattening must not make any excluded content printable"); +} + +#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)] +#[cfg_attr(not(target_arch = "wasm32"), test)] +fn ordinary_printable_artwork_keeps_its_pdf_appearance_when_flattening_is_requested() { + let mut s = artwork(false); + let ordinary = exported(&mut s, false); + assert!(dark(&ordinary, [40, 110, 140, 190]) > 0); + assert_same_print(&exported(&mut s, true), &ordinary, "opaque artwork needs no flattening and must keep printing"); +} From bbd4b337e2cd38591128f8188b81afcf78c723c8 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 23 Nov 2026 09:38:17 -0600 Subject: [PATCH 63/77] Edit: cutting an object clears an earlier text copy (#3158) --- crates/engine/src/cmd/edit.rs | 14 ++- .../cmd/edit/object_cut_clipboard_tests.rs | 91 +++++++++++++++++++ crates/ui-egui/src/menus/tests.rs | 50 ++++++++++ 3 files changed, 151 insertions(+), 4 deletions(-) create mode 100644 crates/engine/src/cmd/edit/object_cut_clipboard_tests.rs diff --git a/crates/engine/src/cmd/edit.rs b/crates/engine/src/cmd/edit.rs index 9b2ac1a1c..451a69143 100644 --- a/crates/engine/src/cmd/edit.rs +++ b/crates/engine/src/cmd/edit.rs @@ -451,11 +451,15 @@ pub fn specs() -> Vec { } copy_items(s)?; // The whole objects are on the clipboard, so the whole objects go, not just selected points. - if p.get("ids").is_none() { + let result = if p.get("ids").is_none() { let ids: Vec = s.doc()?.selection.items.iter().map(|i| i.0).collect(); - return s.execute("edit.clear", &json!({"ids": ids})); - } - s.execute("edit.clear", p) + s.execute("edit.clear", &json!({"ids": ids})) + } else { + s.execute("edit.clear", p) + }?; + // Only a successful object Cut replaces the earlier formatted text copy. + s.text_clipboard = None; + Ok(result) }), cmd!( "edit.pasteWithoutFormatting", @@ -669,6 +673,8 @@ fn graphic_alone(frame: &designcraft_doc::Item, g: &designcraft_doc::Graphic, pa it } +#[cfg(test)] +mod object_cut_clipboard_tests; #[cfg(test)] mod text_clipboard_tests; diff --git a/crates/engine/src/cmd/edit/object_cut_clipboard_tests.rs b/crates/engine/src/cmd/edit/object_cut_clipboard_tests.rs new file mode 100644 index 000000000..4f519f087 --- /dev/null +++ b/crates/engine/src/cmd/edit/object_cut_clipboard_tests.rs @@ -0,0 +1,91 @@ +use designcraft_doc::{ItemId, OBJECT_MARK, StoryId}; +use serde_json::json; + +use crate::Session; + +fn text_frame(s: &mut Session, text: &str) -> StoryId { + let r = s.execute("frame.create", &json!({"rect": [36, 36, 236, 136], "content": "text", "text": text})).unwrap(); + StoryId(r["story"].as_u64().unwrap()) +} + +fn copy_formatted_text(s: &mut Session) -> StoryId { + let source = text_frame(s, "old text"); + let len = s.doc().unwrap().doc.story(source).unwrap().len(); + s.execute("text.select", &json!({"story": source.0, "anchor": 0, "focus": len})).unwrap(); + s.execute("type.bold", &json!({})).unwrap(); + s.execute("edit.copy", &json!({})).unwrap(); + source +} + +#[test] +fn object_cut_replaces_old_text_copy_at_a_body_caret_and_survives_undo_redo() { + let mut s = Session::new(); + s.execute("file.new", &json!({})).unwrap(); + let source = copy_formatted_text(&mut s); + let target = text_frame(&mut s, "target"); + let cut = s.execute("frame.create", &json!({"rect": [36, 200, 86, 260]})).unwrap()["id"].as_u64().unwrap(); + s.execute("selection.set", &json!({"ids": [cut]})).unwrap(); + let before_cut = s.doc().unwrap().doc.clone(); + let original = before_cut.item(ItemId(cut)).unwrap(); + let bounds = original.bounds(); + s.execute("edit.cut", &json!({})).unwrap(); + let after_cut = s.doc().unwrap().doc.clone(); + assert!(after_cut.item(ItemId(cut)).is_none()); + s.execute("edit.undo", &json!({})).unwrap(); + assert_eq!(s.doc().unwrap().doc, before_cut); + s.execute("edit.redo", &json!({})).unwrap(); + assert_eq!(s.doc().unwrap().doc, after_cut); + + s.execute("text.select", &json!({"story": target.0, "anchor": 0, "focus": 0})).unwrap(); + // Native Paste removes its unchanged U+FFFC clipboard marker before engine execution. + s.execute("edit.paste", &json!({})).unwrap(); + let after_paste = s.doc().unwrap().doc.clone(); + let list = s.execute("anchored.list", &json!({"story": target.0})).unwrap(); + let anchors = list.as_array().unwrap(); + assert_eq!(anchors.len(), 1, "Cut must paste the shape, not the earlier text copy"); + let pos = anchors[0]["pos"].as_u64().unwrap() as usize; + let body = after_paste.story(target).unwrap(); + let anchored = body.object_at(pos).unwrap(); + assert_eq!(body.text, format!("{OBJECT_MARK}{}", after_cut.story(target).unwrap().text)); + assert!((anchored.size().0 - bounds.width()).abs() < 1e-6); + assert!((anchored.size().1 - bounds.height()).abs() < 1e-6); + assert_eq!(anchored.item.path, original.path); + assert_eq!(anchored.item.content, original.content); + assert_ne!(anchored.item.id, original.id, "Paste allocates a fresh anchored identity"); + assert_eq!(after_paste.story(source), before_cut.story(source)); + after_paste.check().unwrap(); + + s.execute("edit.undo", &json!({})).unwrap(); + assert_eq!(s.doc().unwrap().doc, after_cut); + s.execute("edit.redo", &json!({})).unwrap(); + assert_eq!(s.doc().unwrap().doc, after_paste); +} + +#[test] +fn rejected_object_cut_keeps_the_previous_formatted_text_copy_and_redo() { + let mut s = Session::new(); + s.execute("file.new", &json!({})).unwrap(); + let source = copy_formatted_text(&mut s); + let target = text_frame(&mut s, "target"); + s.execute("frame.create", &json!({"rect": [36, 200, 86, 260]})).unwrap(); + s.execute("edit.undo", &json!({})).unwrap(); + s.execute("edit.deselectAll", &json!({})).unwrap(); + let before = s.doc().unwrap().doc.clone(); + let selection = s.doc().unwrap().selection.clone(); + let history = s.execute("document.history", &json!({})).unwrap(); + assert!(!history["redo"].as_array().unwrap().is_empty()); + assert!(s.execute("edit.cut", &json!({})).is_err()); + assert_eq!(s.doc().unwrap().doc, before); + assert_eq!(s.doc().unwrap().selection, selection); + assert_eq!(s.execute("document.history", &json!({})).unwrap(), history); + + s.execute("text.select", &json!({"story": target.0, "anchor": 0, "focus": 0})).unwrap(); + s.execute("edit.paste", &json!({})).unwrap(); + let d = &s.doc().unwrap().doc; + let copied = before.story(source).unwrap(); + let pasted = d.story(target).unwrap(); + assert_eq!(pasted.text, format!("{}{}", copied.text, before.story(target).unwrap().text)); + assert_eq!(pasted.char_format_at(1), copied.char_format_at(1)); + assert!(pasted.objects.is_empty()); + d.check().unwrap(); +} diff --git a/crates/ui-egui/src/menus/tests.rs b/crates/ui-egui/src/menus/tests.rs index fd5a1a876..8c35eb574 100644 --- a/crates/ui-egui/src/menus/tests.rs +++ b/crates/ui-egui/src/menus/tests.rs @@ -1975,6 +1975,56 @@ fn copy_and_paste_keys_work_for_objects_without_a_native_menu() { assert!(text.contains(designcraft_doc::OBJECT_MARK), "{text:?}"); } +/// Cutting an object after copying text must leave the object's placeholder on the system +/// clipboard, as copying one does, so Paste at a caret anchors the object, not the older text. +#[test] +fn cutting_an_object_after_copying_text_pastes_the_object_at_a_caret_without_a_native_menu() { + let mut app = crate::DesignApp::new(designcraft_engine::Session::new(), crate::Services::default()); + app.session.execute("file.new", &json!({})).unwrap(); + let ctx = egui::Context::default(); + let frame = |app: &mut crate::DesignApp, events: Vec| { + let input = egui::RawInput { + screen_rect: Some(egui::Rect::from_min_size(egui::Pos2::ZERO, egui::vec2(1400.0, 900.0))), + events, + ..Default::default() + }; + let mut out = ctx.run_ui(input, |ui| { + app.logic(&ui.ctx().clone()); + app.ui(ui); + }); + out.textures_delta.clear(); + out.platform_output.commands + }; + let copied_text = |commands: Vec| { + commands.into_iter().find_map(|c| match c { + egui::OutputCommand::CopyText(t) => Some(t), + _ => None, + }) + }; + frame(&mut app, vec![]); + frame(&mut app, vec![]); + let source = app.session.execute("frame.create", &json!({"rect": [72, 72, 300, 160], "content": "text", "text": "old text"})).unwrap(); + let source = source["story"].as_u64().unwrap(); + let target = app.session.execute("frame.create", &json!({"rect": [72, 300, 400, 400], "content": "text", "text": "target"})).unwrap(); + let target = designcraft_doc::StoryId(target["story"].as_u64().unwrap()); + app.session.execute("text.select", &json!({"story": source, "anchor": 0, "focus": 8})).unwrap(); + frame(&mut app, vec![egui::Event::Copy]); + let rect = app.session.execute("frame.create", &json!({"rect": [72, 420, 122, 470]})).unwrap()["id"].as_u64().unwrap(); + app.session.execute("selection.set", &json!({"ids": [rect]})).unwrap(); + let cut = copied_text(frame(&mut app, vec![egui::Event::Cut])).expect("cutting objects puts their placeholder on the system clipboard"); + assert_ne!(cut, "old text", "the system clipboard no longer holds the earlier text copy"); + assert!(app.session.active().unwrap().doc.item(designcraft_doc::ItemId(rect)).is_none(), "the rectangle was cut"); + app.session.execute("tool.select", &json!({"tool": "type"})).unwrap(); + app.session.execute("text.select", &json!({"story": target.0, "anchor": 0, "focus": 0})).unwrap(); + frame(&mut app, vec![egui::Event::Paste(cut)]); + let d = app.session.active().unwrap(); + let story = d.doc.story(target).unwrap(); + assert_eq!(story.objects.len(), 1, "the cut rectangle is anchored: {:?}", story.text); + assert!(story.text.contains(designcraft_doc::OBJECT_MARK) && story.text.ends_with("target"), "{:?}", story.text); + assert!(!story.text.contains("old text"), "{:?}", story.text); + d.doc.check().unwrap(); +} + #[test] fn paste_with_no_insertion_point_makes_a_text_frame_from_other_apps_text() { // #518: text copied in another app pastes as a new, selected text frame; the text an From 211b6675942e9dada1a73ce7120fea25e8a36a38 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 23 Nov 2026 09:39:36 -0600 Subject: [PATCH 64/77] Text: validate explicit targets before reading or editing a story (#1809) * Text: validate explicit story targets before selection fallback * Text: allow explicit story targets without a selection * Text: allow explicit targets with an empty selection --------- Co-authored-by: sky Co-authored-by: skylartaylor --- ROADMAP.md | 4 + crates/engine/src/cmd.rs | 28 ++ crates/engine/src/cmd/export/formats.rs | 2 +- crates/engine/src/cmd/text.rs | 9 +- crates/engine/src/cmd/text/caret.rs | 54 +++ crates/engine/src/cmd/text/edit.rs | 29 +- crates/engine/src/cmd/text/target_tests.rs | 391 +++++++++++++++++++++ crates/engine/src/lib.rs | 8 + crates/engine/src/tests.rs | 14 +- docs/control-protocol.md | 6 + 10 files changed, 525 insertions(+), 20 deletions(-) create mode 100644 crates/engine/src/cmd/text/target_tests.rs diff --git a/ROADMAP.md b/ROADMAP.md index 6f1735a5e..4b7a8cd02 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -14,6 +14,10 @@ DesignCraft aims at full Adobe InDesign parity — and to be better: faster, open (documented JSON format + IDML), scriptable by agents (MCP), and available on the web. +- **2026-11-15** · Story targets are checked before they are used: `story.setDirection`, `story.get`, + `type.fillWithPlaceholder` and `file.exportText` refuse a `story` or `frame` the document doesn't have instead + of acting on the selected frame's story, so an edit can no longer land on the wrong story and an export cannot + write another story's text. No readiness percentage change. - **2026-11-14** · Files placed from disk are linked instead of embedded: the document keeps a 1024 px proxy and a content hash, opens without reading the originals, and shows link status OK, Modified or Missing, with Update, Relink, Embed and Unembed (native format 5; old embedded documents migrate on save). Several images load into one place cursor, a grid or a contact sheet; see [linked-artwork.md](docs/linked-artwork.md) and [multi-image-placement.md](docs/multi-image-placement.md). No readiness percentage change. - **2026-11-06** · Automation roots refuse `COM¹` to `LPT³` and a device name before a colon (`COM1:`, `NUL:x`). A batch-export layout of that name is written with a leading `_` on every platform. No readiness percentage change. - **2026-10-30** · Document Fonts lookup treats a bare document filename's empty parent as the current directory (#2014), preserving case-insensitive discovery and automation read-root checks. No readiness percentage change. diff --git a/crates/engine/src/cmd.rs b/crates/engine/src/cmd.rs index 8187594ab..e88c83355 100644 --- a/crates/engine/src/cmd.rs +++ b/crates/engine/src/cmd.rs @@ -243,6 +243,8 @@ pub fn command_specs() -> &'static [CommandSpec] { v.extend(datamerge::specs()); v.extend(interactive::specs()); v.extend(preflight::specs()); + #[cfg(test)] + v.extend(test_support::specs()); v }) } @@ -396,3 +398,29 @@ pub use layout::chapter_numbering; pub use paste_image::{IMAGE_EXTENSIONS, MAX_PASTED_PIXELS, PASTED_IMAGE_NAME, check_pasted_base64, check_pasted_size, pasted_pixels, pasted_png}; pub use paste_svg::is_svg_markup; pub(crate) use place_text::autoflow as place_text_autoflow; + +/// Test-only commands: scaffolding the engine's own tests need, never in a shipped build or in another +/// crate's tests (this module is `#[cfg(test)]`, and `cfg(test)` is not set for a dependency build). +#[cfg(test)] +mod test_support { + use serde_json::json; + + use super::*; + + /// A command that changes the document and then fails, which no shipping command does any more: + /// the engine checks what a failed command leaves behind (one undo step with its own label). + pub(super) fn specs() -> Vec { + vec![cmd!( + "test.nestedFailure", + "Nested Failure", + [], + None, + "{ids} — turns the frames into text frames, then fails", + has_selection, + |s, p| { + s.execute("object.content", &with_param(p, "type", json!("text")))?; + Err(bad("test.nestedFailure", "it fails after the command it ran")) + } + )] + } +} diff --git a/crates/engine/src/cmd/export/formats.rs b/crates/engine/src/cmd/export/formats.rs index 2f9d9f88e..8828f006c 100644 --- a/crates/engine/src/cmd/export/formats.rs +++ b/crates/engine/src/cmd/export/formats.rs @@ -152,7 +152,7 @@ pub(super) fn has_story_target(s: &Session) -> std::result::Result<(), String> { pub(super) fn export_text(s: &mut Session, p: &Value) -> Result { const ID: &str = "file.exportText"; - let sid = crate::cmd::text::story_of(s, p).ok_or_else(|| bad(ID, "edit text or select a text frame"))?; + let sid = crate::cmd::text::validated_story_of(s, p, ID)?.ok_or_else(|| bad(ID, "edit text or select a text frame"))?; let doc = &s.doc()?.doc; let story = doc.stories.get(&sid).ok_or_else(|| bad(ID, format!("no story {}", sid.0)))?; let path = str_param(p, "path"); diff --git a/crates/engine/src/cmd/text.rs b/crates/engine/src/cmd/text.rs index 813de0959..3399fea0e 100644 --- a/crates/engine/src/cmd/text.rs +++ b/crates/engine/src/cmd/text.rs @@ -17,9 +17,9 @@ mod opentype; mod story; use asian::{auto_tcy_cmd, grid_settings_cmd, kenten_cmd, ruby_cmd, shatai_cmd, warichu_cmd}; -pub(crate) use caret::story_of; use caret::{move_caret, para_bounds, place, release, select_around, select_at, sentence_bounds}; pub use caret::{next_char, next_word, prev_char, prev_word}; +pub(crate) use caret::{story_of, validated_story_of}; pub(crate) use edit::delete_selection; pub use edit::{PLACEHOLDER, quote_marks}; use edit::{change_case, delete, delete_surrounding, fill_placeholder, insert}; @@ -126,7 +126,7 @@ pub fn specs() -> Vec { "{story?, frame?: a text frame of the story, direction: leftToRight|rightToLeft} — column progression, independent of paragraph direction", has_doc, |s, p| { - let sid = story_of(s, p).ok_or_else(|| bad("story.setDirection", "no story"))?; + let sid = validated_story_of(s, p, "story.setDirection")?.ok_or_else(|| bad("story.setDirection", "no story"))?; let direction: designcraft_doc::TextDirection = serde_json::from_value(p.get("direction").cloned().ok_or_else(|| bad("story.setDirection", "missing direction"))?) .map_err(|e| bad("story.setDirection", e.to_string()))?; @@ -199,7 +199,7 @@ pub fn specs() -> Vec { ), cmd!(query "story.get", "Get Story", [], None, "{story? | frame?} → text, frames, paragraphs, vertical, lines, overset (the UTF-8 byte offset into `text` where it stops fitting its frames, not a character index, null when it all fits) and oversetChars (how many characters that leaves, as preflight reports them)", has_doc, |s, p| { let st = s.doc()?; - let sid = story_of(s, p).ok_or_else(|| bad("story.get", "no story"))?; + let sid = validated_story_of(s, p, "story.get")?.ok_or_else(|| bad("story.get", "no story"))?; let mut v = st.doc.story_summary(sid).ok_or(designcraft_doc::DocError::NoStory(sid))?; let cs = s.cache.get(&st.doc, sid, None); // `overset` is where the text stops fitting, not how much is left over: the two were @@ -608,3 +608,6 @@ mod alignment_shortcut_tests { assert_eq!(story_aligns(&s.doc().unwrap().doc, "Spring"), [Align::FullyJustified, Align::Left]); } } + +#[cfg(test)] +mod target_tests; diff --git a/crates/engine/src/cmd/text/caret.rs b/crates/engine/src/cmd/text/caret.rs index 29fa08cdc..7b2aeb5ce 100644 --- a/crates/engine/src/cmd/text/caret.rs +++ b/crates/engine/src/cmd/text/caret.rs @@ -15,6 +15,60 @@ pub(crate) fn story_of(s: &Session, p: &Value) -> Option { st.selection.text.map(|t| t.story) } +/// What a command that reads or edits a story was told to act on. +pub(crate) enum StoryTarget { + /// A story: named directly, or the story of a frame that holds text. + Story(StoryId), + /// An explicit frame that holds no text yet. Only Fill with Placeholder Text converts it. + TextlessFrame(ItemId), +} + +/// The `story` id `p` gives `cmd`, checked: it must be an unsigned integer naming a story. +/// +/// Ids come from callers and are hostile, and a target the document doesn't have is an error +/// rather than a quiet fall back to the selection, which read or edited another story (#1809). +fn explicit_story(doc: &designcraft_doc::Document, p: &Value, cmd: &str) -> Result> { + let Some(value) = p.get("story").filter(|v| !v.is_null()) else { return Ok(None) }; + let id = value.as_u64().ok_or_else(|| bad(cmd, "`story` must be an unsigned integer"))?; + let sid = StoryId(id); + if doc.story(sid).is_none() { + return Err(bad(cmd, format!("no such story {id}"))); + } + Ok(Some(sid)) +} + +/// The `frame` id `p` gives `cmd`, checked the same way, and what it holds: the story of a frame +/// that has text, or the frame itself when it has none. +fn explicit_frame(doc: &designcraft_doc::Document, p: &Value, cmd: &str) -> Result> { + let Some(value) = p.get("frame").filter(|v| !v.is_null()) else { return Ok(None) }; + let id = value.as_u64().ok_or_else(|| bad(cmd, "`frame` must be an unsigned integer"))?; + let item = doc.item(ItemId(id)).ok_or_else(|| bad(cmd, format!("no such frame {id}")))?; + Ok(Some(match item.text_frame() { + Some(t) => StoryTarget::Story(t.story), + None => StoryTarget::TextlessFrame(ItemId(id)), + })) +} + +/// The target `p` names for `cmd`, or `None` when it names neither and the selection decides. Both +/// ids are checked when both are given, even though `story` wins. +pub(crate) fn story_target(s: &Session, p: &Value, cmd: &str) -> Result> { + let doc = &s.doc()?.doc; + let story = explicit_story(doc, p, cmd)?; + let frame = explicit_frame(doc, p, cmd)?; + Ok(story.map(StoryTarget::Story).or(frame)) +} + +/// The story `cmd` acts on, from [`story_target`] or the selection. A frame that holds no text is +/// refused: only Fill with Placeholder Text converts one. +pub(crate) fn validated_story_of(s: &Session, p: &Value, cmd: &str) -> Result> { + let doc = &s.doc()?.doc; + explicit_story(doc, p, cmd)?; + if let Some(StoryTarget::TextlessFrame(fid)) = explicit_frame(doc, p, cmd)? { + return Err(bad(cmd, format!("frame {} holds no text", fid.0))); + } + Ok(story_of(s, p)) +} + /// Story byte at spread point `pt` in text frame `frame` (in a table cell's story when the point is in a cell). fn hit_byte(s: &Session, frame: ItemId, pt: Point) -> Option<(StoryId, usize, Option)> { hit_byte_with(s, frame, pt, compose::hit) diff --git a/crates/engine/src/cmd/text/edit.rs b/crates/engine/src/cmd/text/edit.rs index b8efeaf01..a2e481699 100644 --- a/crates/engine/src/cmd/text/edit.rs +++ b/crates/engine/src/cmd/text/edit.rs @@ -1,6 +1,6 @@ -use super::caret::{next_char, next_word, prev_char, prev_word, story_of}; +use super::caret::{StoryTarget, next_char, next_word, prev_char, prev_word, story_of, story_target}; use super::format::{apply_typing_format, format_targets, typing_format}; -use super::{Result, Session, TextSel, Value, bad, bool_or, compose, floor_char_boundary, id_param, json, ok, str_param}; +use super::{Result, Session, TextSel, Value, bad, bool_or, compose, floor_char_boundary, json, ok, str_param}; #[cfg(test)] use designcraft_doc::StoryId; @@ -381,15 +381,26 @@ dum sidera fulgent tacito per inane meatu. Arbore sub magna ludunt pueri, linquu Iamque tibi rursus ponet nova carmina vates, et longas umbras quaerit sub tegmine fagi. Omnia mutantur, nihil interit."; pub(super) fn fill_placeholder(s: &mut Session, p: &Value) -> Result { - let st = s.doc()?; - let frame = id_param(p, "frame").or_else(|| st.selection.items.first().copied()).or_else(|| st.selection.text.and_then(|t| t.frame)); - let sid = match frame.and_then(|f| st.doc.item(f)).and_then(|i| i.text_frame()) { - Some(t) => t.story, - None => { - if let Some(f) = frame { + const CMD: &str = "type.fillWithPlaceholder"; + // Every explicit id is checked before a frame is converted or a story filled (#1809). + let sid = match story_target(s, p, CMD)? { + Some(StoryTarget::Story(sid)) => sid, + target => { + // The frame the call names, else the selected frame: that order has always decided which + // story this command fills. A caret names no frame, only the story its text is in. + let frame = match target { + Some(StoryTarget::TextlessFrame(fid)) => Some(fid), + _ => { + let st = s.doc()?; + st.selection.items.first().copied().or_else(|| st.selection.text.and_then(|t| t.frame)) + } + }; + if let Some(f) = frame + && s.doc()?.doc.item(f).and_then(|i| i.text_frame()).is_none() + { s.execute("object.content", &json!({"ids": [f.0], "type": "text"}))?; } - story_of(s, p).ok_or_else(|| bad("type.fillWithPlaceholder", "select a text frame"))? + story_of(s, p).ok_or_else(|| bad(CMD, "select a text frame"))? } }; // Fill until overset with paragraphs of two to five sentences, as InDesign's placeholder text diff --git a/crates/engine/src/cmd/text/target_tests.rs b/crates/engine/src/cmd/text/target_tests.rs new file mode 100644 index 000000000..f7d1bed51 --- /dev/null +++ b/crates/engine/src/cmd/text/target_tests.rs @@ -0,0 +1,391 @@ +//! What `story.get`, `story.setDirection`, `type.fillWithPlaceholder` and `file.exportText` act on +//! when they are given a `story` or `frame` (#1809). An explicit id the document doesn't have is an +//! error: it used to fall back to the selection, so an edit landed on one story and an export wrote +//! another story's text. + +use designcraft_doc::{ItemId, StoryId}; +use serde_json::{Value, json}; + +use crate::Session; + +/// The commands that take an explicit story target. +const COMMANDS: [&str; 4] = ["file.exportText", "story.get", "story.setDirection", "type.fillWithPlaceholder"]; + +/// `p` with what a command needs to act on a story rather than only to report it. +fn acting(command: &str, mut p: Value) -> Value { + if command == "story.setDirection" { + p["direction"] = json!("rightToLeft"); + } + p +} + +/// Two stories on one page. `selected` (its text is "Selected") is selected, `other` ("Explicit") +/// is not, so a target that falls back to the selection shows. +struct Stories { + s: Session, + selected: Value, + other: Value, +} + +fn two_stories() -> Stories { + let mut s = Session::new(); + s.execute("file.new", &json!({})).unwrap(); + let selected = s.execute("frame.create", &json!({"rect": [0, 0, 300, 200], "content": "text", "text": "Selected"})).unwrap(); + let other = s.execute("frame.create", &json!({"rect": [0, 300, 300, 500], "content": "text", "text": "Explicit"})).unwrap(); + s.execute("selection.set", &json!({"ids": [selected["id"]]})).unwrap(); + Stories { s, selected, other } +} + +/// The first few characters of `text`, for an assertion message that a whole filler text would swamp. +fn start(text: &str) -> String { + text.chars().take(40).collect() +} + +/// The text of the story `frame` names. +fn story_text(s: &Session, frame: &Value) -> String { + let sid = StoryId(frame["story"].as_u64().unwrap()); + s.doc().unwrap().doc.story(sid).unwrap().text.clone() +} + +#[test] +fn a_target_the_document_does_not_have_is_an_error_not_the_selection() { + for command in COMMANDS { + let d = two_stories(); + let cases = [ + (json!({"story": 999999u64}), "no such story 999999"), + (json!({"frame": 999999u64}), "no such frame 999999"), + (json!({"story": d.selected["story"].clone(), "frame": 999999u64}), "no such frame 999999"), + (json!({"story": 999999u64, "frame": d.selected["id"].clone()}), "no such story 999999"), + ]; + let mut s = d.s; + for (p, message) in cases { + let before = s.doc().unwrap().doc.clone(); + let steps = s.doc().unwrap().history.undo.len(); + let error = s.execute(command, &acting(command, p.clone())).unwrap_err(); + assert!(error.to_string().contains(message), "{command} {p}: {error}"); + assert_eq!(s.doc().unwrap().doc, before, "{command} {p} acted on a story anyway"); + assert_eq!(s.doc().unwrap().history.undo.len(), steps, "{command} {p} left an undo step"); + } + } +} + +#[test] +fn a_target_that_is_not_an_unsigned_integer_is_an_error_not_the_selection() { + let not_ids = [json!("1"), json!("invalid"), json!(-1), json!(1.0), json!(1.5), json!(true), json!({}), json!([])]; + for command in COMMANDS { + for key in ["story", "frame"] { + let d = two_stories(); + let mut s = d.s; + for not_id in ¬_ids { + // Alone, and beside the other target the command could quietly use instead. + let usable = json!({"story": d.selected["story"].clone(), "frame": d.other["id"].clone()}); + for mut p in [json!({}), usable] { + p[key] = not_id.clone(); + let before = s.doc().unwrap().doc.clone(); + let steps = s.doc().unwrap().history.undo.len(); + let error = s.execute(command, &acting(command, p.clone())).unwrap_err(); + assert!(matches!(error, crate::EngineError::BadParams { .. }), "{command} {p}: {error}"); + let message = format!("`{key}` must be an unsigned integer"); + assert!(error.to_string().contains(&message), "{command} {p}: {error}"); + assert_eq!(s.doc().unwrap().doc, before, "{command} {p} acted on a story anyway"); + assert_eq!(s.doc().unwrap().history.undo.len(), steps, "{command} {p} left an undo step"); + } + } + } + } +} + +#[test] +fn an_explicit_target_wins_and_a_null_or_absent_one_uses_the_selection() { + for command in COMMANDS { + for case in ["story", "frame", "both", "null-story", "null-frame", "nulls", "absent"] { + let d = two_stories(); + let mut s = d.s; + let p = match case { + "story" => json!({"story": d.other["story"]}), + "frame" => json!({"frame": d.other["id"]}), + "both" => json!({"story": d.other["story"], "frame": d.selected["id"]}), + "null-story" => json!({"story": null, "frame": d.other["id"]}), + "null-frame" => json!({"story": d.other["story"], "frame": null}), + "nulls" => json!({"story": null, "frame": null}), + _ => json!({}), + }; + let explicit = !matches!(case, "nulls" | "absent"); + let (target, untouched) = if explicit { (&d.other, &d.selected) } else { (&d.selected, &d.other) }; + let untouched_before = s.doc().unwrap().doc.story(StoryId(untouched["story"].as_u64().unwrap())).unwrap().clone(); + let before = s.doc().unwrap().doc.clone(); + let steps = s.doc().unwrap().history.undo.len(); + let result = s.execute(command, &acting(command, p)).unwrap_or_else(|e| panic!("{command} {case}: {e}")); + match command { + "story.get" | "file.exportText" => { + let expected = if explicit { "Explicit" } else { "Selected" }; + assert_eq!(result["text"], expected, "{command} {case}"); + } + "story.setDirection" => { + let direction = s.execute("story.get", &json!({"story": target["story"]})).unwrap()["direction"].clone(); + assert_eq!(direction, "rightToLeft", "{command} {case}"); + } + _ => { + let filled = story_text(&s, target); + assert!(filled.len() > 500 && filled != "Selected" && filled != "Explicit", "{command} {case}: {}", start(&filled)); + } + } + assert_eq!( + *s.doc().unwrap().doc.story(StoryId(untouched["story"].as_u64().unwrap())).unwrap(), + untouched_before, + "{command} {case} acted on the other story" + ); + if matches!(command, "story.get" | "file.exportText") { + assert_eq!(s.doc().unwrap().doc, before, "{command} {case} changed the document"); + assert_eq!(s.doc().unwrap().history.undo.len(), steps, "{command} {case} left an undo step"); + } else { + assert_eq!(s.doc().unwrap().history.undo.len(), steps + 1, "{command} {case} is one undo step"); + s.execute("edit.undo", &json!({})).unwrap(); + assert_eq!(s.doc().unwrap().doc, before, "undo takes {command} {case} back"); + } + } + } +} + +#[test] +fn a_frame_that_holds_no_text_is_refused_except_by_placeholder_text() { + for command in ["file.exportText", "story.get", "story.setDirection"] { + let mut s = Session::new(); + s.execute("file.new", &json!({})).unwrap(); + let text = s.execute("frame.create", &json!({"rect": [0, 0, 300, 200], "content": "text", "text": "Selected"})).unwrap(); + let graphic = s.execute("frame.create", &json!({"rect": [0, 300, 300, 500], "content": "graphic"})).unwrap(); + s.execute("selection.set", &json!({"ids": [text["id"]]})).unwrap(); + let dir = tempfile::tempdir().unwrap(); + let path = dir.path().join("refused.txt"); + for mut p in [json!({"frame": graphic["id"]}), json!({"story": text["story"], "frame": graphic["id"]})] { + if command == "file.exportText" { + p["path"] = json!(path.to_string_lossy()); + } + let before = s.doc().unwrap().doc.clone(); + let error = s.execute(command, &acting(command, p.clone())).unwrap_err(); + // The message names the case, and nothing was read, edited or written. + assert!(error.to_string().contains(&format!("frame {} holds no text", graphic["id"])), "{command} {p}: {error}"); + assert_eq!(s.doc().unwrap().doc, before, "{command} {p} changed the document"); + assert!(!path.exists(), "{command} {p} wrote a file"); + } + } +} + +#[test] +fn export_with_a_story_and_a_frame_without_text_writes_nothing() { + // The case that exports another story's text on pre-fix behaviour: a valid story makes the call + // look fine, so a frame that holds no text was quietly ignored and the export went ahead. + let mut s = Session::new(); + s.execute("file.new", &json!({})).unwrap(); + let text = s.execute("frame.create", &json!({"rect": [0, 0, 300, 200], "content": "text", "text": "Selected"})).unwrap(); + let graphic = s.execute("frame.create", &json!({"rect": [0, 300, 300, 500], "content": "graphic"})).unwrap(); + s.execute("selection.set", &json!({"ids": [text["id"]]})).unwrap(); + let dir = tempfile::tempdir().unwrap(); + let path = dir.path().join("wrong-story.txt"); + let result = s.execute("file.exportText", &json!({"path": path.to_string_lossy(), "story": text["story"], "frame": graphic["id"]})); + assert!(result.is_err(), "the frame that holds no text must be refused: {result:?}"); + assert!(!path.exists(), "and nothing may be written"); +} + +#[test] +fn placeholder_text_converts_an_explicit_frame_that_holds_no_text() { + let mut s = Session::new(); + s.execute("file.new", &json!({})).unwrap(); + let text = s.execute("frame.create", &json!({"rect": [0, 0, 300, 200], "content": "text", "text": "Selected"})).unwrap(); + let graphic = s.execute("frame.create", &json!({"rect": [0, 300, 300, 900], "content": "graphic"})).unwrap(); + s.execute("selection.set", &json!({"ids": [text["id"]]})).unwrap(); + let before = s.doc().unwrap().doc.clone(); + let steps = s.doc().unwrap().history.undo.len(); + s.execute("type.fillWithPlaceholder", &json!({"frame": graphic["id"]})).unwrap(); + let converted = ItemId(graphic["id"].as_u64().unwrap()); + let sid = s.doc().unwrap().doc.item(converted).and_then(|i| i.text_frame().map(|t| t.story)); + let filled = sid.and_then(|sid| s.doc().unwrap().doc.story(sid).cloned()); + let filled = filled.expect("the frame became a text frame"); + assert!(filled.text.len() > 500 && filled.text != "Selected", "the converted frame is filled: {}", start(&filled.text)); + assert_eq!(story_text(&s, &text), "Selected", "the selection is untouched"); + assert_eq!(s.doc().unwrap().history.undo.len(), steps + 1, "converting and filling is one undo step"); + s.execute("edit.undo", &json!({})).unwrap(); + assert_eq!(s.doc().unwrap().doc, before); +} + +#[test] +fn placeholder_text_fills_an_explicit_story_and_leaves_a_textless_frame_alone() { + let mut s = Session::new(); + s.execute("file.new", &json!({})).unwrap(); + let selected = s.execute("frame.create", &json!({"rect": [0, 0, 300, 200], "content": "text", "text": "Selected"})).unwrap(); + let other = s.execute("frame.create", &json!({"rect": [0, 300, 300, 900], "content": "text", "text": "Explicit"})).unwrap(); + let graphic = s.execute("frame.create", &json!({"rect": [400, 0, 700, 200], "content": "graphic"})).unwrap(); + s.execute("selection.set", &json!({"ids": [selected["id"]]})).unwrap(); + s.execute("type.fillWithPlaceholder", &json!({"story": other["story"], "frame": graphic["id"]})).unwrap(); + let filled = story_text(&s, &other); + assert!(filled.len() > 500 && filled != "Explicit", "the story the call names is filled: {}", start(&filled)); + assert_eq!(story_text(&s, &selected), "Selected", "the selection is untouched"); + let left = ItemId(graphic["id"].as_u64().unwrap()); + assert!( + s.doc().unwrap().doc.item(left).and_then(|i| i.text_frame()).is_none(), + "a frame that holds no text stays as it is when a story is named" + ); +} + +#[test] +fn placeholder_text_fills_the_story_of_a_caret_with_no_frame() { + // `text.select` leaves `Selection::text` with `frame: None`, so a caret names no frame at all. + for p in [json!({}), json!({"story": null, "frame": null}), json!({"story": null}), json!({"frame": null})] { + let d = two_stories(); + let mut s = d.s; + s.execute("text.select", &json!({"story": d.selected["story"], "anchor": 0})).unwrap(); + let (items, frame) = { + let st = s.doc().unwrap(); + (st.selection.items.len(), st.selection.text.and_then(|t| t.frame)) + }; + assert_eq!(items, 0, "the caret replaces the object selection"); + assert!(frame.is_none(), "and names no frame"); + let other = story_text(&s, &d.other); + let steps = s.doc().unwrap().history.undo.len(); + s.execute("type.fillWithPlaceholder", &p).unwrap_or_else(|e| panic!("{p}: {e}")); + let filled = story_text(&s, &d.selected); + assert!(filled.len() > 500 && filled != "Selected", "{p}: the caret's story is filled: {}", start(&filled)); + assert_eq!(story_text(&s, &d.other), other, "{p}: the other story is untouched"); + assert_eq!(s.doc().unwrap().history.undo.len(), steps + 1, "{p}: one undo step"); + } +} + +#[test] +fn placeholder_text_checks_its_target_before_converting_a_frame() { + let mut s = Session::new(); + s.execute("file.new", &json!({})).unwrap(); + let text = s.execute("frame.create", &json!({"rect": [0, 0, 300, 200], "content": "text", "text": "Selected"})).unwrap(); + let empty = s.execute("frame.create", &json!({"rect": [0, 300, 300, 500], "content": "unassigned"})).unwrap(); + s.execute("selection.set", &json!({"ids": [text["id"]]})).unwrap(); + let before = s.doc().unwrap().doc.clone(); + let steps = s.doc().unwrap().history.undo.len(); + // The frame could become a text frame, but the story the call names does not exist: refusing + // leaves the frame unassigned rather than converting it and then failing. + let error = s.execute("type.fillWithPlaceholder", &json!({"frame": empty["id"], "story": 999999u64})).unwrap_err(); + assert_eq!(s.doc().unwrap().doc, before, "the frame must not be converted"); + assert_eq!(s.doc().unwrap().history.undo.len(), steps, "and no step may be left behind"); + assert!(error.to_string().contains("no such story 999999"), "{error}"); +} + +#[test] +fn explicit_story_targets_do_not_need_a_selection() { + for command in COMMANDS { + for key in ["story", "frame"] { + let d = two_stories(); + let mut s = d.s; + s.execute("selection.set", &json!({"ids": []})).unwrap(); + assert!(s.doc().unwrap().selection.items.is_empty()); + assert!(s.doc().unwrap().selection.text.is_none()); + let spec = crate::cmd::find_command(command).unwrap(); + let selection_gated = matches!(command, "file.exportText" | "type.fillWithPlaceholder"); + if selection_gated { + assert!((spec.enabled)(&s).is_err(), "{command}: its menu still needs a selection"); + } + let p = if key == "story" { json!({"story": d.other["story"]}) } else { json!({"frame": d.other["id"]}) }; + let before = s.doc().unwrap().doc.clone(); + let steps = s.doc().unwrap().history.undo.len(); + let result = s.execute(command, &acting(command, p)).unwrap_or_else(|e| panic!("{command} {key}: {e}")); + assert_eq!(story_text(&s, &d.selected), "Selected", "{command} {key}: the other story is untouched"); + match command { + "file.exportText" | "story.get" => { + assert_eq!(result["text"], "Explicit", "{command} {key}"); + assert_eq!(s.doc().unwrap().doc, before); + assert_eq!(s.doc().unwrap().history.undo.len(), steps); + } + _ => { + if command == "story.setDirection" { + let direction = s.execute("story.get", &json!({"story": d.other["story"]})).unwrap()["direction"].clone(); + assert_eq!(direction, "rightToLeft"); + } else { + assert!(story_text(&s, &d.other).len() > 500); + } + assert_eq!(s.doc().unwrap().history.undo.len(), steps + 1); + s.execute("edit.undo", &json!({})).unwrap(); + assert_eq!(s.doc().unwrap().doc, before); + } + } + if selection_gated { + assert!((spec.enabled)(&s).is_err(), "{command}: executing an explicit target did not relax its menu"); + } + } + } +} + +#[test] +fn invalid_explicit_story_targets_without_a_selection_reach_validation() { + for command in COMMANDS { + let d = two_stories(); + let mut s = d.s; + s.execute("selection.set", &json!({"ids": []})).unwrap(); + let directory = tempfile::tempdir().unwrap(); + let path = directory.path().join("unchanged.txt"); + std::fs::write(&path, "keep this file").unwrap(); + for mut p in [ + json!({"story": 999999u64}), + json!({"frame": 999999u64}), + json!({"story": "invalid"}), + json!({"frame": "invalid"}), + json!({"story": d.other["story"], "frame": 999999u64}), + json!({"story": 999999u64, "frame": d.other["id"]}), + ] { + if command == "file.exportText" { + p["path"] = json!(path.to_string_lossy()); + } + let st = s.doc().unwrap(); + let before = st.doc.clone(); + let saved = st.saved_doc.clone(); + let quiet = (st.revision, st.saved_revision, st.is_dirty(), st.selection.clone(), st.history.undo.len(), st.history.redo.len()); + let journal = s.journal.len(); + let error = s.execute(command, &acting(command, p.clone())).unwrap_err(); + assert!(matches!(error, crate::EngineError::BadParams { .. }), "{command} {p}: {error}"); + let st = s.doc().unwrap(); + assert!(std::sync::Arc::ptr_eq(&st.doc, &before), "{command} {p}: live document identity changed"); + assert!(std::sync::Arc::ptr_eq(&st.saved_doc, &saved), "{command} {p}: saved document identity changed"); + assert_eq!((st.revision, st.saved_revision, st.is_dirty(), st.selection.clone(), st.history.undo.len(), st.history.redo.len()), quiet); + assert_eq!(s.journal.len(), journal); + assert_eq!(std::fs::read_to_string(&path).unwrap(), "keep this file", "{command} {p}: export wrote before refusing"); + } + } +} + +#[test] +fn placeholder_conversion_does_not_need_a_selection() { + for content in ["graphic", "unassigned"] { + let mut s = Session::new(); + s.execute("file.new", &json!({})).unwrap(); + let frame = s.execute("frame.create", &json!({"rect": [0, 0, 300, 500], "content": content})).unwrap(); + s.execute("selection.set", &json!({"ids": []})).unwrap(); + let before = s.doc().unwrap().doc.clone(); + let steps = s.doc().unwrap().history.undo.len(); + let spec = crate::cmd::find_command("type.fillWithPlaceholder").unwrap(); + assert!((spec.enabled)(&s).is_err(), "the menu remains selection-based"); + s.execute("type.fillWithPlaceholder", &json!({"frame": frame["id"]})).unwrap(); + let item = s.doc().unwrap().doc.item(ItemId(frame["id"].as_u64().unwrap())).unwrap(); + let story = item.text_frame().unwrap().story; + assert!(s.doc().unwrap().doc.story(story).unwrap().text.len() > 500); + assert_eq!(s.doc().unwrap().history.undo.len(), steps + 1); + s.execute("edit.undo", &json!({})).unwrap(); + assert_eq!(s.doc().unwrap().doc, before, "one Undo restores the original frame"); + } +} + +#[test] +fn selection_gates_still_apply_without_an_explicit_story_target_or_document() { + for command in ["file.exportText", "type.fillWithPlaceholder"] { + let d = two_stories(); + let mut s = d.s; + s.execute("selection.set", &json!({"ids": []})).unwrap(); + for p in [json!({}), json!({"story": null}), json!({"frame": null}), json!({"story": null, "frame": null})] { + let before = s.doc().unwrap().doc.clone(); + let error = s.execute(command, &p).unwrap_err(); + assert!(matches!(error, crate::EngineError::Disabled(..)), "{command} {p}: {error}"); + assert!(std::sync::Arc::ptr_eq(&s.doc().unwrap().doc, &before)); + } + let mut empty = Session::new(); + for p in [json!({"story": 1}), json!({"frame": 1})] { + let error = empty.execute(command, &p).unwrap_err(); + assert!(matches!(error, crate::EngineError::Disabled(..)), "{command} without a document: {error}"); + assert!(empty.active().is_none()); + } + } +} diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs index a095a14ff..4a24fb394 100644 --- a/crates/engine/src/lib.rs +++ b/crates/engine/src/lib.rs @@ -719,6 +719,14 @@ impl Session { /// Fails with `Disabled` unless the command is enabled or names objects or a table it can act on. fn check_enabled(&self, spec: &CommandSpec, id: &str, params: &Value) -> Result<()> { if let Err(e) = (spec.enabled)(self) { + // Explicit story/frame targets do not need a selection. Keep menu enablement + // selection-based; these handlers validate even malformed non-null targets. + if matches!(id, "file.exportText" | "type.fillWithPlaceholder") + && self.active().is_some() + && ["story", "frame"].iter().any(|key| params.get(*key).is_some_and(|v| !v.is_null())) + { + return Ok(()); + } // A table command that takes `story` and `table` acts on the table the call names, so // the selection doesn't matter: with nothing selected, the caret outside a table, or // selected rows the command can't act on, `{"table": 3}` still runs. diff --git a/crates/engine/src/tests.rs b/crates/engine/src/tests.rs index 08c30cdef..7571e58f7 100644 --- a/crates/engine/src/tests.rs +++ b/crates/engine/src/tests.rs @@ -217,24 +217,24 @@ fn a_command_that_fails_partway_strands_no_edits() { assert_eq!(s.doc().unwrap().history.undo.len(), 1); } -/// The same for a command that fails after a command it ran changed the document: that one -/// leaves the step to it, so it has to record one. +/// The same for a command that fails after a command it ran changed the document: that one leaves the +/// step to it, so it has to record one. `test.nestedFailure` is test-only scaffolding (`cmd.rs`): no +/// shipping command fails after a nested edit, now that Fill with Placeholder Text checks its target +/// before converting a frame. #[test] fn a_command_that_fails_after_the_one_it_ran_can_be_undone() { let mut s = session(); let empty = s.execute("frame.create", &json!({"rect": [36, 36, 136, 136], "content": "unassigned"})).unwrap()["id"].clone(); - let text = s.execute("frame.create", &json!({"rect": [36, 300, 300, 400], "content": "text", "text": "abc"})).unwrap()["id"].clone(); - s.execute("selection.set", &json!({"ids": [text]})).unwrap(); let (before, steps) = { let st = s.doc().unwrap(); (st.doc.clone(), st.history.undo.len()) }; - // Fill with Placeholder Text turns the empty frame into a text frame, then finds no such story. - assert!(s.execute("type.fillWithPlaceholder", &json!({"frame": empty, "story": 99999})).is_err()); + // It turns the empty frame into a text frame, then fails. + assert!(s.execute("test.nestedFailure", &json!({"ids": [empty]})).is_err()); let st = s.doc().unwrap(); assert_ne!(st.doc, before, "the frame was converted"); assert_eq!(st.history.undo.len(), steps + 1); - assert_eq!(st.history.undo.last().unwrap().label, "Fill with Placeholder Text"); + assert_eq!(st.history.undo.last().unwrap().label, "Nested Failure"); s.execute("edit.undo", &json!({})).unwrap(); assert_eq!(s.doc().unwrap().doc, before); } diff --git a/docs/control-protocol.md b/docs/control-protocol.md index 706c1fc43..e15150ae1 100644 --- a/docs/control-protocol.md +++ b/docs/control-protocol.md @@ -53,6 +53,12 @@ so only enable it while you use it. Transport: `apps/designcraft/src/control_ser | `app.open` / `app.save` / `app.export` | | Files | | `app.quit` | | Quit without asking about unsaved changes (the `app.quit` command, like ⌘Q, asks) | +For `story.setDirection`, `story.get`, `type.fillWithPlaceholder` and `file.exportText`, a `story` or `frame` +target must be an unsigned integer ID the document has: one it doesn't have is an error naming which, never a +quiet fall back to the selection. Both are checked when both are given, and `story` wins. A frame that holds no +text is refused, except by Fill with Placeholder Text, which converts it; a null or absent target uses the +selection. + Data merge runs through `engine.execute` like any command: `data.source.select`, `data.fields`, `data.placeholder.add` / `.remove`, `data.options`, `data.preview` / `data.preview.stop`, `data.merge`. `data.merge` creates and activates a new merged document; the template stays as it was ([agents.md](agents.md#data-merge)). From 4bdc8b3c60425b9e58581c32ba968c22e7f3e5cc Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Mon, 23 Nov 2026 13:16:49 -0500 Subject: [PATCH 65/77] ci(release): publish scheduled nightly prereleases (#3185) --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bade04f46..3267968b6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: # Intentionally tracked at @main (not SHA-pinned) so org-wide CI improvements, security fixes, and build optimizations propagate without PR churn across all craftapp repos. uses: storytold/craft-common-actions/.github/workflows/release.yml@main with: - dry-run: ${{ github.event_name == 'schedule' }} + nightly: ${{ github.event_name == 'schedule' }} app-name: designcraft app-title: DesignCraft craft-fonts-ref: b076417b5880bd4154bd22f00695b1d28c6bea83 From 7fc6b09707fc349e8e2f0b849624929fa05c3a49 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Mon, 23 Nov 2026 12:38:03 -0600 Subject: [PATCH 66/77] Layers: Delete Unused Layers keeps layers used by grouped and anchored objects (#3184) * Layers test: Delete Unused Layers keeps layers used by nested objects * Layers: Delete Unused Layers counts grouped and anchored objects --- crates/engine/src/cmd/layout/registry.rs | 11 +- crates/engine/tests/it/layer_delete_unused.rs | 138 ++++++++++++++++++ crates/engine/tests/it/main.rs | 2 + 3 files changed, 148 insertions(+), 3 deletions(-) create mode 100644 crates/engine/tests/it/layer_delete_unused.rs diff --git a/crates/engine/src/cmd/layout/registry.rs b/crates/engine/src/cmd/layout/registry.rs index 28688963d..85bacd90c 100644 --- a/crates/engine/src/cmd/layout/registry.rs +++ b/crates/engine/src/cmd/layout/registry.rs @@ -853,11 +853,16 @@ pub fn specs() -> Vec { ), cmd!("layer.deleteUnused", "Delete Unused Layers", [], None, "{} — layers without objects (one layer always stays)", has_doc, |s, _| { s.edit(|d, _| { - let used: std::collections::HashSet = - d.spreads.iter().chain(d.parents.iter()).flat_map(|sp| sp.items.iter().map(|i| i.layer)).collect(); + // Objects inside groups and objects anchored in text (cells and notes included) use their layers too. + let in_use = |id: LayerId| { + let layer = [id]; + d.spreads.iter().chain(d.parents.iter()).any(|sp| sp.items.iter().any(|i| item_uses_layers(i, &layer))) + || d.stories.values().any(|st| story_uses_layers(st, &layer)) + }; + let used: std::collections::HashSet = d.layers.iter().map(|l| l.id).filter(|id| in_use(*id)).collect(); let before = d.layers.len(); if used.is_empty() { - // Nothing anywhere: keep the first layer. + // No layer has objects: keep the first layer. d.layers.truncate(1); } else { d.layers.retain(|l| used.contains(&l.id)); diff --git a/crates/engine/tests/it/layer_delete_unused.rs b/crates/engine/tests/it/layer_delete_unused.rs new file mode 100644 index 000000000..3b77b16b7 --- /dev/null +++ b/crates/engine/tests/it/layer_delete_unused.rs @@ -0,0 +1,138 @@ +//! Synthetic artwork created through our public commands and document APIs; no external fixtures. + +use std::sync::Arc; + +use designcraft_doc::{AnchoredObject, Document, ItemId, LayerId, Story, StoryId, Table}; +use designcraft_engine::Session; +use designcraft_render::Renderer; +use serde_json::json; + +fn new_session() -> Session { + let mut s = Session::new(); + s.execute("file.new", &json!({"pages": 1, "facingPages": false, "width": 240, "height": 240})).unwrap(); + s +} + +fn new_layer(s: &mut Session, name: &str) -> LayerId { + LayerId(s.execute("layer.new", &json!({"name": name})).unwrap()["id"].as_u64().unwrap()) +} + +fn rectangle(s: &mut Session, rect: [i32; 4]) -> u64 { + let id = s.execute("frame.create", &json!({"rect": rect, "content": "unassigned"})).unwrap()["id"].as_u64().unwrap(); + s.execute("object.fill", &json!({"ids": [id], "swatch": "[Black]"})).unwrap(); + id +} + +fn dark_coverage(s: &Session) -> usize { + let image = Renderer::new().render_page(&s.doc().unwrap().doc, &s.cache, 0, 1.0, false, &Default::default()).unwrap(); + image.pixels.as_chunks::<4>().0.iter().filter(|p| p[..3].iter().any(|c| *c < 220)).count() +} + +/// Every object on spreads, parents and in stories (group children and anchored objects included) is on a layer the +/// document has. +fn assert_every_object_on_a_live_layer(d: &Document) { + for sp in d.spreads.iter().chain(&d.parents) { + for it in &sp.items { + it.walk(&mut |i| assert!(d.layer(i.layer).is_some(), "object {} is on missing layer {:?}", i.id.0, i.layer)); + } + } + for (_, i) in d.anchored_items() { + assert!(d.layer(i.layer).is_some(), "anchored object {} is on missing layer {:?}", i.id.0, i.layer); + } + d.check().unwrap(); +} + +#[test] +fn a_layer_used_only_by_a_grouped_object_is_kept() { + let mut s = new_session(); + let base = s.doc().unwrap().active_layer; + let small = rectangle(&mut s, [10, 10, 20, 20]); + let child_layer = new_layer(&mut s, "Grouped only"); + let large = rectangle(&mut s, [30, 30, 210, 210]); + s.execute("selection.set", &json!({"ids": [small, large]})).unwrap(); + let group = s.execute("object.group", &json!({})).unwrap()["id"].as_u64().unwrap(); + // The group takes the layer of its backmost object, so only its child is on the other layer. + let d = &s.doc().unwrap().doc; + assert_eq!(d.item(ItemId(group)).unwrap().layer, base); + assert_eq!(d.item(ItemId(large)).unwrap().layer, child_layer); + let baseline = dark_coverage(&s); + assert!(baseline > 0, "the fixture must show artwork"); + + s.execute("layer.deleteUnused", &json!({})).unwrap(); + let d = &s.doc().unwrap().doc; + assert!(d.layer(child_layer).is_some(), "the grouped object's layer is in use"); + assert_every_object_on_a_live_layer(d); + // Ungrouping puts the child on the page on its own layer: it must still draw. + s.execute("object.ungroup", &json!({"ids": [group]})).unwrap(); + assert_every_object_on_a_live_layer(&s.doc().unwrap().doc); + assert!(dark_coverage(&s) >= baseline * 3 / 4, "the large grouped rectangle must still draw"); + + let dir = tempfile::tempdir().unwrap(); + let path = dir.path().join("delete-unused.designcraft"); + s.execute("file.saveAs", &json!({"path": path})).unwrap(); + let mut reopened = Session::new(); + reopened.execute("file.open", &json!({"path": path})).unwrap(); + assert_every_object_on_a_live_layer(&reopened.doc().unwrap().doc); + assert!(dark_coverage(&reopened) >= baseline * 3 / 4, "the reopened document must still draw it"); +} + +#[test] +fn layers_used_only_by_anchored_objects_are_kept() { + let mut s = new_session(); + let host = s.execute("frame.create", &json!({"rect": [10, 100, 200, 220], "content": "text", "text": "Host"})).unwrap(); + let sid = StoryId(host["story"].as_u64().unwrap()); + let inline_layer = new_layer(&mut s, "Anchored only"); + let inline = rectangle(&mut s, [10, 10, 20, 20]); + s.execute("anchored.insert", &json!({"ids": [inline], "story": sid.0, "pos": 0})).unwrap(); + let nested_layer = new_layer(&mut s, "Anchored in an endnote of a footnote of a cell"); + let nested = rectangle(&mut s, [30, 10, 40, 20]); + // Move the second object into the nested story containers native import makes. + s.edit(|d, _| { + let it = d.item(ItemId(nested)).unwrap().clone(); + Arc::make_mut(&mut d.spreads[0]).items.retain(|i| i.id.0 != nested); + let mut table = Table::new(d.alloc(), 1, 1, 0, 0, 40.0); + let cell = &mut table.cells[0].text; + cell.insert_note(cell.len(), "Footnote", Default::default()).unwrap(); + let note: &mut Story = &mut Arc::make_mut(&mut cell.notes[0]).text; + note.insert_endnote(note.len(), "Endnote", Default::default()).unwrap(); + Arc::make_mut(&mut note.endnotes[0]).text.insert_object(0, AnchoredObject::new(it, Default::default())); + d.story_mut(sid).unwrap().insert_table(0, table); + Ok(()) + }) + .unwrap(); + let unused = new_layer(&mut s, "Unused"); + let d = &s.doc().unwrap().doc; + d.check().unwrap(); + assert_eq!(d.anchored_item(ItemId(inline)).unwrap().layer, inline_layer); + assert_eq!(d.anchored_item(ItemId(nested)).unwrap().layer, nested_layer); + + s.execute("layer.deleteUnused", &json!({})).unwrap(); + let d = s.doc().unwrap().doc.clone(); + assert!(d.layer(inline_layer).is_some(), "the anchored object's layer is in use"); + assert!(d.layer(nested_layer).is_some(), "the nested anchored object's layer is in use"); + assert!(d.layer(unused).is_none(), "a layer nothing is on still goes"); + assert_every_object_on_a_live_layer(&d); + let reopened = designcraft_format::load(&designcraft_format::save(&d).unwrap()).unwrap(); + assert_every_object_on_a_live_layer(&reopened); +} + +#[test] +fn unused_layers_go_and_one_layer_always_stays() { + let mut s = new_session(); + let base = s.doc().unwrap().active_layer; + rectangle(&mut s, [10, 10, 20, 20]); + let unused = new_layer(&mut s, "Unused"); + s.execute("layer.deleteUnused", &json!({})).unwrap(); + let d = &s.doc().unwrap().doc; + assert!(d.layer(unused).is_none()); + assert!(d.layer(base).is_some()); + + // With nothing anywhere, every layer is unused but the document keeps one. + let mut s = new_session(); + new_layer(&mut s, "Empty"); + new_layer(&mut s, "Also empty"); + s.execute("layer.deleteUnused", &json!({})).unwrap(); + let d = &s.doc().unwrap().doc; + assert_eq!(d.layers.len(), 1); + assert!(d.layer(s.doc().unwrap().active_layer).is_some(), "drawing continues on the remaining layer"); +} diff --git a/crates/engine/tests/it/main.rs b/crates/engine/tests/it/main.rs index 570fdf7da..09a5e4244 100644 --- a/crates/engine/tests/it/main.rs +++ b/crates/engine/tests/it/main.rs @@ -12,6 +12,8 @@ mod export_page_input; mod insert_pages_bounds; mod insert_pages_parent; #[cfg(not(target_arch = "wasm32"))] +mod layer_delete_unused; +#[cfg(not(target_arch = "wasm32"))] mod layer_merge_descendants; mod param_keys; mod pdf_backend; From d9eba17efc5388f3faf6f33514ba15857f0925aa Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Mon, 23 Nov 2026 19:48:02 +0100 Subject: [PATCH 67/77] Release: bump designcraft to v0.21.1 (#3064) Co-authored-by: FredApps --- Cargo.lock | 42 +++++++++++++++++++++--------------------- Cargo.toml | 2 +- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b3056a797..e14ed9c22 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1769,7 +1769,7 @@ dependencies = [ [[package]] name = "designcraft" -version = "0.21.0" +version = "0.21.1" dependencies = [ "arboard", "craft-update", @@ -1794,7 +1794,7 @@ dependencies = [ [[package]] name = "designcraft-cli" -version = "0.21.0" +version = "0.21.1" dependencies = [ "craft-file-formats", "craft-image-codecs", @@ -1813,7 +1813,7 @@ dependencies = [ [[package]] name = "designcraft-color" -version = "0.21.0" +version = "0.21.1" dependencies = [ "craft-cms", "kurbo", @@ -1825,7 +1825,7 @@ dependencies = [ [[package]] name = "designcraft-compose" -version = "0.21.0" +version = "0.21.1" dependencies = [ "designcraft-color", "designcraft-doc", @@ -1845,7 +1845,7 @@ dependencies = [ [[package]] name = "designcraft-doc" -version = "0.21.0" +version = "0.21.1" dependencies = [ "chrono", "designcraft-color", @@ -1858,7 +1858,7 @@ dependencies = [ [[package]] name = "designcraft-engine" -version = "0.21.0" +version = "0.21.1" dependencies = [ "caseless", "craft-atomic", @@ -1903,7 +1903,7 @@ dependencies = [ [[package]] name = "designcraft-epub" -version = "0.21.0" +version = "0.21.1" dependencies = [ "craft-epub", "craft-mime", @@ -1914,7 +1914,7 @@ dependencies = [ [[package]] name = "designcraft-fonts" -version = "0.21.0" +version = "0.21.1" dependencies = [ "core-text", "harfrust 0.13.3", @@ -1927,7 +1927,7 @@ dependencies = [ [[package]] name = "designcraft-format" -version = "0.21.0" +version = "0.21.1" dependencies = [ "craft-designcraft-format", "designcraft-doc", @@ -1937,7 +1937,7 @@ dependencies = [ [[package]] name = "designcraft-geom" -version = "0.21.0" +version = "0.21.1" dependencies = [ "flo_curves", "kurbo", @@ -1950,7 +1950,7 @@ dependencies = [ [[package]] name = "designcraft-idml" -version = "0.21.0" +version = "0.21.1" dependencies = [ "craft-file-formats", "craft-idml", @@ -1967,7 +1967,7 @@ dependencies = [ [[package]] name = "designcraft-images" -version = "0.21.0" +version = "0.21.1" dependencies = [ "craft-cms", "craft-eps", @@ -1989,7 +1989,7 @@ dependencies = [ [[package]] name = "designcraft-mcp" -version = "0.21.0" +version = "0.21.1" dependencies = [ "craft-file-formats", "craft-mcp-server", @@ -2004,7 +2004,7 @@ dependencies = [ [[package]] name = "designcraft-pdf" -version = "0.21.0" +version = "0.21.1" dependencies = [ "chrono", "craft-cms", @@ -2030,7 +2030,7 @@ dependencies = [ [[package]] name = "designcraft-pptx" -version = "0.21.0" +version = "0.21.1" dependencies = [ "chrono", "craft-image-codecs", @@ -2051,7 +2051,7 @@ dependencies = [ [[package]] name = "designcraft-render" -version = "0.21.0" +version = "0.21.1" dependencies = [ "bytemuck", "craft-image-codecs", @@ -2072,7 +2072,7 @@ dependencies = [ [[package]] name = "designcraft-textimport" -version = "0.21.0" +version = "0.21.1" dependencies = [ "craft-docx", "craft-file-formats", @@ -2086,7 +2086,7 @@ dependencies = [ [[package]] name = "designcraft-tools" -version = "0.21.0" +version = "0.21.1" dependencies = [ "designcraft-color", "designcraft-compose", @@ -2098,7 +2098,7 @@ dependencies = [ [[package]] name = "designcraft-ui-egui" -version = "0.21.0" +version = "0.21.1" dependencies = [ "craft-dialogs", "craft-file-formats", @@ -2133,7 +2133,7 @@ dependencies = [ [[package]] name = "designcraft-web" -version = "0.21.0" +version = "0.21.1" dependencies = [ "designcraft-engine", "designcraft-format", @@ -8387,7 +8387,7 @@ checksum = "9440ea3e5aeabb0ac63af70daf835274065238cdd0cec83418f417eae38bacee" [[package]] name = "xtask" -version = "0.21.0" +version = "0.21.1" dependencies = [ "serde_json", ] diff --git a/Cargo.toml b/Cargo.toml index bc84833b3..1dcb6d332 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ members = ["crates/*", "apps/*", "xtask"] default-members = ["crates/*", "apps/designcraft", "apps/designcraft-cli", "xtask"] [workspace.package] -version = "0.21.0" +version = "0.21.1" edition = "2024" license = "MIT OR Apache-2.0" rust-version = "1.95" From 39651f6603ee2aec709c676e4a7b76e350ea1dcc Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Mon, 23 Nov 2026 14:44:55 -0500 Subject: [PATCH 68/77] revert: restore scheduled release.yml dry-run on main (#3188) --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3267968b6..bade04f46 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: # Intentionally tracked at @main (not SHA-pinned) so org-wide CI improvements, security fixes, and build optimizations propagate without PR churn across all craftapp repos. uses: storytold/craft-common-actions/.github/workflows/release.yml@main with: - nightly: ${{ github.event_name == 'schedule' }} + dry-run: ${{ github.event_name == 'schedule' }} app-name: designcraft app-title: DesignCraft craft-fonts-ref: b076417b5880bd4154bd22f00695b1d28c6bea83 From cdd650ccddcd945bc3bd050f40299955a7dd1c4b Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Tue, 24 Nov 2026 20:16:55 -0500 Subject: [PATCH 69/77] packaging(linux): support co-installable nightly packages (#3206) Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch. Co-authored-by: Dylan M. Taylor --- .github/nightly-linux-signing-key.asc | 16 + .github/nightly-signing-policy.json | 107 ++++ .github/workflows/nightly-sign.yml | 42 ++ .github/workflows/nightly.yml | 34 ++ .github/workflows/packaging-lint.yml | 21 +- .gitignore | 4 + ASSETS.md | 5 + Cargo.lock | 1 + apps/designcraft-cli/src/main.rs | 11 + apps/designcraft/Cargo.toml | 4 +- apps/designcraft/build.rs | 95 +++- apps/designcraft/src/build_channel.rs | 78 +++ apps/designcraft/src/build_flavor.rs | 89 ++++ apps/designcraft/src/launch_profile.rs | 217 ++++++++ apps/designcraft/src/main.rs | 272 ++++++++-- apps/designcraft/src/nightly_session.rs | 285 +++++++++++ apps/designcraft/src/process_identity.rs | 71 +++ apps/designcraft/src/profile.rs | 32 +- apps/designcraft/src/profile_root.rs | 492 +++++++++++++++++++ assets/app-icon/README.md | 11 + assets/app-icon/designcraft-nightly-1024.png | Bin 0 -> 846946 bytes assets/app-icon/designcraft-nightly.icns | Bin 0 -> 1624299 bytes assets/app-icon/designcraft-nightly.ico | Bin 0 -> 101449 bytes assets/app-icon/designcraft-nightly.png | Bin 0 -> 45216 bytes assets/app-icon/nightly-provenance.json | 60 +++ crates/ui-egui/src/about.rs | 18 +- crates/ui-egui/src/channel.rs | 120 +++++ crates/ui-egui/src/lib.rs | 1 + crates/ui-egui/src/updates_ui.rs | 82 ++++ docs/nightly-release-preparation.md | 89 ++++ packaging/linux/flatpak-bundle.sh | 69 ++- packaging/linux/nfpm.yaml | 13 +- packaging/linux/nightly-arch-launch.sh | 20 + packaging/linux/nightly-arch-tar-test.sh | 71 +++ packaging/linux/nightly-arch-tar.sh | 19 + packaging/linux/nightly.sh | 51 ++ packaging/linux/package.sh | 169 ++++++- packaging/macos/nightly-lib.sh | 170 +++++++ packaging/macos/nightly-sign.sh | 145 ++++++ packaging/macos/nightly-verify.sh | 74 +++ packaging/macos/nightly.sh | 51 ++ packaging/macos/nightly_plist.py | 69 +++ packaging/macos/nightly_plist_tests.py | 202 ++++++++ packaging/macos/nightly_sign_tests.py | 462 +++++++++++++++++ packaging/nightly-archive-tests.py | 233 +++++++++ packaging/nightly-archive.py | 132 +++++ packaging/nightly-common.sh | 95 ++++ packaging/nightly-launcher-tests.py | 169 +++++++ packaging/nightly-release-tests.py | 423 ++++++++++++++++ packaging/nightly-tests.py | 26 + packaging/nightly_paths.py | 139 ++++++ packaging/windows/nightly-package-tests.ps1 | 96 ++++ packaging/windows/nightly-signing-tests.ps1 | 90 ++++ packaging/windows/nightly.ps1 | 143 ++++++ packaging/windows/package.ps1 | 22 +- packaging/windows/sign.ps1 | 41 +- sonar-project.properties | 1 + 57 files changed, 5367 insertions(+), 85 deletions(-) create mode 100644 .github/nightly-linux-signing-key.asc create mode 100644 .github/nightly-signing-policy.json create mode 100644 .github/workflows/nightly-sign.yml create mode 100644 .github/workflows/nightly.yml create mode 100644 apps/designcraft/src/build_channel.rs create mode 100644 apps/designcraft/src/build_flavor.rs create mode 100644 apps/designcraft/src/launch_profile.rs create mode 100644 apps/designcraft/src/nightly_session.rs create mode 100644 apps/designcraft/src/process_identity.rs create mode 100644 apps/designcraft/src/profile_root.rs create mode 100644 assets/app-icon/designcraft-nightly-1024.png create mode 100644 assets/app-icon/designcraft-nightly.icns create mode 100644 assets/app-icon/designcraft-nightly.ico create mode 100644 assets/app-icon/designcraft-nightly.png create mode 100644 assets/app-icon/nightly-provenance.json create mode 100644 crates/ui-egui/src/channel.rs create mode 100644 docs/nightly-release-preparation.md create mode 100755 packaging/linux/nightly-arch-launch.sh create mode 100755 packaging/linux/nightly-arch-tar-test.sh create mode 100755 packaging/linux/nightly-arch-tar.sh create mode 100755 packaging/linux/nightly.sh create mode 100755 packaging/macos/nightly-lib.sh create mode 100755 packaging/macos/nightly-sign.sh create mode 100755 packaging/macos/nightly-verify.sh create mode 100755 packaging/macos/nightly.sh create mode 100755 packaging/macos/nightly_plist.py create mode 100644 packaging/macos/nightly_plist_tests.py create mode 100644 packaging/macos/nightly_sign_tests.py create mode 100644 packaging/nightly-archive-tests.py create mode 100755 packaging/nightly-archive.py create mode 100755 packaging/nightly-common.sh create mode 100644 packaging/nightly-launcher-tests.py create mode 100755 packaging/nightly-release-tests.py create mode 100644 packaging/nightly-tests.py create mode 100644 packaging/nightly_paths.py create mode 100644 packaging/windows/nightly-package-tests.ps1 create mode 100644 packaging/windows/nightly-signing-tests.ps1 create mode 100644 packaging/windows/nightly.ps1 diff --git a/.github/nightly-linux-signing-key.asc b/.github/nightly-linux-signing-key.asc new file mode 100644 index 000000000..a1c1f31e8 --- /dev/null +++ b/.github/nightly-linux-signing-key.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mDMEaulK1xYJKwYBBAHaRw8BAQdAqHJeDCjY6Hx5FTn/hW+aqu6V394ubLk0Zj3C +bftDwFm0IkFydENyYWZ0IExpbnV4IFJlbGVhc2UgU2lnbmluZyBLZXmIkwQTFgoA +OxYhBCt2dBtBSq1s0z5jEhOgBcC518PtBQJq6UrXAhsBBQsJCAcCAiICBhUKCQgL +AgQWAgMBAh4HAheAAAoJEBOgBcC518PtGeUA/RjvULBTLlccc+2wtJkfjSnCV+cf +PUMEGmW7XkZWkk51AP9w2A/WLv+79nREWEpZzI8LGK5EjrNazP+sY0l7j5rFCLgz +BGrpStcWCSsGAQQB2kcPAQEHQPl7XkQ1gWsvSPf/T9b4m/UHcjJjBpSOtpYlWR56 +er5RiO8EGBYKACAWIQQrdnQbQUqtbNM+YxIToAXAudfD7QUCaulK1wIbAgCBCRAT +oAXAudfD7XYgBBkWCgAdFiEEVo3B9o+Prsx5fzx7AG2va7DvM04FAmrpStcACgkQ +AG2va7DvM07taQEA4d2VFkKRIP0g9TrE86KpnuXPap+LKqe0tfIxpdf9YxIA/0Wo +9H/iG8nH++nxC087p3HE0S+0UovxqkhXJLSr8B4JDOoA/iLRpqTdYmk6fVXMyPJo +SkOVuwZIGS6VgBdSQP0e2P2YAP41L5OoSvwdQIG3/uNrM+ieqpYeM597/hCLFs5A +ga/qCA== +=3wGQ +-----END PGP PUBLIC KEY BLOCK----- diff --git a/.github/nightly-signing-policy.json b/.github/nightly-signing-policy.json new file mode 100644 index 000000000..0effee5bc --- /dev/null +++ b/.github/nightly-signing-policy.json @@ -0,0 +1,107 @@ +{ + "schema": "craft-nightly-release-policy/v3", + "repository": "storytold/designcraft", + "repository_id": 1400018213, + "producer_workflow_id": null, + "producer_workflow_path": ".github/workflows/nightly.yml", + "producer_tooling_revision": "605d58766e8f536564da8fc81d3676ac86816dea", + "producer_workflow_ref": "storytold/craft-common-actions/.github/workflows/nightly-unsigned.yml@605d58766e8f536564da8fc81d3676ac86816dea", + "signer_workflow_path": ".github/workflows/nightly-sign.yml", + "signer_tooling_revision": "605d58766e8f536564da8fc81d3676ac86816dea", + "release_branch": "release", + "manual_actors": [ + "bflatastic", + "dylanmtaylor", + "echelon", + "FredApps", + "skylartaylor" + ], + "max_age_seconds": 86400, + "candidate_policy": { + "schema": "craft-nightly-candidate-policy/v3", + "epoch": "designcraft-nightly-20261124-initial", + "repository": "storytold/designcraft", + "branch": "main", + "required_workflows": [ + { + "workflow_id": 380135818, + "workflow_path": ".github/workflows/ci.yml", + "jobs": [ + { + "name": "gate / gate (ubuntu-24.04)", + "app_id": 15368, + "applicability": "required" + } + ] + } + ], + "sonar": { + "organization": "storytold", + "project": "storytold_designcraft", + "app_id": 12526, + "check_name": "SonarCloud Code Analysis", + "details_url": "https://sonarcloud.io/dashboard?id=storytold_designcraft&branch=main", + "issue_types": [ + "VULNERABILITY" + ], + "accepted_conditions": [ + { + "metric": "new_security_rating", + "comparator": "GT", + "error_threshold": "1", + "maximum": "5" + } + ], + "required_conditions": [ + { + "metric": "new_reliability_rating", + "comparator": "GT", + "error_threshold": "1" + }, + { + "metric": "new_maintainability_rating", + "comparator": "GT", + "error_threshold": "1" + }, + { + "metric": "new_coverage", + "comparator": "LT", + "error_threshold": "80" + }, + { + "metric": "new_duplicated_lines_density", + "comparator": "GT", + "error_threshold": "3" + }, + { + "metric": "new_security_hotspots_reviewed", + "comparator": "LT", + "error_threshold": "100" + } + ], + "debt": [] + } + }, + "max_artifact_bytes": 2147483648, + "automatic_signer_actors": [], + "platforms": { + "windows-x86_64": { + "unsigned_artifact_name": "nightly-unsigned-windows-x86_64", + "trust": { + "publisher_subject": "CN=Learning Machines Inc, O=Learning Machines Inc, L=Atlanta, S=Georgia, C=US" + } + }, + "linux-x86_64": { + "unsigned_artifact_name": "nightly-unsigned-linux-x86_64", + "trust": { + "fingerprint": "2B76741B414AAD6CD33E631213A005C0B9D7C3ED" + } + }, + "macos-aarch64": { + "unsigned_artifact_name": "nightly-unsigned-macos-aarch64", + "trust": { + "apple_team_id": "DJ6XS33FX8" + } + } + } +} diff --git a/.github/workflows/nightly-sign.yml b/.github/workflows/nightly-sign.yml new file mode 100644 index 000000000..501a160ea --- /dev/null +++ b/.github/workflows/nightly-sign.yml @@ -0,0 +1,42 @@ +name: DesignCraft release-ref nightly signer + +# Enabled for supervised manual dispatch on release. Main/release contents must match. +# A reusable callee does not change context; this must be a real top-level release dispatch. +on: + workflow_dispatch: + inputs: + producer_run_id: + description: Exact untrusted producer Actions run ID + required: true + type: string + producer_run_attempt: + description: Exact untrusted producer Actions run attempt + required: true + type: string + +permissions: {} + +concurrency: + group: designcraft-nightly-release + cancel-in-progress: false + +jobs: + release: + # Actual context guards: official repository, manual dispatch, real release branch. + if: >- + github.repository == 'storytold/designcraft' && + github.event_name == 'workflow_dispatch' && + github.ref == 'refs/heads/release' && github.ref_type == 'branch' + permissions: + contents: write + actions: read + checks: read + attestations: write + id-token: write + uses: storytold/craft-common-actions/.github/workflows/nightly-release.yml@605d58766e8f536564da8fc81d3676ac86816dea + with: + tooling-revision: 605d58766e8f536564da8fc81d3676ac86816dea + producer_run_id: ${{ inputs.producer_run_id }} + producer_run_attempt: ${{ inputs.producer_run_attempt }} + # No secrets: inherit or raw platform values in this caller. Only the isolated native + # callee job may bind the existing release environment and export keys in its signing step. diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 000000000..bb9a97a40 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,34 @@ +name: DesignCraft unsigned nightly + +# Enabled for supervised manual runs by the reviewed manual actors only; no schedule yet. +# A later explicit opt-in may add a cadence (and turn on nightly-dispatch.yml with it). +on: + workflow_dispatch: + +permissions: + contents: read + +jobs: + unsigned: + # Actual context guards only; no inherited/platform secrets. + if: >- + github.repository == 'storytold/designcraft' && + github.ref == 'refs/heads/main' && github.ref_type == 'branch' && + (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') + # Maximum for the reusable workflow. Its compiler narrows to contents/actions read; + # no OIDC, attestation write, release environment or platform secrets in compilation. + permissions: + contents: read + actions: read + attestations: write + id-token: write + uses: storytold/craft-common-actions/.github/workflows/nightly-unsigned.yml@605d58766e8f536564da8fc81d3676ac86816dea + with: + tooling-revision: 605d58766e8f536564da8fc81d3676ac86816dea + app-name: designcraft + manual-actors: '["bflatastic","dylanmtaylor","echelon","FredApps","skylartaylor"]' + craft-fonts-ref: b076417b5880bd4154bd22f00695b1d28c6bea83 + # One producer run builds every listed platform for one all-or-nothing release. The pin is the + # craft-common-actions main commit that merged #339 (bounded lineage compares), on top of the + # Linux/macOS signer (#342). + platforms: '["windows-x86_64","linux-x86_64","macos-aarch64"]' diff --git a/.github/workflows/packaging-lint.yml b/.github/workflows/packaging-lint.yml index 1771a35fe..badb33439 100644 --- a/.github/workflows/packaging-lint.yml +++ b/.github/workflows/packaging-lint.yml @@ -5,9 +5,9 @@ name: Packaging lint on: push: branches: [main, release] - paths: [".github/workflows/**", "packaging/**", "assets/app-icon/**"] + paths: [".github/workflows/**", "packaging/**", "assets/app-icon/**", ".github/nightly-linux-signing-key.asc", "sonar-project.properties"] pull_request: - paths: [".github/workflows/**", "packaging/**", "assets/app-icon/**"] + paths: [".github/workflows/**", "packaging/**", "assets/app-icon/**", ".github/nightly-linux-signing-key.asc", "sonar-project.properties"] workflow_dispatch: permissions: @@ -49,3 +49,20 @@ jobs: - name: Build and check non-executable installer fixtures shell: pwsh run: ./packaging/windows/test-install-policy.ps1 -OutputDirectory (Join-Path $env:RUNNER_TEMP 'craft-install-policy-tests') + + nightly-source-contract: + name: Nightly source contracts (no build or signing) + runs-on: ubuntu-latest + timeout-minutes: 5 + permissions: + contents: read + steps: + - name: Harden runner + uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4 + with: + egress-policy: audit + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Enforce nightly serialization and synthetic packaging contracts + run: python3 packaging/nightly-tests.py diff --git a/.gitignore b/.gitignore index d47b8f373..f52f202aa 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,7 @@ plan/ /.claude/ /target-*/ /craft-fonts/ +/.nightly-tools +/.nightly-input +/craft-i18n +__pycache__/ diff --git a/ASSETS.md b/ASSETS.md index 4297ab421..4f60303a0 100644 --- a/ASSETS.md +++ b/ASSETS.md @@ -65,6 +65,11 @@ Generated-in-code art is original and has no file to list: the UI icon set (`cra | `assets/app-icon/hicolor/512x512/apps/ai.storyteller.designcraft.png` | DesignCraft project owner (drawn in ArtCraft) | rendered from `assets/app-icon/designcraft.svg` by `packaging/icons.sh` | MIT OR Apache-2.0 (`assets/app-icon/LICENSE.txt`) | App icon: calico cat in a polka-dot scarf (see `assets/app-icon/README.md`) | | `assets/app-icon/hicolor/64x64/apps/ai.storyteller.designcraft.png` | DesignCraft project owner (drawn in ArtCraft) | rendered from `assets/app-icon/designcraft.svg` by `packaging/icons.sh` | MIT OR Apache-2.0 (`assets/app-icon/LICENSE.txt`) | App icon: calico cat in a polka-dot scarf (see `assets/app-icon/README.md`) | | `assets/app-icon/hicolor/scalable/apps/ai.storyteller.designcraft.svg` | DesignCraft project owner (drawn in ArtCraft) | owner's ArtCraft drawing | MIT OR Apache-2.0 (`assets/app-icon/LICENSE.txt`) | App icon: calico cat in a polka-dot scarf (see `assets/app-icon/README.md`) | +| `assets/app-icon/designcraft-nightly.png` | DesignCraft project owner (artwork); nightly derivation generated for the nightlies lead | code-generated derivative of `assets/app-icon/designcraft.svg` with the deeper nightly field (method and hashes in `assets/app-icon/nightly-provenance.json`) | MIT OR Apache-2.0 (`assets/app-icon/LICENSE.txt`) | Nightly window icon, tar icon and the 256 px base of the nightly ICO/ICNS | +| `assets/app-icon/designcraft-nightly-1024.png` | DesignCraft project owner (artwork); nightly derivation generated for the nightlies lead | derived from the native 1024 tile onto Apple's 824/1024 grid, never upscaled (see `assets/app-icon/nightly-provenance.json`) | MIT OR Apache-2.0 (`assets/app-icon/LICENSE.txt`) | 1024 px nightly master for the ICNS | +| `assets/app-icon/designcraft-nightly.ico` | DesignCraft project owner (artwork); nightly derivation generated for the nightlies lead | packed 16–256 px frames of `assets/app-icon/designcraft-nightly.png` (see `assets/app-icon/nightly-provenance.json`) | MIT OR Apache-2.0 (`assets/app-icon/LICENSE.txt`) | Windows nightly `designcraft.exe` icon, embedded by `apps/designcraft/build.rs` | +| `assets/app-icon/designcraft-nightly.icns` | DesignCraft project owner (artwork); nightly derivation generated for the nightlies lead | packed native-size frames of the nightly PNG masters (see `assets/app-icon/nightly-provenance.json`) | MIT OR Apache-2.0 (`assets/app-icon/LICENSE.txt`) | macOS nightly bundle icon (`CFBundleIconFile`) | +| `assets/app-icon/nightly-provenance.json` | nightlies lead (generated record) | generated record of the nightly icon derivation (the generator itself is not committed); holds the input/output hashes, the palette fit and the container members | MIT OR Apache-2.0 (`assets/app-icon/LICENSE.txt`) | Provenance for the four nightly icon files above | | `docs/brand/artcraft-logo.svg`, `docs/brand/artcraft-logo.png` | ArtCraft / Storyteller | ArtCraft brand kit (project owner) | ArtCraft trademark, see docs/brand/LICENSE-brand.txt (not open source) | ArtCraft wordmark (README header) | | `docs/brand/artcraft-logo-white.svg`, `docs/brand/artcraft-logo-white.png` | ArtCraft / Storyteller | ArtCraft brand kit (project owner) | ArtCraft trademark, see docs/brand/LICENSE-brand.txt (not open source) | Wordmark for dark backgrounds | | `docs/brand/artcraft-mark.svg`, `docs/brand/artcraft-mark.png` | ArtCraft / Storyteller | ArtCraft brand kit (project owner) | ArtCraft trademark, see docs/brand/LICENSE-brand.txt (not open source) | The mark; its outline is drawn in code by `crates/ui-egui/src/about.rs` (About splash, start screen) | diff --git a/Cargo.lock b/Cargo.lock index e14ed9c22..b4a802771 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1787,6 +1787,7 @@ dependencies = [ "rfd", "serde", "serde_json", + "thiserror 2.0.21", "winit", "winresource", "winsafe", diff --git a/apps/designcraft-cli/src/main.rs b/apps/designcraft-cli/src/main.rs index 848929d53..7c031ba64 100644 --- a/apps/designcraft-cli/src/main.rs +++ b/apps/designcraft-cli/src/main.rs @@ -170,6 +170,17 @@ fn main() -> ExitCode { } } } + // The Launcher's nightly-v1 profile is a desktop-only contract. Never let its arguments fall + // through to the CLI's directory and credential discovery (which would read the stable + // profile), and answer before any subcommand parses them. A file name after `--` is a file. + if args + .iter() + .take_while(|arg| arg.as_str() != "--") + .any(|arg| arg == "--launch-profile" || arg == "--profile-root" || arg.starts_with("--launch-profile=") || arg.starts_with("--profile-root=")) + { + eprintln!("designcraft-cli: nightly-v1 is supported only by the DesignCraft desktop launcher protocol"); + return ExitCode::from(2); + } // ` --help` asks about that subcommand, which every parser but `script`'s read as an // unknown option (photocraft#423). It goes to stdout and succeeds, as `--help` does. // diff --git a/apps/designcraft/Cargo.toml b/apps/designcraft/Cargo.toml index b66041a04..359e00470 100644 --- a/apps/designcraft/Cargo.toml +++ b/apps/designcraft/Cargo.toml @@ -18,6 +18,8 @@ egui = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } log = { workspace = true } +# Non-exhaustive identity errors for the nightly process identity (`src/process_identity.rs`). +thiserror = { workspace = true } [build-dependencies] # Icon + VERSIONINFO for designcraft.exe; build.rs only uses it when the target is Windows. @@ -40,7 +42,7 @@ craft-update = { workspace = true } # that shows it; drawing on a GPU without a monitor reset the display driver. Safe wrappers over # Win32 (MIT); the `user` feature is User32.dll only. Also the window frame for the custom title # bar (src/window_frame.rs, window styles). -winsafe = { version = "0.0.29", default-features = false, features = ["user"] } +winsafe = { version = "0.0.29", default-features = false, features = ["user", "shell"] } [target.'cfg(target_os = "macos")'.dependencies] # The same winit as eframe; only the native termination opt-in is used. diff --git a/apps/designcraft/build.rs b/apps/designcraft/build.rs index f18ce9cf3..60abb38a7 100644 --- a/apps/designcraft/build.rs +++ b/apps/designcraft/build.rs @@ -1,29 +1,104 @@ -//! Windows only: embed the app icon and version info (VERSIONINFO) into `designcraft.exe`, so it -//! shows in Explorer, the taskbar, the Start menu and Alt-Tab. +//! Windows resources, and the build-time channel and version baked into the binary. //! -//! On every other target this does nothing. A missing resource compiler is a warning, so a -//! cross-compile from macOS or Linux still links, unless `DESIGNCRAFT_REQUIRE_WINRES=1` turns it -//! into an error (for release builds). +//! `DESIGNCRAFT_BUILD_CHANNEL=nightly-v1` selects the Launcher's nightly-v1 flavor: it must come +//! with an exact `DESIGNCRAFT_VERSION` feed identity (`X.Y.Z-nightly.YYYYMMDD...g`) +//! plus the matching `DESIGNCRAFT_BUILD_SHA` and `DESIGNCRAFT_BUILD_DATE`. Unset, empty or `stable` +//! is the stable build; anything else is a build error, so a runtime environment cannot promote it. +//! +//! The icon and VERSIONINFO go into `designcraft.exe` only. A missing resource compiler is a +//! warning, so a cross-compile from macOS or Linux still links, unless `DESIGNCRAFT_REQUIRE_WINRES=1` +//! (set by the release workflow) turns it into an error. + +#[path = "src/build_channel.rs"] +mod build_channel; + +fn die(message: &str) -> ! { + eprintln!("{message}"); + std::process::exit(1); +} fn main() { println!("cargo:rerun-if-changed=build.rs"); + println!("cargo:rerun-if-env-changed=DESIGNCRAFT_BUILD_CHANNEL"); + println!("cargo:rerun-if-env-changed=DESIGNCRAFT_VERSION"); + println!("cargo:rerun-if-env-changed=DESIGNCRAFT_OVERRIDE_VERSION"); + println!("cargo:rerun-if-env-changed=DESIGNCRAFT_BUILD_SHA"); + println!("cargo:rerun-if-env-changed=DESIGNCRAFT_BUILD_DATE"); + println!("cargo:rustc-check-cfg=cfg(designcraft_nightly_v1)"); + let nightly = match std::env::var("DESIGNCRAFT_BUILD_CHANNEL").as_deref() { + Ok("nightly-v1") => { + println!("cargo:rustc-cfg=designcraft_nightly_v1"); + true + } + // An empty value (an unset CI input) means the default stable build. + Ok("stable" | "") | Err(std::env::VarError::NotPresent) => false, + // A non-UTF-8 value is as unusable as an unknown one: refuse it instead of guessing. + Ok(_) | Err(std::env::VarError::NotUnicode(_)) => die("unsupported DESIGNCRAFT_BUILD_CHANNEL (expected stable or nightly-v1)"), + }; + let built_version = if nightly { + // The shared workflow exports the prepared version as `DESIGNCRAFT_VERSION` and, for the + // binary, an override of the same value; both must agree when both are set. + let prepared = std::env::var("DESIGNCRAFT_VERSION").ok(); + let overridden = std::env::var("DESIGNCRAFT_OVERRIDE_VERSION").ok(); + if let (Some(prepared), Some(overridden)) = (&prepared, &overridden) + && prepared != overridden + { + die("DESIGNCRAFT_VERSION and DESIGNCRAFT_OVERRIDE_VERSION disagree"); + } + let Some(version) = overridden.or(prepared) else { + die("nightly-v1 requires an explicit DESIGNCRAFT_VERSION feed identity"); + }; + if !build_channel::is_nightly_version(&version) { + die("nightly-v1 requires DESIGNCRAFT_VERSION to be X.Y.Z-nightly.YYYYMMDD...g"); + } + let sha = std::env::var("DESIGNCRAFT_BUILD_SHA").unwrap_or_default(); + if sha.len() != 40 || !sha.bytes().all(|b| b.is_ascii_digit() || (b'a'..=b'f').contains(&b)) { + die("nightly-v1 requires DESIGNCRAFT_BUILD_SHA to be the 40-hex source commit"); + } + if build_channel::nightly_commit(&version) != Some(&sha[..12]) { + die("DESIGNCRAFT_VERSION names a different commit than DESIGNCRAFT_BUILD_SHA"); + } + let date = std::env::var("DESIGNCRAFT_BUILD_DATE").unwrap_or_default(); + let digits: Vec = date.chars().filter(|c| c.is_ascii_digit()).collect(); + if date.len() != 10 || date.as_bytes()[4] != b'-' || date.as_bytes()[7] != b'-' || digits.iter().collect::() != date.replace('-', "") + { + die("nightly-v1 requires DESIGNCRAFT_BUILD_DATE as YYYY-MM-DD"); + } + if build_channel::nightly_date_digits(&version) != Some(&date.replace('-', "")) { + die("DESIGNCRAFT_VERSION names a different date than DESIGNCRAFT_BUILD_DATE"); + } + // A nightly-only name: `option_env!` reads the compiler's process environment, and stable + // packaging always exports DESIGNCRAFT_BUILD_SHA, which must not turn a Stable build nightly. + println!("cargo:rustc-env=DESIGNCRAFT_NIGHTLY_COMMIT={sha}"); + println!("cargo:rustc-env=DESIGNCRAFT_BUILD_DATE={date}"); + version + } else { + std::env::var("CARGO_PKG_VERSION").unwrap_or_default() + }; + // One compile-time identity for `--version`, About and the session record. + println!("cargo:rustc-env=DESIGNCRAFT_BUILT_VERSION={built_version}"); + println!("cargo:rerun-if-changed=../../assets/app-icon/designcraft.ico"); + println!("cargo:rerun-if-changed=../../assets/app-icon/designcraft-nightly.ico"); println!("cargo:rerun-if-env-changed=DESIGNCRAFT_REQUIRE_WINRES"); if std::env::var("CARGO_CFG_TARGET_OS").as_deref() != Ok("windows") { return; } let mut res = winresource::WindowsResource::new(); - res.set_icon("../../assets/app-icon/designcraft.ico") - .set("ProductName", "DesignCraft") - .set("FileDescription", "DesignCraft page layout") + res.set_icon(build_channel::windows_icon_path(nightly)) + .set("ProductName", if nightly { "DesignCraft Nightly" } else { "DesignCraft" }) + .set("FileDescription", if nightly { "DesignCraft Nightly page layout" } else { "DesignCraft page layout" }) .set("CompanyName", "Learning Machines LLC") .set("LegalCopyright", "Copyright (c) the DesignCraft authors. MIT OR Apache-2.0.") .set("OriginalFilename", "designcraft.exe") .set("InternalName", "designcraft"); + if nightly { + // The Launcher checks the PE ProductVersion against the exact feed identity, not FileVersion. + res.set("ProductVersion", &built_version); + } if let Err(e) = res.compile() { if std::env::var_os("DESIGNCRAFT_REQUIRE_WINRES").is_some() { - eprintln!("embedding Windows resources failed: {e}"); - std::process::exit(1); + die(&format!("embedding Windows resources failed: {e}")); } println!("cargo:warning=designcraft.exe built without icon/version resources: {e}"); } diff --git a/apps/designcraft/src/build_channel.rs b/apps/designcraft/src/build_channel.rs new file mode 100644 index 000000000..b13d18c6c --- /dev/null +++ b/apps/designcraft/src/build_channel.rs @@ -0,0 +1,78 @@ +//! The build-time nightly identity shared by the build script and its pure regression tests. +pub fn is_nightly_version(version: &str) -> bool { + let Some((base, suffix)) = version.split_once("-nightly.") else { return false }; + let digits = |s: &str| !s.is_empty() && s.bytes().all(|b| b.is_ascii_digit()); + let base: Vec<_> = base.split('.').collect(); + let parts: Vec<_> = suffix.split('.').collect(); + base.len() == 3 + && base.iter().all(|s| digits(s)) + && parts.len() == 4 + && parts[0].len() == 8 + && digits(parts[0]) + && digits(parts[1]) + && digits(parts[2]) + && parts[3].strip_prefix('g').is_some_and(|sha| sha.len() == 12 && sha.bytes().all(|b| b.is_ascii_digit() || (b'a'..=b'f').contains(&b))) +} + +/// The `X.Y.Z-nightly.YYYYMMDD...g` feed version's date digits, or `None`. +/// Used by the build script; the app itself only needs the channel and icon rules. +#[allow(dead_code)] +pub fn nightly_date_digits(version: &str) -> Option<&str> { + let suffix = version.split_once("-nightly.")?.1; + suffix.split('.').next().filter(|date| date.len() == 8) +} + +/// The commit the feed version names, without its `g` prefix. +#[allow(dead_code)] +pub fn nightly_commit(version: &str) -> Option<&str> { + version.rsplit_once(".g").map(|(_, sha)| sha).filter(|sha| sha.len() == 12) +} + +pub fn windows_icon_path(nightly: bool) -> &'static str { + if nightly { "../../assets/app-icon/designcraft-nightly.ico" } else { "../../assets/app-icon/designcraft.ico" } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn windows_resource_uses_the_flavor_specific_icon_without_changing_stable() { + assert_eq!(windows_icon_path(false), "../../assets/app-icon/designcraft.ico"); + assert_eq!(windows_icon_path(true), "../../assets/app-icon/designcraft-nightly.ico"); + } + + #[test] + fn explicit_feed_identity_is_required_for_a_nightly_build() { + assert!(is_nightly_version("0.2.1-nightly.20261124.17.1.gabcdef012345")); + for invalid in [ + "", + "0.2.1", + "0.2.1-nightly", + "0.2.1-nightly.20261124", + "0.2.1-nightly.20261124.17.1.gABCDEF012345", + "0.2.1-nightly.20261124.17.1.gabcdef012345\n", + ] { + assert!(!is_nightly_version(invalid), "{invalid:?}"); + } + } + + #[test] + fn version_cannot_inject_a_path_or_an_extra_build_directive() { + for invalid in [ + "../0.2.1-nightly.20261124.1.1.gabcdef012345", + "0.2.1-nightly.20261124.1.1.gabcdef012345/other", + "0.2.1-nightly.20261124.1.1.gabcdef012345\ncargo:rustc-cfg=other", + ] { + assert!(!is_nightly_version(invalid)); + } + } + + #[test] + fn the_feed_identity_yields_its_date_and_commit() { + assert_eq!(nightly_date_digits("0.2.1-nightly.20261124.17.1.gabcdef012345"), Some("20261124")); + assert_eq!(nightly_commit("0.2.1-nightly.20261124.17.1.gabcdef012345"), Some("abcdef012345")); + assert_eq!(nightly_date_digits("0.2.1"), None); + assert_eq!(nightly_commit("0.2.1"), None); + } +} diff --git a/apps/designcraft/src/build_flavor.rs b/apps/designcraft/src/build_flavor.rs new file mode 100644 index 000000000..0793f44ed --- /dev/null +++ b/apps/designcraft/src/build_flavor.rs @@ -0,0 +1,89 @@ +//! Build-time channel is distinct from a launch selector. A runtime environment cannot promote a stable build. +use crate::launch_profile::Profile; +use std::ffi::OsString; + +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub enum BuildFlavor { + Stable, + NightlyV1, +} + +pub const COMPILED: BuildFlavor = if cfg!(designcraft_nightly_v1) { BuildFlavor::NightlyV1 } else { BuildFlavor::Stable }; + +/// The version baked in by `build.rs`: the workspace version for stable, the exact feed identity for nightly. +pub const VERSION: &str = env!("DESIGNCRAFT_BUILT_VERSION"); + +/// The plain `designcraft --version` line, unchanged for stable. +pub const STABLE_VERSION_LINE: &str = concat!("designcraft ", env!("CARGO_PKG_VERSION")); + +pub fn require_profile(flavor: BuildFlavor, profile: &Profile) -> Result<(), String> { + match (flavor, profile.is_nightly()) { + (BuildFlavor::NightlyV1, false) => Err("Open DesignCraft Nightly from ArtCraft Launcher".into()), + (BuildFlavor::Stable, true) => Err("This is a stable DesignCraft build; nightly-v1 requires the nightly build".into()), + _ => Ok(()), + } +} + +pub fn needs_native_error(flavor: BuildFlavor, desktop_session: bool) -> bool { + desktop_session && flavor == BuildFlavor::NightlyV1 +} + +pub fn version_query(args: &[OsString]) -> bool { + matches!(args, [arg] if arg == "--version" || arg == "-V") +} + +/// The line `--version` prints: ` (nightly-v1)` for nightly, stable's own form otherwise. +pub fn version_line(flavor: BuildFlavor, stable: &str, version: &str) -> String { + match flavor { + BuildFlavor::Stable => stable.to_owned(), + BuildFlavor::NightlyV1 => format!("DesignCraft {version} (nightly-v1)"), + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn only_a_nightly_desktop_refusal_requests_a_native_dialog() { + assert!(needs_native_error(BuildFlavor::NightlyV1, true)); + assert!(!needs_native_error(BuildFlavor::NightlyV1, false)); + assert!(!needs_native_error(BuildFlavor::Stable, true)); + assert!(!needs_native_error(BuildFlavor::Stable, false)); + } + + #[test] + fn nightly_build_without_a_profile_is_refused_before_startup() { + let started = std::cell::Cell::new(false); + let result = require_profile(BuildFlavor::NightlyV1, &Profile::Stable).map(|()| started.set(true)); + assert!(result.unwrap_err().contains("ArtCraft Launcher")); + assert!(!started.get()); + } + + #[test] + fn stable_and_nightly_flavors_accept_only_their_own_profile() { + let nightly = Profile::NightlyV1(std::path::PathBuf::from("already validated root")); + assert!(require_profile(BuildFlavor::Stable, &Profile::Stable).is_ok()); + assert!(require_profile(BuildFlavor::Stable, &nightly).is_err()); + assert!(require_profile(BuildFlavor::NightlyV1, &nightly).is_ok()); + } + + #[test] + fn nightly_version_query_is_unambiguous_and_never_reinterprets_file_arguments() { + let version = "0.2.1-nightly.20261124.17.1.gabcdef012345"; + assert_eq!(version_line(BuildFlavor::Stable, "designcraft 0.2.1", version), "designcraft 0.2.1"); + assert_eq!(version_line(BuildFlavor::NightlyV1, "designcraft 0.2.1", version), format!("DesignCraft {version} (nightly-v1)")); + assert!(version_query(&["--version".into()])); + assert!(version_query(&["-V".into()])); + assert!(!version_query(&["--".into(), "--version".into()])); + assert!(!version_query(&[])); + } + + #[test] + fn the_compiled_version_is_the_flavor_s_own() { + match COMPILED { + BuildFlavor::Stable => assert_eq!(VERSION, env!("CARGO_PKG_VERSION")), + BuildFlavor::NightlyV1 => assert!(crate::build_channel::is_nightly_version(VERSION), "{VERSION}"), + } + } +} diff --git a/apps/designcraft/src/launch_profile.rs b/apps/designcraft/src/launch_profile.rs new file mode 100644 index 000000000..f2b421433 --- /dev/null +++ b/apps/designcraft/src/launch_profile.rs @@ -0,0 +1,217 @@ +//! Launcher-owned nightly-v1 bootstrap. Selected before logging, updates, fonts or saved state. +//! Stable launches retain their original arguments and directory policy. No environment mutation. + +use std::ffi::OsString; +use std::path::{Component, Path, PathBuf}; +use std::sync::OnceLock; + +pub const VERSION: &str = "nightly-v1"; + +#[derive(Clone, Debug, PartialEq, Eq)] +pub enum Profile { + Stable, + NightlyV1(PathBuf), +} + +impl Profile { + pub fn is_nightly(&self) -> bool { + matches!(self, Self::NightlyV1(_)) + } + + pub fn root(&self) -> Option<&Path> { + match self { + Self::Stable => None, + Self::NightlyV1(root) => Some(root), + } + } +} + +#[derive(Debug, PartialEq, Eq)] +pub struct Launch { + pub profile: Profile, + pub args: Vec, +} + +static PROFILE: OnceLock = OnceLock::new(); + +pub fn current() -> &'static Profile { + PROFILE.get().unwrap_or(&Profile::Stable) +} + +pub fn install(profile: Profile) -> Result<(), String> { + PROFILE.set(profile).map_err(|_| "the launch profile was already selected".into()) +} + +/// Recognize only the agreed literal selector/root pair before `--`. Everything after it is +/// a file, even when it looks like a profile flag. No filesystem or startup hook runs here. +pub fn parse(args: Vec) -> Result { + let mut selector = None; + let mut root = None; + let mut other = Vec::new(); + let mut files = Vec::new(); + let mut iter = args.iter(); + let mut delimiter = false; + while let Some(arg) = iter.next() { + if arg == "--" { + delimiter = true; + files.extend(iter.cloned()); + break; + } + if arg == "--launch-profile" || arg == "--profile-root" { + let slot = if arg == "--launch-profile" { &mut selector } else { &mut root }; + if slot.is_some() { + return Err("the profile selector and root must each occur exactly once".into()); + } + let value = iter.next().filter(|v| !v.is_empty()).ok_or("the profile selector/root needs a value")?; + if value.to_string_lossy().starts_with("--") { + return Err("the profile selector/root needs a value".into()); + } + *slot = Some(value.clone()); + } else if arg.to_string_lossy().starts_with("--launch-profile=") || arg.to_string_lossy().starts_with("--profile-root=") { + return Err("the nightly protocol requires separate literal selector/root argument tokens".into()); + } else { + other.push(arg.clone()); + } + } + match (selector, root) { + (None, None) => Ok(Launch { profile: Profile::Stable, args }), + (Some(version), Some(root)) if version == VERSION => { + if !delimiter || !other.is_empty() { + return Err("nightly-v1 accepts only its selector/root followed by -- and file names".into()); + } + let root = PathBuf::from(root); + if !root.is_absolute() || root.components().any(|c| matches!(c, Component::ParentDir)) { + return Err("the nightly profile root must be absolute and contain no parent traversal".into()); + } + Ok(Launch { profile: Profile::NightlyV1(root), args: std::iter::once(OsString::from("--")).chain(files).collect() }) + } + (Some(_), Some(_)) => Err("unsupported launch profile (expected nightly-v1)".into()), + _ => Err("--launch-profile and --profile-root must be supplied together".into()), + } +} + +/// The Launcher's version check: the selector/root pair followed by exactly `--version` (or `-V`), +/// answered like a plain version query. Only [`parse`]'s lexical checks apply; the root is never +/// validated or touched, and `-- --version` stays a file name. +pub fn version_query(args: &[OsString]) -> bool { + let Some((last, pair)) = args.split_last() else { return false }; + if last != "--version" && last != "-V" { + return false; + } + let lexical = pair.iter().cloned().chain(std::iter::once(OsString::from("--"))).collect(); + matches!(parse(lexical), Ok(Launch { profile: Profile::NightlyV1(_), args }) if args.len() == 1) +} + +/// Validation finishes before the caller's first startup effect. Stable never calls the nightly +/// root validator, so its old portable/config resolution stays unchanged. +pub fn prepare(mut launch: Launch, validate: impl FnOnce(&Path) -> Result) -> Result { + if let Profile::NightlyV1(root) = &launch.profile { + launch.profile = Profile::NightlyV1(validate(root)?); + } + Ok(launch) +} + +/// Resolve the selected private root before the caller's first startup effect. DesignCraft has no +/// agent SDK folder of its own, so the stable boundary is its settings folder, install folders and +/// portable data only. +pub fn validate_root(root: &Path, env: impl Fn(&str) -> Option, exe: Option<&Path>) -> Result { + crate::profile_root::validate(root, env, exe, crate::profile::ensure_writable) +} + +#[cfg(test)] +mod tests { + use super::*; + use std::cell::Cell; + + fn args(values: &[&str]) -> Vec { + values.iter().map(OsString::from).collect() + } + + fn absolute() -> &'static str { + if cfg!(windows) { r"C:\NightlyData\profiles\designcraft" } else { "/nightly-data/profiles/designcraft" } + } + + fn nightly() -> Vec { + args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--"]) + } + + #[test] + fn stable_arguments_and_directory_policy_are_unchanged() { + for argv in [args(&[]), args(&["--sample", "a.idml"]), args(&["--", "--launch-profile", "file.designcraft"])] { + let launch = prepare(parse(argv.clone()).unwrap(), |_| panic!("stable must never validate a nightly root")).unwrap(); + assert_eq!(launch, Launch { profile: Profile::Stable, args: argv }); + } + } + + #[test] + fn exact_version_and_root_are_parsed_without_reinterpreting_file_names() { + let mut argv = nightly(); + argv.extend(args(&["--profile-root", "design with spaces.designcraft"])); + let launch = parse(argv).unwrap(); + assert_eq!(launch.profile, Profile::NightlyV1(PathBuf::from(absolute()))); + assert_eq!(launch.args, args(&["--", "--profile-root", "design with spaces.designcraft"])); + } + + #[test] + fn missing_duplicate_unknown_and_conflicting_profile_arguments_are_refused() { + for argv in [ + args(&["--launch-profile", VERSION]), + args(&["--profile-root", absolute()]), + args(&["--launch-profile", "future-v2", "--profile-root", absolute(), "--"]), + args(&["--launch-profile", VERSION, "--launch-profile", VERSION, "--profile-root", absolute(), "--"]), + args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--profile-root", absolute(), "--"]), + args(&["--launch-profile", VERSION, "--profile-root", "relative", "--"]), + args(&["--launch-profile", VERSION, "--profile-root", "", "--"]), + args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--new-instance", "--"]), + args(&["--launch-profile", VERSION, "--profile-root", absolute()]), + args(&["--launch-profile=", VERSION, "--profile-root", absolute(), "--"]), + ] { + assert!(parse(argv).is_err()); + } + } + + #[test] + fn the_launcher_version_check_is_a_version_query_only_in_its_exact_form() { + let pair = &["--launch-profile", VERSION, "--profile-root", absolute()]; + let reversed = &["--profile-root", absolute(), "--launch-profile", VERSION]; + for flag in ["--version", "-V"] { + for form in [pair, reversed] { + let mut argv = args(form); + argv.push(flag.into()); + assert!(version_query(&argv), "{argv:?}"); + } + } + for argv in [ + args(&["--version"]), + args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--", "--version"]), + args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--version", "--"]), + args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--new-instance", "--version"]), + args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--version", "--version"]), + args(&["--version", "--launch-profile", VERSION, "--profile-root", absolute()]), + args(&["--launch-profile", "future-v2", "--profile-root", absolute(), "--version"]), + args(&["--launch-profile", VERSION, "--profile-root", "relative", "--version"]), + args(&["--launch-profile", VERSION, "--version"]), + args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--help"]), + ] { + assert!(!version_query(&argv), "{argv:?}"); + } + // Outside the query the strict protocol still refuses the version flag. + assert!(parse(args(&["--launch-profile", VERSION, "--profile-root", absolute(), "--version"])).is_err()); + } + + #[test] + fn failed_root_validation_never_reaches_startup_or_falls_back_to_stable() { + let reached = Cell::new(false); + let result = prepare(parse(nightly()).unwrap(), |_| Err("read-only or unsafe profile".into())).map(|_| reached.set(true)); + assert!(result.is_err()); + assert!(!reached.get()); + } + + #[test] + fn successful_root_validation_keeps_the_persistent_root_not_the_binary_tag() { + let checked = PathBuf::from(absolute()).join("checked"); + let launch = prepare(parse(nightly()).unwrap(), |_| Ok(checked.clone())).unwrap(); + assert_eq!(launch.profile.root(), Some(checked.as_path())); + assert!(launch.profile.is_nightly()); + } +} diff --git a/apps/designcraft/src/main.rs b/apps/designcraft/src/main.rs index 82d1808f5..ef2a2e026 100644 --- a/apps/designcraft/src/main.rs +++ b/apps/designcraft/src/main.rs @@ -15,16 +15,24 @@ #[cfg(target_os = "macos")] mod apple_events; +// The build script includes this file by path; the crate needs it only for its tests. +#[cfg(test)] +mod build_channel; +mod build_flavor; mod clipboard_image; mod control_server; mod gpu; mod gpu_limits; +mod launch_profile; mod logging; #[cfg(target_os = "macos")] mod native_menu; +mod nightly_session; #[cfg(target_os = "macos")] mod pointer; +mod process_identity; mod profile; +mod profile_root; mod window_frame; use designcraft_engine::Session; @@ -48,6 +56,10 @@ struct App { /// (`gpu_limits::log_uncaptured_errors`). Until then wgpu's default handler panics, so a /// failing adapter still makes `gpu` start again on the next one. log_errors_after_startup: Option, + /// The Nightly session record's owner, finished on the one exit path (`on_exit`). + session: nightly_session::Shared, + /// Whether this window showed the previous Nightly session's unclean-exit notice. + unclean_notice_shown: bool, } impl eframe::App for App { @@ -107,6 +119,8 @@ impl eframe::App for App { fn on_exit(&mut self) { // A normal exit before the third frame is not a crash. self.startup.presented(); + // The one exit path, including macOS Dock Quit (`with_close_requested_on_terminate`). + nightly_session::finish_once(&self.session, self.unclean_notice_shown); if let Err(e) = preserve_documents_on_exit(&mut self.app) { log::error!("Couldn't preserve documents on exit: {e}"); eprintln!("designcraft: couldn't preserve documents on exit: {e}"); @@ -238,16 +252,18 @@ fn services() -> Services { } } -/// Desktop app ID: the Linux `.desktop` file name and hicolor icon name (Wayland matches windows by it). -const APP_ID: &str = "ai.storyteller.designcraft"; - /// The window, Dock, taskbar and Alt-Tab icon. macOS gets Apple's icon grid (transparent margin); /// elsewhere the full tile. Regenerate with `packaging/icons.sh`. fn app_icon() -> Option { + // The Nightly keeps the artwork on its deeper field, so a dock or window list shows the channel. #[cfg(target_os = "macos")] let png: &[u8] = include_bytes!("../../../assets/app-icon/designcraft-macos-512.png"); #[cfg(not(target_os = "macos"))] - let png: &[u8] = include_bytes!("../../../assets/app-icon/hicolor/256x256/apps/ai.storyteller.designcraft.png"); + let png: &[u8] = if designcraft_ui_egui::channel::is_nightly() { + include_bytes!("../../../assets/app-icon/designcraft-nightly.png") + } else { + include_bytes!("../../../assets/app-icon/hicolor/256x256/apps/ai.storyteller.designcraft.png") + }; eframe::icon_data::from_png_bytes(png).map_err(|e| log::warn!("app icon: {e}")).ok() } @@ -262,34 +278,178 @@ fn control_port_from(source: &str, value: Option) -> Option { port } +/// What [`prepare_launch`] decided before any start-up service ran. +struct Launched { + /// The arguments left for the ordinary parser (files, and `--` already removed). + args: Vec, + /// This is the Launcher's nightly-v1 build, started with its profile. + nightly: bool, + /// The Nightly session record's owner. + session: nightly_session::Shared, + /// The previous Nightly session did not end cleanly. + unclean: bool, + /// This window could not take the session record (a second Nightly is running). + session_unavailable: bool, +} + +fn desktop_session() -> bool { + cfg!(windows) + || cfg!(target_os = "macos") + || (cfg!(target_os = "linux") && ["DISPLAY", "WAYLAND_DISPLAY"].into_iter().any(|key| std::env::var_os(key).is_some_and(|v| !v.is_empty()))) +} + +/// A Nightly launch that is refused before the window: say why where the user looks. +#[allow(clippy::disallowed_types, reason = "native refusal before any window exists")] +fn report_launch_profile_error(error: &str) { + eprintln!("DesignCraft launch profile: {error}"); + if build_flavor::needs_native_error(build_flavor::COMPILED, desktop_session()) { + // Before any window exists, so this is not the in-frame dialog clippy.toml forbids. + let _ = rfd::MessageDialog::new() + .set_title("DesignCraft Nightly") + .set_description(error) + .set_level(rfd::MessageLevel::Error) + .set_buttons(rfd::MessageButtons::Ok) + .show(); + } +} + +/// Select the immutable launch profile before any start-up service or side effect: the version +/// answer first, then the profile, the Windows identity, the fenced root and the session record. +fn prepare_launch() -> Option { + let argv: Vec<_> = std::env::args_os().skip(1).collect(); + // Plain `--version`, or the Launcher's `--launch-profile nightly-v1 --profile-root + // --version`: answered before logging, root validation, process identity or any window. A + // headless runner otherwise hung on macOS and exited 2 on Linux. + if build_flavor::COMPILED == build_flavor::BuildFlavor::NightlyV1 && (build_flavor::version_query(&argv) || launch_profile::version_query(&argv)) + { + use std::io::Write as _; + let line = build_flavor::version_line(build_flavor::COMPILED, build_flavor::STABLE_VERSION_LINE, build_flavor::VERSION); + let _ = writeln!(std::io::stdout(), "{line}"); + return None; + } + let launch = launch_profile::parse(argv) + .and_then(|launch| { + build_flavor::require_profile(build_flavor::COMPILED, &launch.profile)?; + if launch.profile.is_nightly() { + process_identity::initialize(true, designcraft_ui_egui::channel::NIGHTLY_APP_ID).map_err(|error| error.to_string())?; + } + Ok(launch) + }) + .and_then(|launch| { + launch_profile::prepare(launch, |root| { + launch_profile::validate_root(root, |key| std::env::var_os(key), std::env::current_exe().ok().as_deref()) + }) + }) + .unwrap_or_else(|error| { + report_launch_profile_error(&error); + std::process::exit(2) + }); + let nightly = launch.profile.is_nightly(); + let channel = if nightly { designcraft_ui_egui::channel::Channel::NightlyV1 } else { designcraft_ui_egui::channel::Channel::Stable }; + if let Err(error) = launch_profile::install(launch.profile) + .and_then(|()| designcraft_ui_egui::channel::select(channel, build_flavor::VERSION, option_env!("DESIGNCRAFT_NIGHTLY_COMMIT"))) + { + report_launch_profile_error(&error); + std::process::exit(2); + } + let mut session = nightly_session::shared(); + let mut unclean = false; + let mut session_unavailable = false; + if nightly { + match nightly_session::Session::begin_with_health( + launch_profile::current().root(), + build_flavor::VERSION, + option_env!("DESIGNCRAFT_NIGHTLY_COMMIT"), + ) { + Ok((watch, unavailable)) => { + unclean = watch.as_ref().is_some_and(nightly_session::Session::previous_unclean); + session_unavailable = unavailable; + session = nightly_session::shared_with(watch); + } + Err(error) => { + // Standard error only: this runs before the log file exists. + eprintln!("designcraft: Nightly session state is unavailable: {error}"); + session_unavailable = true; + } + } + } + Some(Launched { args: launch.args, nightly, session, unclean, session_unavailable }) +} + +/// The ordinary command line, once the launch profile was selected. +#[derive(Default)] +struct AppCommand { + /// `--control ` (Stable only). + control_port: Option, + /// `--sample` (Stable only). + sample: bool, + /// A Stable `--version`/`-V`, answered before anything starts. + version: bool, + /// Documents to open, in the order they were named. + files: Vec, + /// The graphics backends a restart asked to skip ([`gpu::SKIP_ARG`]). + skip: Vec, +} + +/// Read the arguments left after the launch profile. A Nightly start's first argument is the +/// separator `launch_profile::parse` put there: it is never a document, and an option after it was +/// named by the Launcher as a file. Stable keeps its control, sample and version options and drops +/// a user's own separator, so a literal `--` is never opened as a document. +fn app_command(args: impl IntoIterator, nightly: bool) -> AppCommand { + let mut command = AppCommand::default(); + let mut args = args.into_iter(); + if nightly { + // `parse` puts the protocol's separator first; skipping it keeps a restart's `--gpu-skip=` + // (appended after that separator) in the ordinary arm below. + args.next(); + } + while let Some(a) = args.next() { + let text = a.to_string_lossy().into_owned(); + match text.as_str() { + "--" if !nightly => { + command.files.extend(args.map(|rest| rest.to_string_lossy().into_owned())); + break; + } + "--control" if !nightly => command.control_port = control_port_from("--control", args.next().map(|v| v.to_string_lossy().into_owned())), + "--sample" if !nightly => command.sample = true, + "--version" | "-V" if !nightly => { + command.version = true; + break; + } + _ => match gpu::skip_arg(&text) { + Some(list) => command.skip = list, + None => command.files.push(text), + }, + } + } + command +} + fn main() -> std::process::ExitCode { - // Windows: the update helper is a copy of this program started with `--finish-update`. + let Some(launch) = prepare_launch() else { return std::process::ExitCode::SUCCESS }; + // Windows: the update helper is a copy of this program started with `--finish-update`. A + // Nightly copy is installed and updated by the Launcher, so it never runs the updater. #[cfg(windows)] - if let Some(result) = craft_update::self_update::finish(&designcraft_ui_egui::UPDATE_APP, &std::env::args_os().skip(1).collect::>()) { + if !launch.nightly + && let Some(result) = craft_update::self_update::finish(&designcraft_ui_egui::UPDATE_APP, &std::env::args_os().skip(1).collect::>()) + { std::process::exit(i32::from(result.is_err())); } // First, so every start-up record (and the engine's panic hook, installed with the first // Session) is captured; see `logging`. let logger = logging::install(); - let mut control_port = control_port_from("DESIGNCRAFT_CONTROL_PORT", std::env::var("DESIGNCRAFT_CONTROL_PORT").ok()); - let mut files = Vec::new(); - let mut sample = false; - let mut skip = Vec::new(); - let mut args = std::env::args().skip(1); - while let Some(a) = args.next() { - match a.as_str() { - "--control" => control_port = control_port_from("--control", args.next()), - "--sample" => sample = true, - "--version" => { - println!("designcraft {}", env!("CARGO_PKG_VERSION")); - return std::process::ExitCode::SUCCESS; - } - _ => match gpu::skip_arg(&a) { - Some(list) => skip = list, - None => files.push(a), - }, - } + // A Nightly launch is handed files only; its control channel, sample document and graphics + // restart options are not part of the Launcher's protocol. + let command = app_command(launch.args, launch.nightly); + if command.version { + println!("{}", build_flavor::version_line(build_flavor::COMPILED, build_flavor::STABLE_VERSION_LINE, build_flavor::VERSION)); + return std::process::ExitCode::SUCCESS; } + // A Nightly start never takes the Stable control channel, even from the environment. + let control_port = command.control_port.or_else(|| { + if launch.nightly { None } else { control_port_from("DESIGNCRAFT_CONTROL_PORT", std::env::var("DESIGNCRAFT_CONTROL_PORT").ok()) } + }); + let AppCommand { sample, files, skip, .. } = command; // A portable.txt whose DesignCraftData folder cannot be written: the platform folders are used // instead (see `profile`), and the user is told, in the log and in the status bar. let portable_note = profile::unwritable_portable_dir().map(|dir| { @@ -300,14 +460,14 @@ fn main() -> std::process::ExitCode { // leaves no file behind. Records logged until now are written to it first. if let (Some(logger), Some(dir)) = (logger, profile::config_dir()) { match logger.attach_dir(&dir.join("logs")) { - Ok(path) => log::info!("DesignCraft {}, log file {}", env!("CARGO_PKG_VERSION"), path.display()), + Ok(path) => log::info!("{} {}, log file {}", designcraft_ui_egui::channel::name(), build_flavor::VERSION, path.display()), // Standard error only by now (`attach_dir` gave up on the file); unlike `eprintln!`, never panics. Err(e) => log::warn!("no log file: {e}"), } } let mut options = eframe::NativeOptions { viewport: egui::ViewportBuilder::default() - .with_title("DesignCraft") + .with_title(designcraft_ui_egui::channel::name()) .with_inner_size([1440.0, 900.0]) .with_min_inner_size([900.0, 560.0]) .with_decorations(!cfg!(target_os = "windows")) @@ -320,7 +480,7 @@ fn main() -> std::process::ExitCode { system_font_fallback: false, ..Default::default() }; - options.viewport = options.viewport.with_app_id(APP_ID); + options.viewport = options.viewport.with_app_id(designcraft_ui_egui::channel::current().app_id()); if let Some(icon) = app_icon() { options.viewport = options.viewport.with_icon(icon); } @@ -385,10 +545,19 @@ fn main() -> std::process::ExitCode { #[cfg(target_os = "macos")] let events = &apple_events; let created = startup.clone(); + // What the app creator needs, copied out of `launch` so the closure does not borrow it. + let nightly = launch.nightly; + let session_unavailable = launch.session_unavailable; + let app_session = launch.session.clone(); + // The same record, for a start that created no window (the creator closure owns the Arc). + let exit_session = launch.session.clone(); + // Whether the previous Nightly session's notice reaches a window: always when one is shown, + // and the same answer for the exit paths below. + let unclean_notice_shown = launch.unclean; // A panic that ends the window (egui-wgpu's own) is caught here: never a crash. let run = std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| { eframe::run_native( - "DesignCraft", + designcraft_ui_egui::channel::name(), options, Box::new(move |cc| { let mut restarted = None; @@ -429,7 +598,12 @@ fn main() -> std::process::ExitCode { session.recovery_dir = profile::recovery_dir(); let recovered = session.execute("file.recovery.open", &serde_json::json!({})).ok(); let mut app = DesignApp::new(session, services()); - app.set_startup_update_check(true); + if nightly { + // Installed and updated by the Launcher: never check the stable feed from here. + app.set_updates_managed(Some("ArtCraft Launcher")); + } else { + app.set_startup_update_check(true); + } if let Some(line) = restarted.or_else(|| created.status_line()) { app.status(line); } @@ -442,6 +616,13 @@ fn main() -> std::process::ExitCode { if let Some(note) = portable_note { app.status(note); } + // Last, so the interruption is the line the user reads. Showing it is also what + // lets this session clear the record instead of passing it on. + if unclean_notice_shown { + app.status("DesignCraft Nightly did not close cleanly last time. Recovered documents are listed below."); + } else if session_unavailable && nightly { + log::warn!("another DesignCraft Nightly holds this profile's session record"); + } app.integrated_titlebar = cfg!(target_os = "macos"); app.custom_titlebar = cfg!(target_os = "windows"); // The custom title bar's undecorated window must stay borderless, or its caption @@ -472,6 +653,8 @@ fn main() -> std::process::ExitCode { movable: None, frames: 0, log_errors_after_startup: device, + session: app_session, + unclean_notice_shown, })) }), ) @@ -482,6 +665,9 @@ fn main() -> std::process::ExitCode { // Documents that arrived after the last frame, for a start again to open too. #[cfg(target_os = "macos")] startup.opening(apple_events.queued()); + // Normally `on_exit` already finished it; a graphics failure or a start without a window + // reaches this path instead, and the second call does nothing. + nightly_session::finish_once(&exit_session, unclean_notice_shown); match gpu::finish(run, &startup) { Ok(()) => std::process::ExitCode::SUCCESS, Err(e) => { @@ -509,6 +695,34 @@ mod tests { assert!(!super::KEEP_UI_PREFS.load(std::sync::atomic::Ordering::Relaxed), "ui.json can be saved once a copy is kept"); } + #[test] + fn the_launcher_separator_is_never_a_file_and_never_hides_a_named_document() { + let nightly = super::app_command(["--", "--version", "a.dc", "--control", "7979", "--sample"].map(std::ffi::OsString::from), true); + assert_eq!(nightly.files, ["--version", "a.dc", "--control", "7979", "--sample"]); + assert!(!nightly.version, "a flag after the separator is a document"); + assert_eq!(nightly.control_port, None); + assert!(!nightly.sample); + } + + #[test] + fn a_graphics_restart_after_the_separator_keeps_its_skip_list() { + let nightly = super::app_command(["--", "a.dc", "--gpu-skip=vulkan,gl"].map(std::ffi::OsString::from), true); + assert_eq!(nightly.files, ["a.dc"]); + assert_eq!(nightly.skip, ["vulkan", "gl"]); + } + + #[test] + fn stable_keeps_its_options_and_drops_a_user_separator() { + let stable = super::app_command(["--control", "7979", "--sample", "--", "--version"].map(std::ffi::OsString::from), false); + assert_eq!(stable.control_port, Some(7979)); + assert!(stable.sample); + assert_eq!(stable.files, ["--version"]); + assert!(!stable.version, "a flag after the separator is a document"); + let version = super::app_command([std::ffi::OsString::from("--version")], false); + assert!(version.version); + assert!(version.files.is_empty()); + } + #[test] fn control_port_values_that_are_not_ports_are_ignored() { assert_eq!(super::control_port_from("--control", Some("7979".into())), Some(7979)); diff --git a/apps/designcraft/src/nightly_session.rs b/apps/designcraft/src/nightly_session.rs new file mode 100644 index 000000000..4a40b7ace --- /dev/null +++ b/apps/designcraft/src/nightly_session.rs @@ -0,0 +1,285 @@ +//! App-private Nightly session health, not telemetry or a Launcher protocol. +//! A live owner holds a separate persistent lease; secondary launches never rewrite its record. +//! Dropping the guard does not clear the marker. Only the app's controlled return path does. + +use std::fs::{File, OpenOptions}; +use std::io::{self, Read, Write as _}; +use std::path::{Path, PathBuf}; +use std::sync::{Arc, Mutex, PoisonError}; + +const RECORD: &str = "nightly-session.json"; +const LEASE: &str = "nightly-session.lock"; +const TEMPORARY: &str = "nightly-session.json.staging"; +const MAX_METADATA_BYTES: usize = 256; + +pub struct Session { + _lease: File, + path: PathBuf, + own_record: Vec, + previous_unclean: bool, +} + +fn regular_or_missing(path: &Path) -> io::Result { + match std::fs::symlink_metadata(path) { + Ok(metadata) if metadata.file_type().is_file() && !metadata.file_type().is_symlink() => Ok(true), + Ok(_) => Err(io::Error::other("Nightly session state must be a regular file, not an alias or directory")), + Err(error) if error.kind() == io::ErrorKind::NotFound => Ok(false), + Err(error) => Err(error), + } +} + +/// Stage beside the destination and rename over it: a raced link at the record name is replaced, +/// never followed, and a reader sees either the old record or the whole new one. +fn write_record(root: &Path, name: &str, bytes: &[u8]) -> io::Result<()> { + let staging = root.join(format!("{TEMPORARY}.{}", std::process::id())); + let _ = std::fs::remove_file(&staging); + let mut file = OpenOptions::new().write(true).create_new(true).open(&staging)?; + let written = file.write_all(bytes).and_then(|()| file.sync_all()); + drop(file); + match written.and_then(|()| std::fs::rename(&staging, root.join(name))) { + Ok(()) => Ok(()), + Err(error) => { + let _ = std::fs::remove_file(&staging); + Err(error) + } + } +} + +/// The owner's session, shared by the window's exit path and the code after the event loop. +/// On macOS a quit ends the process inside AppKit's terminate, after eframe's `on_exit` and before +/// `eframe::run_native` could return, so `on_exit` finishes it there; the return path still runs +/// for a start that created no window. +pub type Shared = Arc>>; + +pub fn shared() -> Shared { + shared_with(None) +} + +pub fn shared_with(session: Option) -> Shared { + Arc::new(Mutex::new(session)) +} + +/// The controlled return ([`Session::finish`]) by whichever path comes first; later calls do nothing. +pub fn finish_once(shared: &Shared, unclean_notice_shown: bool) { + let watch = shared.lock().unwrap_or_else(PoisonError::into_inner).take(); + if let Some(watch) = watch + && let Err(error) = watch.finish(unclean_notice_shown) + { + log::warn!("Nightly session state was left intact: {error}"); + } +} + +impl Session { + /// The warning belongs to this window: a busy secondary has no health-record coverage, + /// while Stable and a lease-owning Nightly window preserve their existing result. + pub fn begin_with_health(root: Option<&Path>, version: &str, commit: Option<&str>) -> io::Result<(Option, bool)> { + let watch = Self::begin(root, version, commit)?; + let unavailable = root.is_some() && watch.is_none(); + Ok((watch, unavailable)) + } + + /// `None` is stable or another owner of this profile. Neither case touches the record. + /// The supplied root must already be the validated private Nightly profile. + pub fn begin(root: Option<&Path>, version: &str, commit: Option<&str>) -> io::Result> { + let Some(root) = root else { return Ok(None) }; + if version.is_empty() || version.len() > MAX_METADATA_BYTES || commit.is_some_and(|value| value.len() > MAX_METADATA_BYTES) { + return Err(io::Error::new(io::ErrorKind::InvalidInput, "Nightly session provenance is missing or too large")); + } + let lease_path = root.join(LEASE); + regular_or_missing(&lease_path)?; + let lease = OpenOptions::new().read(true).write(true).create(true).truncate(false).open(lease_path)?; + match lease.try_lock() { + Ok(()) => {} + Err(std::fs::TryLockError::WouldBlock) => return Ok(None), + Err(std::fs::TryLockError::Error(error)) => return Err(error), + } + let path = root.join(RECORD); + let previous_unclean = regular_or_missing(&path)?; + let own_record = serde_json::to_vec(&serde_json::json!({ + "schema_version": 1, + "channel": "nightly-v1", + "version": version, + "commit": commit.filter(|value| !value.is_empty()), + }))?; + write_record(root, RECORD, &own_record)?; + Ok(Some(Self { _lease: lease, path, own_record, previous_unclean })) + } + + pub fn previous_unclean(&self) -> bool { + self.previous_unclean + } + + /// Controlled return. If an earlier session's interruption was detected but no window showed + /// it yet (a graphics failure before the app callback), the record is left for the next owner + /// to report; otherwise this is [`Self::complete`]. + pub fn finish(self, unclean_notice_shown: bool) -> io::Result<()> { + if self.previous_unclean && !unclean_notice_shown { + return Ok(()); + } + self.complete() + } + + /// Controlled event-loop completion includes a handled start-up error, not only exit 0. + /// An unwind, abort, forced exit or killed process never calls this method. + pub fn complete(self) -> io::Result<()> { + if !regular_or_missing(&self.path)? { + return Ok(()); + } + let mut current = Vec::new(); + File::open(&self.path)?.take(self.own_record.len() as u64 + 1).read_to_end(&mut current)?; + if current != self.own_record { + return Err(io::Error::other("Nightly session state changed; leaving it intact")); + } + std::fs::remove_file(&self.path) + } +} + +#[cfg(test)] +mod tests { + use super::*; + use std::sync::atomic::{AtomicU64, Ordering}; + + struct Fixture(PathBuf); + impl Fixture { + fn new() -> Self { + static NEXT: AtomicU64 = AtomicU64::new(0); + loop { + let path = + std::env::temp_dir().join(format!("designcraft-nightly-session-{}-{}", std::process::id(), NEXT.fetch_add(1, Ordering::Relaxed))); + match std::fs::create_dir(&path) { + Ok(()) => return Self(path), + Err(error) if error.kind() == io::ErrorKind::AlreadyExists => continue, + Err(error) => panic!("cannot create owned fixture: {error}"), + } + } + } + } + impl Drop for Fixture { + fn drop(&mut self) { + std::fs::remove_dir_all(&self.0).unwrap(); + } + } + + #[test] + fn busy_secondary_reports_unavailable_without_replacing_the_owner_record() { + let fixture = Fixture::new(); + let (stable, warning) = Session::begin_with_health(None, "stable", None).unwrap(); + assert!(stable.is_none() && !warning); + let (first, warning) = Session::begin_with_health(Some(&fixture.0), "nightly", Some("owned-commit")).unwrap(); + assert!(!warning); + let first = first.unwrap(); + let record = std::fs::read(fixture.0.join(RECORD)).unwrap(); + let (secondary, warning) = Session::begin_with_health(Some(&fixture.0), "secondary", None).unwrap(); + assert!(secondary.is_none() && warning, "a secondary window cannot claim recorded exit/crash coverage"); + assert_eq!(std::fs::read(fixture.0.join(RECORD)).unwrap(), record); + first.complete().unwrap(); + assert!(!fixture.0.join(RECORD).exists()); + } + + #[test] + fn controlled_completion_is_clean_but_an_unfinished_owner_is_reported_next_time() { + let fixture = Fixture::new(); + let first = Session::begin(Some(&fixture.0), "first", Some("recorded-commit")).unwrap().unwrap(); + assert!(!first.previous_unclean()); + let own = std::fs::read(fixture.0.join(RECORD)).unwrap(); + assert!(Session::begin(Some(&fixture.0), "secondary", None).unwrap().is_none()); + assert_eq!(std::fs::read(fixture.0.join(RECORD)).unwrap(), own, "a busy secondary must not replace the owner's record"); + first.complete().unwrap(); + assert!(!fixture.0.join(RECORD).exists()); + let unfinished = Session::begin(Some(&fixture.0), "second", None).unwrap().unwrap(); + assert!(!unfinished.previous_unclean()); + drop(unfinished); // Unwind/abnormal-path ownership release, not a controlled completion. + let next = Session::begin(Some(&fixture.0), "third", None).unwrap().unwrap(); + assert!(next.previous_unclean()); + next.complete().unwrap(); + assert!(!fixture.0.join(RECORD).exists()); + } + + #[test] + fn an_interruption_no_window_showed_survives_a_handled_startup_failure() { + let fixture = Fixture::new(); + drop(Session::begin(Some(&fixture.0), "crashed", None).unwrap().unwrap()); + let failed = Session::begin(Some(&fixture.0), "gpu-failed", None).unwrap().unwrap(); + assert!(failed.previous_unclean()); + failed.finish(false).unwrap(); + let retry = Session::begin(Some(&fixture.0), "gpu-retry", None).unwrap().unwrap(); + assert!(retry.previous_unclean()); + retry.finish(true).unwrap(); + assert!(!fixture.0.join(RECORD).exists(), "a session that showed the notice clears its record"); + let clean = Session::begin(Some(&fixture.0), "clean", None).unwrap().unwrap(); + assert!(!clean.previous_unclean()); + clean.finish(false).unwrap(); + assert!(!fixture.0.join(RECORD).exists()); + } + + #[test] + fn the_exit_path_and_the_return_path_finish_the_session_once() { + let fixture = Fixture::new(); + let shared = shared(); + *shared.lock().unwrap() = Session::begin(Some(&fixture.0), "quitting", None).unwrap(); + finish_once(&shared, false); + assert!(!fixture.0.join(RECORD).exists(), "a quit that ran the exit path is a clean exit"); + let successor = Session::begin(Some(&fixture.0), "successor", None).unwrap().unwrap(); + assert!(!successor.previous_unclean()); + let record = std::fs::read(fixture.0.join(RECORD)).unwrap(); + finish_once(&shared, false); + assert_eq!(std::fs::read(fixture.0.join(RECORD)).unwrap(), record, "the second finish must not touch a successor's record"); + successor.complete().unwrap(); + } + + #[test] + fn cleanup_never_removes_an_unknown_changed_record() { + let fixture = Fixture::new(); + let watch = Session::begin(Some(&fixture.0), "nightly", None).unwrap().unwrap(); + std::fs::write(fixture.0.join(RECORD), b"replacement owned by someone else").unwrap(); + assert!(watch.complete().is_err()); + assert_eq!(std::fs::read(fixture.0.join(RECORD)).unwrap(), b"replacement owned by someone else"); + } + + #[test] + fn provenance_is_bounded_and_never_collects_documents_paths_or_diagnostics() { + let fixture = Fixture::new(); + assert!(Session::begin(Some(&fixture.0), &"x".repeat(MAX_METADATA_BYTES + 1), None).is_err()); + assert_eq!(std::fs::read_dir(&fixture.0).unwrap().count(), 0); + assert!(Session::begin(None, "", None).unwrap().is_none(), "stable has no session-health side effects"); + let watch = Session::begin(Some(&fixture.0), "nightly", None).unwrap().unwrap(); + let data: serde_json::Value = serde_json::from_slice(&std::fs::read(fixture.0.join(RECORD)).unwrap()).unwrap(); + let fields = data.as_object().unwrap().keys().map(String::as_str).collect::>(); + assert_eq!(fields, ["schema_version", "channel", "version", "commit"].into_iter().collect()); + assert!(data["commit"].is_null(), "missing provenance must not be invented"); + watch.complete().unwrap(); + assert_eq!(std::fs::read_dir(&fixture.0).unwrap().count(), 1, "only the lease remains"); + } + + #[test] + #[cfg(unix)] + fn reserved_state_aliases_do_not_modify_external_files() { + let fixture = Fixture::new(); + let external = fixture.0.join("stable-document"); + std::fs::write(&external, b"stable bytes").unwrap(); + for name in [LEASE, RECORD] { + let alias = fixture.0.join(name); + std::os::unix::fs::symlink(&external, &alias).unwrap(); + assert!(Session::begin(Some(&fixture.0), "nightly", None).is_err()); + assert_eq!(std::fs::read(&external).unwrap(), b"stable bytes"); + std::fs::remove_file(alias).unwrap(); + } + } + + #[test] + #[cfg(unix)] + fn a_raced_record_link_is_replaced_rather_than_followed() { + let fixture = Fixture::new(); + let external = fixture.0.join("stable-document"); + std::fs::write(&external, b"stable bytes").unwrap(); + // The record is absent when the owner begins, so the write path cannot refuse it; the + // rename over a link that appears afterwards must not follow it. + write_record(&fixture.0, RECORD, b"{}").unwrap(); + std::fs::remove_file(fixture.0.join(RECORD)).unwrap(); + std::os::unix::fs::symlink(&external, fixture.0.join(RECORD)).unwrap(); + write_record(&fixture.0, RECORD, b"nightly record").unwrap(); + assert_eq!(std::fs::read(&external).unwrap(), b"stable bytes"); + assert!(!std::fs::symlink_metadata(fixture.0.join(RECORD)).unwrap().file_type().is_symlink()); + assert_eq!(std::fs::read(fixture.0.join(RECORD)).unwrap(), b"nightly record"); + } +} diff --git a/apps/designcraft/src/process_identity.rs b/apps/designcraft/src/process_identity.rs new file mode 100644 index 000000000..c74d63490 --- /dev/null +++ b/apps/designcraft/src/process_identity.rs @@ -0,0 +1,71 @@ +//! Set the immutable nightly Windows identity before any native window or COM service. +//! Stable deliberately leaves its implicit shortcut/path identity unchanged. + +use std::sync::OnceLock; + +#[derive(Clone, Debug, thiserror::Error)] +pub enum IdentityError { + #[error("{0}")] + Configuration(String), +} + +pub fn initialize(nightly: bool, app_id: &str) -> Result<(), IdentityError> { + configure(nightly && cfg!(windows), app_id, |id| { + static RESULT: OnceLock> = OnceLock::new(); + RESULT + .get_or_init(|| { + #[cfg(windows)] + { + winsafe::SetCurrentProcessExplicitAppUserModelID(id) + .map_err(|error| format!("cannot set the nightly Windows identity: {error}"))?; + let actual = winsafe::GetCurrentProcessExplicitAppUserModelID() + .map_err(|error| format!("cannot read back the nightly Windows identity: {error}"))?; + if actual != id { + return Err("the native Windows identity did not match the selected nightly channel".into()); + } + Ok(()) + } + #[cfg(not(windows))] + { + let _ = id; + Ok(()) + } + }) + .clone() + }) + .map_err(IdentityError::Configuration) +} + +fn configure(explicit_nightly: bool, app_id: &str, set: impl FnOnce(&str) -> Result<(), String>) -> Result<(), String> { + if explicit_nightly { set(app_id) } else { Ok(()) } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn stable_does_not_call_the_explicit_identity_api() { + configure(false, "nightly-id", |_| panic!("stable identity must remain implicit")).unwrap(); + } + + #[test] + fn nightly_applies_the_supplied_identity_once() { + let calls = std::cell::Cell::new(0); + configure(true, "nightly-id", |id| { + assert_eq!(id, "nightly-id"); + calls.set(calls.get() + 1); + Ok(()) + }) + .unwrap(); + assert_eq!(calls.get(), 1); + } + + #[test] + fn native_identity_failure_is_returned_instead_of_starting_a_window() { + let started = std::cell::Cell::new(false); + let result = configure(true, "nightly-id", |_| Err("native identity refused".into())).map(|()| started.set(true)); + assert_eq!(result.unwrap_err(), "native identity refused"); + assert!(!started.get()); + } +} diff --git a/apps/designcraft/src/profile.rs b/apps/designcraft/src/profile.rs index 1450e5077..0daa79665 100644 --- a/apps/designcraft/src/profile.rs +++ b/apps/designcraft/src/profile.rs @@ -5,13 +5,29 @@ use std::path::{Path, PathBuf}; /// A file with this name next to the executable makes the install portable: settings, logs and /// recovery data are kept in [`PORTABLE_DATA_DIR`] beside it. The Windows portable zip ships one. -const PORTABLE_MARKER: &str = "portable.txt"; -const PORTABLE_DATA_DIR: &str = "DesignCraftData"; +pub(crate) const PORTABLE_MARKER: &str = "portable.txt"; +pub(crate) const PORTABLE_DATA_DIR: &str = "DesignCraftData"; +/// The settings folder. A Launcher nightly profile replaces every data root at once: settings, +/// logs, GPU state and recovery all live under it, so the fence in `profile_root` covers the +/// whole of Nightly's user state (the engine's `Prefs`, `ui.json` and `recovery` included). pub fn config_dir() -> Option { + if let Some(root) = crate::launch_profile::current().root() { + return Some(root.to_path_buf()); + } config_dir_with(std::env::consts::OS, |key| std::env::var_os(key), executable_dir().as_deref()) } +/// Whether `dir` exists, or can be created, and takes a new file. The nightly profile validator +/// uses this same probe (`profile_root`), so a profile is accepted only where settings can land. +pub(crate) fn ensure_writable(dir: &Path) -> std::io::Result<()> { + std::fs::create_dir_all(dir)?; + let probe = dir.join(format!(".write-test-{}", std::process::id())); + let result = std::fs::OpenOptions::new().write(true).create_new(true).open(&probe).map(drop); + let _ = std::fs::remove_file(&probe); + result +} + fn config_dir_with(os: &str, env: impl Fn(&str) -> Option, exe_dir: Option<&Path>) -> Option { if let Some(root) = root_with(&env, exe_dir) { // An explicitly empty override must not fall back to the user's profile. @@ -50,13 +66,7 @@ fn marked_data_dir(exe_dir: &Path) -> Option { /// Whether `dir` exists, or can be created, and takes a new file: read-only attributes and /// permissions are only known by trying. fn writable(dir: &Path) -> bool { - if std::fs::create_dir_all(dir).is_err() { - return false; - } - let probe = dir.join(format!(".write-test-{}", std::process::id())); - let ok = std::fs::write(&probe, b"").is_ok(); - let _ = std::fs::remove_file(&probe); - ok + ensure_writable(dir).is_ok() } /// The data folder of a portable install that could not be used because it is not writable, for @@ -85,6 +95,10 @@ fn executable_dir() -> Option { } pub fn recovery_dir() -> Option { + if let Some(root) = crate::launch_profile::current().root() { + // Recovery stays inside the profile, including the per-run folder's lock. + return own_run(root.join("Recovery")); + } recovery_dir_with(root_with(|key| std::env::var_os(key), executable_dir().as_deref()), designcraft_engine::recovery::default_dir) .and_then(own_run) } diff --git a/apps/designcraft/src/profile_root.rs b/apps/designcraft/src/profile_root.rs new file mode 100644 index 000000000..1522d0070 --- /dev/null +++ b/apps/designcraft/src/profile_root.rs @@ -0,0 +1,492 @@ +//! App-owned nightly profile fences; no stable fallback, migration or process environment changes. + +use std::ffi::OsString; +use std::path::{Component, Path, PathBuf}; + +use crate::profile::{PORTABLE_DATA_DIR, PORTABLE_MARKER}; + +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +enum Platform { + Windows, + Linux, + Mac, +} + +impl Platform { + fn current() -> Result { + match std::env::consts::OS { + "windows" => Ok(Self::Windows), + "linux" => Ok(Self::Linux), + "macos" => Ok(Self::Mac), + _ => Err("nightly-v1 is not defined for this operating system".into()), + } + } + + fn ignores_case(self) -> bool { + self != Self::Linux + } +} + +fn absolute(path: PathBuf, label: &str) -> Result { + if !path.is_absolute() || path.components().any(|c| matches!(c, Component::ParentDir)) { + return Err(format!("{label} must be absolute and contain no parent traversal")); + } + Ok(path) +} + +fn required_base(env: &impl Fn(&str) -> Option, key: &str) -> Result { + let value = env(key).filter(|v| !v.is_empty()).ok_or_else(|| format!("cannot establish the stable {key} boundary"))?; + absolute(PathBuf::from(value), key) +} + +fn xdg_base(env: &impl Fn(&str) -> Option, key: &str, fallback: &str) -> Result { + match env(key).filter(|v| !v.is_empty()) { + Some(value) => absolute(PathBuf::from(value), key), + None => Ok(required_base(env, "HOME")?.join(fallback)), + } +} + +/// Resolve existing ancestors before creating anything. A dangling link or inaccessible ancestor +/// is not a missing directory that may be replaced or followed later. +fn canonical_future(path: &Path) -> Result { + let mut parent = path; + let mut missing = Vec::new(); + loop { + match std::fs::symlink_metadata(parent) { + Ok(_) => break, + Err(error) if error.kind() == std::io::ErrorKind::NotFound => { + missing.push(parent.file_name().ok_or("the profile root has no existing ancestor")?.to_os_string()); + parent = parent.parent().ok_or("the profile root has no existing ancestor")?; + } + Err(error) => return Err(format!("cannot inspect the profile boundary: {error}")), + } + } + let mut resolved = std::fs::canonicalize(parent).map_err(|e| format!("cannot resolve the profile boundary: {e}"))?; + for part in missing.into_iter().rev() { + resolved.push(part); + } + Ok(resolved) +} + +fn overlaps(a: &Path, b: &Path, platform: Platform) -> bool { + let parts = |p: &Path| { + p.components() + .map(|c| { + let value = c.as_os_str().to_string_lossy().into_owned(); + if platform.ignores_case() { value.to_lowercase() } else { value } + }) + .collect::>() + }; + let (a, b) = (parts(a), parts(b)); + a.starts_with(&b) || b.starts_with(&a) +} + +fn installation_boundary(platform: Platform, exe: &Path) -> Result { + let parent = exe.parent().ok_or("cannot establish the installation boundary")?; + if platform == Platform::Mac { + // A profile in Resources is still inside the versioned install, not beside MacOS. + if let Some(bundle) = exe.ancestors().find(|p| p.extension().is_some_and(|ext| ext.eq_ignore_ascii_case("app"))) { + return Ok(bundle.to_path_buf()); + } + } + Ok(parent.to_path_buf()) +} + +fn forbidden_roots(platform: Platform, env: &impl Fn(&str) -> Option, exe: &Path) -> Result, String> { + let mut roots = match platform { + Platform::Windows => { + let mut roots = ["APPDATA", "LOCALAPPDATA"] + .into_iter() + .map(|key| required_base(env, key).map(|p| p.join("DesignCraft"))) + .collect::, _>>()?; + // The MSI's per-machine folder (install-policy.wxi, ProgramFiles6432Folder) and a + // per-user install folder. A custom folder is not known here; the executable's own + // folder is fenced below. + roots.push(required_base(env, "LOCALAPPDATA")?.join("Programs").join("ArtCraft").join("DesignCraft")); + for key in ["ProgramW6432", "ProgramFiles", "ProgramFiles(x86)"] { + if let Some(base) = env(key).filter(|v| !v.is_empty()) { + roots.push(absolute(PathBuf::from(base), key)?.join("ArtCraft").join("DesignCraft")); + } + } + roots + } + Platform::Linux => { + let mut roots = + [("XDG_CONFIG_HOME", ".config"), ("XDG_DATA_HOME", ".local/share"), ("XDG_CACHE_HOME", ".cache"), ("XDG_STATE_HOME", ".local/state")] + .into_iter() + .map(|(key, fallback)| xdg_base(env, key, fallback).map(|p| p.join("designcraft"))) + .collect::, _>>()?; + roots.extend(["/usr/bin/designcraft", "/usr/local/bin/designcraft", "/opt/designcraft"].map(PathBuf::from)); + // The stable Flatpak keeps its data in its own per-app folder. + roots.push(required_base(env, "HOME")?.join(".var/app/ai.storyteller.designcraft")); + roots + } + Platform::Mac => { + let home = required_base(env, "HOME")?; + let library = home.join("Library"); + vec![ + library.join("Application Support/DesignCraft"), + library.join("Caches/DesignCraft"), + library.join("Caches/ai.storyteller.designcraft"), + library.join("Preferences/DesignCraft.plist"), + library.join("Preferences/ai.storyteller.designcraft.plist"), + library.join("Saved Application State/ai.storyteller.designcraft.savedState"), + home.join("Applications/DesignCraft.app"), + PathBuf::from("/Applications/DesignCraft.app"), + ] + } + }; + roots.push(installation_boundary(platform, exe)?); + roots.into_iter().map(|p| canonical_future(&p)).collect() +} + +fn private_subdirectory(root: &Path, name: impl AsRef, label: &str) -> Result { + let chosen = canonical_future(&absolute(root.to_path_buf(), "the nightly profile root")?)?; + let child = canonical_future(&chosen.join(name))?; + if child == chosen || !child.starts_with(&chosen) { + return Err(format!("the nightly {label} must stay inside its selected profile")); + } + Ok(child) +} + +/// Every existing entry directly in the profile (logs, settings and so on) must resolve inside it, +/// so a link there cannot point Nightly's writes at another app's data. +fn entries_stay_inside(root: &Path) -> Result<(), String> { + let entries = match std::fs::read_dir(root) { + Ok(entries) => entries, + Err(error) if error.kind() == std::io::ErrorKind::NotFound => return Ok(()), + Err(error) => return Err(format!("cannot inspect the nightly profile: {error}")), + }; + for entry in entries { + let entry = entry.map_err(|e| format!("cannot inspect the nightly profile: {e}"))?; + private_subdirectory(root, entry.file_name(), "profile entry")?; + } + Ok(()) +} + +/// Recognise the shared portable data namespace in both the supplied and resolved path. +/// This is not an inventory of arbitrary custom stable overrides or a Launcher ownership proof. +fn is_portable_layout(path: &Path, platform: Platform) -> bool { + // A folder under a portable copy belongs to that copy too. Above the chosen folder itself, a + // marker only counts beside a DesignCraft executable, so an unrelated portable.txt higher up + // (in a user folder or at a drive root) does not refuse the profile. + path.ancestors().enumerate().any(|(depth, ancestor)| { + ancestor.join(PORTABLE_MARKER).is_file() + && (depth == 0 || ["designcraft.exe", "designcraft", "DesignCraft.app"].iter().any(|exe| ancestor.join(exe).exists())) + }) || path.components().any(|component| match component { + Component::Normal(name) if platform.ignores_case() => name.to_string_lossy().eq_ignore_ascii_case(PORTABLE_DATA_DIR), + Component::Normal(name) => name == PORTABLE_DATA_DIR, + _ => false, + }) +} + +/// The writable hook is the app's existing probe (`profile::ensure_writable`). Keeping it injected +/// lets filesystem boundary tests exercise the real policy without starting the app or changing +/// global state. +pub fn validate( + root: &Path, + env: impl Fn(&str) -> Option, + exe: Option<&Path>, + writable: impl FnOnce(&Path) -> std::io::Result<()>, +) -> Result { + validate_for(Platform::current()?, root, env, exe, writable) +} + +fn validate_for( + platform: Platform, + root: &Path, + env: impl Fn(&str) -> Option, + exe: Option<&Path>, + writable: impl FnOnce(&Path) -> std::io::Result<()>, +) -> Result { + absolute(root.to_path_buf(), "the nightly profile root")?; + if env("DESIGNCRAFT_CONFIG_DIR").is_some_and(|v| !v.is_empty()) { + // The stable override would silently point every write at another app's data. + return Err("nightly-v1 cannot be combined with DESIGNCRAFT_CONFIG_DIR".into()); + } + // The nightly bundle's own sandbox is the one Flatpak that may reach this code: its per-app + // home is private. Any other id means a native package (or the stable bundle) started here, + // whose runtime socket namespace is not this profile's. + let foreign_sandbox = + env("FLATPAK_ID").filter(|value| !value.is_empty()).is_some_and(|id| id != designcraft_ui_egui::channel::NIGHTLY_PACKAGE_ID); + if platform != Platform::Windows && foreign_sandbox { + return Err("nightly-v1 starts only in its own Flatpak bundle, not inside another app's sandbox".into()); + } + let chosen = canonical_future(root)?; + if is_portable_layout(root, platform) || is_portable_layout(&chosen, platform) { + return Err("the nightly root must not use a portable DesignCraft installation or its DesignCraftData settings folder".into()); + } + let exe = absolute(exe.ok_or("cannot establish the installation boundary")?.to_path_buf(), "the executable")?; + let forbidden = forbidden_roots(platform, &env, &exe)?; + if forbidden.iter().any(|stable| overlaps(&chosen, stable, platform)) { + return Err("the nightly root must not overlap stable data or an installation".into()); + } + // Existing aliases under the profile must not redirect a write outside it. + entries_stay_inside(&chosen)?; + // Recovery can read, adopt, overwrite and sweep entries. Never let its alias leave this + // private profile, including toward a stable portable directory not in our known roots. + private_subdirectory(&chosen, "Recovery", "recovery folder")?; + let mut create = std::fs::DirBuilder::new(); + create.recursive(true); + #[cfg(unix)] + { + use std::os::unix::fs::DirBuilderExt as _; + create.mode(0o700); + } + create.create(&chosen).map_err(|e| format!("cannot create the nightly profile: {e}"))?; + let confirmed = std::fs::canonicalize(&chosen).map_err(|e| format!("cannot resolve the created nightly profile: {e}"))?; + if confirmed != chosen || forbidden.iter().any(|stable| overlaps(&confirmed, stable, platform)) { + return Err("the nightly profile changed while it was being validated".into()); + } + private_subdirectory(&confirmed, "Recovery", "recovery folder")?; + entries_stay_inside(&confirmed)?; + writable(&confirmed).map_err(|e| format!("the nightly profile is not writable: {e}"))?; + Ok(confirmed) +} + +#[cfg(test)] +mod tests { + use super::*; + use std::collections::BTreeMap; + use std::sync::atomic::{AtomicU64, Ordering}; + + struct Fixture { + root: PathBuf, + env: BTreeMap, + exe: PathBuf, + } + + impl Fixture { + fn new() -> Self { + static NEXT: AtomicU64 = AtomicU64::new(0); + let root = loop { + let candidate = + std::env::temp_dir().join(format!("designcraft-profile-policy-{}-{}", std::process::id(), NEXT.fetch_add(1, Ordering::Relaxed))); + match std::fs::create_dir(&candidate) { + Ok(()) => break std::fs::canonicalize(candidate).unwrap(), + Err(error) if error.kind() == std::io::ErrorKind::AlreadyExists => continue, + Err(error) => panic!("cannot create owned fixture: {error}"), + } + }; + let home = root.join("home"); + let exe = root.join("install/designcraft"); + std::fs::create_dir_all(&home).unwrap(); + std::fs::create_dir_all(exe.parent().unwrap()).unwrap(); + std::fs::write(&exe, b"fixture executable, never run").unwrap(); + let env = [("HOME", home), ("APPDATA", root.join("roaming")), ("LOCALAPPDATA", root.join("local"))] + .into_iter() + .map(|(key, value)| (key.into(), value.into_os_string())) + .collect(); + Self { root, env, exe } + } + + fn get(&self, key: &str) -> Option { + self.env.get(key).cloned() + } + + fn check(&self, platform: Platform, root: &Path) -> Result { + validate_for( + platform, + root, + |key| self.get(key), + Some(&self.exe), + |dir| { + let probe = dir.join("exclusive-test-probe"); + let file = std::fs::OpenOptions::new().write(true).create_new(true).open(&probe)?; + drop(file); + std::fs::remove_file(probe) + }, + ) + } + + fn home(&self) -> PathBuf { + PathBuf::from(self.get("HOME").unwrap()) + } + } + + impl Drop for Fixture { + fn drop(&mut self) { + // Only the directory successfully created by this fixture is owned for removal. + std::fs::remove_dir_all(&self.root).unwrap(); + } + } + + #[test] + fn every_stable_data_root_is_refused_on_every_platform() { + let fixture = Fixture::new(); + let home = fixture.home(); + let cases = [ + (Platform::Windows, fixture.root.join("roaming/DesignCraft")), + (Platform::Windows, fixture.root.join("local/DesignCraft")), + (Platform::Windows, fixture.root.join("local/Programs/ArtCraft/DesignCraft")), + (Platform::Linux, home.join(".config/designcraft")), + (Platform::Linux, home.join(".local/share/designcraft")), + (Platform::Linux, home.join(".cache/designcraft")), + (Platform::Linux, home.join(".local/state/designcraft")), + (Platform::Linux, home.join(".var/app/ai.storyteller.designcraft")), + (Platform::Linux, PathBuf::from("/opt/designcraft")), + (Platform::Mac, home.join("Library/Application Support/DesignCraft")), + (Platform::Mac, home.join("Library/Caches/DesignCraft")), + (Platform::Mac, home.join("Library/Preferences/ai.storyteller.designcraft.plist")), + (Platform::Mac, home.join("Library/Saved Application State/ai.storyteller.designcraft.savedState")), + (Platform::Mac, home.join("Applications/DesignCraft.app")), + ]; + for (platform, stable) in cases { + for candidate in [stable.clone(), stable.join("nested nightly")] { + let probed = std::cell::Cell::new(false); + let result = validate_for( + platform, + &candidate, + |key| fixture.get(key), + Some(&fixture.exe), + |_| { + probed.set(true); + Ok(()) + }, + ); + assert!(result.is_err(), "{platform:?} accepted {candidate:?}"); + assert!(!probed.get(), "a refused root must not be probed for writing"); + } + } + } + + #[test] + fn the_installation_folder_and_grandparent_overlaps_are_refused() { + let fixture = Fixture::new(); + let install = fixture.exe.parent().unwrap().to_path_buf(); + for platform in [Platform::Windows, Platform::Linux, Platform::Mac] { + assert!(fixture.check(platform, &install).is_err(), "the install folder itself"); + assert!(fixture.check(platform, &install.join("profile")).is_err(), "a folder inside the install"); + assert!(fixture.check(platform, &fixture.root.join("nightly")).is_ok(), "a sibling of the install is private"); + } + } + + #[test] + fn prefix_and_case_lookalikes_are_not_stable_overlaps() { + let fixture = Fixture::new(); + for platform in [Platform::Windows, Platform::Linux, Platform::Mac] { + // `DesignCraftBackups` only starts with the stable folder's name. + assert!(fixture.check(platform, &fixture.home().join("Library/Application Support/DesignCraftBackups/nightly")).is_ok()); + assert!(fixture.check(platform, &fixture.root.join("data-craft/nightly")).is_ok()); + } + // Case folding differs by platform: Windows and macOS fold, Linux does not. + let folded = fixture.root.join("roaming/designcraft"); + assert!(fixture.check(Platform::Windows, &folded).is_err()); + assert!(fixture.check(Platform::Linux, &folded).is_ok(), "a different case is a different Linux path"); + } + + #[test] + fn portable_settings_from_another_install_are_refused_before_any_probe() { + let fixture = Fixture::new(); + let stable_install = fixture.root.join("stable portable install"); + let stable_data = stable_install.join(PORTABLE_DATA_DIR); + std::fs::create_dir_all(&stable_data).unwrap(); + std::fs::write(stable_install.join(PORTABLE_MARKER), b"owned portable fixture").unwrap(); + std::fs::write(stable_data.join("ui.json"), b"stable settings must not change").unwrap(); + for platform in [Platform::Windows, Platform::Linux, Platform::Mac] { + for candidate in [&stable_data, &stable_data.join("nested nightly")] { + let probed = std::cell::Cell::new(false); + let result = validate_for( + platform, + candidate, + |key| fixture.get(key), + Some(&fixture.exe), + |_| { + probed.set(true); + Ok(()) + }, + ); + assert!(result.is_err(), "a different portable install is not a private Nightly profile"); + assert!(!probed.get(), "reject portable data before a writable probe"); + assert!(!stable_data.join("nested nightly").exists()); + assert_eq!(std::fs::read(stable_data.join("ui.json")).unwrap(), b"stable settings must not change"); + } + } + let private = fixture.root.join("DesignCraftData-backup-name/nightly"); + assert!(fixture.check(Platform::Linux, &private).is_ok(), "a merely similar name is not a portable settings component"); + } + + #[test] + fn the_stable_settings_override_and_a_flatpak_instance_are_refused() { + let fixture = Fixture::new(); + let target = fixture.root.join("nightly"); + for value in ["/somewhere/else", ""] { + let env = |key: &str| if key == "DESIGNCRAFT_CONFIG_DIR" { Some(OsString::from(value)) } else { fixture.get(key) }; + let result = validate_for(Platform::Linux, &target, env, Some(&fixture.exe), |_| Ok(())); + if value.is_empty() { + assert!(result.is_ok(), "an empty override is not a stable data redirection"); + } else { + let error = result.unwrap_err(); + assert!(error.contains("DESIGNCRAFT_CONFIG_DIR"), "{error}"); + } + } + let flatpak = |key: &str| if key == "FLATPAK_ID" { Some(OsString::from("ai.storyteller.designcraft")) } else { fixture.get(key) }; + assert!(validate_for(Platform::Linux, &target, flatpak, Some(&fixture.exe), |_| Ok(())).is_err()); + assert!(validate_for(Platform::Windows, &target, flatpak, Some(&fixture.exe), |_| Ok(())).is_ok(), "Windows has no Flatpak namespace"); + // The nightly bundle's own sandbox is private; a lookalike id is still another app's. + let nightly_bundle = + |key: &str| if key == "FLATPAK_ID" { Some(OsString::from(designcraft_ui_egui::channel::NIGHTLY_PACKAGE_ID)) } else { fixture.get(key) }; + assert!(validate_for(Platform::Linux, &target, nightly_bundle, Some(&fixture.exe), |_| Ok(())).is_ok()); + let lookalike = + |key: &str| if key == "FLATPAK_ID" { Some(OsString::from("ai.storyteller.designcraft.nightly-v1")) } else { fixture.get(key) }; + assert!(validate_for(Platform::Linux, &target, lookalike, Some(&fixture.exe), |_| Ok(())).is_err()); + } + + #[cfg(unix)] + #[test] + fn recovery_aliases_cannot_redirect_to_stable_or_outward_data() { + let fixture = Fixture::new(); + let stable = fixture.home().join(".local/share/designcraft/Recovery"); + std::fs::create_dir_all(&stable).unwrap(); + std::fs::write(stable.join("stable-autosave"), b"stable recovery bytes").unwrap(); + for target in [stable.clone(), fixture.root.to_path_buf(), fixture.root.join("Recovery/../../elsewhere")] { + let profile = fixture.root.join(format!("profile-{}", target.file_name().unwrap().to_string_lossy().replace('.', "_"))); + std::fs::create_dir_all(&profile).unwrap(); + std::os::unix::fs::symlink(&target, profile.join("Recovery")).unwrap(); + assert!(fixture.check(Platform::Linux, &profile).is_err(), "{target:?}"); + assert_eq!(std::fs::read(stable.join("stable-autosave")).unwrap(), b"stable recovery bytes"); + } + } + + #[cfg(unix)] + #[test] + fn a_created_profile_is_private_and_a_failed_write_probe_never_falls_back() { + let fixture = Fixture::new(); + let probe = fixture.root.join("profile for probe"); + let error = validate_for(Platform::Linux, &probe, |key| fixture.get(key), Some(&fixture.exe), |_| Err(std::io::Error::other("read-only"))) + .unwrap_err(); + assert!(error.contains("not writable"), "{error}"); + use std::os::unix::fs::PermissionsExt; + assert_eq!(std::fs::metadata(&probe).unwrap().permissions().mode() & 0o777, 0o700); + } + + #[test] + fn relative_and_parent_traversing_are_refused_and_link_ancestors_are_resolved() { + let fixture = Fixture::new(); + for candidate in [PathBuf::from("relative/nightly"), fixture.root.join("a/../nightly")] { + assert!(fixture.check(Platform::Linux, &candidate).is_err(), "{candidate:?}"); + } + #[cfg(unix)] + { + let elsewhere = fixture.root.join("elsewhere"); + std::fs::create_dir_all(&elsewhere).unwrap(); + std::os::unix::fs::symlink(&elsewhere, fixture.root.join("linked")).unwrap(); + // `canonical_future` resolves the existing ancestors before anything is created, so a + // root reached through a link is validated and created at the link's real location. + // That location is what the fence checks, and it is where every write then lands. + let resolved = fixture.check(Platform::Linux, &fixture.root.join("linked/nightly")).unwrap(); + assert_eq!(resolved, std::fs::canonicalize(elsewhere.join("nightly")).unwrap()); + assert!(resolved.is_dir()); + assert_eq!(std::fs::canonicalize(fixture.root.join("linked")).unwrap(), elsewhere); + } + } + + #[test] + fn a_valid_profile_is_returned_resolved_and_created() { + let fixture = Fixture::new(); + let chosen = fixture.root.join("launcher data/profiles/designcraft"); + let resolved = fixture.check(Platform::Linux, &chosen).unwrap(); + assert_eq!(resolved, std::fs::canonicalize(&chosen).unwrap()); + assert!(resolved.is_dir()); + } +} diff --git a/assets/app-icon/README.md b/assets/app-icon/README.md index a1086577a..863662f73 100644 --- a/assets/app-icon/README.md +++ b/assets/app-icon/README.md @@ -46,3 +46,14 @@ The app ID is `ai.storyteller.designcraft`. It's used for the hicolor icon names Edit `designcraft.svg` (or `designcraft-small.svg`), then run `packaging/icons.sh`. It needs `resvg`, and `iconutil` for the `.icns` (macOS only). It packs the `.ico` with `cargo xtask ico`. + +## Nightly channel + +`designcraft-nightly.png`, `-1024.png`, `.ico` and `.icns` are the Launcher Nightly's icons. They keep +the artwork, alpha and Mac padding unchanged and change only the background field, from the app +green `#7bb51c` to the deeper `#26400f`; there is no letter badge or crescent, and the app and the +Launcher identify the channel in text. The 1024 master is derived from the native 1024 tile onto +Apple's 824/1024 grid, never upscaled from 256. Hashes, the palette-fit method and the container +members are in [`nightly-provenance.json`](nightly-provenance.json); the stable files are not +recoloured. `build.rs` embeds `designcraft-nightly.ico` into a nightly `designcraft.exe`, and the +nightly bundle uses `designcraft-nightly.icns`. diff --git a/assets/app-icon/designcraft-nightly-1024.png b/assets/app-icon/designcraft-nightly-1024.png new file mode 100644 index 0000000000000000000000000000000000000000..dcdb7d0c72b9fa9297440c47e66b671f0eac1416 GIT binary patch literal 846946 zcmeEt(jg%t-7y*k>CP!NLKv~J z=jQW$`TPq%-oT5E`?}9O&f_?*xR=^0q(t;YAP|UDO;t$`1i}UW#03%H0lz|-9z}w% zKp-`xX9j+G2P?jLHm|ZVCzF!M*L!=*(`lZzVGl_pCBnXxm-9edOP_AGUQe$)tl1;@c%Ved+-Ds_-vhAVJM zxIZ(+{r~&TQtA5pC7xSo`&yNVx4N<4 zPjBKS8Kan(-4u^(WO(7b` zOgfO?WMAky%hgce+6yHmr2^I6Up4dNeTV~32AtJ!&yX_V&e6bGt1+_n1?V};IT*VT zlx(9{eWQrHO+rh|QL}mY>0v8u6FkLKP@QywnA?%yF`W)O`e>haSJ7}6qUVvwPWtA+ zu$^__5#*1^GR@0ATJy6qm!kgQGbKJH3@`;3DXc8q+v>PRD}kU`Yp3MIC!Fhpw>zK?k*BcO7YfhVh>WYnxWjvCZ$qcr5#B%J{9!?R@q)h-eksW|r zBf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