From aeeb90e60c4badc15920bfdaa1928c9a981b978d Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Wed, 11 Nov 2026 21:41:04 -0800 Subject: [PATCH] Save and Export: the hover's note list states its limits The hover lists up to 30 notes, fewer when the window is small, and says how many were left out. The docs and command description said it lists them all. --- crates/ui-egui/src/io/export.rs | 2 +- crates/ui-egui/src/io/save.rs | 3 ++- crates/ui-egui/src/menus/ui_commands.rs | 2 +- docs/mcp.md | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/ui-egui/src/io/export.rs b/crates/ui-egui/src/io/export.rs index 246511669..7e5bc0138 100644 --- a/crates/ui-egui/src/io/export.rs +++ b/crates/ui-egui/src/io/export.rs @@ -244,7 +244,7 @@ pub(crate) fn open_original(app: &mut VectorcraftApp, path: &str) -> Result<(), /// back as base64. With `openLocation`, the file manager shows the first file written. When an /// export into a folder or a download has warnings, the status bar shows them as [`report_saved`] /// shows a save's notes: "Saved with n notes: …", and hovering the -/// message lists them all. +/// message lists up to 30 of them, fewer when the window is small, with how many were left out. pub fn export_for_screens(app: &mut VectorcraftApp, params: Value) -> Result { export_files(app, "document.exportForScreens", params) } diff --git a/crates/ui-egui/src/io/save.rs b/crates/ui-egui/src/io/save.rs index 708557fc4..42b76ce2d 100644 --- a/crates/ui-egui/src/io/save.rs +++ b/crates/ui-egui/src/io/save.rs @@ -395,7 +395,8 @@ pub(super) fn view_file(app: &mut VectorcraftApp, path: &str) { } /// "Saved ", with the first of the result's warnings and how many there are; hovering the -/// message lists them all ([`show_with_notes`]). +/// message lists up to 30 of them, fewer when the window is small, with how many were left out +/// ([`show_with_notes`]). pub(crate) fn report_saved(app: &mut VectorcraftApp, path: &str, r: &Value) { show_with_notes(app, saved_status(path, r), notes_of(r)); } diff --git a/crates/ui-egui/src/menus/ui_commands.rs b/crates/ui-egui/src/menus/ui_commands.rs index 6c842814e..f958afefd 100644 --- a/crates/ui-egui/src/menus/ui_commands.rs +++ b/crates/ui-egui/src/menus/ui_commands.rs @@ -1487,7 +1487,7 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[ "css.exportFile", "Export CSS…", "", - "{path?, scope?: selection|all (default selection), …css.selection options} css.export written to path, else a picked file (the web downloads it), with the pictures of rasterized art next to it (CSS Properties panel: Export Selected CSS…, Export All…) → {path, rules, images: [path…], warnings (css.export's; the status bar shows the first and how many there are, and hovering the message lists them all)}", + "{path?, scope?: selection|all (default selection), …css.selection options} css.export written to path, else a picked file (the web downloads it), with the pictures of rasterized art next to it (CSS Properties panel: Export Selected CSS…, Export All…) → {path, rules, images: [path…], warnings (css.export's; the status bar shows the first and how many there are, and hovering the message lists up to 30 of them, fewer when the window is small, with how many were left out)}", ), ( "file.print", diff --git a/docs/mcp.md b/docs/mcp.md index 4905ee30f..a9b3b0be1 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -6386,7 +6386,7 @@ writes the `.css` file with the PNGs of rasterized art next to it (no path: `dat `warnings` add the PNGs' notes to the CSS's, each once (an image that couldn't be decoded, type written in the fallback font…). In the app, `css.copy` copies the CSS and `css.exportFile` writes it through a save panel (the web downloads it) and shows the first note in the status bar, with how many there are; resting the pointer on the -message lists them all. +message lists up to 30 of them, fewer when the list would not fit in the window, with how many were left out. ```json {"name":"run_command","arguments":{"command":"css.selection","params":{"units":"px","position":true}}}