From 537d8ce10b0b1854cb219b5704d581d85ec84abc Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Thu, 19 Nov 2026 05:38:54 -0800 Subject: [PATCH] Contextual Task Bar: docs and test comment say a null visible toggles The opening sentence of the window.taskBar.actions entry in docs/mcp.md now says the action toggles when visible is omitted or null, as the params text does. The comment above bar_actions_refuse_bad_params now says a visible that is not true, false or null is an error. --- crates/ui-egui/src/tests/taskbar.rs | 4 ++-- docs/mcp.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ui-egui/src/tests/taskbar.rs b/crates/ui-egui/src/tests/taskbar.rs index fc01daa133..1615681f57 100644 --- a/crates/ui-egui/src/tests/taskbar.rs +++ b/crates/ui-egui/src/tests/taskbar.rs @@ -1674,8 +1674,8 @@ fn bar_action_ids_are_distinct() { assert_eq!(runs.len(), canvas::TASK_BAR_ACTIONS.len()); } -/// An action the bar does not have, a missing one, or a `visible` that is not true or false is an -/// error and changes nothing. +/// An action the bar does not have, a missing one, or a `visible` that is not true, false or null is +/// an error and changes nothing. #[test] fn bar_actions_refuse_bad_params() { let mut app = app(); diff --git a/docs/mcp.md b/docs/mcp.md index 3121745656..1e2c93d7d6 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -8177,7 +8177,7 @@ and a group id the bar does not have is dropped when they are read. Another `gro be one of …", and a `visible` that is not true or false fails with "`visible` must be true or false"; either leaves every group as it is. The groups and their contents are VectorCraft's own. `window.taskBar.actions {action, visible?}` (desktop app) turns one of the Contextual Task Bar's actions or chips on -(`visible: true`), off (`false`) or toggles it (omitted), and returns `{action, visible}`. The actions are `imageTrace`, +(`visible: true`), off (`false`) or toggles it (omitted or null), and returns `{action, visible}`. The actions are `imageTrace`, `cropImage`, `removeBackground`, `removeAnchorPoints`, `join` (Connect and Join), `cutPath`, `convertToCorner`, `convertToSmooth`, `group`, `makeClippingMask`, `unite`, `expand`, `editClippingPath`, `releaseClippingMask`, `ungroup`, `isolate`, `editPath`, `releaseCompoundPath`, `createOutlines`, `convertToPointType`, `convertToAreaType`,